/* ==========================================================================
   Студап — редакционный светлый слой.
   Каркас построен по референсу tiimoapp.com, палитра и типографика — свои.
   Подключается ПОСЛЕ styles.css и перекрывает шапку, футер и главную.
   ========================================================================== */

:root {
  /* Бумага и чернила */
  --h-paper: #f8f7f3;
  --h-paper-2: #fcfcfa;
  --h-card: #ffffff;
  --h-ink: #14201a;
  --h-ink-2: #55605a;
  --h-ink-3: #7c867f;

  /* Зелёный */
  --h-green: #123c2f;
  --h-green-2: #1e5a45;
  --h-green-3: #2e7a5e;
  --h-mint: #dde9e2;
  --h-mint-2: #eef4f0;

  /* Пастельные подложки под медиа (по мотивам разноцветных карточек Tiimo) */
  --h-tint-sage: #e4ede6;
  --h-tint-sand: #f2ead9;
  --h-tint-clay: #f0e3dc;
  --h-tint-sky: #e2ebef;

  --h-line: rgba(20, 32, 26, 0.1);
  --h-line-2: rgba(20, 32, 26, 0.06);

  /* Раскладка */
  --h-shell: 1080px;
  --h-gutter: 28px;
  --h-radius: 16px;
  --h-radius-lg: 24px;

  /* Движение */
  --h-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --h-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Зерно. Один раз объявляем — переиспользуем в hero и финальном блоке. */
:root {
  --h-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ==========================================================================
   1. Общее: фон страницы, дисплейный шрифт
   ========================================================================== */

body {
  background: var(--h-paper-2);
}

.hp,
.hp * {
  box-sizing: border-box;
}

.hp {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--h-ink);
}

.hp h1,
.hp h2,
.hp h3,
.hp h4,
.site-footer__tagline {
  font-family: 'Literata', Georgia, serif;
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  color: var(--h-ink);
  margin: 0;
  text-wrap: balance;
}

.hp p {
  margin: 0;
  color: var(--h-ink-2);
  font-size: 17px;
  line-height: 1.62;
}

.hp__shell {
  width: 100%;
  max-width: var(--h-shell);
  margin: 0 auto;
  padding-inline: var(--h-gutter);
}

.hp__section {
  padding-block: clamp(56px, 8vw, 104px);
}

/* Надзаголовок-метка */
.hp__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h-green-3);
}

/* Текстовая ссылка-стрелка */
.hp__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--h-green);
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.hp__more::after {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 200ms var(--h-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .hp__more:hover::after {
    transform: translateX(4px);
  }
}

/* ==========================================================================
   2. Кнопки
   ========================================================================== */

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--h-ease-out), background-color 180ms ease,
    border-color 180ms ease, color 180ms ease;
}

.hp-btn:active {
  transform: scale(0.97);
}

.hp-btn--solid {
  background: var(--h-green);
  color: #f4f8f5;
}

.hp-btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--h-green);
  border-color: var(--h-line);
  backdrop-filter: blur(8px);
}

.hp-btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

.hp-btn [data-lucide] {
  width: 18px;
  height: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .hp-btn--solid:hover {
    background: #0d2c22;
  }
  .hp-btn--ghost:hover {
    background: #ffffff;
    border-color: rgba(20, 32, 26, 0.18);
  }
}

/* ==========================================================================
   3. Шапка — общая для всех страниц
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  transition: background-color 260ms ease, border-color 260ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(248, 247, 243, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--h-line-2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
  max-width: var(--h-shell);
  min-height: 76px;
  margin: 0 auto;
  padding: 14px var(--h-gutter);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Literata', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--h-ink);
  text-decoration: none;
  margin-right: auto;
}

.site-header .brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--h-green);
  overflow: hidden;
}

.site-header .brand__mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* --- Навигация с раскрывающимися панелями ------------------------------- */

.hp-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hp-nav__link,
.hp-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--h-ink-2);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.hp-nav__link[aria-current='page'] {
  color: var(--h-ink);
}

@media (hover: hover) and (pointer: fine) {
  .hp-nav__link:hover,
  .hp-nav__trigger:hover {
    color: var(--h-ink);
  }
}

/* Открытый пункт подсвечивается «таблеткой», как в референсе */
.hp-nav__trigger[aria-expanded='true'] {
  background: var(--h-card);
  color: var(--h-ink);
  box-shadow: 0 1px 2px rgba(20, 32, 26, 0.06);
}

.hp-nav__chev {
  display: grid;
  place-items: center;
  transition: transform 200ms var(--h-ease-out);
}

.hp-nav__chev > * {
  width: 15px;
  height: 15px;
}

.hp-nav__trigger[aria-expanded='true'] .hp-nav__chev {
  transform: rotate(180deg);
}

/* --- Панель ------------------------------------------------------------- */

.hp-mega {
  position: absolute;
  left: 50%;
  top: calc(100% - 8px);
  z-index: 30;
  width: min(1160px, calc(100vw - 40px));
  transform: translateX(-50%) translateY(-6px) scale(0.995);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms var(--h-ease-out), transform 140ms var(--h-ease-out),
    visibility 0s linear 140ms;
}

.hp-mega[data-open='true'] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  /* Вход медленнее выхода: появление читаем, закрытие должно быть мгновенным */
  transition: opacity 200ms var(--h-ease-out), transform 200ms var(--h-ease-out),
    visibility 0s;
}

.hp-mega__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  padding: 20px;
  border-radius: var(--h-radius-lg);
  background: var(--h-card);
  border: 1px solid var(--h-line-2);
  box-shadow: 0 30px 70px -24px rgba(18, 60, 47, 0.28), 0 2px 8px rgba(18, 60, 47, 0.06);
}

.hp-mega__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 24px;
  border-radius: var(--h-radius);
  background: var(--h-mint);
}

.hp-mega__intro h3 {
  font-size: 21px;
  line-height: 1.24;
  margin-bottom: 12px;
}

.hp-mega__intro p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--h-ink-2);
  margin: 0;
}

.hp-mega__grid {
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 3), minmax(0, 1fr));
  gap: 4px;
  align-content: start;
}

.hp-mega__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms var(--h-ease-out);
}

.hp-mega__card:active {
  transform: scale(0.985);
}

.hp-mega__card strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--h-ink);
}

.hp-mega__card span {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--h-ink-2);
}

@media (hover: hover) and (pointer: fine) {
  .hp-mega__card:hover {
    background: var(--h-mint-2);
  }
}

.hp-mega__card:focus-visible {
  outline: 2px solid var(--h-green-3);
  outline-offset: -2px;
}

@media (max-width: 1180px) {
  .hp-mega__inner {
    grid-template-columns: 260px 1fr;
  }
  .hp-mega__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-mega,
  .hp-mega[data-open='true'],
  .hp-nav__chev {
    transition: opacity 120ms linear, visibility 0s;
    transform: translateX(-50%);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--h-ink);
  cursor: pointer;
  transition: transform 160ms var(--h-ease-out), background-color 180ms ease;
}

.menu-button:active {
  transform: scale(0.94);
}

@media (max-width: 1040px) {
  .hp-nav,
  .header-actions {
    display: none;
  }
  .menu-button {
    display: inline-flex;
  }
}

/* Мобильное меню — светлая полноэкранная шторка.
   Перекрывает тёмно-зелёный вариант из styles.css: он остался от прежней
   шапки и рядом со светлой шапкой читается как чужой блок. */
.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  position: fixed;
  inset: 76px 0 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(100dvh - 76px);
  padding: 20px var(--h-gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--h-paper);
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: hp-drawer-in 240ms var(--h-ease-out) both;
}

@keyframes hp-drawer-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.mobile-menu.is-open .mobile-menu__label {
  margin-bottom: 4px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h-ink-3);
}

.mobile-menu.is-open > a {
  font-family: 'Literata', Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--h-ink);
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid var(--h-line-2);
}

/* Аккордеон вместо панели: на узком экране раскрывающееся окно не помещается */
.mobile-menu__group {
  border-bottom: 1px solid var(--h-line-2);
}

.mobile-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: 'Literata', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--h-ink);
  text-align: left;
}

.mobile-menu__group[data-open='true'] .hp-nav__chev {
  transform: rotate(180deg);
}

.mobile-menu__sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 16px 2px;
}

.mobile-menu__group[data-open='true'] .mobile-menu__sub {
  display: flex;
}

.mobile-menu.is-open .mobile-menu__sub a {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--h-ink-2);
  text-decoration: none;
  padding: 11px 0;
  border: 0;
}

.mobile-menu.is-open .mobile-menu__sub a:first-child {
  color: var(--h-green);
}

.mobile-menu.is-open .mobile-menu__cta {
  margin-top: 28px !important;
  align-self: flex-start;
  background: var(--h-green);
  color: #f4f8f5;
}

/* ==========================================================================
   4. Hero
   ========================================================================== */

.hp-hero {
  position: relative;
  isolation: isolate;
  margin-top: -76px;
  padding-top: 76px;
  background: var(--h-paper);
  overflow: hidden;
}

/* Диагональный зелёный залив — как лавандовый у референса */
.hp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(120% 90% at 8% 0%, rgba(70, 160, 118, 0.5) 0%, rgba(70, 160, 118, 0) 58%),
    radial-gradient(90% 70% at 96% 22%, rgba(196, 222, 206, 0.85) 0%, rgba(196, 222, 206, 0) 62%),
    linear-gradient(168deg, rgba(18, 60, 47, 0.16) 0%, rgba(248, 247, 243, 0) 46%);
}

/* Плёнка зерна */
.hp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--h-grain);
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.hp-hero__copy {
  padding-block: clamp(48px, 7vw, 92px) clamp(36px, 5vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--h-green);
  text-decoration: none;
  transition: transform 160ms var(--h-ease-out), background-color 180ms ease;
}

.hp-hero__badge:active {
  transform: scale(0.97);
}

.hp-hero__badge [data-lucide] {
  width: 17px;
  height: 17px;
}

@media (hover: hover) and (pointer: fine) {
  .hp-hero__badge:hover {
    background: rgba(255, 255, 255, 0.85);
  }
}

.hp-hero h1 {
  font-size: clamp(38px, 5.8vw, 64px);
  line-height: 1.04;
  max-width: 15ch;
}

.hp-hero__lead {
  max-width: 52ch;
  font-size: clamp(17px, 1.5vw, 19.5px) !important;
}

.hp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.hp-hero__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px !important;
  color: var(--h-ink-3) !important;
}

.hp-hero__note [data-lucide] {
  width: 16px;
  height: 16px;
  color: var(--h-green-3);
}

/* Веер телефонов */
.hp-fan {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(320px, 42vw, 520px);
  margin-top: 8px;
  pointer-events: none;
  /* Обрезаем только низ: телефоны уходят за границу секции, как в референсе. */
  overflow: hidden;
}

/* Слоты наезжают друг на друга — отрицательный margin, а не gap:
   отрицательный gap в flex недопустим и молча схлопывается в 0. */
.hp-fan__slot {
  position: relative;
  flex: none;
  width: 252px;
  height: 100%;
}

.hp-fan__slot + .hp-fan__slot {
  margin-left: clamp(-56px, -3.4vw, -24px);
}

.hp-fan__inner {
  position: absolute;
  left: 50%;
  top: var(--fan-top, 40px);
  width: 390px;
  height: 844px;
  transform-origin: top center;
  transform: translateX(-50%) scale(var(--fan-scale, 0.58)) rotate(var(--fan-rot, 0deg));
}

.hp-fan__slot:nth-child(1) {
  --fan-scale: 0.5;
  --fan-top: 110px;
  --fan-rot: -6deg;
  z-index: 1;
}
.hp-fan__slot:nth-child(2) {
  --fan-scale: 0.55;
  --fan-top: 74px;
  --fan-rot: -3deg;
  z-index: 2;
}
.hp-fan__slot:nth-child(3) {
  --fan-scale: 0.62;
  --fan-top: 28px;
  --fan-rot: 0deg;
  z-index: 3;
}
.hp-fan__slot:nth-child(4) {
  --fan-scale: 0.55;
  --fan-top: 74px;
  --fan-rot: 3deg;
  z-index: 2;
}
.hp-fan__slot:nth-child(5) {
  --fan-scale: 0.5;
  --fan-top: 110px;
  --fan-rot: 6deg;
  z-index: 1;
}

@media (max-width: 900px) {
  .hp-fan__slot:nth-child(1),
  .hp-fan__slot:nth-child(5) {
    display: none;
  }
}

@media (max-width: 600px) {
  .hp-fan__slot:nth-child(2),
  .hp-fan__slot:nth-child(4) {
    display: none;
  }
  .hp-fan {
    height: 400px;
  }
  .hp-fan__slot:nth-child(3) {
    --fan-scale: 0.78;
    --fan-top: 20px;
    width: 320px;
  }
}

/* ==========================================================================
   5. Лента доверия (marquee)
   ========================================================================== */

.hp-marquee {
  padding-block: clamp(28px, 4vw, 44px);
  background: var(--h-paper-2);
  border-block: 1px solid var(--h-line-2);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.hp-marquee__track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: hp-marquee 42s linear infinite;
}

@keyframes hp-marquee {
  to {
    transform: translateX(-50%);
  }
}

.hp-marquee__tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex: none;
  width: 210px;
  height: 88px;
  padding: 0 22px;
  border: 1px dashed rgba(20, 32, 26, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.hp-marquee__tile strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--h-ink);
  letter-spacing: -0.01em;
}

.hp-marquee__tile span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--h-ink-3);
}

/* ==========================================================================
   6. Редакционная полоса (новость / анонс)
   ========================================================================== */

.hp-note__grid {
  display: grid;
  grid-template-columns: 508fr 462fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hp-note--flip .hp-note__grid {
  grid-template-columns: 462fr 508fr;
}

.hp-note--flip .hp-note__media {
  order: 2;
}

.hp-note__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hp-note__copy h2 {
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.1;
}

/* Квадратная сцена под медиа — 1:1, как 508×508 у референса */
.hp-stage {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--h-radius);
  overflow: hidden;
  background: var(--h-tint-sage);
  display: grid;
  place-items: center;
}

.hp-stage--sand {
  background: var(--h-tint-sand);
}
.hp-stage--clay {
  background: var(--h-tint-clay);
}
.hp-stage--sky {
  background: var(--h-tint-sky);
}
.hp-stage--green {
  background: var(--h-green);
}

/* Сцена под карточку тарифа: квадрат снимаем, карточка сама задаёт высоту,
   иначе шесть пунктов состава пришлось бы ужимать под 1:1. */
.hp-stage--plan {
  aspect-ratio: auto;
  background: var(--h-green);
  place-items: stretch;
}

/* ==========================================================================
   Карточка тарифа Premium в полосе на главной
   ========================================================================== */

.hp-plan {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(26px, 3vw, 36px);
  color: var(--h-mint);
}

.hp-plan__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hp-plan__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(234, 242, 237, 0.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #eaf2ed;
}

.hp-plan__badge > * {
  width: 15px;
  height: 15px;
}

.hp-plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(40px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff !important;
}

.hp-plan__price small {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #a9c4b6;
}

.hp-plan__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.45;
  color: #eaf2ed;
}

.hp-plan__list li > :first-child {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: #7fd3ab;
}

/* Информация об оплате отделена волоском, а не ещё одной карточкой */
.hp-plan__pay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(234, 242, 237, 0.18);
}

.hp-plan__pay p {
  margin: 0;
  font-size: 14px !important;
  line-height: 1.5;
  color: #a9c4b6 !important;
}

.hp-plan__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #eaf2ed;
  color: var(--h-green);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 160ms var(--h-ease-out), background-color 180ms ease;
}

.hp-plan__cta:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .hp-plan__cta:hover {
    background: #ffffff;
  }
}

.hp-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Фото перекрывает слот-разметку под ним */
.hp-stage__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Скриншот экрана телефона на цветной сцене.
   Размеры в процентах от сцены, а не в пикселях: жёсткие 390×844
   не подстраивались под ширину колонки и ломались на узких экранах.
   Нижний край намеренно уходит за сцену — так же, как у соседних полос
   с экранами приложения. */
/* Селектор с тегом: иначе общее правило `.hp-stage > img` (класс + тег)
   перебивает размеры по специфичности и снимок растягивается на всю сцену. */
.hp-stage img.hp-stage__shot {
  position: absolute;
  top: 13%;
  left: 50%;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
  box-shadow: 0 26px 60px -14px rgba(16, 36, 28, 0.3),
    0 0 0 1px rgba(20, 32, 26, 0.06);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Телефон внутри сцены */
/* Телефон уходит за нижнюю границу сцены, а не «висит» в ней. */
.hp-stage__phone {
  position: absolute;
  left: 50%;
  top: 9%;
  width: 390px;
  height: 844px;
  transform-origin: top center;
  transform: translateX(-50%) scale(0.72);
  pointer-events: none;
}

/* Пустой слот под будущее фото */
.hp-slot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  border: 1px dashed rgba(20, 32, 26, 0.2);
  border-radius: var(--h-radius);
  color: var(--h-ink-3);
}

.hp-slot [data-lucide] {
  width: 26px;
  height: 26px;
}

.hp-slot strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--h-ink-2);
}

.hp-slot span {
  font-size: 13px;
  max-width: 26ch;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .hp-note__grid,
  .hp-note--flip .hp-note__grid {
    grid-template-columns: 1fr;
  }
  .hp-note--flip .hp-note__media {
    order: 0;
  }
}

/* ==========================================================================
   7. Рельс возможностей (4 карточки)
   ========================================================================== */

.hp-rail__head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* max-width задаётся на самом заголовке: ch на контейнере считается
   по его собственному (мелкому) шрифту и режет строку вчетверо. */
.hp-rail__head h2 {
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.1;
  max-width: 18ch;
}

.hp-rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 320px;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Без scroll-padding прилипание выравнивает край карточки по краю
     контейнера, игнорируя padding-inline: рельс сам прокручивается
     на 28px и первая карточка встаёт левее заголовка секции. */
  scroll-padding-inline: var(--h-gutter);
  padding-bottom: 12px;
  margin-inline: calc(var(--h-gutter) * -1);
  padding-inline: var(--h-gutter);
  scrollbar-width: none;
}

.hp-rail__track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1000px) {
  .hp-rail__track {
    grid-auto-columns: 1fr;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

.hp-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hp-card__media {
  position: relative;
  aspect-ratio: 353 / 460;
  border-radius: var(--h-radius);
  overflow: hidden;
  background: var(--h-tint-sage);
  transition: transform 260ms var(--h-ease-out);
}

.hp-card:nth-child(2) .hp-card__media {
  background: var(--h-tint-sand);
}
.hp-card:nth-child(3) .hp-card__media {
  background: var(--h-tint-clay);
}
.hp-card:nth-child(4) .hp-card__media {
  background: var(--h-tint-sky);
}

.hp-card__media .hp-stage__phone {
  top: 9%;
  transform: translateX(-50%) scale(0.56);
}

.hp-card__shot {
  position: absolute;
  top: 9%;
  left: 50%;
  width: min(82%, 294px);
  height: auto;
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(16, 36, 28, 0.16);
  transform: translateX(-50%);
}

@media (hover: hover) and (pointer: fine) {
  .hp-card:hover .hp-card__media {
    transform: translateY(-6px);
  }
}

.hp-card h3 {
  font-size: 25px;
  line-height: 1.2;
}

.hp-card p {
  font-size: 16px;
}

.hp-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* ==========================================================================
   8. Полосы-фичи (чередование)
   ========================================================================== */

.hp-band + .hp-band {
  padding-top: 0;
}

.hp-band__grid {
  display: grid;
  grid-template-columns: 508fr 462fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hp-band--flip .hp-band__grid {
  grid-template-columns: 462fr 508fr;
}

.hp-band--flip .hp-band__media {
  order: 2;
}

.hp-band__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hp-band__copy h2 {
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.1;
  max-width: 16ch;
}

.hp-band__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-band__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--h-ink-2);
}

.hp-band__list [data-lucide] {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--h-green-3);
}

@media (max-width: 820px) {
  .hp-band__grid,
  .hp-band--flip .hp-band__grid {
    grid-template-columns: 1fr;
  }
  .hp-band--flip .hp-band__media {
    order: 0;
  }
  .hp-band + .hp-band {
    padding-top: clamp(40px, 7vw, 64px);
  }
}

/* ==========================================================================
   9. Голоса студентов
   ========================================================================== */

.hp-voices {
  background: var(--h-paper);
  border-block: 1px solid var(--h-line-2);
}

.hp-voices__head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hp-voices__head h2 {
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.1;
  max-width: 20ch;
}

.hp-voices__head p {
  max-width: 52ch;
  margin-top: 12px;
}

.hp-voices__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 340px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--h-gutter);
  margin-inline: calc(var(--h-gutter) * -1);
  padding: 4px var(--h-gutter) 16px;
  scrollbar-width: none;
}

.hp-voices__track::-webkit-scrollbar {
  display: none;
}

.hp-quote {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px;
  border-radius: var(--h-radius);
  background: var(--h-card);
  border: 1px solid var(--h-line-2);
}

.hp-quote__mark {
  font-family: 'Literata', Georgia, serif;
  font-size: 40px;
  line-height: 0.6;
  color: var(--h-mint);
}

.hp-quote p {
  flex: 1;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--h-ink);
}

.hp-quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hp-quote__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 999px;
  background: var(--h-mint);
  color: var(--h-green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hp-quote__who {
  display: flex;
  flex-direction: column;
}

.hp-quote__who strong {
  font-size: 14.5px;
  font-weight: 700;
}

.hp-quote__who span {
  font-size: 13px;
  color: var(--h-ink-3);
}

.hp-quote--empty {
  background: transparent;
  border-style: dashed;
  border-color: rgba(20, 32, 26, 0.18);
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.hp-quote--empty strong {
  font-size: 15px;
}

.hp-quote--empty p {
  font-size: 14px;
  color: var(--h-ink-3);
}

/* ==========================================================================
   10. FAQ
   ========================================================================== */

.hp-faq__grid {
  display: grid;
  grid-template-columns: 380fr 620fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.hp-faq__head h2 {
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.1;
  margin-bottom: 16px;
}

@media (max-width: 820px) {
  .hp-faq__grid {
    grid-template-columns: 1fr;
  }
}

/* Аккордеон: сбрасываем «карточный» вид из styles.css до тонких линий.
   Переключение plus/minus остаётся на правилах styles.css — lucide заменяет
   <i> на <svg>, поэтому там используются :first-child / :last-child. */
.hp .faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: none;
  border-top: 1px solid var(--h-line);
}

.hp .faq-item {
  border: 0;
  border-bottom: 1px solid var(--h-line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.hp .faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 0;
  padding: 22px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Literata', Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--h-ink);
}

.hp .faq-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 999px;
  background: var(--h-mint-2);
  transition: background-color 180ms ease;
}

.hp .faq-toggle > * {
  width: 16px;
  height: 16px;
  color: var(--h-green);
}

.hp .faq-answer {
  padding: 0 60px 24px 0;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--h-ink-2);
}

/* ==========================================================================
   11. Финальный призыв + футер на одном градиенте
   ========================================================================== */

.hp-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--h-paper-2);
  padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 80px);
  text-align: center;
}

.hp-final::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(110% 100% at 2% 100%, rgba(70, 160, 118, 0.52) 0%, rgba(70, 160, 118, 0) 60%),
    radial-gradient(80% 70% at 92% 8%, rgba(196, 222, 206, 0.8) 0%, rgba(196, 222, 206, 0) 65%);
}

.hp-final::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--h-grain);
  opacity: 0.45;
  mix-blend-mode: multiply;
}

.hp-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hp-final h2 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  max-width: 14ch;
}

.hp-final p {
  max-width: 46ch;
  font-size: 18px !important;
}

.hp-final__stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.hp-final__fine {
  font-size: 14px !important;
  color: var(--h-ink-3) !important;
}

/* Кнопки сторов на светлом */
.hp-final .store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--h-line);
  background: var(--h-ink);
  color: #f4f8f5;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--h-ease-out), background-color 180ms ease;
}

.hp-final .store-button:active {
  transform: scale(0.97);
}

.hp-final .store-button [data-lucide] {
  width: 22px;
  height: 22px;
}

.hp-final .store-button span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.hp-final .store-button small {
  font-size: 11px;
  opacity: 0.72;
}

.hp-final .store-button strong {
  font-size: 15.5px;
  font-weight: 700;
}

/* ==========================================================================
   12. Футер — общий для всех страниц
   ========================================================================== */

.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: 0;
  padding: clamp(56px, 7vw, 88px) 0 0;
  background: var(--h-paper);
  border-top: 1px solid var(--h-line-2);
  overflow: hidden;
}

/* На главной футер продолжает градиент финального блока */
.hp-final + .site-footer,
.page:has(.hp) .site-footer {
  background: var(--h-paper-2);
  border-top: 0;
}

.page:has(.hp) .site-footer::before {
  content: '';
  position: absolute;
  inset: -1px 0 0;
  z-index: -2;
  background: linear-gradient(340deg, rgba(30, 90, 69, 0.2) 0%, rgba(30, 90, 69, 0) 46%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.15fr 0.85fr 0.95fr 1.05fr;
  gap: clamp(24px, 2.6vw, 40px);
  width: 100%;
  max-width: var(--h-shell);
  margin: 0 auto;
  padding-inline: var(--h-gutter);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 34ch;
}

.footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Literata', Georgia, serif;
  font-size: 21px;
  color: var(--h-ink);
  text-decoration: none;
}

.footer-brand .brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--h-green);
  overflow: hidden;
}

.footer-brand .brand__mark img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.site-footer__tagline {
  font-size: 21px;
  line-height: 1.3;
  color: var(--h-ink);
}

.footer-brand p,
.footer-col p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--h-ink-2);
  margin: 0;
}

.footer-fine {
  font-size: 13px !important;
  color: var(--h-ink-3) !important;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h-ink-3);
  margin: 0 0 4px;
}

.footer-col a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--h-ink-2);
  text-decoration: none;
  transition: color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover {
    color: var(--h-green);
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--h-shell);
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 22px var(--h-gutter);
  border-top: 1px solid var(--h-line-2);
  font-size: 13.5px;
  color: var(--h-ink-3);
}

/* ==========================================================================
   13. Появление секций при скролле
   ========================================================================== */

/* Контент виден по умолчанию. Скрытое стартовое состояние включает только
   JS — и только если наблюдатель действительно работает. Иначе сломанный
   IntersectionObserver оставил бы всю страницу пустой. */
.hp.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--h-ease-out), transform 620ms var(--h-ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 60ms);
}

.hp.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hp.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hp-marquee__track {
    animation: none;
  }
  .hp-btn,
  .hp-card__media,
  .hp__more::after {
    transition: none;
  }
}
