/*
  СТИЛИ. Для нового клиента меняйте только переменные в :root ниже.
*/
:root {
  --accent: #0f766e;        /* главный цвет */
  --accent-2: #0d9488;      /* второй оттенок для градиентов */
  --accent-dark: #115e59;   /* при наведении */
  --accent-soft: #e6f4f2;   /* светлая подложка */
  --ink: #0b2624;           /* тёмный фон блоков */
  --warm: #f59e0b;          /* акцент для меток */
  --bg: #ffffff;
  --bg-alt: #f3f8f7;
  --text: #0f1f1e;
  --muted: #4b5f5d;
  --border: #dbe7e5;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(11,38,36,.05), 0 10px 30px rgba(11,38,36,.08);
  --shadow-lg: 0 2px 4px rgba(11,38,36,.06), 0 24px 48px rgba(11,38,36,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.12; margin: 0 0 14px; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; }
h1 span { background: linear-gradient(90deg, var(--accent), #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
h3 { font-size: 1.2rem; font-weight: 800; }
a { color: var(--accent); }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.container--narrow { max-width: 700px; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__sub { color: var(--muted); margin: 0 0 32px; font-size: 1.05rem; max-width: 620px; }
.eyebrow { margin: 0 0 8px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }

/* Кнопки */
.btn {
  display: inline-block; border: 0; cursor: pointer; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  font: inherit; font-weight: 700; padding: 15px 28px; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15,118,110,.28);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,118,110,.34); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--small { padding: 10px 18px; font-size: .9rem; border-radius: 12px; box-shadow: none; }
.btn--block { display: block; width: 100%; text-align: center; }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); filter: none; }
.btn--light { background: #fff; color: var(--accent-dark); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.btn--light:hover { filter: none; background: #f0fdfa; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--border); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.logo__mark { width: 24px; height: 24px; border: 3px solid var(--accent); border-radius: 6px; position: relative; flex: none; background: var(--accent-soft); }
.logo__mark::after { content: ""; position: absolute; inset: 2px 9px; border-left: 2px solid var(--accent); }
.nav, .header__phone { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; margin-right: 22px; transition: color .15s; }
.nav a:hover { color: var(--accent); }
.header__phone { font-weight: 800; color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 48px 0 64px; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 380px at 90% -10%, rgba(14,165,233,.16), transparent 70%),
    radial-gradient(600px 360px at 0% 0%, rgba(13,148,136,.14), transparent 70%),
    var(--bg);
}
.hero__row { display: grid; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); color: var(--accent-dark); font-weight: 700; font-size: .85rem; padding: 7px 14px; border-radius: 999px; margin: 0 0 18px; box-shadow: var(--shadow); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.hero__lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 26px; max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 460px; }
.stats li { flex: 1; padding: 14px 16px; color: var(--muted); font-size: .88rem; }
.stats li + li { border-left: 1px solid var(--border); }
.stats strong { display: block; font-size: 1.45rem; color: var(--accent); letter-spacing: -.02em; }

.hero__art { position: relative; isolation: isolate; max-width: 360px; margin: 0 auto; width: 100%; }
.hero__art svg { display: block; width: 100%; filter: drop-shadow(0 28px 30px rgba(11,38,36,.2)); }
.hero__art::before { content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 32px; background: linear-gradient(135deg, var(--accent-soft), #dff1fb); z-index: -1; }
.chip { position: absolute; z-index: 2; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-weight: 800; font-size: .85rem; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.chip small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; }
.chip--a { left: -8px; top: 14%; }
.chip--b { right: -8px; bottom: 12%; }

/* Карточки и формы */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin: 0 0 18px; min-width: 0; }
fieldset.card legend { float: left; width: 100%; padding: 0; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; letter-spacing: -.01em; }
fieldset.card legend + * { clear: both; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; color: var(--text); }
input[type="number"], input[type="text"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--border);
  border-radius: 12px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
input[type="number"]:focus, input[type="text"]:focus, input[type="tel"]:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(13,148,136,.15);
}
select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%230f766e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
input[aria-invalid="true"] { border-color: #dc2626; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0 0 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; transition: border-color .15s, background .15s; }
.check:hover { border-color: var(--accent-2); }
.check:has(input:checked) { border-color: var(--accent-2); background: var(--accent-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check small { color: var(--muted); display: block; font-size: .82rem; }
.lead .check { margin-top: 4px; }

/* Калькулятор */
.calc { display: grid; gap: 22px; }
.win { border: 1.5px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 12px; background: var(--bg-alt); }
.win__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 800; }
.win__del { border: 0; background: none; color: #dc2626; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.win__del:hover { background: #fee2e2; }
.win__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.win__grid .field { margin: 0; }
.win__grid .field--full { grid-column: 1 / -1; }
.calc__result {
  position: relative; overflow: hidden; color: #fff; padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  background: radial-gradient(420px 220px at 100% 0, rgba(14,165,233,.35), transparent 70%), linear-gradient(160deg, #0e4d48, var(--ink));
}
.calc__label { margin: 0; color: #9fd4cf; font-weight: 600; font-size: .9rem; }
.calc__total { font-size: clamp(2.4rem, 8vw, 3.1rem); font-weight: 800; margin: 6px 0 2px; color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.calc__perm2 { margin: 0 0 16px; color: #9fd4cf; }
.breakdown { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid rgba(255,255,255,.15); }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .92rem; color: #d6ece9; }
.breakdown li span:last-child { white-space: nowrap; font-weight: 700; color: #fff; }
.calc__result .note { font-size: .85rem; color: #9fd4cf; margin: 0 0 16px; }

/* Профили */
.profiles { display: grid; gap: 18px; }
.pcard { position: relative; display: block; cursor: pointer; background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #a9d5d0; }
.pcard__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pcard:has(.pcard__input:checked) { border-color: var(--accent-2); background: linear-gradient(180deg, var(--accent-soft), #fff 60%); box-shadow: 0 0 0 4px rgba(13,148,136,.16), var(--shadow-lg); transform: translateY(-4px); animation: pcard-pop .35s ease; }
.pcard:has(.pcard__input:focus-visible) { outline: 3px solid var(--warm); outline-offset: 3px; }
.pcard__sel { position: absolute; top: 16px; right: 16px; display: none; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-size: .76rem; font-weight: 800; padding: 4px 11px 4px 9px; border-radius: 999px; }
.pcard__sel::before { content: "✓"; }
.pcard:has(.pcard__input:checked) .pcard__sel { display: inline-flex; animation: pcard-badge .35s ease; }
@keyframes pcard-pop { 0% { transform: scale(.97); } 60% { transform: translateY(-6px) scale(1.015); } 100% { transform: translateY(-4px) scale(1); } }
@keyframes pcard-badge { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.profiles__hint { margin: 18px 0 0; color: var(--muted); }
.profiles__hint a { font-weight: 700; }
.pcard__hit { position: absolute; top: -13px; left: 22px; background: var(--warm); color: #1f1300; font-size: .76rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(245,158,11,.4); }
.pcard__tag { margin: -6px 0 14px; color: var(--accent); font-weight: 800; font-size: .95rem; }
.pcard ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.pcard li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.pcard li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 800; display: grid; place-items: center; margin-top: 4px; }

/* Этапы */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 18px 18px 18px 74px; position: relative; border: 1px solid var(--border); color: var(--muted); box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 800; font-size: 1.1rem; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(15,118,110,.3); }
.steps strong { display: block; color: var(--text); font-size: 1.05rem; }

/* Преимущества */
.features { display: grid; gap: 16px; margin-top: 28px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature__ico { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 12px; }
.feature p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* Галерея: плитки с «окнами» */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.shot { position: relative; overflow: hidden; aspect-ratio: 4/3; border-radius: var(--radius); display: flex; align-items: flex-end; padding: 14px; color: #fff; font-weight: 800; font-size: .92rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); box-shadow: var(--shadow); transition: transform .25s; }
.shot:hover { transform: scale(1.02); }
.shot::before { content: ""; position: absolute; inset: 14% 24% 28% 24%; border: 5px solid rgba(255,255,255,.8); border-radius: 8px; background: rgba(255,255,255,.14); }
.shot::after { content: ""; position: absolute; inset: 14% 24% 28% 24%; background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)) center / 4px 100% no-repeat; }
.shot { z-index: 0; }
.g1 { background: linear-gradient(135deg, #0f766e, #38bdf8); }
.g2 { background: linear-gradient(135deg, #1d4ed8, #67e8f9); }
.g3 { background: linear-gradient(135deg, #15803d, #a3e635); }
.g4 { background: linear-gradient(135deg, #475569, #0ea5e9); }
.g5 { background: linear-gradient(135deg, #b45309, #fbbf24); }
.g6 { background: linear-gradient(135deg, #7c3aed, #22d3ee); }

/* FAQ */
.faq { background: #fff; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 12px; padding: 0 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; font-weight: 700; display: grid; place-items: center; transition: transform .2s; }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* Форма заявки */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.5em; margin: 0 0 12px; font-weight: 700; }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: #dc2626; }
#lead { background: linear-gradient(180deg, var(--bg), var(--bg-alt)); }

/* Подвал */
.footer { background: var(--ink); color: #a8c3c0; padding: 40px 0; font-size: .95rem; }
.footer strong { color: #fff; font-size: 1.1rem; }
.footer a { color: #fff; margin-right: 14px; }
.footer__row { display: grid; gap: 18px; }

/* Появление блоков при прокрутке (включается скриптом) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .nav, .header__phone { display: block; }
  .section { padding: 96px 0; }
  .hero { padding: 72px 0 96px; }
  .hero__row { grid-template-columns: 1.15fr 1fr; }
  .calc { grid-template-columns: 1.45fr 1fr; align-items: start; }
  .calc__result { position: sticky; top: 84px; }
  .profiles { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 78px 18px 18px; }
  .steps li::before { top: 18px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__row { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 400px) {
  .chip { display: none; }
  .stats li { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .pcard, .shot, .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Цветовые акценты (добавляйте/убирайте здесь, не трогая основу) ===== */
:root {
  --sky: #0ea5e9;  --sky-soft: #e8f5fd;
  --sun: #f59e0b;  --sun-soft: #fff6e0;
  --violet: #6366f1; --violet-soft: #eceeff;
}

/* Тонкая цветная полоса над шапкой */
.header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent-2), var(--sky), var(--sun)); }

/* Hero: тёплое пятно к голубому и бирюзовому */
.hero {
  background:
    radial-gradient(520px 320px at 92% -5%, rgba(14,165,233,.20), transparent 70%),
    radial-gradient(520px 320px at 0% 0%, rgba(13,148,136,.16), transparent 70%),
    radial-gradient(420px 260px at 55% 112%, rgba(245,158,11,.14), transparent 70%),
    var(--bg);
}
.stats li:nth-child(2) strong { color: #0284c7; }
.stats li:nth-child(3) strong { color: #b45309; }

/* Профили: у каждого свой цвет */
.pcard { --c: var(--accent-2); --c-soft: var(--accent-soft); --c-dark: var(--accent); }
.pcard:nth-child(1) { --c: var(--sun); --c-soft: var(--sun-soft); --c-dark: #b45309; }
.pcard:nth-child(3) { --c: var(--violet); --c-soft: var(--violet-soft); --c-dark: #4338ca; }
.pcard:hover { border-color: var(--c); }
.pcard:has(.pcard__input:checked) {
  border-color: var(--c);
  background: linear-gradient(180deg, var(--c-soft), #fff 60%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent), var(--shadow-lg);
}
.pcard__sel { background: var(--c-dark); }
.pcard__tag { color: var(--c-dark); }
.pcard li::before { background: var(--c-soft); color: var(--c-dark); }
#profiles { background: linear-gradient(180deg, var(--sky-soft), #f6fbfe); }

/* Шаги: разные цвета номеров */
.steps li:nth-child(1)::before { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.steps li:nth-child(2)::before { background: linear-gradient(135deg, #38bdf8, #0369a1); box-shadow: 0 6px 14px rgba(3,105,161,.28); }
.steps li:nth-child(3)::before { background: linear-gradient(135deg, #818cf8, #4338ca); box-shadow: 0 6px 14px rgba(67,56,202,.28); }
.steps li:nth-child(4)::before { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 6px 14px rgba(217,119,6,.3); }

/* Преимущества: тёплая подложка и цветные иконки */
.section--sun { background: linear-gradient(180deg, #fffaf0, var(--sun-soft)); }
.feature { border-top: 3px solid var(--accent-2); }
.feature:nth-child(2) { border-top-color: var(--sky); }
.feature:nth-child(3) { border-top-color: var(--sun); }
.feature:nth-child(4) { border-top-color: var(--violet); }
.feature:nth-child(2) .feature__ico { background: var(--sky-soft); }
.feature:nth-child(3) .feature__ico { background: var(--sun-soft); }
.feature:nth-child(4) .feature__ico { background: var(--violet-soft); }

/* Блок сметы: тёплый блик внизу */
.calc__result {
  background:
    radial-gradient(420px 220px at 100% 0, rgba(14,165,233,.35), transparent 70%),
    radial-gradient(320px 200px at 0% 100%, rgba(245,158,11,.22), transparent 70%),
    linear-gradient(160deg, #0e4d48, var(--ink));
}

/* Подвал: цветная линия сверху */
.footer { border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--accent-2), var(--sky), var(--sun)) 1; }
