/* MOSALITH — стили сайта.
   Идея: «известняк, базальт, смальта». Светлый каменный фон, базальтовый текст,
   кобальтовая смальта — только на действиях и ценах. Тессера (маленький синий квадрат) —
   фирменный знак меток разделов. Заголовки Forum (римская капитель), текст Manrope,
   цифры спецификаций — IBM Plex Mono. */
:root {
  --bg: #eceeeb;          /* известняк — фон страницы */
  --paper: #f7f8f6;       /* светлые секции, карточки */
  --white: #ffffff;
  --ink: #141718;         /* базальт — текст */
  --ink-2: #4f575a;       /* вторичный текст */
  --ink-3: #5f676a;       /* подписи (контраст ≥ 4,5:1 на фоне) */
  --line: #d5d9d5;
  --line-strong: #8a918f; /* рамки полей и кнопок (≥ 3:1) */
  --smalt: #2443c4;       /* смальта — кнопки, цены, тессера */
  --smalt-deep: #1a3191;  /* наведение, ссылки в тексте */
  --on-smalt: #ffffff;
  --dark: #121516;        /* тёмные секции */
  --on-dark: #e8ebe9;
  --on-dark-2: #9aa3a3;
  --line-dark: #2a3133;
  --ok: #1f7a4d;
  --err: #b3261e;
  --display: "Forum", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 136px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--smalt); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; z-index: 200; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }
.sec--paper { background: var(--paper); }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec--tight { padding-block: clamp(48px, 6vw, 88px); }

/* типографика */
h1, h2, .h1, .h2, .display { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1, .h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 1.02; }
h2, .h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; }
h3 { font-family: var(--text); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 0; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.sec--dark .lead { color: var(--on-dark-2); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 20px; }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--smalt); transform: rotate(14deg); border-radius: 1.5px; flex: none; }
.sec--dark .kicker { color: var(--on-dark-2); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
.head > div { max-width: 760px; }
.head .lead { margin: 18px 0 0; }

/* кнопки и ссылки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px;
  border: 0; font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--smalt { background: var(--smalt); color: var(--on-smalt); box-shadow: 0 12px 30px rgba(36, 67, 196, .28); }
.btn--smalt:hover { background: var(--smalt-deep); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); backdrop-filter: blur(4px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link { color: var(--smalt-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.link:hover { color: var(--smalt); }
.arrow::after { content: " →"; }

/* шапка */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 44px; height: auto; }
.logo b { font-family: var(--display); font-weight: 400; font-size: 23px; letter-spacing: .16em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav .nav-sub > a { padding: 10px 12px; border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav > a:hover, .nav .nav-sub > a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(20,23,24,.05); }
.nav-sub { position: relative; }
.nav-sub > div { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 8px; box-shadow: 0 20px 48px rgba(20,23,24,.12); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s; }
.nav-sub:hover > div, .nav-sub:focus-within > div { opacity: 1; visibility: visible; transform: none; }
.nav-sub > div a { display: block; padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; font-size: 14.5px; }
.nav-sub > div a:hover { background: var(--bg); }
.cartbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 18px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14px; cursor: pointer; flex: none; }
.cartbtn i { font-style: normal; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--smalt); color: #fff;
  display: inline-grid; place-items: center; font-size: 12.5px; font-family: var(--mono); }
.cartbtn.is-pulse i { animation: pulse .45s ease; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.burger { display: none; width: 44px; height: 44px; min-width: 44px; flex: none; border: 0; border-radius: 999px; background: transparent; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px auto; }
.mnav { position: fixed; inset: 0; z-index: 90; background: var(--paper); padding: calc(20px + env(safe-area-inset-top, 0px)) var(--gut) 32px;
  overflow: auto; display: grid; align-content: start; gap: 4px; }
.mnav a { text-decoration: none; font-family: var(--display); font-size: 34px; line-height: 1.25; padding: 4px 0; }
.mnav a.sub { font-family: var(--text); font-size: 17px; color: var(--ink-2); padding-left: 16px; }
.mnav .close { justify-self: end; }

/* первый экран */
.hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(600px, 88vh, 940px); display: grid; align-items: end; }
.hero > picture, .hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,12,13,.18) 0%, rgba(10,12,13,0) 30%, rgba(10,12,13,.70) 100%),
              linear-gradient(90deg, rgba(10,12,13,.45) 0%, rgba(10,12,13,0) 62%); }
.hero .wrap { width: 100%; padding-block: clamp(56px, 8vw, 104px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero .kicker { color: rgba(255,255,255,.85); }
.hero h1 { max-width: 900px; }
.hero .lead { color: rgba(255,255,255,.88); margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-card { background: rgba(247,248,246,.94); color: var(--ink); border-radius: var(--r-l); padding: 22px 24px; min-width: 260px; display: grid; gap: 4px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25); }
.hero-card small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.hero-card b { font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1.05; color: var(--smalt); }
.hero-card span { font-size: 14px; color: var(--ink-2); }
.viz { position: absolute; right: var(--gut); top: 18px; font-size: 11.5px; letter-spacing: .08em; color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* страница-рубрика (шапка внутренних страниц) */
.phero { position: relative; isolation: isolate; color: #fff; min-height: clamp(440px, 64vh, 680px); display: grid; align-items: end; }
.phero > picture, .phero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,13,.30), rgba(10,12,13,.80)); }
.phero .wrap { width: 100%; padding-block: clamp(48px, 7vw, 88px); }
.phero .kicker { color: rgba(255,255,255,.85); }
.phero .lead { color: rgba(255,255,255,.9); margin-top: 18px; }
.plain-head { padding-block: clamp(48px, 7vw, 96px) clamp(24px, 3vw, 40px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); margin: 0 0 22px; padding: 0; list-style: none; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.phero .crumbs, .phero .crumbs a { color: rgba(255,255,255,.75); }

/* факты */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.fact { padding: 26px 24px 26px 0; display: grid; gap: 6px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; }
.fact span { font-size: 14px; color: var(--ink-2); }

/* раскладки */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.frame { border-radius: var(--r-l); overflow: hidden; background: var(--line); }
.frame > picture { width: 100%; height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-1 { aspect-ratio: 1 / 1; } .ratio-43 { aspect-ratio: 4 / 3; } .ratio-169 { aspect-ratio: 16 / 9; } .ratio-34 { aspect-ratio: 3 / 4; }
.list-lines { display: grid; border-top: 1px solid var(--line); margin-top: 32px; }
.list-lines > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-lines b { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding-top: 4px; font-weight: 600; }

/* группы размеров */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.group { background: var(--paper); border-radius: var(--r-l); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; }
.group .frame { border-radius: 0; aspect-ratio: 4 / 3; }
.group .frame img { transition: transform .6s; }
.group:hover .frame img { transform: scale(1.04); }
.group-body { padding: 24px 24px 26px; display: grid; gap: 8px; align-content: start; }
.group-name { font-family: var(--display); font-size: 30px; letter-spacing: .1em; line-height: 1.1; }
.group-range { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.group p { margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; }
.group-foot { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { font-family: var(--mono); font-weight: 500; color: var(--smalt); white-space: nowrap; }
.group-foot .price { font-size: 17px; }
.group-foot span:not(.price) { font-size: 13px; color: var(--ink-3); font-family: var(--mono); }

/* каталог */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.card { display: grid; gap: 14px; text-decoration: none; color: inherit; }
.card .frame { aspect-ratio: 4 / 3; border-radius: var(--r-m); }
.card .frame img { transition: transform .5s; }
.card:hover .frame img { transform: scale(1.04); }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 27px; letter-spacing: 0; }
.card .price { font-size: 15px; }
.card small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* сферы */
.spheres { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 22vw, 330px); gap: 16px; }
.sphere { position: relative; border-radius: var(--r-l); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; display: grid; align-items: end; }
.sphere picture, .sphere img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.sphere::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,13,.05) 20%, rgba(10,12,13,.82)); }
.sphere:hover img { transform: scale(1.04); }
.sphere div { padding: 22px 24px; }
.sphere b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; }
.sphere span { font-size: 14px; opacity: .9; }
.sphere.s1 { grid-column: span 4; grid-row: span 2; } .sphere.s2 { grid-column: span 2; } .sphere.s3 { grid-column: span 2; }
.sphere.s4 { grid-column: span 2; } .sphere.s5 { grid-column: span 2; } .sphere.s6 { grid-column: span 2; }

/* процесс */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; gap: 12px; align-content: start; }
.steps .frame { aspect-ratio: 4 / 3; border-radius: var(--r-m); }
.steps b { font-size: 17px; }
.steps b::before { content: counter(st, decimal-leading-zero) "  "; font-family: var(--mono); color: var(--smalt); font-weight: 500; }
.steps p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* тёмный чертёж и таблица */
.spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.draw { border: 1px solid var(--line-dark); border-radius: var(--r-l); padding: clamp(16px, 3vw, 32px); }
.draw svg { width: 100%; height: auto; }
.draw .b { fill: rgba(36, 67, 196, .12); stroke: var(--on-dark); stroke-width: 2; }
.draw .d { stroke: var(--on-dark-2); stroke-width: 1.2; fill: none; }
.draw .a { stroke: var(--line-dark); stroke-width: 1; stroke-dasharray: 4 6; fill: none; }
.draw text { fill: var(--on-dark); font-family: var(--mono); font-size: 15px; }
.draw text.s { fill: var(--on-dark-2); font-size: 11px; letter-spacing: .14em; font-family: var(--text); font-weight: 600; }
.sec--paper .draw, .draw--light { border-color: var(--line); }
.draw--light .b { stroke: var(--ink); } .draw--light .d { stroke: var(--ink-2); } .draw--light .a { stroke: var(--line); }
.draw--light text { fill: var(--ink); } .draw--light text.s { fill: var(--ink-2); }
.tbl-wrap { overflow-x: auto; position: relative; }
.tbl { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-family: var(--text); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-3);
  padding: 0 14px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr.grp td { padding-top: 22px; border-bottom: 0; font-family: var(--text); font-size: 12px; letter-spacing: .16em; font-weight: 600; color: var(--smalt); }
.sec--dark .tbl th { color: var(--on-dark-2); border-color: var(--line-dark); }
.sec--dark .tbl td { border-color: var(--line-dark); }
.sec--dark .tbl tr.grp td { color: #8ea2ff; }
.files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.note { font-size: 13.5px; color: var(--ink-3); margin-top: 18px; max-width: 620px; }
.sec--dark .note { color: var(--on-dark-2); }

/* товар */
.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery .frame.main { aspect-ratio: 4 / 3; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-m); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--line); }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { position: sticky; top: 92px; display: grid; gap: 18px; }
#sizes { scroll-margin-top: 110px; }
.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; }
.offer { font-size: 13px; color: var(--ink-3); margin: 0; }
.buy h1 { font-size: clamp(40px, 4.6vw, 64px); }
.badge { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.size { position: relative; display: grid; gap: 2px; padding: 10px 6px; min-height: 66px; border-radius: var(--r-s); border: 1.5px solid var(--line-strong); background: var(--paper);
  cursor: pointer; text-align: center; transition: border-color .15s, background .15s, transform .15s; }
.size:hover { transform: translateY(-2px); border-color: var(--ink-2); }
.size b { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.size span { font-size: 12px; color: var(--ink-2); font-family: var(--mono); }
.size[aria-pressed="true"] { border-color: var(--smalt); background: #e8ecfb; }
.size em { position: absolute; top: -9px; right: -5px; font-style: normal; font-size: 10px; font-weight: 700; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 2px 6px; }
.dims { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); min-height: 22px; }
.sum { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.sum b { font-family: var(--mono); font-weight: 500; font-size: 26px; }
.added { background: #e8ecfb; border-radius: var(--r-m); padding: 16px 18px; display: grid; gap: 12px; }
.added p { margin: 0; }
.added div { display: flex; flex-wrap: wrap; gap: 8px; }
.facts-mini { display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 16px; }
.facts-mini div { display: flex; gap: 10px; }
.facts-mini div::before { content: ""; width: 7px; height: 7px; margin-top: 9px; background: var(--smalt); transform: rotate(14deg); flex: none; border-radius: 1px; }

/* статьи и страницы */
.prose { max-width: 760px; font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 1.6em 0 .6em; }
.prose h3 { font-size: 21px; margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--smalt); }
.prose a { color: var(--smalt-deep); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose figure { margin: 2em 0; }
.prose figure .frame { aspect-ratio: auto; }
.prose figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--smalt); color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-3); margin-top: 18px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside-card { background: var(--paper); border-radius: var(--r-l); padding: 24px; display: grid; gap: 12px; }
.aside-card h3 { font-family: var(--display); font-weight: 400; font-size: 28px; }

/* карточки статей */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.post { display: grid; gap: 14px; text-decoration: none; color: inherit; align-content: start; }
.post .frame { aspect-ratio: 16 / 10; border-radius: var(--r-m); }
.post .frame img { transition: transform .5s; }
.post:hover .frame img { transform: scale(1.04); }
.post h3 { font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.15; }
.post p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* работы мастерской */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work { margin: 0; display: grid; gap: 10px; }
.work .frame { aspect-ratio: 4 / 3; border-radius: var(--r-m); }
.work figcaption { font-size: 14px; color: var(--ink-2); }

/* полоса архитекторам */
.band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.band ul { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 12px; }
.band li { display: flex; gap: 12px; }
.band li::before { content: ""; width: 8px; height: 8px; margin-top: 10px; background: #8ea2ff; transform: rotate(14deg); flex: none; border-radius: 1px; }

/* вопросы */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 28px; font-weight: 400; color: var(--smalt); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 640px; }

/* призыв */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px 48px; }
.cta .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* формы */
.form { display: grid; gap: 12px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form input, .form textarea, .form select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 16px; }
.form input:focus, .form textarea:focus { border-color: var(--smalt); outline: none; }
.form [aria-invalid="true"] { border-color: var(--err); }
.req { color: var(--err); }
.form textarea { min-height: 90px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.form .check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--smalt); }
.form .err { color: var(--err); font-size: 14px; min-height: 20px; margin: 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: grid; gap: 10px; padding: 20px; border-radius: var(--r-m); background: #e7f3ec; color: var(--ink); }
.done b { font-size: 18px; }

/* корзина */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10,12,13,.45); }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 85; width: min(500px, 100%); background: var(--paper); box-shadow: -24px 0 64px rgba(0,0,0,.18);
  display: grid; grid-template-rows: auto minmax(0, 1fr); padding-top: env(safe-area-inset-top, 0px); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 34px; }
.x { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--bg); font-size: 22px; line-height: 1; cursor: pointer; }
.cart-body { overflow: auto; padding: 8px 24px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 18px; align-content: start; }
.line-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item img { width: 76px; height: 57px; object-fit: cover; border-radius: 8px; }
.line-item b { display: block; font-size: 15.5px; }
.line-item small { display: block; color: var(--ink-3); font-size: 12.5px; font-family: var(--mono); }
.line-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-family: var(--mono); font-size: 14px; }
.tlink { border: 0; background: none; padding: 4px 0; color: var(--smalt-deep); font-size: 13px; font-weight: 600; cursor: pointer; }
.tlink--muted { color: var(--ink-3); }
.line-price { font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.totals { display: grid; gap: 6px; padding: 14px 0 6px; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; }
.totals b { font-family: var(--mono); font-weight: 500; font-size: 24px; }
.totals .adv b { font-size: 17px; color: var(--smalt); }
.empty { color: var(--ink-2); padding: 24px 0; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 100; background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 32px rgba(0,0,0,.25); }

/* cookie */
.cookies { position: fixed; left: var(--gut); right: var(--gut); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: 720px; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 20px; box-shadow: 0 20px 48px rgba(20,23,24,.16);
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; font-size: 14px; }
.cookies p { margin: 0; flex: 1 1 320px; color: var(--ink-2); }
.cookies div { display: flex; gap: 8px; flex-wrap: wrap; }
body.is-modal .cookies, body.is-modal .toast { display: none; }

/* подвал */
.foot { background: var(--dark); color: var(--on-dark); padding-block: clamp(56px, 7vw, 96px) 32px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot h4, .foot-h { margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot .logo { color: var(--on-dark); }
.foot-about { color: var(--on-dark-2); max-width: 360px; margin-top: 18px; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  font-size: 12.5px; color: var(--on-dark-2); }
.maker { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }

/* адаптив */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .bar .wrap { gap: 12px; }
  .cartbtn { order: 3; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts, .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-card { justify-self: start; }
  .split, .split--wide, .spec, .band, .faq, .product { grid-template-columns: minmax(0, 1fr); }
  .buy { position: static; }
  .groups { grid-template-columns: minmax(0, 1fr); }
  .group { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .group .frame { aspect-ratio: auto; min-height: 100%; }
  .spheres { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 44vw, 320px); }
  .sphere.s1 { grid-column: span 2; grid-row: span 1; }
  .sphere.s2, .sphere.s3, .sphere.s4, .sphere.s5, .sphere.s6 { grid-column: span 1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid, .grid--4, .posts, .works, .steps { grid-template-columns: minmax(0, 1fr); }
  .group { grid-template-columns: minmax(0, 1fr); }
  .group .frame { aspect-ratio: 16 / 10; }
  .spheres { grid-template-columns: minmax(0, 1fr); }
  .sphere.s1 { grid-column: span 1; }
  .sizes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .size { padding: 8px 2px; min-height: 58px; }
  .size span { font-size: 10.5px; letter-spacing: -.01em; }
  .form .two { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .list-lines > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .logo b { font-size: 19px; letter-spacing: .12em; }
  .logo svg { width: 36px; }
  .viz { top: 10px; font-size: 10.5px; }
  .prose { font-size: 17px; }
  .plain-head h1 { font-size: clamp(32px, 9vw, 44px); }
  .cookies { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; font-size: 12.5px; gap: 8px; }
  .cookies p { flex-basis: 100%; }
  .cookies .btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .tbl .m-hide { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* мобильное меню: корзина и телефон внизу */
.mnav-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.mnav .mnav-tel { font-family: var(--mono); font-size: 18px; }

/* статья: заголовок короче по высоте, пометка у обложки */
.plain-head h1.art-h1 { max-width: 980px; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.06; }
.cover { margin: 0; }
.cover .note { margin-top: 8px; }
/* подсказка прокрутки у широких таблиц на телефоне */
@media (max-width: 620px) {
  .tbl-wrap.is-scroll:not(.is-end) { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
/* одна-две группы размеров на рубрике — без пустой колонки */
@media (min-width: 901px) {
  .groups--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .groups--1 { grid-template-columns: minmax(0, 560px); }
}
