/* Watertrade — оформление магазина.
   Палитра: глубокая вода (ink), чистая вода (aqua), латунь фитингов (brass). */

@font-face {
    font-family: "Unbounded";
    src: url("../fonts/unbounded.woff") format("woff");
    font-weight: 200 900;
    font-display: swap;
}
@font-face {
    font-family: "Golos Text";
    src: url("../fonts/golos-text.woff") format("woff");
    font-weight: 400 900;
    font-display: swap;
}

:root {
    --ink: #0E2A33;
    --ink-2: #18414D;
    --paper: #F2F6F7;
    --white: #FFFFFF;
    --well: #E8F0F2;
    --aqua: #1C9BB8;
    --aqua-deep: #127A92;
    --brass: #B9852A;
    --brass-deep: #94681B;
    --steel: #5F7379;
    --line: #D6E2E5;
    --danger: #B4372F;
    --ok: #2E7D4F;

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

    --wrap: 1240px;
    --gutter: clamp(16px, 3vw, 32px);
    --r-tile: 18px;
    --r-field: 10px;
    --shadow: 0 1px 2px rgba(14, 42, 51, .06), 0 8px 24px -12px rgba(14, 42, 51, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.55 var(--text);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--aqua-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 22px; height: 22px; flex: none; }
.muted { color: var(--steel); }

/* ---------- Кнопки и поля ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
    font: 600 15px/1 var(--text); text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn-brass { background: var(--brass); color: var(--white); }
.btn-brass:hover { background: var(--brass-deep); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); color: var(--white); }
.btn-line { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], select, textarea {
    width: 100%; min-height: 46px; padding: 10px 14px;
    border: 1.5px solid var(--line); border-radius: var(--r-field); background: var(--white);
    font: 400 16px/1.4 var(--text); color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(28,155,184,.2); }

/* ---------- Шапка ---------- */
.topline { background: var(--ink); color: #BFD3D8; font-size: 14px; }
.topline .wrap { display: flex; justify-content: space-between; gap: 16px; min-height: 38px; align-items: center; }
.topline a { color: var(--white); text-decoration: none; }
.topline-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topline-links { display: flex; gap: 20px; white-space: nowrap; }

.masthead { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.masthead .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo img { width: 44px; height: 44px; }
.logo-name { font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.logo-sub { display: block; font: 500 12px/1.2 var(--text); color: var(--steel); margin-top: 4px; letter-spacing: 0; }
.search { flex: 1; display: flex; max-width: 520px; position: relative; }
.search input { padding-right: 52px; border-radius: 999px; background: var(--paper); border-color: transparent; }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 42px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.search button .icon { width: 18px; height: 18px; }
.mast-phone { text-decoration: none; color: var(--ink); line-height: 1.2; white-space: nowrap; }
.mast-phone b { font: 600 17px/1.2 var(--display); display: block; letter-spacing: -.01em; }
.mast-phone span { font-size: 13px; color: var(--steel); }
.mast-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mast-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 12px; background: none; border: 0; cursor: pointer; font-family: var(--text); }
.mast-btn:hover { background: var(--paper); color: var(--ink); }
.mast-btn .icon { width: 26px; height: 26px; }
.cart-count {
    position: absolute; top: 0; right: 6px; min-width: 21px; height: 21px; padding: 0 6px;
    border-radius: 999px; background: var(--brass); color: var(--white);
    font: 700 12px/21px var(--text); text-align: center;
}
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-toggle { display: none; }
.mast-btn svg, .mast-btn use { pointer-events: none; }

.mainnav { background: var(--white); border-bottom: 1px solid var(--line); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mainnav a { display: block; padding: 13px 14px; color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.mainnav a:hover, .mainnav a.active { border-bottom-color: var(--aqua); color: var(--ink); }

/* ---------- Основная часть ---------- */
.page { flex: 1; padding: 28px 0 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--steel); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--aqua-deep); text-decoration: underline; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.page-head h1 { margin: 0; }

.flash { padding: 14px 18px; border-radius: 12px; margin: 0 0 20px; font-weight: 500; }
.flash-success { background: #E2F3E9; color: var(--ok); }
.flash-error { background: #F8E3E1; color: var(--danger); }
.flash-info { background: #E1F1F5; color: var(--aqua-deep); }

/* ---------- Главная: герой с видео ---------- */
.hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero video { 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(90deg, rgba(14,42,51,.92) 0%, rgba(14,42,51,.7) 45%, rgba(14,42,51,.15) 100%); }
.hero .wrap { min-height: min(78vh, 660px); display: flex; flex-direction: column; justify-content: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; max-width: 12ch; margin-bottom: 22px; }
.hero p { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 46ch; color: #D3E4E8; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-pause { position: absolute; right: var(--gutter); bottom: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: rgba(14,42,51,.35); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.hero-pause .icon { width: 16px; height: 16px; }

.section { padding: 56px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--white); border-radius: var(--r-tile); border: 1px solid var(--line); }
.fact { display: flex; gap: 16px; padding: 24px 26px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact .icon { width: 34px; height: 34px; color: var(--aqua); }
.fact b { display: block; font-size: 17px; margin-bottom: 4px; }
.fact span { color: var(--steel); font-size: 15px; }

.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.about p { font-size: 17px; max-width: 62ch; }
.about-call { background: var(--ink); color: var(--white); border-radius: var(--r-tile); padding: 30px; }
.about-call h3 { font-size: 1.25rem; }
.about-call p { color: #C5D8DD; font-size: 15px; }
.about-call .phone-big { font: 700 clamp(1.4rem, 1rem + 1.4vw, 2rem)/1.1 var(--display); color: var(--white); text-decoration: none; display: block; margin: 8px 0 18px; }

/* ---------- Категории ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.cat-tile { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-tile); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.cat-tile:hover { border-color: var(--aqua); color: var(--ink); }
.cat-tile figure { margin: 0; aspect-ratio: 4 / 3; background: var(--well); display: grid; place-items: center; padding: 18px; }
.cat-tile img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-tile span { padding: 14px 16px 16px; font-weight: 600; font-size: 16px; line-height: 1.3; }

.cat-intro { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 22px 26px; margin-bottom: 24px; max-width: 100%; }
.cat-intro > *:last-child { margin-bottom: 0; }
.cat-intro.is-collapsed .cat-intro-body { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.cat-intro-toggle { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--aqua-deep); font: 600 15px var(--text); cursor: pointer; }

/* ---------- Список товаров ---------- */
.with-aside { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
fieldset.filter-box { margin: 0; min-width: 0; }
.filter-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 16px 18px; }
.filter-box h3 { font: 600 15px/1.3 var(--text); margin: 0 0 10px; }
.filter-box label { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 15px; }
.filter-box input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--aqua-deep); }
.filter-reset { align-self: flex-start; font-size: 14px; }
.filter-toggle { display: none; }

.list-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--steel); font-size: 15px; }
.list-bar select { width: auto; min-height: 40px; padding: 6px 12px; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.prod-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); overflow: hidden; }
.prod-card:hover { border-color: #AFC8CF; }
.prod-img { display: grid; place-items: center; aspect-ratio: 1; background: var(--well); padding: 20px; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.prod-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.prod-name { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.prod-name:hover { color: var(--aqua-deep); }
.prod-specs { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--steel); }
.prod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.price { font: 600 20px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.price small { font: 500 14px var(--text); color: var(--steel); letter-spacing: 0; }
/* Скидка: старая цена зачёркнута, текущая — красным, бейдж «−N%» */
.price-wrap { display: inline-flex; flex-direction: column; gap: 2px; }
.price-old { color: var(--steel); font-size: 14px; text-decoration-thickness: 1px; }
.price.is-sale { color: var(--red, #B4372F); }
.prod-img { position: relative; }
.sale-badge { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--red, #B4372F); color: #fff; font: 700 13px/1 var(--text); padding: 6px 8px; border-radius: 8px; }
.sale-badge.inline { position: static; display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 12px; padding: 4px 6px; }
.buy-box .price-old { font-size: 16px; }
.buy-round { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brass); color: var(--white); display: grid; place-items: center; cursor: pointer; flex: none; transition: background-color .15s; }
.buy-round:hover { background: var(--brass-deep); }
.buy-round.is-added { background: var(--ok); }
.list-more { margin-top: 24px; text-align: center; }
.list-empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-tile); padding: 40px; text-align: center; color: var(--steel); }

/* ---------- Карточка товара ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
.gallery-main { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); aspect-ratio: 1; display: grid; place-items: center; padding: 28px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 76px; height: 76px; padding: 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--white); cursor: pointer; }
.gallery-thumbs button[aria-current=true] { border-color: var(--aqua); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); }
.product-meta { color: var(--steel); font-size: 15px; margin-bottom: 18px; }
.buy-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.buy-box .price { font-size: 30px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 400; color: var(--steel); width: 48%; padding-right: 16px; }
.doc-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--well); color: var(--ink); text-decoration: none; font-weight: 500; }
.doc-link:hover { background: #DCE8EB; color: var(--ink); }
.prose { max-width: 72ch; font-size: 17px; }
.prose img { height: auto; border-radius: 12px; }
.prose table { border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.block { margin-top: 44px; }
.reviews { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review b { margin-right: 8px; }
.review time { color: var(--steel); font-size: 14px; }
.review p { margin: 6px 0 0; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 22px; }
.form-card .field + .field { margin-top: 12px; }

/* ---------- Формы ---------- */
.narrow { max-width: 560px; }
.field { display: block; margin-bottom: 16px; }
.field > span, .field > label > span { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.field .req { color: var(--brass-deep); }
.field-error { color: var(--danger); font-size: 14px; margin-top: 4px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.form-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 15px; }

/* ---------- Корзина и заказ ---------- */
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto auto 36px; gap: 16px; align-items: center; padding: 16px 18px; }
.cart-row + .cart-row { border-top: 1px solid var(--line); }
.cart-row img { width: 84px; height: 84px; object-fit: contain; background: var(--well); border-radius: 12px; padding: 6px; }
.cart-row .name { font-weight: 600; color: var(--ink); text-decoration: none; }
.cart-row .unit { display: block; color: var(--steel); font-size: 14px; margin-top: 4px; }
.cart-row .sum { font: 600 17px var(--display); white-space: nowrap; min-width: 96px; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); border-radius: 50%; }
.qty button:hover { background: var(--paper); }
.qty output { min-width: 32px; text-align: center; font-weight: 600; }
.remove { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--steel); cursor: pointer; display: grid; place-items: center; }
.remove:hover { background: #F8E3E1; color: var(--danger); }
.summary { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 22px; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--steel); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin: 14px 0 18px; border-top: 1px solid var(--line); font-weight: 600; }
.summary-total .price { font-size: 26px; }
.empty-state { text-align: center; padding: 48px 20px; background: var(--white); border-radius: var(--r-tile); border: 1px solid var(--line); }
.empty-state img { width: 200px; margin: 0 auto 18px; }
.empty-state h1 { font-size: 1.6rem; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: #E2F3E9; color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }

/* ---------- Статьи ---------- */
.article-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.article-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 20px 24px; }
.article-item h2 { font-size: 1.15rem; margin-bottom: 6px; }
.article-item h2 a { color: var(--ink); text-decoration: none; }
.article-item h2 a:hover { color: var(--aqua-deep); }
.article-item time, .article time { color: var(--steel); font-size: 14px; }
.article-item p { margin: 8px 0 0; color: var(--ink-2); }
.article-item { display: flex; flex-direction: column; }
.article-item.has-cover { padding: 0; overflow: hidden; }
.article-item.has-cover .article-item-body { padding: 18px 22px 22px; }
.article-item.has-cover .article-thumb img { border-radius: 0; }
.article-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 10px; background: var(--well); }
/* Статья и карточка товара: текст + колонка справа */
.article-head time { display: block; margin-top: 8px; }
.article-layout, .product-more { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.article-layout .prose, .product-more .prose { max-width: none; }
.article-layout .article-cover { margin-top: 0; }
.side-col { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.related h3, .help-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.related ul, .help-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.related a { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.3; }
.related a:hover span { color: var(--aqua-deep); }
.related img { width: 96px; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 8px; background: var(--well); }
.help-facts li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--ink-2); }
.help-facts .icon { width: 24px; height: 24px; color: var(--aqua-deep); }
.help-facts b { display: block; color: var(--ink); }
.help-call { margin: 16px 0 0; font-size: 15px; }
.more-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--aqua-deep); }
/* Описание раздела: во всю ширину, картинка раздела справа */
.cat-intro.prose { max-width: none; }
.cat-intro.has-img { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: start; }
.cat-intro-img { margin: 0; }
.cat-intro-img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--well); }
@media (max-width: 960px) {
    .article-layout, .product-more { grid-template-columns: 1fr; gap: 28px; }
    .side-col { position: static; }
}
@media (max-width: 640px) {
    .cat-intro.has-img { grid-template-columns: 1fr; }
    .cat-intro-img { display: none; }
}
.article-cover { margin: 20px 0 8px; }
.article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 14px; background: var(--well); }
.article-cover figcaption { color: var(--steel); font-size: 14px; margin-top: 8px; }
.article-body { margin-top: 20px; }
.article-body h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.article-body h3 { font-size: 1.1rem; margin: 1.3em 0 .4em; }
.article-body ol, .article-body ul { padding-left: 1.3em; }
.article-body li { margin: .3em 0; }
.article-body .note { background: var(--well); border-left: 4px solid var(--aqua); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 1.2em 0; }
.article-body .warn { background: #FBF3E4; border-left: 4px solid var(--brass); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 1.2em 0; }
.article-body table { width: 100%; margin: 1em 0; font-size: 15px; }
.article-body th { background: var(--well); text-align: left; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 24px 0 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); background: var(--white); }
.pagination .active a { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pagination .disabled span { color: var(--line); }

.sitemap ul { list-style: none; padding-left: 18px; }
.sitemap > ul { padding: 0; columns: 2 320px; }
.sitemap li { margin: 4px 0; break-inside: avoid; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; }
.map { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--r-tile); }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #BFD3D8; padding: 48px 0 28px; font-size: 15px; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .logo { color: var(--white); margin-bottom: 14px; }
.footer .logo-sub { color: #8FAAB1; }
.footer h3 { font: 600 15px var(--text); color: var(--white); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #8FAAB1; font-size: 14px; }

/* ---------- Уведомление «добавлено в корзину» ---------- */
.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px);
    display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px;
    background: var(--ink); color: var(--white); border-radius: 999px; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--white); font-weight: 600; background: var(--brass); padding: 8px 14px; border-radius: 999px; text-decoration: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
    .mast-phone { display: none; }
    .product, .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .masthead .wrap { flex-wrap: wrap; min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
    .logo-sub { display: none; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .menu-toggle { display: flex; }
    .mainnav { display: none; }
    .mainnav.is-open { display: block; }
    .mainnav ul { flex-direction: column; padding: 6px 0; }
    .mainnav a { border-bottom: 0; border-left: 3px solid transparent; }
    .mainnav a:hover { border-left-color: var(--aqua); }
    .with-aside, .checkout, .about, .contacts-grid, .footer-grid { grid-template-columns: 1fr; }
    .aside, .summary { position: static; }
    .filter-toggle { display: inline-flex; }
    .aside .filters { display: none; }
    .aside.is-open .filters { display: flex; flex-direction: column; gap: 14px; }
    .facts { grid-template-columns: 1fr; }
    .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
    .topline-note { display: none; }
    .topline .wrap { justify-content: flex-end; }
}
@media (max-width: 560px) {
    .prod-grid, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .prod-body { padding: 10px 12px 12px; }
    .price { font-size: 16px; }
    .buy-round { width: 40px; height: 40px; }
    .cat-tile span { padding: 10px 12px; font-size: 14px; }
    .cart-row { grid-template-columns: 64px 1fr 36px; }
    .cart-row img { width: 64px; height: 64px; }
    .cart-row .qty { grid-column: 2; }
    .cart-row .sum { grid-column: 2; text-align: left; }
    .cart-row .remove { grid-row: 1; grid-column: 3; }
    .form-row { grid-template-columns: 1fr; }
    .mast-btn span.lbl { display: none; }
    .hero .wrap { min-height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Переключатель языков ---------- */
.langs { display: inline-flex; gap: 2px; margin-left: 4px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.2); }
.langs a { padding: 2px 6px; border-radius: 6px; color: #BFD3D8; font-weight: 600; font-size: 13px; }
.langs a:hover { color: var(--white); }
.langs a[aria-current] { background: var(--white); color: var(--ink); }

/* ---------- Новая почта на оформлении заказа ---------- */
.np-box { position: relative; }
.np-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-field); box-shadow: var(--shadow); }
.np-list li { padding: 9px 10px; border-radius: 8px; cursor: pointer; line-height: 1.35; }
.np-list li small { display: block; color: var(--steel); font-size: 13px; }
.np-list li[aria-selected=true], .np-list li:hover { background: var(--well); }
.np-list .np-empty { color: var(--steel); cursor: default; background: none !important; }
.np-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 14px; }
.np-badge svg { width: 28px; height: 28px; }
