/* ============================================================
   КадастрМинус — стили главной страницы (hero и секции)
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px;
  background: radial-gradient(120% 120% at 80% 0%, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff; overflow: hidden;
}
/* анимированные градиентные пятна */
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero__blob.b1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(212,165,116,.55), transparent 70%); top: -120px; right: -80px; animation: float 11s var(--ease-soft) infinite; }
.hero__blob.b2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(50,74,115,.8), transparent 70%); bottom: -120px; left: -60px; animation: floatX 13s var(--ease-soft) infinite; }
.hero__blob.b3 { width: 240px; height: 240px; background: radial-gradient(circle, rgba(229,184,127,.35), transparent 70%); top: 40%; left: 45%; animation: float 9s var(--ease-soft) infinite; }
/* перспективная сетка */
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 940px) { .hero .container { grid-template-columns: 1fr; } .hero { min-height: auto; } }

.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin: 18px 0 20px; }
.hero__title .word { display: inline-block; opacity: 0; transform: translateY(24px); animation: heroWord .7s var(--ease) forwards; }
@keyframes heroWord { to { opacity: 1; transform: none; } }
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: rgba(255,255,255,.82); max-width: 540px; }
.hero__cta { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__trust { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.7); font-size: .92rem; }
.hero__stars { color: var(--gold-400); letter-spacing: 2px; font-size: 1.1rem; }

/* стеклянная карточка-визуал справа */
.hero__visual { position: relative; }
.hero__card {
  position: relative; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-xl); padding: 30px; backdrop-filter: blur(16px); box-shadow: var(--sh-lg);
}
.hero__card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.hero__card-head .badge { background: rgba(31,157,85,.2); color: #6ee7a8; }
.mini-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-stat__item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 18px; }
.mini-stat__num { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--gold-400); line-height: 1; }
.mini-stat__lbl { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 6px; }
.hero__bar { margin-top: 18px; background: rgba(255,255,255,.06); border-radius: var(--r-md); padding: 16px 18px; }
.hero__bar-top { display: flex; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.hero__bar-track { height: 10px; background: rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; }
.hero__bar-fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold-400), var(--success)); transition: width 1.6s var(--ease); }
/* парящие бейджи вокруг карточки */
.hero__float { position: absolute; background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 12px 16px; box-shadow: var(--sh-lg); font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.hero__float .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.hero__float.f1 { top: -22px; left: -26px; animation: float 7s var(--ease-soft) infinite; }
.hero__float.f2 { bottom: -18px; right: -20px; animation: floatX 8s var(--ease-soft) infinite; }
@media (max-width: 540px) { .hero__float { display: none; } }

/* скролл-индикатор */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; display: grid; place-items: center; gap: 8px; color: rgba(255,255,255,.6); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; position: relative; }
.scroll-cue .mouse::before { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; background: var(--gold-400); border-radius: 3px; transform: translateX(-50%); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } }

/* лента-маркер логотипов/доверия под hero (бегущая) */
.marquee { background: var(--navy-900); color: rgba(255,255,255,.6); padding: 16px 0; overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 28s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* числа-счётчики (общая секция статистики) */
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--navy-700); line-height: 1; }
.bg-navy .stat-num { color: var(--gold-400); }
.stat-lbl { color: var(--ink-soft); margin-top: 8px; font-size: .95rem; }
.bg-navy .stat-lbl { color: rgba(255,255,255,.7); }

/* ---------- Секция «Когда оспаривать» (карточки причин) ---------- */
.reason { display: flex; flex-direction: column; }
.reason__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.reason .card__icon { margin-bottom: 0; }
.reason .badge { white-space: nowrap; margin-top: 4px; }

/* ---------- «Почему мы» — на тёмном фоне, glass-карточки ---------- */
.why { position: relative; overflow: hidden; }
.why .hero__blob { opacity: .4; }
.why .why__blob1 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(212,165,116,.4), transparent 70%); top: -100px; left: -60px; position: absolute; border-radius: 50%; filter: blur(70px); }
.why-card { text-align: left; }
.why-card .card__icon { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--navy-800); }
.why-card h3 { color: #fff; }

/* ---------- Процесс «Как работаем» — таймлайн ---------- */
.timeline { max-width: 860px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold-400), var(--line)); }
.tl-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); box-shadow: var(--sh-md); position: relative; z-index: 1; transition: transform var(--t-med); }
.tl-item:hover .tl-num { transform: scale(1.08); background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--navy-800); }
.tl-body { padding-top: 6px; }
.tl-body h3 { margin-bottom: 6px; }
.tl-body p { color: var(--ink-soft); }
.tl-time { display: inline-block; margin-top: 8px; font-size: .82rem; font-weight: 700; color: var(--gold-600); background: rgba(212,165,116,.14); padding: 4px 12px; border-radius: var(--r-pill); }

/* живые иконки: лёгкая пульсация акцентной обводки */
.pulse-dot { position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--gold-400); opacity: 0; }
.card:hover .pulse-dot::after { animation: pulseRing 1.2s var(--ease-soft) infinite; }

/* ---------- Мини-калькулятор ---------- */
.calc { position: relative; }
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); background: var(--paper); }
@media (max-width: 860px) { .calc-wrap { grid-template-columns: 1fr; } }
.calc-form { padding: clamp(26px, 3vw, 44px); }
.calc-form h3 { margin-bottom: 6px; }
.calc-form .muted { color: var(--ink-soft); font-size: .92rem; margin-bottom: 22px; }
.calc-result {
  padding: clamp(26px, 3vw, 44px); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, var(--navy-700), var(--navy-900));
  display: flex; flex-direction: column; justify-content: center;
}
.calc-result::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(212,165,116,.3), transparent 70%); top: -80px; right: -60px; filter: blur(40px); }

/* слайдер */
.slider-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.slider-val { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--gold-600); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--gold-500) var(--p,30%), var(--paper-3) var(--p,30%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--gold-500); cursor: pointer; box-shadow: var(--sh-md); transition: transform var(--t-fast); }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--gold-500); cursor: pointer; }

/* результат */
.calc-result .lbl { color: rgba(255,255,255,.7); font-size: .9rem; }
.calc-savings { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: var(--gold-400); line-height: 1.05; margin: 4px 0 2px; }
.calc-rows { margin-top: 22px; display: grid; gap: 12px; }
.calc-rows .r { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .96rem; }
.calc-rows .r b { font-weight: 700; }
.calc-rows .r.accent b { color: var(--gold-400); }
.calc-ring-wrap { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.calc-ring { width: 92px; height: 92px; flex-shrink: 0; transform: rotate(-90deg); }
.calc-ring .track { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 9; }
.calc-ring .bar { fill: none; stroke: url(#ringGrad); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.calc-ring-num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.calc-note { font-size: .8rem; color: var(--ink-soft); margin-top: 16px; }

/* ---------- Кейсы ---------- */
.case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; display: grid; place-items: center; }
.case-card__media svg.obj { width: 76px; height: 76px; color: rgba(255,255,255,.95); position: relative; z-index: 1; transition: transform .6s var(--ease); }
.case-card:hover .case-card__media svg.obj { transform: scale(1.1) translateY(-4px); }
.case-card__media::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.5px); background-size: 18px 18px; opacity: .5; }
.case-card__media::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); top: -60px; right: -50px; }
.cover--retail { background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); }
.cover--office { background: linear-gradient(135deg, #2a3e62, #466490); }
.cover--land { background: linear-gradient(135deg, #1d6a49, #2f9163); }
.case-card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.case-card__save { position: absolute; bottom: 14px; right: 14px; background: var(--success); color: #fff; font-weight: 800; padding: 7px 14px; border-radius: var(--r-pill); font-size: .92rem; box-shadow: var(--sh-md); }
.case-card__body { padding: 24px; }
.case-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 14px 0; }
.case-vs .v { text-align: center; }
.case-vs .v .k { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.case-vs .v .val { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.case-vs .v.before .val { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--danger); }
.case-vs .v.after .val { color: var(--success); }
.case-vs .arrow { color: var(--gold-500); }
.case-card__meta { display: flex; justify-content: space-between; font-size: .86rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Статистика-полоса ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
@media (max-width: 720px) { .stats-band { grid-template-columns: repeat(2,1fr); } }

/* ---------- Тарифы ---------- */
.tariff { display: flex; flex-direction: column; }
.tariff__price { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--navy-700); margin: 6px 0 4px; }
.tariff__price small { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.tariff ul { margin: 16px 0; display: grid; gap: 10px; }
.tariff li { position: relative; padding-left: 26px; font-size: .94rem; color: var(--ink-soft); }
.tariff li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d55' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.tariff .btn { margin-top: auto; }
.tariff--feat { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; border: 0; }
.tariff--feat .tariff__price, .tariff--feat h3 { color: #fff; }
.tariff--feat li { color: rgba(255,255,255,.82); }
.tariff--feat .badge { background: var(--gold-500); color: var(--navy-800); }

/* скоринг-продукты (оплата) */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
@media (max-width: 720px) { .products { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; gap: 6px; }
.product__old { color: var(--ink-soft); text-decoration: line-through; font-size: 1rem; }
.product__price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--gold-600); }
.product__price small { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- FAQ аккордеон ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--t-med), box-shadow var(--t-med); }
.faq-item.open { border-color: var(--gold-400); box-shadow: var(--sh-md); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 24px; font-size: 1.05rem; font-weight: 700; font-family: var(--font-display); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.faq-q .ic { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-3); display: grid; place-items: center; transition: transform var(--t-med), background var(--t-med), color var(--t-med); font-size: 1.2rem; line-height: 1; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: var(--gold-500); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-med) var(--ease); }
.faq-a__inner { padding: 0 24px 20px; color: var(--ink-soft); }

/* ---------- Форма заявки ---------- */
.lead { position: relative; overflow: hidden; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .lead-grid { grid-template-columns: 1fr; } }
.lead-copy h2 { color: #fff; }
.lead-perks { margin-top: 24px; display: grid; gap: 14px; }
.lead-perks li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.85); }
.lead-perks .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(212,165,116,.18); color: var(--gold-400); display: grid; place-items: center; flex-shrink: 0; }
.lead-card { background: var(--paper); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); box-shadow: var(--sh-lg); }
.lead-card h3 { margin-bottom: 4px; }
.lead-card .muted { color: var(--ink-soft); font-size: .92rem; margin-bottom: 20px; }
.form-ok { display: none; text-align: center; padding: 30px 10px; }
.form-ok.show { display: block; animation: heroWord .5s var(--ease); }
.form-ok .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 16px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Юридические страницы ---------- */
.container--narrow { max-width: 840px; }
.legal { padding-top: calc(var(--header-h) + 48px); }
.legal-doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 22px; }
.legal-doc h2 { font-size: 1.3rem; margin: 30px 0 12px; color: var(--navy-700); padding-top: 8px; }
.legal-doc h3 { font-size: 1.08rem; margin: 20px 0 8px; color: var(--navy-700); }
.legal-doc p { margin-bottom: 12px; color: var(--ink-soft); }
.legal-doc ul { margin: 0 0 16px; display: grid; gap: 7px; }
.legal-doc li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.legal-doc li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.legal-doc strong { color: var(--ink); }
.legal-doc a { color: var(--gold-600); text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--r-sm); border: 1px solid var(--line); }
.legal-doc table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.legal-doc th, .legal-doc td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.legal-doc th { background: var(--paper-2); font-weight: 700; color: var(--ink); }

/* ---------- Модалка оплаты ---------- */
.pay-modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(12,24,48,.6); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .25s var(--ease); }
.pay-modal-overlay.show { opacity: 1; }
.pay-modal { background: #fff; border-radius: var(--r-xl); padding: clamp(26px, 3vw, 40px); max-width: 440px; width: 100%; box-shadow: var(--sh-lg); transform: translateY(24px) scale(.97); transition: transform .25s var(--ease); position: relative; }
.pay-modal-overlay.show .pay-modal { transform: none; }
.pay-modal__close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 1.9rem; cursor: pointer; color: var(--ink-soft); line-height: 1; }
.pay-modal__close:hover { color: var(--ink); }
.pay-modal h3 { font-size: 1.3rem; padding-right: 20px; }
.pay-modal__price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--gold-600); margin: 6px 0 4px; }

/* ---------- Внутренний hero страниц ---------- */
.page-hero { background: radial-gradient(120% 120% at 85% 0%, var(--navy-700), var(--navy-900)); color: #fff; padding: calc(var(--header-h) + 44px) 0 50px; position: relative; overflow: hidden; }
.page-hero .hero__blob { opacity: .35; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-hero p { color: rgba(255,255,255,.82); max-width: 660px; margin-top: 12px; }
.breadcrumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--gold-400); }
.breadcrumbs span { margin: 0 6px; }

/* контакты */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
@media (max-width:820px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ic { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg,var(--navy-700),var(--navy-500)); color: var(--gold-400); display: grid; place-items: center; flex-shrink: 0; }
.contact-item .k { font-size: .82rem; color: var(--ink-soft); }
.contact-item .v { font-weight: 700; font-size: 1.05rem; }
.contact-item .v a:hover { color: var(--gold-600); }
.req-box { background: var(--paper-2); border-radius: var(--r-md); padding: 20px; margin-top: 24px; font-size: .9rem; color: var(--ink-soft); line-height: 1.8; }
