/* WAVE — каталог мебели для ванной */

@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/golos-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/golos-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FFFFFF;
  --bg-2: #F4F4F2;
  --bg-3: #ECECE9;
  --text: #202224;
  --text-2: #55595D;
  --line: #E4E4E1;
  --line-2: #CDCDC9;
  --field: #8A8C8E;
  --brand: #379BCE;
  --accent: #1D6F9C;
  --accent-hover: #175B80;
  --danger: #A3271B;
  --ok: #2B6A3F;
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1240px;
  --g: clamp(16px, 3vw, 32px);
  --header: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
h1 { font-size: clamp(24px, 20px + 1.2vw, 32px); line-height: 1.2; }
h2, .h2 { font-size: clamp(19px, 17px + 0.6vw, 22px); line-height: 1.3; }
h3, .h3 { font-size: 16px; line-height: 1.35; font-weight: 600; }
.h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--g); padding-right: var(--g); }
.muted { color: var(--text-2); }
.small { font-size: 13px; line-height: 1.5; }
.note { color: var(--text-2); font-size: 13px; margin-top: 16px; }
.flag { font-size: 12px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 0 5px; margin-left: 6px; }
.ext::after { content: ''; display: inline-block; width: 9px; height: 9px; margin-left: 5px; vertical-align: 1px;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1h6v6M9 1L1 9' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1h6v6M9 1L1 9' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 4px;
  font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-2 { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn-2:hover { background: var(--bg-2); color: var(--text); border-color: var(--field); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.link-btn { background: none; border: 0; padding: 6px 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; color: inherit; }

/* ---------- верхняя строка и шапка ---------- */
.topbar { background: var(--bg-2); font-size: 13px; color: var(--text-2); }
.topbar-in { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 24px; min-height: 34px; align-items: center; }
.topbar a { color: var(--text); text-decoration: none; }
.topbar a:hover { color: var(--accent); text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); gap: 24px; }
.logo { display: block; flex: none; }
.logo img { height: 26px; width: auto; }
.site-nav ul { list-style: none; padding: 0; display: flex; gap: 26px; }
.site-nav a { text-decoration: none; font-size: 15px; padding: 8px 0; display: block; }
.site-nav a[aria-current] { color: var(--accent); }
.menu-btn { display: none; align-items: center; gap: 8px; background: none; border: 0; min-height: 44px; padding: 0; cursor: pointer; font-size: 15px; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .topbar-in { justify-content: flex-start; }
  .js .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 4px var(--g) 16px; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .no-js .header-in { flex-wrap: wrap; padding-bottom: 8px; }
  .no-js .site-nav ul { flex-wrap: wrap; gap: 2px 18px; }
}

/* ---------- хлебные крошки, заголовки ---------- */
.crumbs ol { list-style: none; padding: 16px 0 0; display: flex; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.crumbs li:not(:last-child)::after { content: '/'; margin: 0 8px; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head { padding-top: 16px; padding-bottom: 24px; }
.page-head p { margin-top: 10px; color: var(--text-2); max-width: 760px; }
.sec { padding-top: 40px; padding-bottom: 40px; }
.sec + .sec { padding-top: 8px; }
.sec-gray { background: var(--bg-2); padding-top: 40px; padding-bottom: 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head a { font-size: 14px; }

/* ---------- главная ---------- */
.intro { padding: 32px 0 28px; }
.intro-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.intro h1 { font-size: clamp(26px, 20px + 1.6vw, 36px); }
.intro p { color: var(--text-2); margin-top: 12px; max-width: 520px; }
.intro .actions { margin-top: 22px; }
.intro-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.buy-box { border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; }
.buy-box h2 { font-size: 16px; font-weight: 600; }
.buy-box p { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.buy-box a.btn { margin-top: 12px; }
@media (max-width: 860px) { .intro-in { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 480px) { .intro-buy { grid-template-columns: 1fr; } }

.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.strip a { display: block; text-decoration: none; }
.strip .ph { aspect-ratio: 4 / 5; background: var(--bg-2); overflow: hidden; border-radius: 3px; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip span { display: block; font-size: 13px; color: var(--text-2); margin-top: 6px; }
.strip a:hover span { color: var(--accent); }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .strip li:nth-child(n+7) { display: none; } }

.cats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cats a { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; min-height: 84px; background: #fff; }
.cats a:hover { border-color: var(--line-2); color: inherit; }
.cats a:hover b { color: var(--accent); }
.cats picture { width: 64px; height: 64px; flex: none; border-radius: 3px; overflow: hidden; background: var(--bg-2); }
.cats img { width: 100%; height: 100%; object-fit: cover; }
.cats b { display: block; font-weight: 500; }
.cats small { color: var(--text-2); font-size: 13px; }
@media (max-width: 860px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } .cats a { min-height: 0; } }

.pdf-promo { display: flex; gap: 24px; align-items: center; }
.pdf-promo a.cover { flex: 0 0 260px; border: 1px solid var(--line); }
.pdf-promo p { color: var(--text-2); margin-top: 6px; }
@media (max-width: 640px) { .pdf-promo { flex-direction: column; align-items: flex-start; } .pdf-promo a.cover { flex-basis: auto; width: 100%; } }

/* ---------- карточки ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 16px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card-link { display: flex; flex-direction: column; flex: 1 1 auto; text-decoration: none; }
.card-img { aspect-ratio: 4 / 5; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.card-img picture { width: 100%; height: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-title { font-size: 15px; font-weight: 600; margin-top: 10px; }
.card-link:hover .card-title { color: var(--accent); }
.card-sum { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; }
.card-color { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); min-width: 0; }
.card-color span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); flex: none; }
.cmp-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 4px 0; min-height: 32px; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; flex: none; }
.cmp-btn:hover { color: var(--accent); }
.cmp-icon { width: 14px; height: 14px; border: 1px solid var(--field); border-radius: 2px; position: relative; flex: none; background: #fff; }
.cmp-btn[aria-pressed="true"] { color: var(--text); }
.cmp-btn[aria-pressed="true"] .cmp-icon { background: var(--accent); border-color: var(--accent); }
.cmp-btn[aria-pressed="true"] .cmp-icon::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* ---------- каталог ---------- */
.cat-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cat-chips a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 18px; font-size: 14px; text-decoration: none; }
.cat-chips a:hover { border-color: var(--accent); }
.cat-chips a[aria-current] { background: var(--text); border-color: var(--text); color: #fff; }
.cat-chips small { color: var(--text-2); margin-left: 4px; }
.cat-chips a[aria-current] small { color: #ccc; }
.catalog { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-bottom: 48px; }
.catalog.no-side { grid-template-columns: minmax(0, 1fr); }
.filters fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.filters legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.filters .field { margin-bottom: 18px; }
.opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; cursor: pointer; min-height: 32px; }
.opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex: none; }
.opt small { color: var(--text-2); margin-left: auto; }
.filters-more summary { display: none; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; color: var(--text-2); min-height: 36px; }
.result-bar select { width: auto; min-height: 36px; padding: 4px 30px 4px 10px; font-size: 14px; }
.empty { padding: 40px 0; color: var(--text-2); }
.empty .btn { margin-top: 12px; }
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; gap: 12px; }
  .filters-more { border: 1px solid var(--line-2); border-radius: 4px; padding: 0 14px; }
  .filters-more summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; cursor: pointer; font-weight: 500; list-style: none; }
  .filters-more summary::-webkit-details-marker { display: none; }
  .filters-more summary::after { content: '+'; font-size: 20px; font-weight: 400; }
  .filters-more[open] summary::after { content: '−'; }
  .filters-groups { padding: 4px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
}
@media (max-width: 480px) { .filters-groups { grid-template-columns: 1fr; } }
.cat-text { max-width: 760px; color: var(--text-2); margin-bottom: 24px; }
.cat-text p + p { margin-top: 8px; }

/* ---------- формы ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 14px; }
.field label .muted { font-size: 13px; }
input[type="text"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; font-size: 16px; background: #fff; border: 1px solid var(--field); border-radius: 4px; }
textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.err { color: var(--danger); font-size: 13px; }
.field.check { display: grid; grid-template-columns: 20px 1fr; gap: 4px 10px; align-items: start; }
.field.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.field.check label { font-size: 13px; line-height: 1.45; color: var(--text-2); }
.field.check .err { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ask { max-width: 560px; }
.ask-model { margin-bottom: 14px; font-size: 14px; color: var(--text-2); }
.ask-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 6px; }
.ask-note { font-size: 13px; color: var(--text-2); }
.ask-status:not(:empty) { margin-top: 14px; padding: 10px 14px; border-left: 3px solid var(--text); background: var(--bg-2); font-size: 14px; }
.ask-status.ok { border-color: var(--ok); }
.ask-status.bad { border-color: var(--danger); }
.ask[aria-busy="true"] button[type="submit"] { opacity: .6; pointer-events: none; }

/* ---------- страница модели ---------- */
.product { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px; padding-top: 18px; align-items: start; }
.product-info h1 { font-size: clamp(24px, 20px + 1vw, 30px); }
.product-type { color: var(--text-2); margin-top: 4px; }
.specs { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 8px 0; border-bottom: 1px solid var(--line); }
.specs tr:first-child th, .specs tr:first-child td { border-top: 1px solid var(--line); }
.specs th { font-weight: 400; color: var(--text-2); width: 46%; padding-right: 12px; }
.specs td { font-variant-numeric: tabular-nums; }
.buy { margin-top: 22px; display: grid; gap: 10px; max-width: 420px; }
.buy .btn { width: 100%; }
.buy p { font-size: 13px; color: var(--text-2); }
.product-links { list-style: none; padding: 0; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.variant { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-size: 14px; max-width: 420px; }
.variant:hover { border-color: var(--line-2); }
.variant picture { width: 52px; height: 52px; flex: none; border-radius: 3px; overflow: hidden; }
.variant img { width: 100%; height: 100%; object-fit: cover; }
.variant small { display: block; color: var(--text-2); font-size: 12px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 20px; } }

.gallery { position: relative; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--bg-2); border-radius: 3px; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; scroll-snap-align: center; }
.g-zoom { display: block; aspect-ratio: 4 / 5; cursor: zoom-in; }
.g-zoom picture, .g-zoom img { width: 100%; height: 100%; }
.g-zoom img { object-fit: contain; }
.g-slide figcaption { font-size: 12px; color: var(--text-2); padding: 6px 0; background: #fff; }
.g-thumbs { display: flex; gap: 8px; margin-top: 2px; }
.g-thumb { width: 64px; text-decoration: none; font-size: 12px; color: var(--text-2); text-align: center; }
.g-thumb picture { aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb[aria-current="true"] picture { border-color: var(--text); }
.g-thumb[aria-current="true"] { color: var(--text); }
.g-thumb span { display: block; margin-top: 3px; }

.product-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 40px; }
.product-more h2 { margin-bottom: 12px; }
.product-more ul { padding-left: 18px; }
.product-more li + li { margin-top: 4px; }
.product-more .note { margin-top: 12px; }
@media (max-width: 860px) { .product-more { grid-template-columns: 1fr; gap: 28px; } }

.dims { max-width: 460px; }
.dims svg { width: 100%; height: auto; max-height: 520px; font-family: var(--font); }
.dims .obj { fill: var(--bg-2); stroke: var(--text); stroke-width: 4; }
.dims .mirror { fill: #E6ECEF; }
.dims .dim line { stroke: var(--text-2); stroke-width: 2.5; }
.dims .dim text { fill: var(--text); font-variant-numeric: tabular-nums; }
.dims .gap { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 10 12; }
.dims .lbl { fill: var(--text-2); font-size: 0.8em; }
.dims figcaption { font-size: 12px; color: var(--text-2); margin-top: 8px; }

.product-ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 40px; }
.product-ask:focus { outline: none; }
.product-ask .muted { margin-top: 8px; font-size: 14px; }
@media (max-width: 860px) { .product-ask { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- текстовые страницы ---------- */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-bottom: 48px; }
.toc { position: sticky; top: calc(var(--header) + 16px); font-size: 14px; }
.toc ol { list-style: none; padding: 0; }
.toc a { display: block; padding: 5px 0; text-decoration: none; color: var(--text-2); }
.toc a:hover { color: var(--accent); }
.doc-main { max-width: 720px; }
.doc-sec { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.doc-sec:last-child { border-bottom: 0; }
.doc-sec:focus { outline: none; }
.doc-sec h2 { margin-bottom: 12px; }
.sec-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 14px; }
.source { font-size: 13px; color: var(--text-2); margin-top: 10px; }
.guide-head { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 32px; align-items: start; }
.sketch { border: 1px solid var(--line); padding: 8px; }
.sketch figcaption { font-size: 12px; color: var(--text-2); margin-top: 4px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 16px; } .toc { position: static; } .guide-head { grid-template-columns: 1fr 120px; } }
.prose > * + * { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 18px; }
.prose li + li { margin-top: 4px; }
.prose h2 { font-size: 17px; margin-top: 24px; }
.prose strong { font-weight: 600; }
.legal { max-width: 760px; padding-bottom: 48px; }

.wtool { margin-top: 18px; padding: 16px; background: var(--bg-2); border-radius: 4px; }
.wtool .field { max-width: 240px; margin-bottom: 4px; }
.check-inline { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; min-height: 36px; }
.check-inline input { width: 16px; height: 16px; accent-color: var(--accent); }
.wtool-out { margin-top: 10px; font-size: 14px; }
.wtool-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wtool-list a { display: inline-flex; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 14px; text-decoration: none; background: #fff; font-size: 13px; }
.wtool-list small { color: var(--text-2); margin-left: 6px; }

/* ---------- PDF, где купить, контакты, FAQ ---------- */
.pdf-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pdf-cover a { display: block; border: 1px solid var(--line); }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th, .kv td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { font-weight: 400; color: var(--text-2); width: 120px; padding-right: 12px; }
.downloads { display: grid; gap: 8px; margin: 20px 0; max-width: 420px; }
.pdf-pages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 14px; }
.pdf-pages span { display: block; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.pdf-page { display: block; border: 1px solid var(--line); cursor: zoom-in; }
@media (max-width: 860px) { .pdf-top { grid-template-columns: 1fr; gap: 20px; } }

.buy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 48px; }
.buy-col { border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.buy-col h2 { margin-bottom: 8px; }
.buy-col > p { color: var(--text-2); }
.buy-col .btn { margin-top: 14px; }
.buy-col .loc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .buy-cols { grid-template-columns: 1fr; } }
.loc h3 { font-size: 15px; margin-bottom: 6px; }
.loc p { color: var(--text-2); font-size: 14px; }
.loc-list { list-style: none; padding: 0; margin: 8px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.loc-list a { text-decoration: none; display: inline-block; padding: 2px 0; }
.loc-list a:hover { text-decoration: underline; }
.locs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 48px; }
.contact-card { border: 1px solid var(--line); border-radius: 4px; padding: 20px; margin-bottom: 16px; }
.contact-card:target { border-color: var(--accent); }
.contact-card h2 { margin-bottom: 4px; }
.contact-card .lead-in { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.contacts-form h2 { margin-bottom: 6px; }
.contacts-form > p { color: var(--text-2); margin-bottom: 16px; font-size: 14px; }
.contacts-form:focus { outline: none; }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; gap: 24px; } }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; padding-bottom: 48px; }
.qas { border-top: 1px solid var(--line); max-width: 760px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h2 { font-size: 16px; font-weight: 500; }
.qa summary::after { content: '+'; font-size: 20px; color: var(--text-2); flex: none; }
.qa[open] summary::after { content: '−'; }
.qa .prose { padding: 0 0 16px; color: var(--text-2); }
.faq-aside { align-self: start; padding: 18px; background: var(--bg-2); border-radius: 4px; font-size: 14px; }
.faq-aside p { margin-bottom: 12px; color: var(--text-2); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- таблицы и сравнение ---------- */
.table-scroll { overflow-x: auto; margin-top: 12px; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; font-variant-numeric: tabular-nums; }
.cmp-table th, .cmp-table td { text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { font-weight: 500; color: var(--text-2); border-bottom-color: var(--line-2); }
.cmp-table tbody th { font-weight: 600; }
.cmp-table .swatch { vertical-align: 0; margin-right: 6px; }

.compare { padding-bottom: 48px; }
.compare-grid { display: grid; grid-template-columns: 150px repeat(var(--n), minmax(170px, 1fr)); overflow-x: auto; font-size: 14px; border-top: 1px solid var(--line); }
.compare-grid > div { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.compare-grid .ch { color: var(--text-2); position: sticky; left: 0; background: #fff; z-index: 1; }
.compare-grid .cimg img { width: 100%; max-width: 200px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-2); border-radius: 3px; }
.compare-grid .ccode a { font-weight: 600; font-size: 15px; }
.compare-grid .same { color: var(--text-2); }
.compare-empty { padding: 20px 0; }
.compare-empty p { margin-bottom: 14px; color: var(--text-2); }
@media (max-width: 640px) { .compare-grid { grid-template-columns: 100px repeat(var(--n), minmax(140px, 1fr)); } }

.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line-2); box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05); }
.compare-bar-in { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; font-size: 14px; }
.compare-bar p { margin-right: auto; }
body.has-compare { padding-bottom: 56px; }

/* ---------- служебные ---------- */
.service { padding-top: 48px; padding-bottom: 72px; max-width: 640px; }
.service p { margin-top: 10px; color: var(--text-2); }
.nf-search { margin-top: 24px; max-width: 420px; }
.nf-search label { font-size: 14px; display: block; margin-bottom: 5px; }
.nf-row { display: flex; gap: 8px; }

/* ---------- подвал ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 36px 0 20px; font-size: 14px; margin-top: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 28px; }
.f-head { font-weight: 600; margin-bottom: 8px; }
.f-col ul { list-style: none; padding: 0; display: grid; gap: 3px; }
.f-note { color: var(--text-2); margin-top: 10px; max-width: 280px; }
.f-loc { color: var(--text-2); margin-bottom: 12px; }
.f-loc b { color: var(--text); font-weight: 500; }
.f-loc a { color: var(--text); }
.f-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); }
.f-legal a { text-decoration: underline; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- просмотр фото ---------- */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #fff; }
.lb::backdrop { background: rgba(0, 0, 0, 0.6); }
.lb-stage { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; }
.lb-stage img { max-width: 100vw; max-height: 100dvh; width: auto; height: auto; object-fit: contain; }
.lb-stage.zoomed { place-items: start; }
.lb-stage.zoomed img { max-width: none; max-height: none; }
.lb-close, .lb-nav { position: fixed; background: #fff; color: var(--text); border: 1px solid var(--line-2); border-radius: 4px; width: 44px; height: 44px; font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: 12px; right: 12px; }
.lb-nav.prev { left: 12px; top: 50%; }
.lb-nav.next { right: 12px; top: 50%; }
.lb-cap { position: fixed; left: 12px; bottom: 12px; right: 70px; font-size: 13px; color: var(--text-2); background: rgba(255, 255, 255, 0.9); padding: 4px 8px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .site-footer, .compare-bar, .ask, .filters, .g-thumbs, .buy { display: none !important; } }
@media (max-width: 520px) {
  .card-foot { flex-direction: column; align-items: flex-start; gap: 0; }
  .card-color span:last-child { white-space: normal; }
  .related > :nth-child(5) { display: none; }
}
@media (min-width: 761px) and (max-width: 1000px) { .related > :nth-child(5) { display: none; } }

.strip { list-style: none; padding: 0; margin: 0; }

/* ---------- уведомление о cookie ---------- */
.cookie { position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 460px; background: #fff; border: 1px solid var(--line-2); border-radius: 4px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); font-size: 14px; line-height: 1.45; }
.cookie p { color: var(--text-2); }
.cookie p a { color: var(--text); }
.cookie-actions { display: flex; gap: 8px; margin-top: 10px; }
body.has-compare .cookie { bottom: 72px; }
@media (max-width: 520px) { .cookie { left: 8px; right: 8px; bottom: 8px; max-width: none; } body.has-compare .cookie { bottom: 64px; } }
@media print { .cookie { display: none !important; } }
