/* люки163.рф — временная главная (Современный ДОМ) */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #0b8b58;
  --green-dark: #08734a;
  --green-light: #39c98a;
  --teal: #144846;
  --teal-dark: #0f3735;
  --red: #e2533f;
  --text: #333;
  --text-soft: #666;
  --line: #e7ecec;
  --bg-soft: #f4f7f7;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 72, 70, .10);
  --container: 1320px;
  --header-h: 160px; /* высота закреплённой шапки: отступ для якорей и прилипающих блоков */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
button, input, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.25; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px; border-radius: 30px; border: 2px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); color: #fff; }
.btn--outline-white { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(0,0,0,.08); }
.btn--outline-white:hover { background: #fff; color: var(--teal); }
.btn--outline { border-color: var(--green); color: var(--green); background: #fff; }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Баннер техобслуживания ---------- */
.notice {
  background: #fff6e0;
  border-bottom: 1px solid #f1d58c;
  color: #5a4300;
  font-size: 14px;
}
.notice__inner { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.notice__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #f5b400; color: #fff; display: grid; place-items: center; }
.notice__icon svg { width: 20px; height: 20px; }
.notice__text { flex: 1; }
.notice__text b { color: #3d2e00; }
.notice__text a { color: var(--green-dark); font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.notice__btn { flex: none; min-height: 40px; padding: 0 20px; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--teal); color: #fff; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar__col { display: flex; flex-direction: column; gap: 2px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 14px; height: 14px; opacity: .85; flex: none; }
.topbar a { color: var(--green-light); }
.topbar a:hover { color: #fff; }

/* ---------- Шапка ---------- */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__main { display: flex; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { width: 64px; height: auto; }
.logo__text { font-size: 13px; font-weight: 600; line-height: 1.15; text-transform: uppercase; color: var(--teal); letter-spacing: .02em; }
.header__contacts { margin-left: auto; display: flex; align-items: center; gap: 18px; flex: none; }
.header__phone { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.header__phone a { font-weight: 400; font-size: 18px; color: var(--teal); white-space: nowrap; }
.header__phone a:hover { color: var(--green); }
.header__phone span { font-size: 12px; color: var(--text-soft); }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--teal); background: #fff; flex: none; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Навигация ---------- */
.nav { background: #fff; position: relative; z-index: 40; border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 40px; padding-top: 12px; padding-bottom: 12px; }
.catalog-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 300px; height: 46px; padding: 0 20px; border: 0; border-radius: 30px;
  background: var(--green); color: #fff; font-weight: 600; cursor: pointer; flex: none;
}
.catalog-btn:hover { background: var(--green-dark); }
.catalog-btn__label { display: flex; align-items: center; gap: 10px; }
.catalog-btn svg { width: 18px; height: 18px; }
.catalog-btn .chev { transition: transform .2s; width: 14px; height: 14px; }
.catalog-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu { display: flex; align-items: center; gap: 30px; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 0;
  font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
  border: 0; background: none; cursor: pointer; white-space: nowrap;
}
.menu > li > button:hover { color: var(--green); }
.menu .chev { width: 10px; height: 10px; }
.badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 9px; font-weight: 600; line-height: 1;
  padding: 3px 5px; border-radius: 3px; text-transform: uppercase; letter-spacing: .03em;
}
.badge::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: var(--red); }
.submenu {
  position: absolute; top: 100%; left: -18px; min-width: 260px; padding: 10px 0;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.menu > li:hover .submenu, .menu > li:focus-within .submenu, .submenu.is-open { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 8px 20px; font-size: 14px; }

.catalog-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0,0,0,.08);
  display: none;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
}
.catalog-panel.is-open { display: block; }
.catalog-panel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; padding-top: 26px; padding-bottom: 30px; }
.catalog-panel h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.catalog-panel h3 a { color: var(--teal); }
.catalog-panel li a { display: block; padding: 3px 0; font-size: 14px; color: var(--text-soft); }
.catalog-panel li a:hover { color: var(--green); }

/* ---------- Заголовок ---------- */
.intro { padding: 28px 0 10px; }
.intro h1 { font-size: 48px; color: #3a3a3a; margin-bottom: 8px; }
.intro p { margin: 0; color: var(--text-soft); max-width: 1240px; }

/* ---------- Крупные карточки категорий ---------- */
.cards { padding: 40px 0 0; }
.cards__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 370px; padding: 40px 48px; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate;
}
.card picture, .card picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.42)); z-index: -1; transition: background .3s; }
.card:hover { color: #fff; }
.card:hover picture img { transform: scale(1.04); }
.card:hover::before { background: linear-gradient(180deg, rgba(0,0,0,.36), rgba(0,0,0,.5)); }
.card h2 { font-size: 32px; font-weight: 500; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.card p { margin: 0 0 28px; max-width: 470px; font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }

/* ---------- Промо (кирпич, камень) ---------- */
.promo { padding: 24px 0 60px; }
.promo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo__item { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 230px; padding: 32px 40px; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.promo__item picture, .promo__item picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo__item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,55,53,.85) 0%, rgba(15,55,53,.55) 55%, rgba(15,55,53,.05) 100%); z-index: -1; }
.promo__item:hover { color: #fff; }
.promo__item h2 { font-size: 32px; margin-bottom: 8px; }
.promo__item p { margin: 0 0 22px; max-width: 340px; font-size: 14px; }
.promo__item .pill { align-self: flex-start; }
.promo__item .btn { align-self: flex-start; min-height: 40px; padding: 0 20px; }

/* ---------- Секции ---------- */
.section { --section-space: 120px; padding: var(--section-space) 0; } /* десктоп; планшет 80, мобильный 80 */
/* Соседние секции с одинаковым фоном: на стыке каждой по половине отступа (на десктопе 60 + 60 = 120) */
.section:not(.section--soft):has(+ .section:not(.section--soft)),
.section--soft:has(+ .section--soft) { padding-bottom: calc(var(--section-space) / 2); }
.section:not(.section--soft) + .section:not(.section--soft),
.section--soft + .section--soft { padding-top: calc(var(--section-space) / 2); }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; margin-bottom: 40px; }
.section__head h2 { font-size: 32px; color: #3a3a3a; }
.section__head p { margin: 6px 0 0; color: var(--text-soft); }

/* сетка категорий */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.cat:nth-child(3n) { border-right: 0; }
.cat:nth-last-child(-n+3) { border-bottom: 0; }
.cat:hover { background: #fafcfc; }
.cat__name { display: block; font-size: 18px; font-weight: 500; line-height: 1.1; color: #3a3a3a; }
.cats-more { display: none; }
.cat__count { display: block; margin-top: 4px; font-size: 13px; color: var(--text-soft); }
.cat img { width: 130px; height: 130px; object-fit: cover; border-radius: 8px; flex: none; }

/* товары */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__sale { position: absolute; top: 16px; left: 16px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
/* Карточка товара: радиус 24 в пару к кнопке-таблетке, внутренние отступы 20 со всех сторон */
.product__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.product__title { font-size: 16px; font-weight: 500; line-height: 1.4; margin: 0 0 24px; } /* 24 px до цены; цены в ряду выравнивает margin-top: auto у .product__price */
.product__title a:hover { color: var(--green); }
.product__meta { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: #767676; } /* серый с контрастом 4.5:1 на белом */
.product__price { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 16px; }
.product__old { color: #999; text-decoration: line-through; font-size: 14px; }
.product__new { color: var(--red); font-weight: 700; font-size: 19px; }
.product__unit { color: var(--text-soft); font-size: 13px; }
.product .btn { width: 100%; min-height: 44px; padding: 0 14px; font-size: 13px; }

/* новости */
.news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.news__item { display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.news__item:hover { color: var(--text); }
.news__img { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.news__img img { width: 100%; height: 100%; object-fit: cover; }
.news__title { font-size: 17px; font-weight: 500; line-height: 1.4; }

/* преимущества */
/* «Наши преимущества»: слева заголовок (прилипает при прокрутке), справа список преимуществ с разделителями */
.why { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.why__head { position: sticky; top: calc(var(--header-h) + 24px); }
.why__head h2 { font-size: 32px; color: #3a3a3a; margin: 0 0 12px; }
.why__head p { margin: 0; max-width: 420px; color: var(--text-soft); }
.why__list { border-top: 1px solid #dfe6e6; } /* на сером фоне секции --line почти не виден */
.why__item { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid #dfe6e6; }
.why__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--green); }
.why__icon svg { width: 24px; height: 24px; }
.why__item h3 { font-size: 18px; font-weight: 600; color: #3a3a3a; margin: 2px 0 6px; }
.why__item p { margin: 0; font-size: 15px; color: var(--text-soft); }
.br-desktop { display: inline; } /* ручной перенос строки только на десктопе */

/* форма заявки */
.lead { background: var(--teal); color: #fff; border-radius: var(--radius); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 44px 48px; position: relative; overflow: hidden; }
.lead::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(57,201,138,.12); pointer-events: none; }
.lead h2 { font-size: 32px; margin-bottom: 12px; }
.lead p { margin: 0 0 18px; color: rgba(255,255,255,.85); }
.lead__contacts { display: flex; flex-direction: column; gap: 10px; }
.lead__contacts a { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 400; color: #fff; }
.lead__contacts a:hover { color: var(--green-light); }
.lead__contacts svg { width: 22px; height: 22px; color: var(--green-light); flex: none; }
/* Режим работы и адрес: отдельная группа под контактами, иконки на одной линии с иконками телефона и почты */
.lead__info { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: 15px; line-height: 22px; color: rgba(255,255,255,.8); }
.lead__info li { display: flex; align-items: flex-start; gap: 10px; }
.lead__info svg { width: 22px; height: 22px; flex: none; color: var(--green-light); }
.form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff;
  border-radius: 10px; padding: 13px 16px; outline: none; font-size: 15px; transition: border-color .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 84px; }
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.6); }
.form input:focus, .form textarea:focus { border-color: var(--green-light); background: rgba(255,255,255,.12); }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.8); }
.form__consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--green-light); flex: none; }
.form__consent a { color: var(--green-light); text-decoration: underline; }
.form .btn { align-self: flex-start; min-width: 220px; }
.form .btn[disabled] { opacity: .6; cursor: default; }
.form__msg { font-size: 14px; min-height: 1.2em; }
.form .form__msg { margin: 0; } /* перебивает .lead p { margin-bottom } */
.form .form__msg:empty { min-height: 0; margin-top: -12px; } /* пустая строка статуса не добавляет отступ под кнопкой; live-region остаётся в DOM */
.form__msg.is-ok { color: var(--green-light); }
.form__msg.is-err { color: #ffb4a8; }
.hp { position: absolute; left: -9999px; }

/* ---------- Подвал ---------- */
/* Подвал как на исходном сайте: белый фон, сверху полоса «Остались вопросы?», 4 колонки, копирайт */
.footer { background: #fff; color: #555; font-size: 14px; line-height: 1.6; padding: 0; }
.footer a { color: #555; }
.footer a:hover { color: var(--green); }
.footer__ask { display: flex; align-items: center; gap: 24px; padding: 32px 32px 32px 36px; border-radius: var(--radius); background: var(--teal); color: #fff; }
.footer__ask-text { flex: 1; }
.footer .footer__ask h3 { font-size: 24px; font-weight: 500; margin-bottom: 4px; color: #fff; }
.footer__ask p { margin: 0; color: rgba(255,255,255,.85); }
.footer__messengers { display: flex; gap: 12px; flex: none; }
.footer .footer__max { display: flex; align-items: center; gap: 14px; flex: none; padding: 14px 32px 14px 24px; border-radius: 48px; background: var(--teal-dark); color: #fff; }
.footer .footer__max:hover { color: var(--green-light); }
.footer__max svg { width: 24px; height: 24px; flex: none; color: var(--green-light); } /* как иконки в форме заявки */
.footer__max span { display: flex; flex-direction: column; font-size: 20px; font-weight: 400; line-height: 1.2; }
.footer__max small { font-size: 14px; font-weight: 500; margin-bottom: 4px; color: rgba(255,255,255,.6); }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.footer h3 { font-size: 18px; font-weight: 500; color: #3a3a3a; margin-bottom: 16px; }
.footer li { margin-bottom: 8px; }
/* «Каталог» и «Навигация»: на десктопе обычный заголовок, на телефоне — спойлер */
.footer__toggle { display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; pointer-events: none; }
.footer__toggle .chev { display: none; }
.footer__about { margin: 16px 0 20px; font-size: 12px; }
.footer__req { margin: 0; }
.footer__req b { color: #3a3a3a; font-weight: 600; }
.footer__contacts li { display: flex; gap: 8px; margin-bottom: 6px; }
.footer__contacts svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--green); }
.footer__contacts a { color: #3a3a3a; }
.footer__subtitle { margin-top: 24px; }
.footer .footer__subtitle { font-size: 15px; margin-bottom: 10px; }
.footer__rating { display: block; border: 0; }
.footer__social { display: flex; gap: 8px; }
.footer__social li { margin: 0; }
.footer .footer__social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #4c75a3; color: #fff; font-size: 13px; font-weight: 700; }
.footer .footer__social a:hover { background: #3d6290; color: #fff; }
.footer .footer__social a.footer__social-rutube { background: #100943; }
.footer .footer__social a.footer__social-rutube:hover { background: #2a1f6e; }
.footer__social svg { width: 22px; height: 22px; }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: #555; }

/* ---------- Каталог на восстановлении ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px 0 18px; border-radius: 24px;
  background: rgba(255,255,255,.95); color: var(--teal);
  font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1;
  white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.pill svg { width: 20px; height: 20px; flex: none; color: #d99a00; }
.pill--light { height: 32px; padding: 0 14px 0 10px; gap: 6px; border-radius: 16px; font-size: 13px; background: #fff6e0; color: #5a4300; border: 1px solid #f1d58c; box-shadow: none; }
.pill--light svg { width: 16px; height: 16px; }

a[data-restoring] { cursor: default; }
.menu a[data-restoring], .submenu a[data-restoring], .drawer a[data-restoring], .footer a[data-restoring] { cursor: pointer; }
.card[data-restoring]:hover picture img, .promo__item[data-restoring]:hover picture img { transform: none; }
.card[data-restoring]:hover::before { background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.42)); }
.cat[data-restoring]:hover { background: #fff; }
.product__title a[data-restoring]:hover { color: inherit; }
.news__item .pill { align-self: flex-start; margin-top: auto; }
.catalog-panel a[data-restoring], .catalog-panel a[data-restoring]:hover { color: #9aa3a3; }
.catalog-panel h3 a[data-restoring] { color: var(--teal); }
.catalog-panel__note { margin: 20px 0 0; padding: 12px 16px; background: #fffaf0; border: 1px solid #f6e3b4; border-radius: 10px; font-size: 14px; color: #5a4300; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.catalog-panel__note a { color: var(--green-dark); font-weight: 400; }
.section__head p a { color: var(--green); font-weight: 400; white-space: nowrap; }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15,55,53,.55); }
.modal__box { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: var(--radius); padding: 34px 30px 28px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg-soft); cursor: pointer; display: grid; place-items: center; }
.modal__close svg { width: 16px; height: 16px; }
.modal__icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: #fff6e0; color: #d99a00; display: grid; place-items: center; }
.modal__icon svg { width: 28px; height: 28px; }
.modal h2 { font-size: 22px; margin-bottom: 10px; color: #3a3a3a; }
.modal p { margin: 0 0 22px; color: var(--text-soft); }
.modal__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: rgba(40,40,40,.97); color: #fff;
  font-size: 14px; padding: 14px 0; transform: translateY(110%); transition: transform .3s;
}
.cookie.is-shown { transform: none; }
.cookie__inner { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; text-align: center; }
.cookie a { color: var(--green-light); text-decoration: underline; }
.cookie__btns { display: flex; gap: 10px; }
.cookie .btn { min-height: 38px; padding: 0 20px; border-radius: 6px; }
.cookie .btn--ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.cookie .btn--ghost:hover { border-color: #fff; }

/* ---------- Плавающая кнопка звонка (мобильные) ---------- */
.fab { display: none; }

/* ---------- Мобильное меню ---------- */
.burger { display: none; }
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.is-open { display: block; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: #fff; overflow-y: auto; padding: 18px 20px 30px; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer__close { width: 40px; height: 40px; border: 0; background: var(--bg-soft); border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.drawer__close svg { width: 18px; height: 18px; }
.drawer h3 { font-size: 13px; text-transform: uppercase; color: var(--text-soft); margin: 18px 0 6px; letter-spacing: .04em; font-weight: 600; }
.drawer li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer__phone { display: block; margin-top: 20px; font-size: 20px; font-weight: 400; color: var(--teal); }

/* ---------- Простые страницы (политика, 503) ---------- */
.page { padding: 40px 0 60px; }
.page h1 { font-size: 30px; margin-bottom: 20px; color: #3a3a3a; }
.page h2 { font-size: 19px; font-weight: 600; margin: 28px 0 10px; color: var(--teal); }
.page p, .page li { color: #444; }
.page ul { list-style: disc; padding-left: 22px; margin: 6px 0 12px; }
.page li { margin-bottom: 4px; }
.page__narrow { max-width: 860px; }

.stub { padding: 60px 0 70px; text-align: center; }
.stub__icon { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: rgba(11,139,88,.1); color: var(--green); display: grid; place-items: center; }
.stub__icon svg { width: 42px; height: 42px; }
.stub h1 { font-size: 32px; margin-bottom: 14px; color: #3a3a3a; }
.stub p { max-width: 640px; margin: 0 auto 10px; color: var(--text-soft); font-size: 16px; }
.stub__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ================= Адаптив ================= */
@media (max-width: 1200px) {
  .menu { gap: 20px; }
  .menu > li > a, .menu > li > button { font-size: 13px; }
  .catalog-btn { width: 220px; }
  .nav__inner { gap: 24px; }
  .header__main { gap: 22px; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .products .product:nth-child(n+7) { display: none; }
  .products--sale .product:nth-child(n+4) { display: flex; }
}
@media (max-width: 1024px) {
  .menu { display: none; }
  .catalog-btn { width: auto; }
  .nav__inner { justify-content: space-between; }
  .nav__phone { display: flex !important; }
  .catalog-panel__grid { grid-template-columns: repeat(2, 1fr); }
  .cards__grid { gap: 18px; }
  .news { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 300px; padding: 30px; }
  .intro h1 { font-size: 40px; }
  .card h2 { font-size: 26px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat:nth-child(3n) { border-right: 1px solid var(--line); }
  .cat:nth-child(2n) { border-right: 0; }
  .cat:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .cat:nth-last-child(-n+2) { border-bottom: 0; }
  .why { grid-template-columns: 1fr; gap: 32px; }
  .why__head { position: static; }
  .br-desktop { display: none; }
  .lead { grid-template-columns: 1fr; padding: 36px 30px; gap: 26px; }
  .section { --section-space: 80px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__ask { flex-wrap: wrap; }
  .footer__ask-text { flex-basis: 100%; }
  .footer__messengers { width: 100%; }
  .footer__messengers .footer__max { flex: 1; }
  .header__phone span { display: none; }
}
.nav__phone { display: none; align-items: center; gap: 8px; font-weight: 400; color: var(--teal); }
.nav__phone svg { width: 18px; height: 18px; color: var(--green); }

@media (max-width: 760px) {
  body { font-size: 14px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .topbar { display: none; }
  .notice__inner { flex-wrap: wrap; gap: 10px; }
  .notice__icon { display: none; }
  .notice__btn { width: 100%; }
  :root { --header-h: 64px; }
  .header__main { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .burger { display: grid; width: 42px; height: 42px; border: 0; background: none; place-items: center; cursor: pointer; padding: 0; color: var(--text); flex: none; }
  .burger svg { width: 26px; height: 26px; }
  .logo img { width: 46px; }
  .logo__text { font-size: 11px; }
  .header__phone { display: none; }
  .header__contacts { gap: 8px; }
  .icon-btn { width: 42px; height: 42px; }
  .nav { display: none; }
  .intro { padding-top: 32px; }
  .intro h1 { font-size: 26px; }
  .cards { padding-top: 28px; }
  .promo { padding: 16px 0 40px; }
  .pill { height: 44px; font-size: 14px; padding: 0 20px 0 16px; }
  .pill--light { height: 30px; font-size: 12px; padding: 0 12px 0 9px; }
  .cards__grid, .promo__grid { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 280px; padding: 28px 22px; align-items: flex-start; text-align: left; }
  .card h2 { font-size: 26px; }
  .card p { font-size: 14px; }
  .promo__item { padding: 24px 22px; min-height: 180px; }
  .promo__item h2 { font-size: 22px; }
  .section { --section-space: 80px; }
  .section__head { margin-bottom: 28px; text-align: left; }
  .section__head h2 { font-size: 22px; }
  .cats { grid-template-columns: 1fr; }
  .cat, .cat:nth-child(3n), .cat:nth-child(2n), .cat:nth-last-child(-n+3), .cat:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .cat:last-child { border-bottom: 0; }
  .cat img { width: 92px; height: 92px; }
  .cat__name { font-size: 16px; }
  /* Популярные категории: на телефоне видны первые три, остальные под «Показать ещё» */
  .cats:not(.is-open) .cat:nth-child(n+4) { display: none; }
  .cats:not(.is-open) .cat:nth-child(3) { border-bottom: 0; }
  .cats-more { display: flex; width: 100%; margin-top: 14px; }
  .cats-more .chev { width: 14px; height: 14px; transition: transform .2s; }
  .cats-more[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .products { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 60%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .products::-webkit-scrollbar { display: none; }
  .products .product, .products .product:nth-child(n+7) { display: flex; scroll-snap-align: start; }
  .products .product:hover { transform: none; }
  .product__body { padding: 12px; }
  .product__price { margin-bottom: 12px; }
  .product__title { font-size: 13px; margin-bottom: 12px; }
  .product__meta { font-size: 12px; }
  .product__new { font-size: 16px; }
  .product { border-radius: 18px; }
  .product__sale { top: 10px; left: 10px; }
  .product .btn { font-size: 12px; min-height: 38px; white-space: normal; line-height: 1.2; }
  .news { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .news::-webkit-scrollbar { display: none; }
  .news__item { scroll-snap-align: start; }
  .news__title { font-size: 15px; }
  .why__head h2 { font-size: 22px; }
  .why__item { gap: 16px; padding: 18px 0; }
  .why__icon { width: 42px; height: 42px; }
  .why__icon svg { width: 22px; height: 22px; }
  .why__item h3 { font-size: 16px; }
  .why__item p { font-size: 14px; }
  .lead { padding: 28px 20px; }
  .lead h2 { font-size: 24px; }
  .lead__contacts a { font-size: 17px; }
  .form .btn { width: 100%; }
  /* Подвал на телефоне: логотип → описание → контакты → реквизиты → каталог → навигация */
  .footer__grid { display: flex; flex-direction: column; gap: 0; padding-top: 80px; padding-bottom: 40px; }
  .footer__grid > div:first-child { display: contents; }
  .footer__grid > div, .footer__req { order: 5; margin-top: 32px; }
  .footer__grid .logo { order: 1; }
  .footer__grid .logo img { width: 64px; }
  .footer__grid .logo__text { font-size: 13px; }
  .footer__about { order: 2; margin: 16px 0 0; }
  .footer__grid > div:last-child { order: 3; }
  .footer__req { order: 4; }
  .footer__spoiler { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .footer__spoiler + .footer__spoiler { margin-top: 0; border-top: 0; }
  .footer .footer__spoiler h3 { margin: 0; }
  .footer__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; cursor: pointer; pointer-events: auto; }
  .footer__toggle .chev { display: block; width: 14px; height: 14px; flex: none; color: var(--text-soft); transition: transform .2s; }
  .footer__toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .footer__spoiler:not(.is-open) ul { display: none; }
  .footer__spoiler ul { padding-bottom: 12px; }
  .footer__ask { padding: 24px 20px; gap: 16px; }
  .footer .footer__ask h3 { font-size: 20px; }
  .footer__messengers { flex-direction: column; }
  .footer .footer__max { width: 100%; padding: 14px 20px; gap: 12px; }
  .footer__max span { font-size: 18px; }
  .footer__max small { font-size: 12px; margin-bottom: 2px; }
  .footer { padding-bottom: 70px; }
  .cookie { bottom: 0; }
  .fab {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 90;
    box-shadow: 0 8px 24px rgba(11,139,88,.35);
  }
  .fab.is-hidden, .has-cookie .fab { display: none; }
  .page h1, .stub h1 { font-size: 24px; }
}
@media (max-width: 380px) {
  .products { grid-auto-columns: 72%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
