/* ТРИ КИТА — яркая версия.
   Цвета из картинки с китом (ночное небо, северное сияние, закат) и образца
   vashkeeping.ru (жёлтые кнопки-таблетки, мятные и розовые блоки, крупные скругления).
   Шрифты лежат в /assets/fonts, внешние сервисы не нужны. */
@font-face { font-family: "Unbounded"; font-weight: 400 900; font-display: swap;
  src: url("fonts/unbounded-cyr.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 400 900; font-display: swap;
  src: url("fonts/unbounded-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap;
  src: url("fonts/golos-cyr.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap;
  src: url("fonts/golos-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  --night: #102a56;
  --night-2: #183a72;
  --sun: #ffd93d;
  --sun-hover: #ffe46b;
  --aqua: #17b3a3;
  --aqua-text: #0b7d72;
  --pink: #ff6b8f;
  --mint: #d3f7ee;
  --lilac: #ece6ff;
  --peach: #fff1d6;
  --rose: #ffe3ea;
  --paper: #ffffff;
  --text: #172a46;
  --muted: #4d5b74;
  --line: #dce4f0;
  --radius: 24px;
  --display: "Unbounded", "Arial Black", Arial, sans-serif;
  --sans: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--aqua-text); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.18; color: var(--night); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(28px, 4.6vw, 48px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: 18px; line-height: 1.3; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.section { padding: 72px 0; }
.section-mint { background: var(--mint); }
.section-lilac { background: var(--lilac); }
.section-beige { background: var(--mint); }
/* Тёмный блок — ночное небо с северным сиянием, как на картинке с китом */
.section-dark, .sky {
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(23,179,163,.45), transparent 60%),
    radial-gradient(50% 70% at 10% 0%, rgba(150,110,255,.40), transparent 60%),
    radial-gradient(40% 60% at 60% 110%, rgba(255,107,143,.35), transparent 60%),
    var(--night);
  color: #e6edfb;
}
.section-dark h2, .section-dark h3, .sky h1, .sky h2 { color: #fff; }
.section-dark a { color: var(--sun); }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; margin-bottom: 32px; }
.section-dark .lead, .sky .lead { color: #c9d5ee; }
.mark { background: linear-gradient(transparent 58%, var(--sun) 58%); padding: 0 .1em; color: inherit; }
.sky .mark { background: none; color: var(--sun); padding: 0; }

/* Кнопки — жёлтые таблетки, как на образце */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center;
  padding: 17px 30px; border-radius: 999px; border: 0; font: 600 16px/1.2 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn-gold { background: var(--sun); color: var(--night) !important; box-shadow: 0 10px 26px rgba(255,217,61,.38); }
.btn-gold:hover { background: var(--sun-hover); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,217,61,.5); }
.btn-gold:focus-visible, .btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.btn-sm { padding: 12px 20px; font-size: 15px; box-shadow: none; }
.btn-wide { width: 100%; }

/* Жёлтая плашка «нужно»: пунктир, чтобы не путать с кнопкой */
.need { display: inline-block; background: #fff27a; color: #2a2400; border: 2px dashed #a88a00;
  border-radius: 6px; padding: 3px 9px; font: 600 14px/1.4 var(--sans); vertical-align: middle; }
.need b { text-transform: uppercase; letter-spacing: .04em; }
.photo-stub { background: #cfd3da; border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; padding: 20px; text-align: center; color: #3f4652; font: 15px/1.4 var(--sans); width: 100%; max-width: 100%; }
.logo-stub { display: inline-block; background: #cfd3da; color: #3f4652; border-radius: 10px; padding: 6px 14px;
  font: 700 13px/1.15 var(--sans); text-decoration: none; text-align: center; }
.logo-stub small { font-weight: 400; }
.logo-stub--dark { background: #3a4f78; color: #e6edfb; margin-bottom: 12px; }

/* Шапка — светлая, чтобы ночной первый экран начинался сразу под ней */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav > a, .nav-services summary { color: var(--night); text-decoration: none; font-size: 16px; font-weight: 500; cursor: pointer; }
.site-nav > a:hover, .nav-services summary:hover { color: var(--aqua-text); }
.nav-phone { font-weight: 700 !important; white-space: nowrap; }
.nav-services { position: relative; }
.nav-services summary { list-style: none; }
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::after { content: " ▾"; color: var(--pink); }
.nav-services ul { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 16px); left: -16px;
  background: var(--paper); border-radius: 18px; box-shadow: 0 18px 48px rgba(16,42,86,.18); min-width: 330px; }
.nav-services li a { display: block; padding: 10px 14px; color: var(--text); text-decoration: none; border-radius: 12px; }
.nav-services li a:hover { background: var(--mint); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr) { display: block; width: 26px; height: 2px; background: var(--night); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(16,42,86,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav > a, .nav-services summary { padding: 13px 0; border-bottom: 1px solid var(--line); display: block; }
  .nav-services ul { position: static; box-shadow: none; min-width: 0; padding: 0 0 8px 8px; }
  .site-nav .btn { margin-top: 16px; }
}

/* Первый экран */
.hero:not(.sky) { padding: 64px 0 72px; background: var(--mint); }
.hero.sky { padding: 64px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.hero p.lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-note { color: var(--muted); font-size: 15px; }
.sky .hero-note { color: #c9d5ee; }
.hero-note::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(23,179,163,.25); margin-right: 9px; vertical-align: 1px; }
.hero-text { padding-bottom: 64px; }
@media (max-width: 879px) { .hero-text { padding-bottom: 0; } }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }

/* Кит: картинка выходит из-под нижнего края первого экрана */
.whale { position: relative; align-self: end; }
.whale img { width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 736 / 1104; object-fit: cover;
  border-radius: 220px 220px 0 0; box-shadow: 0 0 80px rgba(23,179,163,.45); }
@media (max-width: 879px) {
  .whale img { max-width: 100%; aspect-ratio: 4 / 3; object-position: 50% 38%; border-radius: var(--radius) var(--radius) 0 0; }
}

/* Карточки */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
a.card { transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16,42,86,.12); border-color: transparent; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 8px; color: var(--aqua-text); font-weight: 600; }
.card .price { font: 600 21px/1.3 var(--display); color: var(--night); }
.card .meta { font-size: 15px; color: var(--muted); }
.section-mint .card, .section-beige .card, .section-lilac .card { border-color: transparent; }
.after-cards { margin-top: 24px; color: var(--muted); }

/* «С чем приходят» — каждая ситуация своим цветом */
.cards--colors .card { border: 0; }
.cards--colors .card:nth-child(4n+1) { background: var(--mint); }
.cards--colors .card:nth-child(4n+2) { background: var(--rose); }
.cards--colors .card:nth-child(4n+3) { background: var(--lilac); }
.cards--colors .card:nth-child(4n+4) { background: var(--peach); }
.cards--colors .card p { color: var(--text); }
.cards--colors .card .more { color: var(--night); }

/* Списки фактов: галочки в бирюзовых кружках */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px 40px; }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { padding-left: 48px; position: relative; min-height: 32px; }
.facts li::before { content: "✓"; position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--aqua); color: #fff; font: 700 17px/32px var(--sans); text-align: center; }
.why-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1.5fr 1fr; gap: 48px; } }

/* Истории клиентов */
.cases { display: grid; gap: 18px; }
@media (min-width: 860px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { background: var(--lilac); border-radius: var(--radius); padding: 30px; }
.cases .case:nth-child(2) { background: var(--mint); }
.case dl { margin: 0; }
.case dt { display: inline-block; font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em;
  color: #fff; background: var(--night); border-radius: 999px; padding: 6px 10px; margin-top: 16px; }
.case dt:first-child { margin-top: 0; }
.case dd { margin: 8px 0 0; }

/* Цифры */
.numbers { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 20px; }
.number b { display: block; font: 700 clamp(38px, 5vw, 54px)/1 var(--display); margin-bottom: 10px; color: var(--sun); }
.number:nth-child(2) b { color: #5fe3d2; }
.number:nth-child(3) b { color: #ff9ab2; }
.number span { color: #c9d5ee; }

/* Вопросы */
.faq { max-width: 860px; display: grid; gap: 12px; }
.faq details { background: var(--paper); border-radius: 18px; padding: 0 24px; border: 1.5px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font: 500 17px/1.4 var(--display); color: var(--night); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sun); color: var(--night); font: 600 22px/30px var(--sans); text-align: center; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; }

/* Таблица цен */
.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.price-table td { padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; color: var(--night); }
.price-table tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .price-table td { display: block; text-align: left !important; border: 0; padding: 4px 18px; white-space: normal !important; }
  .price-table td:first-child { padding-top: 14px; }
  .price-table td:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
}
.note-box { margin-top: 18px; padding: 24px 26px; background: var(--paper); border-radius: var(--radius); }
.note-box:nth-of-type(odd) { background: var(--peach); }

/* Калькулятор */
.calc { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.4fr 1fr; gap: 36px; } }
.calc-form { background: var(--paper); border-radius: var(--radius); padding: 8px 26px; min-width: 0; }
.calc-group { border: 0; padding: 20px 0; margin: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.calc-group:last-child { border-bottom: 0; }
.calc-group legend { font-weight: 700; color: var(--night); padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.pills { clear: both; display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper); font-size: 16px; transition: all .15s; }
.pill input:hover + span { border-color: var(--aqua); }
.pill input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.pill input[type="checkbox"]:checked + span { background: var(--aqua); border-color: var(--aqua); }
.pill input[type="checkbox"]:checked + span::before { content: "✓ "; }
.pill input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

.calc-result { border-radius: var(--radius); padding: 30px; }
.calc-result { background:
    radial-gradient(80% 60% at 100% 0%, rgba(23,179,163,.5), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(150,110,255,.45), transparent 60%),
    var(--night);
  color: #e6edfb; }
@media (min-width: 900px) { .calc-result { position: sticky; top: 96px; } }
.calc-label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #b7c6e6; }
.calc-total { font: 700 30px/1.2 var(--display); color: var(--sun); margin: 8px 0 18px; }
.calc-rows { list-style: none; margin: 0 0 14px; padding: 0; }
.calc-rows li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: 15px; }
.calc-rows b { white-space: nowrap; color: #fff; }
.calc-need .need { margin: 0 0 10px; }
.calc-note { font-size: 14px; color: #b7c6e6; }

/* Форма заявки */
.consult-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .consult-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.consult-grid > * { min-width: 0; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.15); flex-wrap: wrap; }
.contact-list span { min-width: 86px; color: #9fb2d8; }
.form-card { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: 30px; align-self: start;
  box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.form-card a { color: var(--aqua-text); }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px;
  font: 17px/1.4 var(--sans); background: #fff; color: var(--text); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(23,179,163,.18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--aqua); }
.form-error { background: var(--rose); color: #8a1c3a; border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.thanks-title { font: 600 24px/1.3 var(--display); color: var(--night); margin: 24px 0; text-align: center; }

/* Подвал */
.site-footer { background: #0b1d3d; color: #aab9d6; padding: 52px 0 44px; font-size: 15px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h3 { font: 700 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e6edfb; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-tag { margin: 0; }
