/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
}

.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #3d3558 0%, #1a1628 100%);
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo__mark svg {
  width: 18px;
  height: 18px;
  color: var(--color-text);
}

.site-header__cta {
  display: none;
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .site-header__cta {
    display: flex;
  }
}

.site-header__cta .btn {
  min-height: 42px;
  padding: 0.45rem 0.95rem;
}

/* Hero — сильный первый экран, CTA-колонка ~⅓ на десктопе */
.hero {
  position: relative;
  padding-block: var(--hero-pad-y);
  overflow: hidden;
}

.hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    var(--gradient-ambient),
    var(--gradient-ambient-2);
}

.hero__ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 70%);
}

.hero__layout {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 2.75rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 33.333%);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.hero__copy {
  max-width: 38rem;
}

.hero__kicker {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.hero__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 5.2vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero__title em {
  font-style: normal;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* Колонка с кнопками — визуальный приоритет над фоном */
.hero__cta-col {
  position: relative;
  z-index: 1;
  width: 100%;
}

@media (min-width: 900px) {
  .hero__cta-col {
    justify-self: stretch;
  }
}

.hero__cta-panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.5rem);
  border-radius: var(--radius-xl);
  background: rgba(12, 13, 20, 0.65);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-elevated);
}

.hero__cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(139, 124, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(46, 228, 199, 0.15) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero__cta-label {
  position: relative;
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.hero__cta-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  width: 100%;
}

.hero__cta-buttons .btn--hero {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 899px) {
  .hero__cta-buttons {
    gap: 1.15rem;
  }

  .hero__cta-buttons .btn--hero {
    min-height: max(68px, 4.35rem);
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
    font-size: 1.125rem;
  }

  .hero__cta-buttons .btn--hero .btn__icon {
    width: 32px;
    height: 32px;
  }

  .hero__cta-buttons .btn--hero .btn__icon--file {
    width: 36px;
    height: 36px;
  }
}

/* Секции ниже — тише, без конкуренции с hero */
.section {
  padding-block: var(--section-y);
}

.section--bordered {
  border-top: 1px solid var(--color-border);
}

.section--quiet .section__head {
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.features-grid--simple {
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .features-grid--simple {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefits-inline {
  padding: 1.5rem 1.35rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.cta-final {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 5vw, 2.75rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.cta-final .section-title {
  margin-bottom: 0.5rem;
}

.cta-final .section-lead {
  margin-inline: auto;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.cta-final .cta-row {
  max-width: 520px;
  margin-inline: auto;
}

@media (max-width: 639px) {
  .cta-final .cta-row {
    flex-direction: column;
  }

  .cta-final .btn--large {
    width: 100%;
    justify-content: center;
  }
}

.site-footer {
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
}

.site-footer__meta {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}
