/* Ice Cube — tokens */
:root {
  --frost: #EEF3F6;
  --ice: #FFFFFF;
  --ink: #0E2A3B;
  --steel: #546B7B;
  --melt: #7FB6CF;
  --deep: #2F6F8F;
  --line: rgba(14, 42, 59, .14);
  --wa: #1F8A4C;

  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Golos Text", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius-s: 6px;
  --radius-m: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.05; }
h3 { font-size: 1.15rem; font-weight: 400; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; }
section[id] { scroll-margin-top: 72px; }

:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--ice); padding: 10px 16px; border-radius: var(--radius-s);
}
.skip:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--ice);
  border: 1px solid var(--ink); border-radius: 999px;
  font: 500 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--deep); border-color: var(--deep); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ice); border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-wide { width: 100%; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 10px var(--gutter);
  background: rgba(238, 243, 246, .8);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.logo { display: block; line-height: 0; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .97rem; color: var(--steel); }
.nav a:hover { color: var(--ink); }
.header-phone { text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--deep); }
@media (max-width: 1020px) { .nav { display: none; } .header-phone { margin-left: auto; } }
@media (max-width: 560px) { .header-phone { display: none; } .site-header .btn-small { margin-left: auto; } }

/* ---------- HERO: bag scroll scene ---------- */
.drop { position: relative; height: 320vh; }
.drop.is-static { height: auto; }
.drop-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 32px;
  padding: 90px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 40px;
}
.drop.is-static .drop-stage { position: relative; }
.drop-copy { position: relative; z-index: 3; max-width: 40rem; }
.drop-copy h1 { font-size: clamp(2.4rem, 4.8vw, 4.6rem); line-height: 1.02; margin-bottom: 28px; }
.drop-lead { font-size: 1.2rem; color: var(--steel); max-width: 30rem; margin-bottom: 32px; }
.drop-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.bag-wrap { position: relative; z-index: 1; justify-self: center; width: min(340px, 30vw, calc((100svh - 340px) * .72)); }
.bag { display: block; width: 100%; height: auto; overflow: visible; }
.bag-character { position: absolute; inset: -20% -30% -10%; z-index: -1; }
.bag-character img { width: 100%; height: 100%; object-fit: contain; }
.bag-film { fill: rgba(255,255,255,.14); stroke: rgba(14,42,59,.28); stroke-width: 1.5; }
.bag-seal { fill: rgba(255,255,255,.8); stroke: rgba(14,42,59,.25); stroke-width: 1.2; stroke-linejoin: round; }
.bag-crimp { fill: none; stroke: rgba(14,42,59,.16); stroke-width: 1; }
.bag-tear { fill: none; stroke: rgba(14,42,59,.4); stroke-width: 1.4; stroke-linejoin: round; opacity: 0; }
.bag-t1 { font: 500 15px var(--display); fill: var(--ink); letter-spacing: .06em; }
.bag-t2 { font: 300 34px var(--display); fill: var(--ink); }
.bag-t3 { font: 600 14px var(--text); fill: var(--deep); }
.bag-kg { font: 500 19px var(--display); fill: var(--ice); }
.bag-kg-u { font: 500 11px var(--text); fill: #BFE0EE; }
.bag-ice-piece { fill: rgba(255,255,255,.7); stroke: rgba(127,182,207,.7); stroke-width: 1; }

.drop-price {
  position: absolute; left: 50%; bottom: calc(100% + 20px); z-index: 3; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px; translate: -50% 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s, transform .4s;
}
.drop-price.is-visible { opacity: 1; transform: none; }
.drop-price strong { font: 300 clamp(1.8rem, 3.2vw, 2.8rem)/1 var(--display); white-space: nowrap; }
.drop-price span { color: var(--steel); white-space: nowrap; }

.drop-canvas { position: absolute; inset: 0; z-index: 2; pointer-events: none; width: 100%; height: 100%; }
.drop-hint {
  position: absolute; left: 50%; bottom: 20px; z-index: 3; margin: 0;
  transform: translateX(-50%); font-size: .9rem; color: var(--steel);
  transition: opacity .3s;
}

/* phones and tablets in portrait */
@media (max-width: 860px) {
  .drop-stage {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start;
    padding-top: 80px; padding-bottom: 16px; gap: 8px;
  }
  .drop-copy h1 { font-size: clamp(1.75rem, 8.2vw, 3.4rem); margin-bottom: 10px; }
  .drop-lead { font-size: clamp(.95rem, 2.6vw, 1.15rem); margin-bottom: 14px; }
  .drop-actions .btn-ghost { display: none; }
  .bag-wrap { width: min(46vw, 30svh, 300px); justify-self: start; margin: 8px 0 0 4vw; }
  .drop-price { left: calc(100% + 14px); bottom: auto; top: 18%; translate: none; align-items: flex-start; }
  .drop-price strong { font-size: clamp(1.3rem, 6vw, 2.2rem); }
}
/* short phones (iPhone SE and similar) */
@media (max-width: 860px) and (max-height: 640px) {
  .drop-stage { padding-top: 70px; }
  .live { display: none; }
  .drop-copy h1 { font-size: clamp(1.6rem, 7.6vw, 2.4rem); }
}
/* phones in landscape */
@media (max-height: 520px) and (orientation: landscape) {
  .drop-stage {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: none; align-items: center;
    padding-top: 64px; padding-bottom: 12px; gap: 24px;
  }
  .live, .drop-hint, .drop-actions .btn-ghost { display: none; }
  .drop-copy h1 { font-size: clamp(1.5rem, 4.2vw, 2.4rem); margin-bottom: 10px; }
  .drop-lead { font-size: .95rem; margin-bottom: 12px; }
  .drop-actions .btn { min-height: 44px; }
  .bag-wrap { width: calc((100svh - 110px) * .72); justify-self: center; align-self: center; margin: 0; }
  .drop-price { display: none; }
}
/* large monitors */
@media (min-width: 1800px) {
  html { font-size: 112.5%; }
  :root { --max: 1600px; }
  .bag-wrap { width: min(440px, 26vw, calc((100svh - 380px) * .72)); }
}

/* live 24/7 indicator */
.live { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 0 rgba(43,182,115,.5); animation: live 2.4s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(43,182,115,0); } 100% { box-shadow: 0 0 0 0 rgba(43,182,115,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
@media (max-width: 860px) { .live { margin-bottom: 10px; font-size: .92rem; } }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gutter); }
.section-tight { padding-top: 0; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 24px 64px; align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head p { margin: 0; color: var(--steel); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- PRICE ---------- */
.price { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.price h2 { font-size: clamp(2.6rem, 6.4vw, 5.8rem); margin-bottom: 40px; }
.terms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.terms li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.terms strong { font: 400 1.1rem/1.3 var(--display); }
.terms span { color: var(--steel); }
@media (max-width: 960px) { .price { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 560px) { .terms li { grid-template-columns: 1fr; } }

.calc {
  background: var(--ice); border-radius: var(--radius-m);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 0 0 1px var(--line);
}
.calc-title { font-weight: 600; margin-bottom: 16px; }
.stepper { display: flex; align-items: center; gap: 20px; }
.stepper button {
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ice); color: var(--ink);
  font: 300 1.8rem/1 var(--text);
}
.stepper button:hover:not(:disabled) { background: var(--ink); color: var(--ice); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { font: 300 3.4rem/1 var(--display); min-width: 2.4ch; text-align: center; font-variant-numeric: tabular-nums; }
.calc-bags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; margin: 24px 0; align-items: flex-end; }
.mini-bag {
  width: 24px; height: 32px; border-radius: 4px 4px 6px 6px;
  background: linear-gradient(160deg, #fff, #D5E6EE);
  box-shadow: inset 0 0 0 1px rgba(14,42,59,.25), inset 0 4px 0 rgba(14,42,59,.08);
}
.mini-bag.is-new { animation: bag-in .25s ease-out; }
.calc-bags .more { font-size: .9rem; color: var(--steel); align-self: center; }
@keyframes bag-in { from { transform: translateY(-8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mini-bag.is-new { animation: none; } }
.calc-sum { margin: 0 0 12px; }
.calc-sum div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.calc-sum dt { color: var(--steel); }
.calc-sum dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.calc-sum .calc-total { border-bottom: 0; padding-top: 16px; }
.calc-sum .calc-total dt { color: var(--ink); font-weight: 600; }
.calc-sum .calc-total dd { font: 400 1.6rem/1 var(--display); }
.calc-note { min-height: 1.5em; color: var(--deep); font-size: .95rem; margin-bottom: 20px; }

/* ---------- ABOUT (dark, inside the freezer) ---------- */
.about { background: var(--ink); color: #DCE8EE; }
.about-inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center;
}
.about h2 { color: var(--ice); margin-bottom: 28px; }
.about-lead { font: 300 clamp(1.3rem, 2.2vw, 1.75rem)/1.35 var(--display); color: var(--ice); max-width: 32rem; }
.about-copy > p:not(.about-lead) { color: #A9C1CE; max-width: 34rem; }
.facts { margin: 40px 0 0; border-top: 1px solid rgba(220,232,238,.18); }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid rgba(220,232,238,.18); }
.facts dt { font: 400 1rem/1.35 var(--display); color: var(--ice); }
.facts dd { margin: 0; color: #A9C1CE; }
@media (max-width: 900px) { .about-inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; } }

.frost {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius-m);
  aspect-ratio: 3 / 4; max-height: 78vh; width: 100%;
  box-shadow: 0 0 0 1px rgba(220,232,238,.2), 0 40px 80px -30px rgba(0,0,0,.6);
  touch-action: pan-y; cursor: crosshair;
}
.frost img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frost-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.frost-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  background: rgba(14,42,59,.78); color: var(--ice); font-size: .92rem;
  pointer-events: none; transition: opacity .5s;
}
.frost-hint.is-hidden { opacity: 0; }
@media (max-width: 480px) { .frost-hint { white-space: normal; text-align: center; width: calc(100% - 32px); } }

/* ---------- CLIENTS ---------- */
.clients {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.client {
  display: grid; place-items: center; min-height: 140px; padding: 24px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.client img { max-height: 64px; max-width: 80%; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.client:hover img { filter: none; opacity: 1; }
.client.is-empty { color: rgba(84,107,123,.55); font-size: .9rem; text-align: center; }

/* ---------- STEPS ---------- */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
}
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 22px; }
.steps li::before {
  content: counter(step);
  display: block; font: 300 3.2rem/1 var(--display); color: var(--melt); margin-bottom: 26px;
}
.steps h3 { margin-bottom: 12px; }
.steps p { color: var(--steel); margin: 0; font-size: 1rem; }
.steps a { color: var(--ink); font-weight: 500; white-space: nowrap; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- WHO ---------- */
.who { margin: 0; border-top: 1px solid var(--line); }
.who > div {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 48px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.who dt { font: 300 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--display); }
.who dd { margin: 0; color: var(--steel); align-self: center; max-width: 38rem; }
@media (max-width: 700px) { .who > div { grid-template-columns: 1fr; } }

/* ---------- ORDER ---------- */
.order {
  max-width: var(--max); margin: 0 auto clamp(48px, 7vw, 96px);
  width: calc(100% - 2 * var(--gutter));
  padding: clamp(28px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px;
  background: var(--ice);
  border-radius: var(--radius-m);
}
.order-copy h2 { margin-bottom: 24px; }
.order-copy p { color: var(--steel); max-width: 30rem; }
.order-contacts { margin-top: 36px; font-style: normal; display: flex; flex-direction: column; gap: 6px; font-size: 1.1rem; }
.order-contacts a:first-child { font: 300 clamp(1.3rem, 2.6vw, 2rem)/1.3 var(--display); text-decoration: none; white-space: nowrap; }
.order-contacts a[href^="https://wa.me"] { color: var(--wa); font-weight: 600; }
.order-contacts span { color: var(--steel); }
@media (max-width: 860px) { .order { grid-template-columns: 1fr; gap: 40px; } }

.form { display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 500; font-size: .95rem; }
.opt { font-weight: 400; color: var(--steel); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--frost);
  transition: border-color .2s, background-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--deep); background: var(--ice); box-shadow: 0 0 0 3px rgba(47,111,143,.18); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field textarea { resize: vertical; min-height: 72px; }
.form-sum { margin: 0; color: var(--steel); font-variant-numeric: tabular-nums; }
.form-sum b { color: var(--ink); }
.form-consent { margin: 0; font-size: .88rem; color: var(--steel); }
.form-consent a { color: var(--ink); }
.form-error { color: #B3261E; margin: 0; font-size: .95rem; }
.form-error a { color: inherit; font-weight: 600; }
.form-done { padding: 32px 0; }
.form-done h3 { font-size: 1.6rem; font-weight: 300; margin-bottom: 12px; }
.form-done p { color: var(--steel); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FOOTER ---------- */
.site-footer {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px;
  padding: 48px var(--gutter) 96px; color: var(--steel); font-size: .97rem;
  border-top: 1px solid var(--line);
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 22rem; }
.footer-nav, .footer-contacts { display: flex; flex-direction: column; gap: 8px; font-style: normal; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-contacts a:first-child { color: var(--ink); font-weight: 600; }
.footer-legal {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem;
}
/* контакты — сразу под описанием, разделы и услуги — справа на всю высоту */
.site-footer { grid-template-areas: "brand nav services" "contacts nav services" "legal legal legal"; grid-template-rows: auto 1fr auto; }
.footer-brand { grid-area: brand; }
.footer-contacts { grid-area: contacts; align-self: start; }
.footer-nav { grid-area: nav; }
.footer-services { grid-area: services; align-self: start; }
.footer-legal { grid-area: legal; }
@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-template-areas: "brand brand" "contacts contacts" "nav services" "legal legal"; }
}
@media (max-width: 420px) {
  .site-footer { grid-template-columns: 1fr; grid-template-areas: "brand" "contacts" "nav" "services" "legal"; }
}

/* ---------- CHAT BOT ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-size: 1rem; }
.chat-toggle {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--ice); font: 500 .98rem var(--text);
  box-shadow: 0 12px 30px -10px rgba(14,42,59,.55);
}
.chat-toggle svg { width: 22px; height: 22px; }
.chat-toggle:hover { background: var(--deep); }
.chat.is-open .chat-toggle { display: none; }
.chat-panel {
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100svh - 32px));
  display: flex; flex-direction: column;
  background: var(--ice); border-radius: var(--radius-m);
  box-shadow: 0 30px 70px -20px rgba(14,42,59,.45), 0 0 0 1px var(--line);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 16px; background: var(--ink); color: var(--ice);
}
.chat-head img { height: 34px; width: auto; }
.chat-head div { display: flex; flex-direction: column; margin-right: auto; }
.chat-head strong { font: 400 1rem var(--display); }
.chat-head span { font-size: .85rem; color: #A9C1CE; }
.chat-close {
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--ice); font-size: 1.6rem; line-height: 1;
}
.chat-close:hover { background: rgba(255,255,255,.1); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--frost); }
.msg { margin: 0; padding: 10px 14px; border-radius: 16px; max-width: 85%; line-height: 1.4; font-size: .97rem; white-space: pre-line; }
.msg-bot { background: var(--ice); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.msg-me { background: var(--deep); color: var(--ice); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.is-typing { color: var(--steel); }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; background: var(--frost); }
.chat-quick:not(:empty) { padding-bottom: 14px; }
.chat-quick button, .chat-wa {
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--deep); background: var(--ice); color: var(--deep);
  font: 500 .93rem var(--text); text-decoration: none; display: inline-flex; align-items: center;
}
.chat-quick button:hover { background: var(--deep); color: var(--ice); }
.chat-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--ice); }
.chat-input[hidden] { display: none; }
.chat-input input {
  flex: 1; min-width: 0; font: inherit; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--frost); color: var(--ink);
}
.chat-input input:focus { outline: none; border-color: var(--deep); }
.chat-input button {
  width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ink); color: var(--ice); display: grid; place-items: center;
}
.chat-input button svg { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-toggle span { display: none; }
  .chat-toggle { padding: 0 15px; }
}

/* ---------- INNER PAGES ---------- */
.page .site-header { position: sticky; }
.page .header-phone { margin-left: auto; }
.doc { max-width: 46rem; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.doc h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; margin-bottom: 12px; }
.doc-meta { color: var(--steel); margin-bottom: 40px; }
.doc h2 { font-size: 1.25rem; font-weight: 400; margin: 40px 0 12px; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--deep); }
.doc-back { margin-top: 48px; }
.doc-back a { color: var(--ink); }
.page .site-footer { display: block; }

.notfound {
  min-height: calc(100svh - 62px); max-width: 40rem; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 48px var(--gutter);
}
.notfound h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; margin: 8px 0 18px; }
.notfound p { color: var(--steel); max-width: 30rem; margin-bottom: 32px; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.melt-cube { width: min(260px, 70vw); height: auto; overflow: visible; }
.melt-cube .c-body { fill: rgba(255,255,255,.75); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.melt-cube .c-edge { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.melt-cube .c-glint { stroke: var(--melt); stroke-width: 3; stroke-linecap: round; }
.melt-cube .puddle { fill: rgba(127,182,207,.35); transform-origin: 120px 176px; animation: puddle 6s ease-in-out infinite alternate; }
.melt-cube .cube-melting { transform-origin: 120px 160px; animation: sag 6s ease-in-out infinite alternate; }
.melt-cube .drip { fill: var(--melt); animation: drip 2.2s ease-in infinite; }
@keyframes sag { to { transform: scale(1.06, .9); } }
@keyframes puddle { to { transform: scaleX(1.15); } }
@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(42px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .melt-cube * { animation: none !important; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font: 400 clamp(1.05rem, 1.8vw, 1.3rem)/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--steel); margin: 0 0 22px; max-width: 60rem; }
.faq details a { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- WHY ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.why h2 { margin-bottom: 36px; }
.ice-compare { margin: 0; }
.ice-compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ice-compare svg { width: 100%; max-width: 200px; height: auto; display: block; margin: 0 auto 12px; }
.ice-compare figcaption { font-size: .95rem; color: var(--steel); text-align: center; }
.ice-compare figcaption strong { display: block; font: 400 1.05rem var(--display); color: var(--ink); margin-bottom: 2px; }
.ice-compare-note { margin: 28px 0 0; color: var(--steel); max-width: 34rem; }
.why-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.why-list div { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.why-list div:nth-child(odd) { border-right: 1px solid var(--line); }
.why-list div:nth-child(even) { padding-left: 24px; padding-right: 0; }
.why-list dt { font: 400 clamp(1.15rem, 1.8vw, 1.4rem)/1.2 var(--display); margin-bottom: 10px; }
.why-list dd { margin: 0; color: var(--steel); }
@media (max-width: 960px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .why-list { grid-template-columns: 1fr; }
  .why-list div, .why-list div:nth-child(even) { padding: 22px 0; border-right: 0; }
}

/* ---------- CLIENTS MARQUEE ---------- */
.marquee {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; user-select: none; }
.marquee .clients { display: flex; width: max-content; border: 0; grid-template-columns: none; }
.marquee .client {
  flex: none; width: clamp(200px, 22vw, 260px); min-height: 150px; padding: 24px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center;
  border: 1px solid var(--line); border-right: 0; background: var(--frost);
}
.marquee .client:last-child { border-right: 1px solid var(--line); }
.client-name { font: 400 clamp(1.15rem, 1.8vw, 1.45rem)/1.15 var(--display); letter-spacing: -.01em; }
.client-type { font-size: .88rem; color: var(--steel); }

/* ---------- WHERE (map) ---------- */
.where { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; padding-top: 0; }
.where h2 { margin-bottom: 28px; }
.where address { font-style: normal; color: var(--steel); }
.where address p { margin: 0 0 12px; }
.where address a { color: var(--ink); text-decoration: none; font-weight: 500; }
.where-addr { font: 300 clamp(1.3rem, 2.2vw, 1.75rem)/1.3 var(--display); color: var(--ink); }
.where-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.where-map { min-height: 380px; border-radius: var(--radius-m); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--ice); }
.where-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } .where-map, .where-map iframe { min-height: 320px; } }

/* ---------- BACK TO TOP ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 84px; z-index: 59;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--ink); background: var(--ink); color: var(--ice);
  box-shadow: 0 12px 30px -10px rgba(14,42,59,.55);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s, background-color .2s, color .2s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: rgba(255,255,255,.95); color: var(--ink); border-color: var(--line); }
body:has(.chat.is-open) .to-top { display: none; }
@media (max-width: 560px) { .to-top { right: 12px; bottom: 76px; width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
.client-logo { max-height: 40px; max-width: 85%; width: auto; height: auto; margin-bottom: 4px; pointer-events: none; }

@media (max-width: 560px) {
  .why-list div:nth-child(odd), .why-list div:nth-child(even) { padding: 22px 0; border-right: 0; }
}

.bag-ice-piece { fill: rgba(255,255,255,.55); stroke: rgba(127,182,207,.75); stroke-width: 1; }
.bag-ice-top { fill: rgba(250,253,255,.9); stroke: rgba(127,182,207,.75); stroke-width: 1; }

/* ---------- FESTIVALS ---------- */
.fest { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-top: 0; }
.fest h2 { margin-bottom: 24px; }
.fest-lead { font-size: 1.15rem; color: var(--steel); max-width: 36rem; }
.fest-points { list-style: none; margin: 28px 0 32px; padding: 0; border-top: 1px solid var(--line); max-width: 36rem; }
.fest-points li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; }
.fest-points li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 10px; height: 10px; border-radius: 2px; background: var(--melt); transform: rotate(45deg); }
.fest-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fest-freezer { background: var(--ice); border-radius: var(--radius-m); padding: clamp(28px, 4vw, 48px); box-shadow: 0 0 0 1px var(--line); }
.fest-num { font: 300 clamp(3rem, 5.6vw, 5rem)/.95 var(--display); letter-spacing: -.03em; margin: 0; white-space: nowrap; }
.fest-num span { font-size: .35em; letter-spacing: 0; vertical-align: .9em; margin-right: .2em; color: var(--steel); }
.fest-num-label { color: var(--steel); margin: 8px 0 28px; }
.freezer { width: 100%; max-width: 380px; height: auto; display: block; }
@media (max-width: 900px) { .fest { grid-template-columns: 1fr; } }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .95rem; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.bag-ice-band { fill: rgba(214,233,241,.8); stroke: rgba(127,182,207,.75); stroke-width: 1; }
.bag-ice-dimple { fill: rgba(190,220,234,.8); }

/* Header: larger (Nov 2026) */
.site-header { padding: 14px var(--gutter); gap: 32px; }
.logo img { height: 58px; }
.nav { gap: 30px; }
.nav a { font-size: 1.06rem; }
.header-phone { font-size: 1.12rem; }
.site-header .btn-small { min-height: 48px; padding: 0 24px; font-size: 1.02rem; }
section[id] { scroll-margin-top: 92px; }
@media (max-width: 1200px) { .nav { gap: 22px; } .nav a { font-size: 1rem; } }
@media (max-width: 560px) {
  .site-header { padding: 10px var(--gutter); }
  .logo img { height: 48px; }
  .site-header .btn-small { min-height: 44px; padding: 0 20px; }
}
.nav a, .header-phone { white-space: nowrap; }
@media (max-width: 1240px) { .nav { display: none; } .header-phone { margin-left: auto; } }

/* Language switcher (Nov 2026) */
.lang { display: flex; gap: 2px; }
.lang a { padding: 6px 8px; border-radius: 8px; text-decoration: none; font-size: .9rem; font-weight: 600; letter-spacing: .02em; color: var(--steel); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); background: rgba(14, 42, 59, .08); }
@media (max-width: 560px) {
  .site-header { gap: 10px; }
  .site-header .lang { margin-left: auto; }
  .site-header .lang a { padding: 6px 6px; font-size: .82rem; }
  .site-header .btn-small { margin-left: 0; padding: 0 16px; }
}
.site-header .btn-small { white-space: nowrap; }

/* Казахская версия: в Unbounded нет ә ғ қ ң ө ұ ү һ */
html[lang="kk"] { --display: "Montserrat", "Arial Black", sans-serif; }

/* ---- страницы услуг (tools/make_landings.py) ---- */
.land-crumbs { font-size: .9rem; color: var(--steel); margin-bottom: 16px; }
.land-crumbs a { color: var(--steel); }
.land-lead { font-size: 1.15rem; line-height: 1.55; margin-bottom: 8px; }
.land-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.doc .land-cta a.btn { color: var(--ice); }
.doc .land-cta a.btn-ghost { color: var(--ink); }
.doc .land-cta a.btn-ghost:hover { color: var(--ice); }
.land-terms { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); }
.land-terms li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.land-terms span { color: var(--steel); }
.land .faq { margin-top: 8px; }
.land-links { columns: 2 14rem; }
.footer-services { display: flex; flex-direction: column; gap: 8px; }

/* ---- главная: конверсия (Nov 2026) ---- */
/* WhatsApp в первом экране виден и на телефоне (остальные ghost-кнопки там скрыты) */
.drop-actions .btn-wa { display: inline-flex; }
.drop-note { margin: 16px 0 0; font-size: .95rem; color: var(--steel); }
@media (max-width: 860px) { .drop-note { display: none; } }
@media (max-height: 520px) and (orientation: landscape) { .drop-note { display: none; } }
/* сезонный блок «Корпоратив и Новый год» */
.season { padding-bottom: 0; }
.season .section-head { margin-bottom: 28px; }
.season-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* ссылки на страницы услуг в «Для кого» */
.who dt a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.who dt a:hover { color: var(--deep); }

/* ---- внутренние страницы сайта (tools/build_pages.py): шапка с крошками и H1 ---- */
.page-head { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 150px) var(--gutter) 0; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; margin-bottom: 14px; }
.page-head .land-lead { max-width: 40rem; color: var(--steel); }
.subpage > .section:first-of-type, .subpage > .about:first-of-type { padding-top: clamp(40px, 6vw, 72px); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- мобильное меню шапки (assets/js/menu.js): на весь экран, разделы по центру ---- */
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink); flex: none; position: relative; z-index: 2; }
.menu-btn span { display: block; width: 26px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-m, .nav-social { display: none; }
html.menu-lock, html.menu-lock body { overflow: hidden; }
@media (max-width: 1020px) {
  .site-header { gap: 14px; }
  .menu-btn { display: flex; }
  /* у шапки backdrop-filter — без него fixed-меню считается от окна, а не от шапки */
  .site-header.menu-open { background: #EEF3F6; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; }
  .site-header.menu-open .nav {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    position: fixed; inset: 0; z-index: 1; margin: 0; padding: 90px var(--gutter) 40px;
    background: #EEF3F6; overflow-y: auto; animation: menu-in .22s ease-out;
  }
  .site-header.menu-open .nav a { padding: 10px 0; font: 300 clamp(1.5rem, 7vw, 2rem)/1.2 var(--display); color: var(--ink); text-decoration: none; }
  .site-header.menu-open .nav a[aria-current] { color: var(--steel); }
  .site-header.menu-open .nav-m { display: block; }
  .site-header.menu-open .nav-social { display: flex; gap: 14px; margin-top: 36px; }
  .site-header.menu-open .nav-social a { width: 52px; height: 52px; padding: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
  .site-header.menu-open .nav-social svg { width: 26px; height: 26px; }
  .site-header.menu-open .nav .nav-tel { font: 600 1.05rem/1.3 var(--body, inherit); margin-top: 14px; color: var(--steel); }
  .site-header.menu-open .header-phone, .site-header.menu-open .lang, .site-header.menu-open .btn-small { visibility: hidden; }
  .site-header.menu-open .logo { position: relative; z-index: 2; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header.menu-open .nav { animation: none; } }
@media (max-width: 400px) { .site-header .lang a { padding-inline: 6px; } .logo img { height: 34px; } }

/* ---- первый экран на низких экранах (телефон горизонтально): текст сверху, не прячется под шапку ---- */
@media (max-height: 700px) and (min-width: 561px) and (orientation: landscape) {
  .drop-stage { align-items: start; padding-top: 84px; padding-bottom: 12px; }
  .drop-copy h1 { font-size: clamp(1.5rem, 8.5vh, 3rem); margin-bottom: 10px; }
  .drop-lead { font-size: clamp(.9rem, 3vh, 1.1rem); margin-bottom: 14px; }
  .live { margin-bottom: 8px; font-size: .9rem; }
  .drop-hint { display: none; }
  .bag-wrap { align-self: center; }
}
html.menu-lock .chat { display: none; }
