/* kprint.kz — «Классика». Значения перенесены из макета «Обновление сайта» (Main.dc.html, Privacy.dc.html). */
:root {
  --blue: #004899; --blue-d: #00336d; --navy: #0b1f3a; --ink: #13213a; --muted: #3c4a63; --muted2: #5a6781;
  --orange: #f39200; --orange-h: #ffa21a; --green: #1f9d55; --green-h: #178a47;
  --bg-soft: #f2f6fc; --bg-card: #f6f8fb; --line: #e8eef5; --line2: #d5dfeb; --field: #c9d6e6;
  --peach: #ffe7c2; --sky: #dbe8f8; --kraft: #f3e3cf; --cream: #fff4e3;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-h: 'Unbounded', 'Manrope', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
h1, h2, h3 { font-family: var(--font-h); letter-spacing: -0.01em; color: var(--navy); margin: 0; }
p { margin: 0; }
button { font-family: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.sec { padding: 80px 0; }
.sec-soft { background: var(--bg-soft); }
.h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.2; }
.lead { font-size: 16px; color: var(--muted); }
.stack { display: flex; flex-direction: column; }
.g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g20 { gap: 20px; } .g22 { gap: 22px; } .g24 { gap: 24px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font-weight: 800; text-decoration: none; border-radius: 12px; font-size: 15px; height: 50px; padding: 0 20px;
  transition: background-color .15s ease, color .15s ease; white-space: nowrap; }
.btn-lg { height: 56px; padding: 0 28px; border-radius: 14px; font-size: 16px; }
.btn-o { background: var(--orange); color: var(--navy); }
.btn-o:hover { background: var(--orange-h); color: var(--navy); }
.btn-b { background: var(--blue); color: #fff; }
.btn-b:hover { background: var(--blue-d); color: #fff; }
.btn-g { background: var(--green); color: #fff; }
.btn-g:hover { background: var(--green-h); color: #fff; }
.btn-line { background: transparent; border: 2px solid var(--blue); color: var(--blue); }
.btn-line:hover { background: var(--bg-soft); }
.btn-ghost { background: #fff; border: 2px solid var(--line2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-icon { width: 46px; height: 46px; padding: 0; border-radius: 12px; }

/* Шапка */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.hdr-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo span { font-family: var(--font-h); font-weight: 700; font-size: 21px; color: var(--blue); }
.nav { display: flex; gap: 28px; align-items: center; font-weight: 700; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.hdr-tools { display: flex; align-items: center; gap: 10px; }
.hdr-phone { font-weight: 800; font-size: 15px; color: var(--ink); text-decoration: none; margin-right: 6px; white-space: nowrap; }
.hdr-cart { position: relative; }
.hdr-cart .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--orange); color: var(--navy); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.burger { display: none; border: 1px solid var(--line2); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.mnav { border-top: 1px solid var(--line); background: #fff; }
.mnav .wrap { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; font-weight: 700; font-size: 17px; }
.mnav a { padding: 14px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid #eef2f7; }
.mnav a.phone { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; color: var(--blue); font-weight: 800; border-bottom: 0; }
.mnav a.phone small { font-size: 12px; font-weight: 600; color: var(--muted); }
.mnav .btn { margin-top: 6px; height: 52px; border-bottom: 0; color: var(--navy); }

/* Первый экран */
.hero { background: var(--bg-soft); padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.1; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .sub { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; font-weight: 700; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-badge { position: absolute; bottom: 7%; left: -2%; transform: rotate(-4deg); background: #fff; color: var(--blue); font-weight: 800;
  font-size: 15px; padding: 10px 16px; border-radius: 14px; box-shadow: 0 10px 24px rgba(11,31,58,.16); }

/* Каталог */
.cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dl { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; color: var(--ink);
  font-weight: 700; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 800; }
.chips-kit .chip { height: 46px; padding: 0 20px; border: 2px solid #f0d3a6; color: var(--navy); font-size: 15px; }
.chips-kit .chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--bg-card);
  text-decoration: none; color: var(--ink); transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: 0 14px 34px rgba(0,72,153,.14); transform: translateY(-3px); color: var(--ink); }
.cimg { height: 170px; display: flex; align-items: center; justify-content: center; }
.cimg img { max-height: 150px; width: auto; object-fit: contain; }
.bg-peach { background: var(--peach); } .bg-sky { background: var(--sky); } .bg-kraft { background: var(--kraft); }
.cbody { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.cbody h3 { font-size: 17px; color: var(--blue); line-height: 1.3; }
.cbody span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.cbody .price { font-weight: 800; color: var(--navy); font-size: 15px; margin-top: 2px; }
.badge { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: var(--navy); color: #fff; z-index: 1; }
.ws { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; border-radius: 20px; padding: 24px; background: var(--navy);
  color: #fff; text-decoration: none; min-height: 250px; }
.ws:hover { color: #fff; }
.ws strong { font-family: var(--font-h); font-size: 19px; line-height: 1.3; }
.ws .t { font-size: 14px; line-height: 1.55; color: #c8d4e4; }
.ws .btn { align-self: flex-start; height: 44px; padding: 0 16px; border-radius: 10px; font-size: 14px; }

/* Комплекты */
.kits { padding: 16px 0 80px; }
.box { background: var(--cream); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.box .h2 { font-size: clamp(22px, 2.8vw, 34px); }
.kitcard { background: #fff; border-radius: 20px; padding: 26px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.kitcard ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; flex: 1 1 520px; }
.kitcard li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.dot { flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; background: var(--orange); display: flex; align-items: center; justify-content: center; }
.kitcard .btn { height: 52px; padding: 0 24px; }

/* С логотипом */
.logo-sec { background: var(--blue); color: #fff; }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: start; }
.logo-sec .split { align-items: center; }
.logo-sec h2 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; }
.logo-sec p { font-size: 17px; line-height: 1.6; color: #d9e6f5; }
.logo-sec .note { font-size: 15px; font-weight: 700; color: #d9e6f5; }
.logo-art { background: #fff; border-radius: 28px; padding: 24px; display: flex; align-items: center; justify-content: center; }
.logo-art svg { width: 100%; max-width: 420px; height: auto; }

/* О компании */
.about .text p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.about .text p + p { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.fact { background: var(--bg-soft); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.fact b { font-family: var(--font-h); font-size: 26px; color: var(--blue); }
.fact span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* FAQ */
.faq .wrap { max-width: 880px; }
.qa { background: #fff; border-radius: 16px; overflow: hidden; }
.qa summary { list-style: none; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px; font-size: 17px; font-weight: 800; color: var(--navy); cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .sign { flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px; background: #eef3fa; color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.qa summary .sign::before { content: '+'; }
.qa[open] summary .sign::before { content: '\2212'; }
.qa .a { padding: 0 22px 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.qa .a p + p { margin-top: 8px; }

/* Заявка */
.order h2 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n { flex-shrink: 0; width: 36px; height: 36px; border-radius: 999px; background: var(--orange); color: var(--navy); font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
.steps .t { font-size: 16px; line-height: 1.5; color: var(--muted); padding-top: 6px; }
.steps strong { color: var(--ink); }
.formcard { background: #fff; border: 1px solid #dce5f0; border-radius: 24px; padding: 30px; box-shadow: 0 16px 40px rgba(0,72,153,.08); min-height: 320px; }
.formcard .b24-loading { display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 15px; }
.formcard .fallback { display: flex; flex-direction: column; gap: 14px; }
.formcard .fallback h3 { font-size: 22px; }
/* Выбор: форма или WhatsApp */
.choice { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 18px; background: #e8eef6; }
.seg button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 12px; border: 0; border-radius: 13px;
  background: transparent; color: var(--navy); font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; text-align: center; }
.seg button[aria-selected="true"] { background: #fff; box-shadow: 0 4px 14px rgba(0,72,153,.12); font-weight: 800; }
.seg button[data-choice-tab="wa"][aria-selected="true"] { background: #25d366; color: #fff; }
.seg button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wa-card { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.wa-card h3 { font-size: 22px; }
.wa-card .lead { font-size: 15px; }
.wa-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.wa-card textarea { width: 100%; min-height: 150px; resize: vertical; padding: 12px 14px; border: 1px solid #c9d6e6; border-radius: 12px;
  font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); background: #fff; }
.wa-card textarea:focus { outline: 2px solid #25d366; border-color: #25d366; }
.wa-card .btn { align-self: flex-start; }

/* Телефоны: общий и по направлениям */
.phones { display: flex; flex-direction: column; gap: 10px; }
.phones .ph { display: grid; grid-template-columns: minmax(0, 220px) 32px; align-items: center; gap: 10px; }
.phones .ph > a:first-child { display: flex; flex-direction: column; gap: 1px; text-decoration: none; }
.phones small { font-size: 12px; font-weight: 600; color: var(--muted); }
.phones b { font-size: 17px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.phones .wa-mini { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: #25d366; display: flex; align-items: center; justify-content: center; }
.phones.dark small { color: #9fb0c8; }
.phones.dark b { color: #fff; }

/* Карта */
.map-sec { padding: 0 0 80px; }
.map { border-radius: 28px; overflow: hidden; display: flex; flex-wrap: wrap; background: var(--bg-soft); }
.mapinfo { flex: 1 1 340px; min-width: 0; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.mapinfo h2 { font-size: clamp(22px, 2.6vw, 30px); }
.mapbox { flex: 1.4 1 420px; min-width: 0; min-height: 360px; position: relative; background: #eef0ea; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.routes { position: relative; align-self: flex-start; }
.routes summary { list-style: none; height: 52px; cursor: pointer; }
.routes summary::-webkit-details-marker { display: none; }
.routes[open] { align-self: stretch; }
.routes[open] summary { display: inline-flex; }
.routes ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.routes li[hidden] { display: none; }
.routes li a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.routes li a:hover, .routes li a:focus-visible { border-color: var(--blue); color: var(--blue); }

/* Подвал */
.foot { background: var(--navy); color: #c8d4e4; padding: 48px 0 40px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.foot .brand { font-family: var(--font-h); font-weight: 700; font-size: 20px; color: #fff; }
.foot .t { font-size: 14px; line-height: 1.6; }
.foot nav, .foot .col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot strong { color: #fff; font-size: 15px; }
.foot a { color: #c8d4e4; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .tel { color: #fff; font-weight: 800; font-size: 18px; }
.soc { display: flex; gap: 8px; }
.soc a { width: 44px; height: 44px; border-radius: 12px; background: #16304f; display: flex; align-items: center; justify-content: center; }
.soc a:hover { background: #23466f; }
.foot-bottom { border-top: 1px solid #23395c; padding-top: 20px; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13px; color: #9fb0c8; }
.foot-bottom .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-bottom a, .linkbtn { color: #c8d4e4; text-decoration: underline; }
.linkbtn { padding: 0; border: 0; background: transparent; font-size: 13px; cursor: pointer; }

/* Cookie */
.cookie { position: fixed; bottom: 24px; left: 24px; max-width: 460px; z-index: 50; background: #fff; border-radius: 18px; padding: 18px;
  box-shadow: 0 14px 40px rgba(11,31,58,.2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.cookie .t { font-size: 14px; line-height: 1.5; color: var(--muted); }
.cookie .opts { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg-soft); }
.cookie label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.cookie label small { color: var(--muted2); font-size: 12px; }
.cookie input { width: 20px; height: 20px; accent-color: var(--blue); flex-shrink: 0; }
.cookie .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cookie .btn { height: 44px; padding: 0 18px; border-radius: 10px; font-size: 14px; }
.cookie .btn-ghost { border-width: 1px; border-color: var(--field); font-weight: 700; }
.cookie .linkbtn { color: var(--blue); font-size: 14px; font-weight: 700; padding: 0 8px; height: 44px; }

/* Кнопка чата и нижняя панель */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 55; width: 60px; height: 60px; border: 0; border-radius: 999px; background: var(--orange);
  cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(243,146,0,.4); }
.fab:hover { background: var(--orange-h); }
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,31,58,.08); }
.mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; border-radius: 12px; font-weight: 800; font-size: 13px; text-decoration: none; }
.mbar .call { background: #eef3fa; color: var(--blue); }
.mbar .wa { background: var(--green); color: #fff; }
.mbar .calc { background: var(--orange); color: var(--navy); }

/* Внутренние страницы: категория, товар, корзина */
.page-head { background: var(--bg-soft); padding: 32px 0 36px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; color: var(--muted2); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #9fb0c8; }
.crumbs a { color: var(--muted2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.page-head h1 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.15; }
.page-head .lead { margin-top: 12px; max-width: 760px; line-height: 1.6; }
.mgr { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--bg-soft); border-radius: 20px; padding: 22px 24px; }
.mgr .who { display: flex; align-items: center; gap: 14px; flex: 1 1 260px; }
.mgr img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; background: #fff; }
.mgr .name { font-weight: 800; }
.mgr .role { font-size: 14px; color: var(--muted); }
.mgr .acts { display: flex; flex-wrap: wrap; gap: 10px; }

.pgrid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: start; }
.gallery .main { aspect-ratio: 1 / 1; border-radius: 24px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs button { width: 72px; height: 72px; border-radius: 14px; border: 2px solid transparent; background: var(--bg-soft); padding: 4px; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pinfo { display: flex; flex-direction: column; gap: 20px; }
.pinfo h1 { font-size: clamp(24px, 3vw, 36px); line-height: 1.2; }
.pinfo .desc { color: var(--muted); line-height: 1.6; }
.opt-title { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.opts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.opt-img { width: 64px; height: 64px; padding: 4px; }
.opt-img img { width: 100%; height: 100%; object-fit: contain; }
.note-sm { font-size: 14px; line-height: 1.55; color: var(--muted); white-space: pre-line; }
.buy { border: 1px solid #dce5f0; border-radius: 22px; padding: 22px; box-shadow: 0 16px 40px rgba(0,72,153,.08); display: flex; flex-direction: column; gap: 14px; }
.buy .big { font-family: var(--font-h); font-size: 26px; color: var(--navy); }
.buy .small { font-size: 14px; color: var(--muted); }
.qty { display: flex; align-items: center; justify-content: space-between; background: var(--bg-soft); border-radius: 999px; padding: 4px; }
.qty button { width: 46px; height: 46px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-size: 22px; font-weight: 800; color: var(--navy); }
.qty button:hover { background: #fff; }
.qty .v { text-align: center; font-weight: 800; }
.qty .v small { display: block; font-weight: 600; font-size: 12px; color: var(--muted2); }
.total { font-weight: 800; font-size: 18px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable caption { text-align: left; font-weight: 800; padding-bottom: 8px; }
.ptable th, .ptable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ptable th { font-size: 13px; color: var(--muted2); font-weight: 700; }
.ptable td.num { white-space: nowrap; }
.specs { display: flex; flex-direction: column; gap: 22px; }

.cart-list { display: flex; flex-direction: column; gap: 12px; }
.citem { display: grid; grid-template-columns: 84px minmax(0,1fr) auto; gap: 16px; align-items: center; background: var(--bg-card); border-radius: 18px; padding: 14px; }
.citem img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 12px; }
.citem .nm { font-weight: 800; color: var(--navy); text-decoration: none; }
.citem .meta { font-size: 14px; color: var(--muted); }
.citem .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.citem .qty { min-width: 150px; }
.citem .qty button { width: 38px; height: 38px; font-size: 18px; }
.citem .rm { border: 0; background: transparent; color: var(--muted2); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px; }
.summary { background: var(--bg-soft); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .sum { font-family: var(--font-h); font-size: 22px; color: var(--navy); }
.empty { text-align: center; padding: 40px 16px; background: var(--bg-soft); border-radius: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 70; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; box-shadow: 0 10px 24px rgba(11,31,58,.3); }

/* Правовая страница */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 48px; align-items: start; padding-top: 40px; padding-bottom: 80px; }
.legal-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: var(--bg-soft); }
.legal-side a { padding: 12px 14px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); }
.legal-side a:hover { background: #fff; color: var(--blue); }
.legal article { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal h2 { font-size: 26px; color: var(--blue); }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal strong { color: var(--ink); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ck-grid div { padding: 18px; border-radius: 16px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 6px; }
.ck-grid strong { color: var(--navy); }
.ck-grid span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.req { border: 1px solid #dce5f0; border-radius: 18px; overflow: hidden; }
.req div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 18px; border-bottom: 1px solid #eef2f7; }
.req div:last-child { border-bottom: 0; }
.req span:first-child { flex: 0 0 200px; font-weight: 700; color: var(--muted2); }
.req span:last-child { flex: 1 1 240px; font-weight: 700; }

.err { text-align: center; padding: 80px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.err .code { font-family: var(--font-h); font-size: 88px; color: var(--blue); line-height: 1; }

/* Телефон и планшет — точка перелома из макета (960px) */
@media (max-width: 960px) {
  html { scroll-padding-top: 72px; }
  .nav, .hide-sm { display: none !important; }
  .burger { display: inline-flex; }
  .hdr-row { height: 64px; }
  .hero-grid, .split, .pgrid, .legal-layout { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .sec { padding-top: 48px; padding-bottom: 48px; }
  .hero { padding-top: 28px; padding-bottom: 36px; }
  .hero-art { width: 100%; max-width: 340px; margin: 0 auto; }
  .btns > a { flex: 1 1 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .cimg { height: 118px; }
  .cimg svg { height: 84px; width: auto; }
  .cimg img { max-height: 100px; }
  .cbody { padding: 12px 14px 14px; }
  .cbody h3 { font-size: 15px; }
  .cbody span { font-size: 13px; }
  .ws { grid-column: 1 / -1; min-height: 0; padding: 20px; }
  .kits { padding-bottom: 48px; }
  .box { padding: 24px 16px; border-radius: 22px; }
  .kitcard { padding: 18px; }
  .kitcard ul { flex-basis: 100%; }
  .kitcard .btn { width: 100%; }
  .logo-art { padding: 12px; }
  .formcard { padding: 20px; border-radius: 20px; }
  .mapinfo { padding: 24px 18px; }
  .mapbox { flex-basis: 100%; min-height: 300px; }
  .seg button { font-size: 14px; }
  .map-sec { padding-bottom: 48px; }
  .foot { padding-bottom: 110px; }
  .mbar { display: grid; }
  .fab { right: 16px; bottom: 88px; width: 54px; height: 54px; }
  body.cookie-open .fab { display: none; }
  .cookie { left: 12px; right: 12px; max-width: none; bottom: 84px; }
  .legal-side { position: static; }
  .citem { grid-template-columns: 64px minmax(0,1fr); }
  .citem img { width: 64px; height: 64px; }
  .citem .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .facts { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .toast { bottom: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}

/* Форма CRM Битрикс24 в цветах сайта (в самой CRM у формы тёмная тема — здесь перекрываем её переменные) */
.formcard .b24-form [id^="b24-"] {
  --b24-primary-color: #f39200 !important; --b24-primary-hover-color: #ffa21a !important; --b24-primary-text-color: #0b1f3a !important;
  --b24-text-color: #13213a !important; --b24-background-color: #ffffff !important; --b24-popup-background-color: #ffffff !important;
  --b24-field-border-color: #c9d6e6 !important; --b24-field-background-color: #ffffff !important; --b24-field-focus-background-color: #ffffff !important;
  font-family: var(--font) !important;
}
.formcard .b24-form .b24-form-wrapper { max-width: none !important; margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.formcard .b24-form .b24-form-content { padding: 0 !important; }
.formcard .b24-form .b24-form-btn { border-radius: 14px !important; font-weight: 800 !important; font-size: 17px !important; font-family: var(--font) !important; }
.formcard .b24-form .b24-form-control { border-radius: 12px !important; font-family: var(--font) !important; }

/* Шапка на узких телефонах: логотип + корзина + WhatsApp + меню помещаются от 320px */
@media (max-width: 960px) {
  .hdr-row { gap: 10px; }
  .hdr-tools { gap: 8px; }
  .logo { min-width: 0; flex-shrink: 1; }
  .logo span { font-size: 19px; }
}
@media (max-width: 380px) {
  .logo svg { width: 34px; height: 34px; }
  .logo span { font-size: 17px; }
  .hdr-tools .btn-icon, .burger { width: 42px; height: 42px; }
}
.summary .sum { white-space: nowrap; } .summary .row { align-items: baseline; }
.opt-img[aria-pressed="true"] { background: #fff; border: 2px solid var(--blue); box-shadow: 0 0 0 2px rgba(0,72,153,.15); }
