/* HOLI: лендинг по DESIGN.md. Редакторский сплит, остров-навигация, бенто, «двойной кант», зерно бумаги. */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { overflow-x: hidden; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .wrap { padding: 0 40px; } }

/* Лёгкое «зерно» бумаги: фиксированный слой 3%, клики не перехватывает */
.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .03;
  background-image: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Появление блоков при прокрутке: только transform и opacity */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Навигация: плавающий стеклянный остров */
.island {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 30;
  width: min(calc(100% - 24px), 720px); height: 60px; padding: 0 8px 0 24px;
  display: flex; align-items: center; gap: 24px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--hairline); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.logo { font-weight: 600; font-size: 16px; letter-spacing: 4px; }
.island__nav { display: none; gap: 28px; margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-70); }
.island__nav a { padding: 12px 0; transition: color .2s var(--ease); }
.island .btn { margin-left: auto; }
@media (min-width: 760px) { .island__nav { display: flex; } .island .btn { margin-left: 0; } }
@media (hover: hover) and (pointer: fine) { .island__nav a:hover { color: var(--ink); } }

/* Hero */
.hero { display: grid; gap: 48px; padding-top: 108px; padding-bottom: 24px; }
.hero__title { font-size: clamp(34px, 4.5vw, 56px); line-height: 1.08; font-weight: 600; letter-spacing: -1px; margin-top: 20px; text-wrap: balance; }
.hero__lead { margin-top: 20px; color: var(--ink-70); max-width: 33em; }
.lead-form { display: grid; gap: 10px; margin-top: 32px; max-width: 540px; }
.form-msg { font-size: 13px; font-weight: 500; padding-left: 20px; }
.form-msg:empty { display: none; }
.form-msg.is-ok { color: var(--brand-pressed); }
.form-msg.is-err { color: var(--urgent); }
@media (min-width: 560px) { .lead-form { grid-template-columns: 1fr auto; } .lead-form .form-msg { grid-column: 1 / -1; } }
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 72px; padding-top: 148px; padding-bottom: 40px; min-height: min(100dvh, 860px); }
}

/* «Телефон» с живой карточкой «Форс-мажор» */
.hero__visual { display: grid; place-items: center; }
.phone { width: 100%; max-width: 356px; border-radius: 40px; padding: 8px; box-shadow: 0 24px 60px rgba(27, 42, 58, .10); }
.phone__core { border-radius: 32px; padding: 20px 18px 22px; }
.phone__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.phone__badge {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--urgent); color: #fff; font-size: 13px; font-weight: 600;
}
.phone__step { display: flex; gap: 6px; }
.phone__step i { width: 6px; height: 6px; border-radius: 3px; background: rgba(27, 42, 58, .14); transition: background-color .4s var(--ease); }
.phone[data-phase="1"] .phone__step i:nth-child(1),
.phone[data-phase="2"] .phone__step i:nth-child(-n+2),
.phone[data-phase="3"] .phone__step i { background: var(--brand); }
.phone__stage { position: relative; height: 356px; }
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; transform: translateX(24px); pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.phone[data-phase="1"] .ph--1, .phone[data-phase="2"] .ph--2, .phone[data-phase="3"] .ph--3 {
  opacity: 1; transform: none; transition-duration: .4s; transition-delay: .12s;
}
.ph__title { font-size: 16px; font-weight: 600; }
.ph__title--gap { margin-top: 24px; }
.ph__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pick {
  display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 14px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--hairline); font-weight: 600;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.pick b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font-weight: 600; transition: background-color .3s var(--ease); }
.pick--flat { justify-content: center; height: 54px; border-radius: 999px; }
.pick.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick.is-on b { background: rgba(255, 255, 255, .16); }

.msgs { display: grid; gap: 8px; margin-top: 12px; }
.msgs li {
  display: grid; gap: 1px; padding: 9px 14px; border-radius: 14px; background: var(--bg);
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.msgs__who { font-size: 13px; font-weight: 600; }
.msgs__text { font-size: 13px; font-weight: 500; color: var(--ink-70); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone[data-phase="2"] .msgs li { opacity: 1; transform: none; }
.phone[data-phase="2"] .msgs li:nth-child(1) { transition-delay: .3s; }
.phone[data-phase="2"] .msgs li:nth-child(2) { transition-delay: .42s; }
.phone[data-phase="2"] .msgs li:nth-child(3) { transition-delay: .54s; }
.phone[data-phase="2"] .msgs li:nth-child(4) { transition-delay: .66s; }
.ph__send {
  margin-top: auto; flex: none; height: 48px; border-radius: 999px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 600; transition: transform .16s var(--ease), background-color .16s var(--ease);
}
.ph__send.is-press { transform: scale(.97); background: var(--brand-pressed); }

.done { display: grid; gap: 8px; margin-top: 12px; }
.done li {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--bg);
  font-weight: 600; font-size: 13px;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.done li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.done em { margin-left: auto; font-style: normal; font-weight: 500; color: var(--ink-70); }
.phone[data-phase="3"] .done li { opacity: 1; transform: none; }
.phone[data-phase="3"] .done li:nth-child(1) { transition-delay: .3s; }
.phone[data-phase="3"] .done li:nth-child(2) { transition-delay: .42s; }
.phone[data-phase="3"] .done li:nth-child(3) { transition-delay: .54s; }
.phone[data-phase="3"] .done li:nth-child(4) { transition-delay: .66s; }
.ph__meta { margin-top: auto; text-align: center; font-size: 13px; font-weight: 600; color: var(--brand-pressed); background: var(--hint); border-radius: 999px; padding: 12px; }

/* Секции: большой воздух */
.section { padding-top: 88px; }
.section__title { font-size: 28px; line-height: 1.16; font-weight: 600; letter-spacing: -.5px; margin-top: 16px; max-width: 18em; text-wrap: balance; }
.section__lead { margin-top: 12px; color: var(--ink-70); max-width: 36em; }
.section h3 { font-size: 16px; line-height: 22px; font-weight: 600; }
@media (min-width: 980px) { .section { padding-top: 132px; } .section__title { font-size: 40px; letter-spacing: -1px; } }

/* Ценности: асимметричный бенто */
.bento { display: grid; gap: 12px; margin-top: 32px; }
.bento__core { padding: 28px 24px; height: 100%; display: flex; flex-direction: column; }
.bento p { margin-top: 8px; color: var(--ink-70); max-width: 30em; }
.answer { margin-top: 28px; background: var(--bg); border-radius: 16px; padding: 18px; }
.answer__title { font-weight: 600; }
.answer__steps { display: grid; gap: 10px; margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--ink-70); }
.answer__steps li { display: flex; align-items: center; gap: 10px; }
.answer__steps b { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--hint); color: var(--brand-pressed); font-weight: 600; }
.answer__sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.source { height: 28px; padding: 0 12px; border-radius: 999px; background: var(--hint); color: var(--brand-pressed); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
.bento__b { background: var(--ink); color: #fff; border-radius: var(--r-shell); padding: 30px; display: flex; flex-direction: column; }
.bento__b p { color: rgba(255, 255, 255, .72); }
.bento__num { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -1px; margin-bottom: auto; padding-bottom: 28px; }
.bento__c { background: var(--hint); border-radius: var(--r-shell); padding: 30px; display: flex; flex-direction: column; }
.bento__c p { color: var(--ink); opacity: .78; }
.approve { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border-radius: 999px; padding: 6px 6px 6px 18px; margin-bottom: 28px; font-size: 13px; font-weight: 500; }
.approve__btn { height: 36px; padding: 0 16px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; display: inline-flex; align-items: center; }
@media (min-width: 900px) {
  .bento { grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: 16px; }
  .bento__a { grid-row: 1 / 3; }
  .bento__core { padding: 40px; }
}

/* Было / стало */
.ba { display: grid; gap: 12px; margin-top: 32px; }
.ba__was { background: var(--sand); border-radius: var(--r-shell); padding: 30px; }
.ba__now { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-shell); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ba__label { font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-45); }
.ba__now .ba__label { color: var(--brand); }
.ba__big { font-size: 28px; font-weight: 600; letter-spacing: -.5px; line-height: 34px; margin-top: 16px; color: var(--ink-70); }
.ba__sub { color: var(--ink-70); }
.chaos { margin-top: 20px; display: grid; gap: 8px; }
.chaos li { padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 500; color: var(--ink-70); text-decoration: line-through; text-decoration-color: var(--ink-45); }
.chaos li:nth-child(even) { margin-left: 28px; }
.ba__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.ba__stats > div { display: grid; gap: 2px; }
.ba__num { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -2px; color: var(--ink); }
.ba__unit { font-size: 13px; font-weight: 500; color: var(--ink-70); }
.ba__text { margin-top: auto; padding-top: 28px; color: var(--ink-70); max-width: 30em; }
@media (min-width: 900px) { .ba { grid-template-columns: 5fr 7fr; gap: 16px; } .ba__was, .ba__now { padding: 44px; } .ba__num { font-size: 88px; } }

/* Безопасность и интеграции */
.safety { display: grid; gap: 12px; margin-top: 32px; }
.safety__law { background: var(--brand); color: #fff; border-radius: var(--r-shell); padding: 30px; }
.safety__law h3 { margin-top: 40px; }
.safety__law p { margin-top: 8px; color: rgba(255, 255, 255, .86); max-width: 26em; }
.safety__list li { padding: 22px 4px; border-top: 1px solid var(--hairline); }
.safety__list li:first-child { border-top: 0; }
.safety__list p { margin-top: 6px; color: var(--ink-70); max-width: 34em; }
@media (min-width: 900px) { .safety { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } .safety__law { padding: 44px; } .safety__list li:first-child { padding-top: 4px; } }

/* Тарифы */
.plans { display: grid; gap: 12px; margin-top: 32px; align-items: start; }
.plan--plain { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-shell); }
.plan__core { padding: 28px 24px; display: flex; flex-direction: column; }
.plan--vip .plan__core { padding: 28px 22px; }
.plan .eyebrow { align-self: flex-start; margin-bottom: 18px; }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__price { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.5px; margin-top: 12px; }
.plan__list { margin: 20px 0 28px; display: grid; gap: 10px; color: var(--ink-70); }
.plan__list li { position: relative; padding-left: 28px; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--hint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6564' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan.is-chosen [data-choose] { background: var(--hint); color: var(--brand-pressed); box-shadow: none; pointer-events: none; justify-content: center; padding: 0 24px; }
.plan.is-chosen [data-choose] .btn__circle { display: none; }
.plan__form { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; } .plan__core { padding: 36px 32px; } .plan--vip .plan__core { padding: 36px 30px; } }

.foot { margin-top: 96px; padding-top: 28px; padding-bottom: 48px; border-top: 1px solid var(--hairline); display: grid; gap: 8px; }

/* Страница заявок */
.leads-page { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.leads-page .h1 { margin-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.stat { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 16px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.stat__num { font-size: 28px; font-weight: 600; letter-spacing: -.5px; line-height: 34px; }
.stat__label { font-size: 13px; font-weight: 500; color: var(--ink-70); }
.leads { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); margin-bottom: 20px; box-shadow: var(--shadow); }
.lead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.lead + .lead { border-top: 1px solid var(--hairline); }
.lead__main { display: grid; gap: 2px; min-width: 0; }
.lead__main strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
