/* HOME V1 2026-10-13 — главная. Подключается после styles.css */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.home {
  --ink: #1a1a1a;
  --soft: #6b6b6b;
  --faint: #8f8f8f;
  --bg-soft: #f7f7f7;
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
}

.home .container {
  width: min(calc(100% - 32px), 640px);
}

/* Логотип — шрифт сайта, полужирный (вариант C) */
.home .logo {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

/* Подарок от друга */
.h-gift {
  padding: 11px 16px;
  background: var(--lime);
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.h-gift[hidden] {
  display: none;
}

/* Шапка */
.home .site-header {
  padding: 18px 0 0;
}

.home .header-inner {
  justify-content: space-between;
}

.h-renew-link {
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
}

/* Кнопки: розовый владельца, крупный текст */
.home .button {
  min-height: 56px;
  font-size: 18px;
  font-weight: 600;
}

.home .button-primary,
.home .o2-tg {
  background: var(--pink);
  color: #fff;
}

.home .button-primary:hover,
.home .o2-tg:hover {
  background: var(--pink-hover);
}

/* Первый экран — под высоту экрана телефона */
.h-hero-in {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: min(calc(100vh - 74px), 720px);
  min-height: min(calc(100svh - 74px), 720px);
  padding: 7vh 0 28px;
}

.h-gift:not([hidden]) ~ main .h-hero-in {
  min-height: min(calc(100vh - 116px), 720px);
  min-height: min(calc(100svh - 116px), 720px);
}

.h-hero h1 {
  margin: 0;
  font-size: clamp(44px, 12.5vw, 64px);
  line-height: 1.12;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.h-lead {
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--soft);
}

.h-sub {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--soft);
}

.home .ruble-sign {
  margin-left: 0.12em;
  font-size: 0.8em;
  font-weight: 500;
  color: inherit;
}

.h-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--faint);
}

/* Серый блок */
.h-gray {
  padding: 36px 0 40px;
  background: var(--bg-soft);
}

.h-title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--faint);
  scroll-margin-top: 16px;
}

.h-title-gap {
  margin-top: 38px;
}

.h-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
}

.h-benefits li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
}

.h-ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #111;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.h-benefits b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.h-benefits span:not(.h-ico) {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--soft);
}

/* Тарифы строками */
.h-plans {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.h-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: border-color .15s ease;
}

.h-plan:hover {
  border-color: #dcdcdc;
}

.h-plan.is-selected {
  border-color: var(--pink);
}

.h-plan-name {
  display: block;
  font-size: 17px;
  font-weight: 500;
}

.h-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: #111;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 2px;
}

.h-plan-meta {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--faint);
}

.h-plan-price {
  flex: none;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

/* Карточки */
.h-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
}

.h-renew {
  margin-top: 28px;
  scroll-margin-top: 16px;
}

.h-renew h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.h-renew p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--soft);
}

.h-steps {
  margin: 12px 0 0;
  padding: 18px;
  list-style: none;
}

.h-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.45;
}

.h-steps li + li {
  margin-top: 14px;
}

.h-steps li > span {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
}

.h-steps small {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  color: var(--soft);
}

.h-steps a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 3px;
}

.h-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--faint);
}

/* Блок заказа — только шрифт и мягкость, id и логика прежние */
.home .order-section {
  padding: 0 0 40px;
  background: var(--bg-soft);
}

.home .order-card {
  border-radius: 24px;
  padding: 22px 18px;
}

.home .o2-plan-value {
  font-weight: 600;
}

.h-legal {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  color: #9a9a9a;
}

/* Подвал */
.h-footer {
  padding: 28px 0 40px;
  color: var(--soft);
  font-size: 14px;
}

.h-footer .logo {
  font-size: 22px;
}

.h-footer a {
  color: inherit;
  text-decoration: none;
}

.h-help {
  margin: 14px 0 0;
  line-height: 1.6;
}

.h-help a {
  color: var(--ink);
}

.h-docs {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  font-size: 13px;
}

.h-seller {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--faint);
}

@media (min-width: 700px) {
  .home .container {
    width: min(calc(100% - 64px), 640px);
  }

  .h-hero {
    padding: 56px 0 56px;
  }

  .h-cta {
    width: auto;
    padding: 0 40px;
  }

  .h-note {
    text-align: left;
  }

  .home .order-card {
    padding: 32px;
  }
}

/* HERO ART 2026-10-13 */
.h-hero h1 { font-weight: 400; letter-spacing: -0.045em; line-height: 0.95; }
.h-hero .h-lead { color: var(--ink); font-weight: 500; }
.h-art { display: none; }
@media (max-width: 767px) {
  .h-hero { overflow: hidden; }
  .h-hero-in { display: flex; flex-direction: column; justify-content: space-between; }
  .h-art { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: flex-end; margin: 8px 0; }
  .h-art img { display: block; width: 112%; max-width: 560px; max-height: 44svh; height: auto; object-fit: contain; object-position: right center; margin-right: -22%; mix-blend-mode: multiply; animation: h-float 7s ease-in-out infinite; }
}
@keyframes h-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .h-art img { animation: none; } }

/* HERO FIT 2026-10-13 */
@media (max-width: 767px) {
  .h-hero-in { height: min(calc(100svh - 74px), 720px); }
  .h-gift:not([hidden]) ~ main .h-hero-in { height: min(calc(100svh - 116px), 720px); }
  .h-art { position: relative; display: block; flex: 1 1 0; min-height: 90px; margin: 4px 0 12px; }
  .h-art img { position: absolute; top: 0; bottom: 0; right: -16%; height: 100%; width: auto; max-width: none; max-height: none; margin: auto 0; object-fit: contain; }
}

/* HERO BIG 2026-10-13 */
@media (max-width: 767px) {
  .h-art img { top: -20%; bottom: auto; height: 140%; right: -14%; margin: 0; pointer-events: none; }
}

/* DESKTOP 2026-10-15 — только экраны от 900px, телефон не меняется */
@media (min-width: 900px) {
  .home .container { width: min(calc(100% - 80px), 1120px); }
  .home .site-header { padding: 26px 0 0; }

  /* Первый экран: текст слева, бесконечность справа до края экрана */
  .h-hero { padding: 0; overflow: hidden; }
  .h-hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto;
    column-gap: 48px;
    align-content: center;
    min-height: min(calc(100vh - 86px), 720px);
    padding: 32px 0 64px;
  }
  .h-gift:not([hidden]) ~ main .h-hero-in { min-height: min(calc(100vh - 128px), 720px); }
  .h-hero-in > div:first-child { grid-column: 1; grid-row: 1; align-self: end; }
  .h-hero-in > div:last-child { grid-column: 1; grid-row: 2; align-self: start; margin-top: 44px; }
  .h-hero h1 { font-size: clamp(84px, 8.2vw, 124px); }
  .h-hero .h-lead { margin-top: 34px; font-size: 22px; }
  .h-sub { font-size: 20px; }
  .h-art {
    display: flex;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-items: center;
    justify-content: flex-end;
    margin-right: calc(-1 * max(40px, (100vw - 1120px) / 2));
  }
  .h-art img {
    display: block;
    width: 100%;
    max-width: 760px;
    max-height: min(74vh, 640px);
    height: auto;
    object-fit: contain;
    object-position: right center;
    mix-blend-mode: multiply;
    animation: h-float 7s ease-in-out infinite;
  }
  .h-cta { min-height: 60px; padding: 0 52px; font-size: 19px; }
  .h-note { font-size: 15px; }

  /* Серый блок */
  .h-gray { padding: 96px 0 72px; }
  .h-gray .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .h-gray .container > * { grid-column: 1 / -1; }
  .h-title {
    font-size: 34px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .h-title-gap { margin-top: 88px; }

  .h-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 28px;
  }
  .h-benefits li {
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 26px 24px 28px;
    background: #fff;
    border-radius: 24px;
  }
  .h-ico { width: 44px; height: 44px; }
  .h-ico svg { width: 22px; height: 22px; }
  .h-benefits b { font-size: 17px; }
  .h-benefits span:not(.h-ico) { margin-top: 6px; font-size: 15px; }

  /* Тарифы — четыре карточки в ряд */
  .h-plans { grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
  .h-plan {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    min-height: 196px;
    padding: 26px 24px 24px;
    border-width: 2px;
    border-radius: 24px;
    transition: border-color .15s ease, transform .15s ease;
  }
  .h-plan:hover { transform: translateY(-2px); }
  .h-plan-name { font-size: 20px; }
  .h-badge { display: table; margin: 8px 0 0; }
  .h-plan-meta { margin-top: 6px; font-size: 14px; line-height: 1.45; }
  .h-plan-price { font-size: 38px; font-weight: 500; letter-spacing: -0.03em; }

  /* Продление и шаги — рядом */
  .h-gray .container > .h-renew { grid-column: 1; grid-row: 6; margin-top: 28px; }
  .h-gray .container > .h-renew + .h-title { grid-column: 2; grid-row: 5; margin-top: 88px; }
  .h-gray .container > .h-steps { grid-column: 2; grid-row: 6; margin-top: 28px; }
  .h-gray .container > .h-hint { grid-column: 2; grid-row: 7; }
  .h-card { padding: 28px; border-radius: 24px; }
  .h-renew h3 { font-size: 20px; }
  .h-renew p { margin-top: 10px; font-size: 15px; }
  .h-steps li { font-size: 17px; }
  .h-steps li + li { margin-top: 18px; }

  /* Форма заказа */
  .home .order-section { padding: 24px 0 112px; }
  .home .order-card { max-width: 560px; padding: 40px; }

  /* Подвал в три колонки */
  .h-footer { padding: 56px 0 64px; }
  .h-footer .container {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 1fr;
    column-gap: 48px;
    align-items: start;
  }
  .h-footer .logo { grid-column: 1; grid-row: 1; }
  .h-help { grid-column: 1; grid-row: 2; }
  .h-docs { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 14px; }
  .h-seller { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
}
@media (min-width: 1100px) {
  .h-badge { position: absolute; top: 24px; right: 22px; margin: 0; }
}

/* PLANS V3 2026-10-19: цена в месяц крупно */
.h-plans-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #6b6b6b; }
.h-plan-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.h-plan .h-plan-meta { margin-top: 0; font-size: 13px; line-height: 1.35; color: #6b6b6b; }
.h-plan-meta s { color: #8f8f8f; }
.h-plan-gift { font-size: 13px; line-height: 1.35; color: #d0006a; }
.h-badge.h-badge-pink { background: #ff2d8d; color: #fff; }
.h-plan .h-plan-price { font-size: 26px; font-weight: 500; line-height: 1; text-align: right; letter-spacing: -0.02em; }
.h-plan-price small { display: block; margin-top: 5px; font-size: 11px; font-weight: 400; letter-spacing: 0; color: #8f8f8f; }
.h-plan.h-plan-trial .h-plan-price { color: #8f8f8f; }
@media (min-width: 900px) {
  .h-plans-sub { font-size: 15px; }
  .h-plan .h-plan-meta, .h-plan-gift { font-size: 14px; }
  .h-plan .h-plan-price { font-size: 38px; text-align: left; letter-spacing: -0.03em; }
  .h-plan-price small { font-size: 13px; }
}

/* PLANS V4 2026-10-19: просторные понятные карточки тарифов */
.home .h4-list { gap: 14px; }
.home .h4-list .h4-plan { gap: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; position: relative; min-height: 0; padding: 20px 18px 18px; border: 2px solid transparent; border-radius: 20px; background: #fff; color: #1a1a1a; text-align: left; }
.home .h4-list .h4-plan.h4-has-badge { margin-top: 10px; }
.home .h4-list .h4-plan.is-selected { border-color: #ff2d8d; }
.home .h4-badge { position: absolute; top: -12px; left: 16px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.home .h4-lime { background: #D9F44A; color: #111; }
.home .h4-pink { background: #ff2d8d; color: #fff; }
.home .h4-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home .h4-list .h4-name { display: block; margin: 0; font-size: 17px; font-weight: 600; }
.home .h4-radio { flex: none; box-sizing: border-box; width: 22px; height: 22px; border: 2px solid #cfcfcf; border-radius: 50%; transition: border .15s ease; }
.home .h4-plan.is-selected .h4-radio { border: 7px solid #ff2d8d; }
.home .h4-price { display: block; margin-top: 10px; font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.home .h4-per { margin-left: 5px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: #6b6b6b; }
.home .h4-total { display: block; margin-top: 10px; font-size: 15px; line-height: 1.4; color: #1a1a1a; }
.home .h4-sum .ruble-sign { font-weight: 600; }
.home .h4-sum { font-weight: 600; }
.home .h4-old { color: #8f8f8f; font-weight: 400; }
.home .h4-save { color: #d0006a; white-space: nowrap; }
.home .h4-price .ruble-sign { font-weight: 600; }
@media (min-width: 900px) {
  .home .h4-list { gap: 20px; }
  .home .h4-list .h4-plan { gap: 0; padding: 30px 24px 24px; border-radius: 24px; }
  .home .h4-list .h4-plan.h4-has-badge { margin-top: 0; }
  .home .h4-list .h4-name { font-size: 20px; }
  .home .h4-price { margin-top: 22px; font-size: 40px; }
  .home .h4-save { display: block; margin-top: 2px; }
  .home .h4-dot { display: none; }
  .home .h4-per { font-size: 17px; }
  .home .h4-total { font-size: 15px; }
}

/* GIFT BLOCK 2026-10-25: «Подарите lolola» */
.h-giftcard{display:flex;gap:16px;align-items:center;margin-top:14px;color:inherit;text-decoration:none;transition:transform .15s ease}
.h-giftcard:active{transform:scale(.99)}
.h-giftcard-art{flex:none;width:84px;line-height:0}
.h-giftcard-art svg{width:84px;height:auto;border-radius:12px;box-shadow:0 10px 24px -14px rgba(26,26,26,.35)}
.h-giftcard-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.h-giftcard-name{font-size:17px;font-weight:600;color:var(--ink)}
.h-giftcard-text{margin-top:6px;font-size:14px;line-height:1.5;color:var(--soft)}
.h-giftcard-btn{display:inline-flex;align-items:center;min-height:40px;margin-top:12px;padding:0 18px;border-radius:999px;background:#ff2d8d;color:#fff;font-size:15px;font-weight:600}
.h-gift-hint a{color:inherit;text-decoration:underline;text-underline-offset:3px}
@media (min-width: 900px) {
  /* тарифы сразу под своим заголовком, затем «Продлить» и «Как подключиться», затем подарок */
  .h-gray .container > .h-plans { grid-row: 5; }
  .h-gray .container > .h-renew + .h-title { grid-row: 6; }
  .h-gray .container > .h-renew { grid-row: 7; }
  .h-gray .container > .h-steps { grid-row: 7; }
  .h-gray .container > .h-hint { grid-row: 8; }
  .h-gray .container > .h-gift-title { grid-row: 9; margin-top: 88px; }
  .h-gray .container > .h-giftcard { grid-row: 10; margin-top: 28px; gap: 28px; padding: 28px 32px; }
  .h-gray .container > .h-gift-hint { grid-column: 1 / -1; grid-row: 11; }
  .h-giftcard-art, .h-giftcard-art svg { width: 120px; }
  .h-giftcard-name { font-size: 22px; }
  .h-giftcard-text { max-width: 560px; font-size: 16px; }
  .h-giftcard:hover { transform: translateY(-2px); }
}

/* BONUS PAGE 2026-10-25: ссылка «Бонусы» в шапке */
.h-head-links{display:flex;align-items:center;gap:8px}
.h-bonus-link{display:inline-flex;align-items:center;background:var(--lime);border-color:var(--lime);color:#111;text-decoration:none}

/* HOME CALM 2026-10-25: меньше розового внизу — «Продлить» свёрнут, подарки и бонусы строками */
.h-renew summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer}
.h-renew summary::-webkit-details-marker{display:none}
.h-renew-chev{flex:none;width:28px;height:28px;border-radius:50%;background:var(--bg-soft);position:relative}
.h-renew-chev::after{content:"";position:absolute;left:10px;top:9px;width:7px;height:7px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg);transition:transform .2s ease}
.h-renew[open] .h-renew-chev::after{top:12px;transform:rotate(-135deg)}
.h-renew[open] summary{margin-bottom:2px}

.h-giftcard.h-more{display:block;padding:4px 18px}
.h-giftcard.h-more:active{transform:none}
.h-more-row{display:flex;align-items:center;gap:14px;padding:14px 0;color:var(--ink);text-decoration:none}
.h-more-row + .h-more-row{border-top:1px solid #f0f0f0}
.h-more-art{flex:none;width:46px;line-height:0}
.h-more-art svg{width:46px;height:auto;border-radius:8px;box-shadow:0 6px 14px -8px rgba(26,26,26,.3)}
.h-more-ico{flex:none;display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--lime);color:#111;font-size:12px;font-weight:700;letter-spacing:-.02em}
.h-more-text{display:flex;flex-direction:column;flex:1;min-width:0}
.h-more-text b{font-size:16px;font-weight:600}
.h-more-text small{margin-top:2px;font-size:14px;line-height:1.4;color:var(--soft)}
.h-more-chev{flex:none;width:20px;height:20px;color:var(--faint)}
@media (min-width: 900px) {
  .h-gray .container > .h-giftcard.h-more { padding: 8px 32px; }
  .h-more-row:hover .h-more-text b { text-decoration: underline; text-underline-offset: 3px; }
}
