﻿.hero {
  padding-top: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(40px, 4vw, 48px);
}
.hero__card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid var(--line-accent);
  border-radius: 24px;
  background: radial-gradient(ellipse at 80% 40%, #ff28542e, transparent 65%), linear-gradient(120deg, #0a0b17, #341322);
  box-shadow: 0 16px 40px #0003;
}
.hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
}
.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
}
.hero__card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 23, 0.98) 0%, rgba(17, 12, 28, 0.92) 38%, rgba(20, 7, 18, 0.5) 62%, rgba(20, 7, 18, 0.08) 100%);
  pointer-events: none;
}
.hero__content {
  width: min(100%, 620px);
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 1px solid var(--line-accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hero__badge-icon {
  flex-shrink: 0;
}
.hero__title {
  max-width: 520px;
  color: var(--text);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.hero__text {
  max-width: 520px;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.hero__text p {
  margin: 0;
}
.hero__text p + p {
  margin-top: 8px;
}
.hero__button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  gap: 10px;
  margin-top: 26px;
  padding: 15px 22px;
  border-radius: 14px;
  font-size: 15px;
  background: linear-gradient(135deg, #ff2f57, #ef174b);
  box-shadow: 0 8px 24px #ff285447;
}
.hero__button > span {
  position: relative;
  z-index: 1;
}
.hero__button-icon {
  display: flex;
  flex-shrink: 0;
}
.hero__button > span:not([class]) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hero__button-arrow {
  flex-shrink: 0;
  transition: transform var(--transition);
}
.hero__button::before {
  content: '';
  position: absolute;
  inset: -50% auto -50% -60%;
  width: 35%;
  background: linear-gradient(90deg, transparent, #ffffff26, transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.5s ease;
}
.hero__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8%;
  background: radial-gradient(ellipse at 80% 35%, #ff285438, transparent 65%);
}
.hero__placeholder span {
  display: grid;
  place-items: center;
  width: clamp(160px, 25vw, 290px);
  aspect-ratio: 1;
  border: 2px solid var(--line-accent);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px #ff285408,
    0 0 0 40px #ff285404;
  color: var(--accent);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.05em;
  transform: rotate(-12deg);
}
.front-page .front-page__content {
  padding-top: 0;
  padding-bottom: 32px;
}
.front-page .front-page__content:not(:has(> *)) {
  padding-bottom: 0;
}
@media (max-width: 768px) {
  .hero__card {
    min-height: 510px;
    align-items: flex-end;
    border-radius: 18px;
  }
  .hero__image {
    object-position: 75% top;
  }
  .hero__card::before {
    background: linear-gradient(180deg, rgba(10, 11, 23, 0.12), rgba(17, 12, 28, 0.48) 30%, rgba(10, 11, 23, 0.9) 58%, rgba(10, 11, 23, 0.99) 100%);
  }
  .hero__content {
    width: 100%;
    padding: 20px;
  }
  .hero__title {
    max-width: 520px;
    font-size: clamp(30px, 7.8vw, 36px);
  }
  .hero__badge {
    margin-bottom: 14px;
    font-size: 11px;
  }
  .hero__text {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.55;
  }
  .hero__button {
    width: 100%;
    margin-top: 22px;
    padding-inline: 16px;
    font-size: 14px;
  }
  .hero__placeholder {
    align-items: flex-start;
    padding: 35px 28px;
  }
  .hero__placeholder span {
    width: 170px;
    font-size: 26px;
  }
}
@media (hover: hover) {
  .hero__button:hover {
    background: linear-gradient(135deg, #ff4267, #ff2854);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px #ff285461;
  }
  .hero__button:hover::before {
    left: 130%;
  }
  .hero__button:hover .hero__button-arrow {
    transform: translateX(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__button::before {
    display: none;
  }
  .hero__button-arrow {
    transition: none;
  }
  .hero__button:hover,
  .hero__button:hover .hero__button-arrow {
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero__card {
    min-height: 450px;
    border-radius: 18px;
  }
  .hero__content {
    padding: 18px 20px;
  }
  .hero__badge {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .hero__title {
    font-size: clamp(28px, 7.2vw, 34px);
    line-height: 1.08;
  }
  .hero__text {
    font-size: 14px;
    line-height: 1.45;
    margin-top: 12px;
  }
  .hero__button {
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 13px;
    margin-top: 18px;
  }
}
