/* Lepota — единая дизайн-система маркетингового сайта (лендинг + правовые страницы) */

/* ========= Токены ========= */
:root {
  /* Фон и поверхности */
  --color-bg-page: #e7e5e4;
  --color-surface-muted: #e7e5e4;
  --color-surface-card: rgb(255 255 255 / 0.6);
  --color-surface-quote: transparent;

  /* Текст */
  --color-text-primary: #0c0a09;
  --color-text-secondary: #57534e;
  --color-text-tertiary: #78716c;
  --color-text-inverse: #ffffff;

  /* Границы и акценты */
  --color-border-default: #d6d3d1;
  --color-border-strong: #78716c;
  --color-accent-button: #1c1917;

  /* Ссылки в потоке текста */
  --color-link: #292524;
  --color-link-hover: #44403c;

  /* Типографика */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-size-doc: 0.9375rem;
  --line-height-doc: 1.65;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-relaxed: 1.625;

  /* Отступы секций */
  --space-page-x: 1.5rem;
  --space-page-y: 2.5rem;
  --content-max-prose: 48rem;
  --content-max-narrow: 42rem;
  /* Лендинг: единая колонка контента под hero (как у блока тарифов) */
  --content-max-landing: 1100px;
}

/* ========= Сброс и база ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--color-bg-page);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* Базовые стили потокового текста (для контента без обёртки-класса) */
.prose-flow p {
  margin: 0 0 0.85rem;
}

.prose-flow p:last-child {
  margin-bottom: 0;
}

.prose-flow ul,
.prose-flow ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose-flow li {
  margin-bottom: 0.5rem;
}

.prose-flow a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-flow a:hover {
  color: var(--color-link-hover);
}

.prose-flow strong {
  font-weight: 600;
}

/* Утилита приглушённого текста */
.text-muted {
  color: var(--color-text-tertiary);
}

/* Курсор набора — исключение: глобальный сброс анимаций сильнее по специфичности для * */
.site-main .typing-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 1px;
  vertical-align: -0.1em;
  background-color: var(--color-text-primary);
  animation: typing-cursor-blink 1s step-end infinite !important;
}

@keyframes typing-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.surface-muted {
  background-color: var(--color-surface-muted);
}

/* --- Глобальное меню главной --- */
.site-nav {
  position: fixed;
  top: 0.75rem;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  transition: transform 350ms ease-in-out, opacity 350ms ease-in-out;
}

.site-nav--hidden {
  transform: translateY(calc(-100% - 1rem));
  opacity: 0;
}

.site-nav__inner {
  position: relative;
  width: min(100%, var(--content-max-landing));
}

.site-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.375rem 0.5rem 0.375rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-default);
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 0 0 0 rgba(12, 10, 9, 0);
  transition: background 350ms ease-in-out, box-shadow 350ms ease-in-out, border-color 350ms ease-in-out;
}

.site-nav--floating .site-nav__bar {
  border-color: rgba(255,255,255,1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 10px 28px rgba(12, 10, 9, 0.08);
}

.site-nav__brand {
  display: inline-flex;
  padding: 0 0.875rem;
  align-items: center;
  min-height: 2.25rem;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.site-nav__brand-logo {
  margin-right: 0.375rem;
  margin-left: -0.25rem;
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: 0rem;
}

@media (min-width: 768px) {
  .site-nav__links {
    display: inline-flex;
  }
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav__link:hover {
  background: rgba(12, 10, 9, 0.05);
  color: var(--color-text-primary);
}

.site-nav__brand:focus-visible,
.site-nav__link:focus-visible,
.site-nav__burger:focus-visible,
.site-nav__panel-link:focus-visible {
  outline: 2px solid var(--color-accent-button);
  outline-offset: 2px;
}

.site-nav__link--disabled {
  color: var(--color-text-tertiary);
  cursor: default;
}

.site-nav__link[aria-current="page"],
.site-nav__panel-link[aria-current="page"] {
  color: var(--color-text-primary);
  font-weight: 600;
}

.site-nav__burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1875rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
}

.site-nav__burger:hover {
  background: rgba(12, 10, 9, 0.05);
}

@media (min-width: 768px) {
  .site-nav__burger {
    display: none;
  }
}

.site-nav__burger-line {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-nav__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 28px rgba(12, 10, 9, 0.1);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.5rem);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}

.site-nav--open .site-nav__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .site-nav__panel {
    display: none;
  }
}

.site-nav__panel-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav__panel-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border-radius: 0.875rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.2;
}

.site-nav__panel-link:hover {
  background: rgba(12, 10, 9, 0.05);
  color: var(--color-text-primary);
}

.site-nav__panel-link--disabled {
  color: var(--color-text-tertiary);
  cursor: default;
}

/* ========= Лендинг: каркас ========= */
.site-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0 2.25rem;
  color: var(--color-text-primary);
}

.site-main--subpage {
  justify-content: flex-start;
}

.site-main--subpage > .site-footer {
  margin-top: auto;
  padding-top: 2.5rem;
}

/* --- Hero --- */
.hero {
  height: fit-content;
  max-width: 100%;
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero__title {
  margin: 0 0 0.5rem;
  font-size: 100px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__tagline {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--color-text-secondary);
  letter-spacing: -0.01em;
}

@media (max-width: 639px) {
  .hero__title {
    font-size: 64px;
  }

  .hero__tagline {
    font-size: 1rem;
    line-height: 1.4rem;
  }
}

@media (min-width: 640px) {
  .hero__tagline {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 768px) {
  .hero__tagline {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }
}

.btn-primary {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1.5rem 0 1.25rem;
  border-radius: 1.5rem;
  border: none;
  background-color: var(--color-accent-button);
  color: var(--color-text-inverse);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary > svg {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 640px) {
  .btn-primary {
    width: auto;
  }
}

.hero__meta {
  height: fit-content;
  margin: 0 0 2rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(12, 10, 9, 0.5);
}

.hero__meta a {
  color: var(--color-text-tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(168, 162, 158, 0.8);
}

.hero__meta a:hover {
  color: var(--color-link-hover);
}

/* Блок превью: декоративный tsar над основным скриншотом справа (вне потока) */
.hero__preview-stack {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 2rem;
}

/*
 * Позиция справа: от -10vw (узкий «десктоп») до +10vw (широкий экран).
 * Линейно между 640px и 1280px вьюпорта, дальше зажато в [-10vw, 10vw] — только vw/px, без cqw.
 */
.hero__tsar {
  position: absolute;
  right: clamp(
    -10vw,
    calc(-10vw + (100vw - 640px) / 640px * 20vw),
    10vw
  );
  bottom: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__tsar-inner {
  position: relative;
  width: 240px;
  max-width: min(240px, 55vw);
  aspect-ratio: 234 / 156;
}

.hero__tsar-pic {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero__tsar-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__tsar-pic--2 {
  opacity: 0;
  visibility: hidden;
}

.hero__tsar[data-tsar="2"] .hero__tsar-pic--1 {
  opacity: 0;
  visibility: hidden;
}

.hero__tsar[data-tsar="2"] .hero__tsar-pic--2 {
  opacity: 1;
  visibility: visible;
}

/* Царь только на «десктопе»: как только кнопка скачивания снова в одну строку (min-width: 640px) */
@media (max-width: 639px) {
  .hero__tsar {
    display: none;
  }
}

/* Колонка: трек скролла + tsar привязан к #hero-preview целиком */
.hero__preview-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  /*
   * Ручки подгонки конечной позиции морфа:
   * --hero-morph-final-width: ширина видео относительно постера
   * --hero-morph-final-left: смещение целевой точки слева от постера
   * --hero-morph-final-top: смещение целевой точки сверху от постера
   */
   --hero-morph-final-width: 59%;
   --hero-morph-final-left: 8.25%;
   --hero-morph-final-top: 11%;
}

/* Длинная «взлётная полоса»: sticky-видео скроллится и морфится к постеру внизу трека */
.hero__video-morph-track {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero__video-morph-sticky {
  position: sticky;
  top: 0;
  align-self: stretch;
  width: 100%;
  z-index: 2;
}

.hero__video-morph-sticky .hero__preview--video {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  flex-shrink: 0;
}

.hero__video-morph {
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

.hero__preview--poster {
  position: relative;
  z-index: 0;
}

.hero__preview--timeline {
  --hero-timeline-p: 0;
  position: absolute;
  bottom: 4%;
  left: 1%;
  right: 1%;
  height: 16%;
  background: transparent;
  pointer-events: none;
}

/* Позиция палочки задаётся из hero-timeline-sync.js по currentTime/duration видео */
.hero__preview--timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--hero-timeline-p) * 100% - 1px);
  width: 2px;
  height: 100%;
  background: #008D34;
}

@media (min-width: 640px) {
  .hero__preview-column {
    --hero-morph-final-width: 59%;
    --hero-morph-final-left: 8.25%;
    --hero-morph-final-top: 11%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video-morph {
    will-change: auto;
    transform: none !important;
  }
}

/* Масштаб скругления и тени относительно ширины превью (16px / 1208px при полном размере) */
.hero__preview {
  container-type: inline-size;
  container-name: hero-preview;
  width: 100%;
  position: relative;
  z-index: 0;
}

.hero__preview picture,
.hero__preview__media {
  display: block;
  overflow: hidden;
  border-radius: calc(1600cqw / 1208);
  box-shadow: 0 calc(1600cqw / 1208) calc(3200cqw / 1208) rgba(0, 0, 0, 0.32);
}

.hero__preview img,
.hero__preview__video {
  display: block;
  width: 100%;
  max-width: 1280px;
  height: auto;
}

.hero__preview__video {
  aspect-ratio: 16 / 9;
}

.hero__preview img {
  height: fit-content;
}

/* --- Главные возможности на лендинге --- */
.home-features {
  width: 100%;
  max-width: var(--content-max-landing);
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 1rem 2rem;
}

@media (min-width: 768px) {
  .home-features {
    padding-bottom: 5.5rem;
  }
}

.home-features__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 4rem;
}

.home-features__header {
  margin: 0 0 2rem;
  text-align: left;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .home-features__header {
    text-align: center;
    margin-bottom: 3.5rem;
  }
}

.home-features__recording-picker {
  width: 580px;
  max-width: 100%;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.home-features__recording-picker picture {
  width: 580px;
  max-width: 100%;
  display: inline-block;
  font-size: 0;
  line-height: 0;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(12, 10, 9, 0.32);
}

.home-features__recording-picker picture img {
  width: 580px;
  max-width: 100%;
  height: auto;
}

.home-features__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.home-features__title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: left;
}

@media (min-width: 640px) {
  .home-features__title {
    text-align: center;
  }
}

.home-features__lead {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

@media (min-width: 640px) {
  .home-features__lead {
    font-size: 1.0625rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

.home-features__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .home-features__list {
    gap: 3rem;
  }
}

.home-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .home-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    /* padding: 1.5rem; */
  }

  .home-feature--reverse .home-feature__media {
    order: 2;
  }

  .home-feature--reverse .home-feature__body {
    order: 1;
  }
}

.home-feature__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.125rem;
  background: rgba(12, 10, 9, 0.05);
  aspect-ratio: 4 / 3;
}

.home-feature__media img,
.home-feature__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-feature__media-note {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.625rem;
  border: 1px solid rgba(12, 10, 9, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(12, 10, 9, 0.08);
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--color-text-secondary);
}

.home-feature__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  text-align: left;
}

.home-feature__kicker {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.home-feature__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.125;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.home-feature__text {
  margin: 0;
  max-width: 38rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.home-feature__bullets {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-feature__bullets li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.home-feature__bullets li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0.25em;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 999px;
  background-color: var(--color-text-tertiary);
  transform: translateY(-50%);
}

.home-features__footer {
  display: flex;
  justify-content: center;
  margin: 3rem 0 0;
}

.home-features__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0);
  border: 1px solid var(--color-border-default);
  color: var(--color-text-primary);
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  transition: background-color 350ms ease-in-out, border-color 350ms ease-in-out;
}

.home-features__cta:hover {
  background-color: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
}

/* --- Тарифы --- */
.pricing {
  width: 100%;
  max-width: var(--content-max-landing);
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1rem 1rem;
}

@media (min-width: 768px) {
  .pricing {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }
}

.pricing--standalone {
  padding-top: 5.5rem;
}

@media (min-width: 768px) {
  .pricing--standalone {
    padding-top: 6.5rem;
  }
}

.pricing__inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.pricing__header {
  margin: 0 0 2rem;
}

@media (min-width: 640px) {
  .pricing__header {
    margin-bottom: 2.75rem;
  }
}

.pricing__title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: left;
}

@media (min-width: 640px) {
  .pricing__title {
    text-align: center;
  }
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .pricing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 1rem;
  background-color: var(--color-surface-card);
  text-align: left;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .pricing-card {
    padding: 3rem 2rem;
  }
}

.pricing-card--pro {
  position: relative;
  overflow: visible;
}

.pricing-card__top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-card__head {
  width: 100%;
}

.pricing-card__title-line {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
}

.pricing-card__title-line .pricing-card__name {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.125rem;
  line-height: 1.1;
  font-weight: 500;
}

.pricing-card__price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.pricing-card__price {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-card__price--static {
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0;
}

.pricing-card__year-sub {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 400;
  color: var(--color-text-tertiary);
}

@media (min-width: 900px) {
  .pricing__grid {
    overflow: visible;
  }

  .pricing-card__top {
    align-items: center;
  }

  .pricing-card__price-stack {
    align-items: center;
    text-align: center;
  }

  .pricing-card__title-line {
    justify-content: center;
  }

  .pricing-card__title-line .pricing-card__name {
    text-align: center;
  }
}

.pricing-card__cta {
  margin-top: auto;
  width: 100%;
}

/* --- Страница скачивания --- */
.download-page {
  width: 100%;
  max-width: var(--content-max-landing);
  margin-left: auto;
  margin-right: auto;
  padding: 5.5rem 1rem 2.5rem;
}

@media (min-width: 768px) {
  .download-page {
    padding-top: 6.5rem;
  }
}

.download-page__inner {
  width: 100%;
  margin: 0 auto;
}

.download-page__header {
  margin-bottom: 2rem;
  text-align: center;
  text-wrap: balance;
}

.download-page__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.download-page__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.download-page__lead {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.download-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .download-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.download-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 1rem;
  background-color: var(--color-surface-card);
  text-align: left;
  gap: 1rem;
  min-height: 100%;
}

@media (min-width: 640px) {
  .download-card {
    padding: 2rem 1.75rem;
  }
}

.download-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.download-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.download-card__cta {
  margin-top: auto;
  width: 100%;
}

.download-card--soon {
  border-style: dashed;
}

.download-card__text--soon {
  color: var(--color-text-tertiary);
}

.download-card__soon-label {
  margin: 0;
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border-default);
}


/* --- Нижний CTA --- */
.cta-band {
  width: 100%;
  max-width: var(--content-max-landing);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  padding: 0 var(--space-page-x);
}

@media (min-width: 640px) {
  .cta-band {
    margin-bottom: 5rem;
  }
}

.cta-band__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 7rem 0 5rem;
  border-radius: 1.5rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .cta-band__inner {
    padding-top: 8rem;
  }
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-band__title {
  position: relative;
  z-index: 10;
  margin: 0;
  max-width: 48rem;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.008em;
  text-align: center;
  font-weight: inherit;
}

@media (min-width: 640px) {
  .cta-band__title {
    font-size: 42px;
  }
}

.cta-band__actions {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .cta-band__actions {
    flex-direction: row;
  }
}

/* --- Подвал лендинга --- */
.site-footer {
  width: 100%;
  max-width: var(--content-max-landing);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-page-x) 2rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.site-footer__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 900px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .site-footer__legal {
    flex: 1 1 0;
    min-width: 0;
  }

  .site-footer__details {
    flex: 2 1 0;
  }
}

.site-footer__row--brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  color: var(--color-text-tertiary);
}

.site-footer__credit {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

@media (min-width: 640px) {
  .site-footer__credit {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

.site-footer__avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.site-footer__legal {
  width: 100%;
}

.site-footer__legal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 899px) {
  .site-footer__legal-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem 1rem;
  }
}

@media (min-width: 900px) {
  .site-footer__legal-list {
    display: block;
  }

  .site-footer__legal-list li + li {
    margin-top: 0.375rem;
  }
}

.site-footer__legal-list a {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--color-text-tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(12, 10, 9, 0.22);
}

.site-footer__legal-list a:hover {
  color: var(--color-text-secondary);
  text-decoration-color: currentColor;
}

.site-footer__payments {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.site-footer__pay-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.site-footer__pay-logos picture {
  display: block;
  line-height: 0;
}

.site-footer__pay-logo,
.site-footer__pay-bank img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: none;
}

.site-footer__pay-bank {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 0.25rem;
  transition: opacity 0.15s ease;
}

.site-footer__pay-bank:hover {
  opacity: 0.88;
}

.site-footer__requisites,
.site-footer__payments-note {
  margin: 0;
  max-width: 42rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-text-tertiary);
}

.site-footer__requisites a,
.site-footer__payments-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(12, 10, 9, 0.22);
}

.site-footer__requisites a:hover,
.site-footer__payments-note a:hover {
  color: var(--color-text-secondary);
  text-decoration-color: currentColor;
}

.site-footer__payments-note strong {
  font-weight: 600;
  color: inherit;
}

/* ========= Страница возможностей ========= */
.features-page {
  min-height: 100vh;
  color: var(--color-text-primary);
}

.features-page__content {
  max-width: var(--content-max-landing);
  margin: 0 auto;
  padding: 1rem var(--space-page-x) 4rem;
}

@media (min-width: 768px) {
  .features-page__content {
    padding-bottom: 5rem;
  }
}

.features-page__section {
  padding: 2.75rem 0;
  scroll-margin-top: 2rem;
}

.features-page__section + .features-page__section {
  border-top: 1px solid rgba(12, 10, 9, 0.08);
}

.features-page__section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .features-page__section-head {
    margin-bottom: 2rem;
  }
}

.features-page__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.features-page__section-lead {
  max-width: 48rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.features-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 700px) {
  .features-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .features-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-detail-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.feature-detail-card__media {
  aspect-ratio: 4 / 3;
  background: rgba(12, 10, 9, 0.04);
  border-radius: 0.5rem;
  overflow: hidden;
}

.feature-detail-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-detail-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.225rem;
  padding: 0.5rem 0 1rem;
}

.feature-detail-card__title {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-detail-card__text {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-text-tertiary);
}

/* ========= Правовой хаб (список документов) ========= */
.legal-hub {
  max-width: var(--content-max-narrow);
  margin: 0 auto;
  padding: var(--space-page-y) var(--space-page-x) 4rem;
}

.legal-hub__back {
  margin-bottom: 1.5rem;
}

.legal-hub__back a {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-hub__back a:hover {
  color: var(--color-link-hover);
}

.legal-hub__title {
  font-size: 1.75rem;
  line-height: var(--line-height-tight);
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text-primary);
}

.legal-hub__lead {
  color: var(--color-text-tertiary);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-hub__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-hub__list a {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border-default);
  background: var(--color-surface-card);
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

.legal-hub__list a:hover {
  border-color: var(--color-border-strong);
}

.legal-hub__list span {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-tertiary);
  margin-top: 0.35rem;
}

.legal-hub__disclaimer {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  border-left: 3px solid var(--color-border-default);
  padding-left: 1rem;
  margin: 2rem 0 0;
  line-height: 1.55;
}

.legal-hub__disclaimer a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-hub__disclaimer a:hover {
  color: var(--color-link-hover);
}

/* ========= Длинные правовые документы ========= */
.legal-doc {
  max-width: var(--content-max-prose);
  margin: 0 auto;
  padding: var(--space-page-y) var(--space-page-x) 4rem;
  font-size: var(--font-size-doc);
  line-height: var(--line-height-doc);
  color: rgb(28 25 23);
}

.legal-doc h1 {
  font-size: 1.625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

.legal-doc .meta {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  margin: 0 0 1.75rem;
}

.legal-doc h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--color-text-primary);
}

.legal-doc p {
  margin: 0 0 0.85rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin-bottom: 0.5rem;
}

.legal-doc .back {
  margin-bottom: 1.5rem;
}

.legal-doc .back a {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc .back a:hover {
  color: var(--color-link-hover);
}

.legal-doc a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: var(--color-link-hover);
}

.legal-doc strong {
  font-weight: 600;
}

/* Checkout (T-Bank iframe) */
.checkout-page {
  max-width: 720px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
}

.checkout-page__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.checkout-page__lead {
  color: var(--color-text-muted);
  margin-top: 1.25rem;
}

.checkout-frame-wrap {
  min-height: 640px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface-muted);
}

.checkout-frame {
  width: 100%;
  min-height: 620px;
  border: none;
  display: block;
}

.checkout-page__alt {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.checkout-page__alt a {
  color: var(--color-link);
}

.checkout-plan-box {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: var(--color-surface-muted);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.checkout-plan-box__title {
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.checkout-plan-box__price {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.checkout-plan-box__hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.checkout-field {
  margin-bottom: 1.25rem;
}

.checkout-field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.checkout-field__input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  line-height: 1.4;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--color-surface);
  color: inherit;
}

.checkout-field__input:focus {
  outline: 2px solid var(--color-accent-button);
  outline-offset: 1px;
}

.checkout-field__hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0.4rem 0 0;
  line-height: 1.4;
}

.checkout-consent {
  margin-bottom: 1.25rem;
}

.checkout-consent__label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}

.checkout-consent__label a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-consent__input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.checkout-support {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
}

.checkout-support a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-result {
  max-width: 720px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
}

.checkout-result__key {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  word-break: break-all;
  padding: 1rem;
  border-radius: 8px;
  background: var(--color-surface-muted);
  margin: 1rem 0;
}
