/* Сайт мастера Владимира. Палитра: глубокий «ночной» синий, ледяной циан, тёплый оранжевый для действий. */
:root {
  --ink: #0f2a3d;
  --ink-2: #33505f;
  --muted: #6a8290;
  --paper: #f6f8f7;
  --tint: #e8f1f3;
  --card: #ffffff;
  --line: #d6e2e6;
  --ice: #7fd6e8;
  --ice-deep: #2b9bb5;
  --accent: #f26b2d;
  --accent-hover: #d9561b;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(15, 42, 61, .45);
  --head: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5.2vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 38px); max-width: 22ch; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 820px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.eyebrow { font: 600 13px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--ice-deep); margin-bottom: 14px; }
.eyebrow--light { color: var(--ice); }
.muted { color: var(--muted); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgba(15, 42, 61, .06); }
.btn--wide { width: 100%; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 248, 247, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; line-height: 1.1; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo svg rect { fill: var(--ink); }
.logo svg path { stroke: var(--ice); stroke-width: 5; stroke-linecap: round; fill: none; }
.logo small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.top__nav { display: none; gap: 22px; margin-left: auto; font-size: 15px; }
.top__nav a { text-decoration: none; color: var(--ink-2); }
.top__nav a:hover { color: var(--ink); }
.top__phone { margin-left: auto; font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 15px; }
@media (min-width: 980px) { .top__nav { display: flex; } .top__phone { margin-left: 8px; font-size: 17px; } }
@media (max-width: 420px) { .logo small { display: none; } .logo { font-size: 15px; } }

/* Первый экран */
.hero { padding: 48px 0 56px; }
.hero__in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 80px 0 88px; } .hero__in { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.hero h1 span { display: block; color: var(--ice-deep); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero__facts li { border-top: 2px solid var(--ink); padding-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.3; }
.hero__facts b { display: block; font: 700 clamp(17px, 2.4vw, 22px)/1.2 var(--head); color: var(--ink); margin-bottom: 4px; }
.hero__art { margin: 0; }
.hero__photo { margin: 0; position: relative; max-width: 460px; justify-self: center; width: 100%; }
.hero__photo img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); }
.hero__photo figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(15, 42, 61, .88); color: #e6f0f3; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.3; }
.hero__photo figcaption b { display: block; font: 700 16px/1.2 var(--head); color: #fff; }
.works { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 760px) { .works { grid-template-columns: repeat(3, 1fr); } }
.works figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.works img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.works figcaption { padding: 14px 16px; font-size: 15px; color: var(--ink-2); }
.art-wall { fill: var(--tint); }
.art-led { fill: var(--ice-deep); }
.art-air path { fill: none; stroke: var(--ice); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 14; animation: air 2.6s linear infinite; }
.art-line { fill: none; stroke: #b9cbd3; stroke-width: 6; stroke-linecap: round; }
.art-line--2 { stroke: #e8a37f; stroke-width: 4; }
.art-flake path { fill: none; stroke: var(--ice-deep); stroke-width: 3; stroke-linecap: round; }
.art-flake--s path { stroke: var(--ice); }
.art-label { font: 700 26px var(--head); fill: var(--ink); }
@keyframes air { to { stroke-dashoffset: -48; } }
@media (prefers-reduced-motion: reduce) { .art-air path { animation: none; } html { scroll-behavior: auto; } }

/* Секции */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #e6f0f3; }
.section--dark h2 { color: #fff; }
.section--dark .muted { color: #93acb8; }
.section__lead { font-size: 18px; color: var(--ink-2); max-width: 44em; margin-bottom: 36px; }

/* Прайс */
.cards { display: grid; gap: 20px; }
@media (min-width: 860px) { .cards { grid-template-columns: 1fr 1fr; gap: 28px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.card--dark { background: #133448; border-color: #133448; color: #e6f0f3; }
.card__head { border-bottom: 1px dashed var(--line); padding-bottom: 20px; margin-bottom: 8px; }
.card--dark .card__head { border-color: #2f5468; }
.card__head h3 { margin-bottom: 4px; }
.card__head > p { color: var(--muted); margin: 0; font-size: 15px; }
.card--dark .card__head > p { color: #93acb8; }
.card__price { font: 700 clamp(34px, 5vw, 46px)/1.1 var(--head); margin: 16px 0 6px; color: var(--ice-deep); }
.card--dark .card__price { color: var(--ice); }
.card__head .card__note { color: var(--ink-2); font-size: 15px; }
.card--dark .card__head .card__note { color: #c9dbe2; }
.price { width: 100%; border-collapse: collapse; font-size: 16px; }
.price td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.card--dark .price td { border-color: #2a4a5d; }
.price td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 16px; }
.price tr:last-child td { border-bottom: 0; }
.price__sub td { padding-top: 22px; font: 600 12px/1 var(--body) !important; text-transform: uppercase; letter-spacing: .12em; color: var(--ice); text-align: left !important; }

/* Оборудование */
.split { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.equip { background: #133448; border-radius: var(--radius); padding: 28px 24px; position: relative; }
.equip__badge { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.equip__badge b { font: 700 clamp(48px, 8vw, 72px)/1 var(--head); color: var(--accent); }
.equip__badge span { color: #c9dbe2; font-size: 16px; max-width: 12em; line-height: 1.3; }
.equip__list { list-style: none; padding: 0; margin: 0 0 16px; }
.equip__list li { padding: 10px 0 10px 28px; border-top: 1px solid #2a4a5d; position: relative; }
.equip__list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--ice); }
.equip__fine { color: #93acb8; font-size: 15px; margin: 0; }

/* Калькулятор */
.calc { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.25fr .75fr; gap: 28px; } }
.calc__form, .calc__result { background: var(--card); border-radius: var(--radius); padding: 24px 20px; border: 1px solid var(--line); min-width: 0; }
@media (min-width: 720px) { .calc__form, .calc__result { padding: 32px 28px; } }
.calc__result { background: var(--ink); color: #e6f0f3; border-color: var(--ink); }
/* С формой панель высокая: прилипает только там, где целиком влезает в экран */
@media (min-width: 900px) and (min-height: 860px) { .calc__result { position: sticky; top: 84px; } }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.tab { border: 0; background: transparent; border-radius: 999px; min-height: 44px; font: 600 15px/1.2 var(--body); color: var(--ink-2); cursor: pointer; padding: 6px 10px; }
.tab.is-active { background: var(--ink); color: #fff; }
.field { border: 0; margin: 0 0 18px; padding: 0; }
.field legend, .field__title { font-weight: 600; margin-bottom: 10px; padding: 0; }
.field__title { margin-top: 26px; }
.field--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.field--row small, .check small { display: block; color: var(--muted); font-size: 14px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.2; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--ice); outline-offset: 2px; }
.stepper { display: flex; align-items: center; flex: none; border: 1.5px solid var(--line); border-radius: 999px; }
.stepper button { width: 42px; height: 42px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; border-radius: 50%; }
.stepper button:hover { background: var(--tint); }
.stepper output { min-width: 50px; text-align: center; font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.calc__label { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--ice); margin: 0 0 6px; }
.calc__total { font: 700 clamp(36px, 5vw, 48px)/1.1 var(--head); color: #fff; margin-bottom: 18px; }
.calc__lines { list-style: none; padding: 0; margin: 0 0 22px; font-size: 15px; }
.calc__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #2a4a5d; color: #c9dbe2; }
.calc__lines li span:last-child { white-space: nowrap; color: #fff; font-weight: 600; }
.calc__warn { background: rgba(242, 107, 45, .14); border-left: 3px solid var(--accent); padding: 12px 14px; border-radius: 8px; font-size: 15px; color: #fbd9c8; }
.calc__fine { color: #93acb8; font-size: 13px; margin: 14px 0 0; }
.calc__send { display: grid; gap: 10px; }
.calc__send-label { font-size: 15px; font-weight: 600; color: #fff; }
.calc__send input[type="tel"] { width: 100%; font: 500 18px/1.3 var(--body); color: var(--ink); padding: 14px 16px; border: 2px solid transparent; border-radius: 12px; background: #fff; }
.calc__send input[type="tel"]:focus { outline: none; border-color: var(--ice); }
.calc__send input.is-invalid { border-color: var(--accent); }
.calc__send-fine { font-size: 12px; color: #93acb8; margin: 0; }
.calc__send-fine a { color: inherit; }
.calc__send .form__status { color: #fff; }
.calc__send .form__status.is-ok { color: #7fe0b0; }
.calc__send .form__status.is-err { color: #ffb08a; }
.calc__send .form__status a { color: inherit; }

/* Шаги */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.steps li::before { content: "0" counter(s); display: block; font: 700 14px/1 var(--head); color: var(--ice-deep); margin-bottom: 18px; }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span { color: var(--ink-2); font-size: 15px; }

/* Ремонт */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 16px 0 16px 40px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%237fd6e8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 28px/1 var(--body); color: var(--ice-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 20px; max-width: 42em; }

/* Заявка */
.big-phone { display: inline-block; font: 700 clamp(26px, 4vw, 36px)/1.2 var(--head); color: #fff; text-decoration: none; margin: 8px 0 6px; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 14px; min-width: 0; }
@media (min-width: 720px) { .form { padding: 32px 28px; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form textarea { width: 100%; font: 400 17px/1.4 var(--body); color: var(--ink); padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form textarea { resize: vertical; min-height: 110px; }
.form .is-invalid { border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__fine { font-size: 13px; color: var(--muted); margin: 0; }
.form__status { margin: 0; font-weight: 600; min-height: 1em; }
.form__status.is-ok { color: #1b7f5a; }
.form__status.is-err { color: var(--accent-hover); }

/* Подвал и кнопка звонка */
.foot { background: #0a1f2d; color: #93acb8; font-size: 14px; padding: 28px 0 96px; }
@media (min-width: 900px) { .foot { padding-bottom: 28px; } }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot__req { margin-top: 14px; font-size: 11.5px; line-height: 1.5; color: #6f8996; }
.foot__req a { color: inherit; }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(242, 107, 45, .7); }
.fab svg { width: 26px; height: 26px; fill: #fff; }
@media (min-width: 900px) { .fab { display: none; } }

/* Политика */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(26px, 4vw, 38px); }
.doc h2 { font-size: 20px; margin-top: 1.6em; max-width: none; }
.doc p, .doc li { color: var(--ink-2); }
