/* Древо61 — стили сайта. Один файл, без внешних зависимостей. */

:root {
  --ink: #241a13;
  --ink-2: #4d3b2d;
  --ink-3: #7a6552;
  --paper: #fbf7f1;
  --paper-2: #f3eadd;
  --line: #e3d6c5;
  --accent: #b5651d;
  --accent-dark: #93500f;
  --accent-soft: #fbeedd;
  --green: #2f5540;
  --green-soft: #e8f0ea;
  --white: #fff;
  --shadow-sm: 0 1px 2px rgba(36, 26, 19, .06), 0 2px 8px rgba(36, 26, 19, .05);
  --shadow-md: 0 6px 20px rgba(36, 26, 19, .10);
  --shadow-lg: 0 18px 50px rgba(36, 26, 19, .22);
  --radius: 14px;
  --radius-sm: 9px;
  --font-h: Georgia, "Times New Roman", serif;
  --font-b: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

/* height: auto обязателен: атрибуты width/height у <img> иначе работают как жёсткая высота
   и картинки становятся вертикальными «полосами» — атрибуты оставляем ради отсутствия скачков вёрстки. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------- Черновик / системные плашки ---------- */
.draft-bar {
  background: #fff3cd; color: #6b4b00; border-bottom: 1px solid #f0dca0;
  font-size: .86rem; padding: 8px 16px; text-align: center;
}
.draft-bar strong { font-weight: 700; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 241, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 68px; padding: 8px 0;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.logo img { width: 40px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--font-h); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.logo-sub { font-size: .7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: .95rem; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.header-phone {
  font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: .95rem;
}
.header-phone:hover { color: var(--accent-dark); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; cursor: pointer; color: var(--ink);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .97rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              box-shadow .24s ease, transform .18s ease;
  background: var(--paper-2); color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-dark); color: var(--white);
  box-shadow: 0 8px 24px rgba(181, 101, 29, .30), 0 0 0 4px rgba(181, 101, 29, .14);
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #100b07; color: var(--white); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--paper-2); color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover, .btn-ghost:focus-visible, .btn-outline:hover, .btn-outline:focus-visible {
  background: var(--paper-2); color: var(--ink);
  box-shadow: 0 0 0 4px rgba(181, 101, 29, .10);
}
/* На тёмных фонах (первый экран, полоса-призыв) обычные «призрачные» кнопки сливаются — делаем светлую версию. */
.hero .btn-ghost, .cta-band .btn-ghost {
  color: #f4e7d8; border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .06);
}
.hero .btn-ghost:hover, .cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-sm { padding: 9px 15px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-wa { background: #25a35a; color: #fff; }
.btn-wa:hover { background: #1d8a4b; color: #fff; }
.btn-tg { background: #2aabee; color: #fff; }
.btn-tg:hover { background: #1e93d1; color: #fff; }
.btn-vk { background: #0077ff; color: #fff; }
.btn-vk:hover { background: #0066dd; color: #fff; }
/* Макс — сине-фиолетовый, чтобы отличался от Telegram и ВК */
.btn-max { background: linear-gradient(135deg, #6b5cff, #4a7dff); color: #fff; }
.btn-max:hover { background: linear-gradient(135deg, #5a4bf0, #3f70f0); color: #fff; }
.btn-mail { background: var(--ink); color: var(--white); }
.btn-mail:hover { background: #100b07; color: var(--white); }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(181, 101, 29, .28), transparent 60%),
    linear-gradient(160deg, #2b1e15 0%, #1d130d 60%, #241a13 100%);
  color: #f6ece1;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 90px);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center;
  padding: 62px 0 66px;
}
.hero h1 { color: #fff8ef; margin-bottom: .4em; }
.hero p.lead { font-size: 1.09rem; color: #e3d3c2; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero-chips li {
  font-size: .84rem; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); color: #f0e2d3;
}
.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: auto; }

/* ---------- Ярлык-пилюля над заголовком и нумерация карточек ---------- */
.eyebrow {
  display: inline-block; padding: 7px 15px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2); background: var(--white);
}
.cat-num {
  font-size: .74rem; letter-spacing: .16em; font-weight: 700;
  text-transform: uppercase; color: var(--accent-dark);
}
.cat-num::after { content: " //"; color: var(--ink-3); }

/* Кнопка «наверх» */
.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-size: 1.1rem; line-height: 1; box-shadow: var(--shadow-md);
}
.to-top:hover { background: var(--paper-2); }
.to-top[hidden] { display: none; }

/* Таблица на странице доставки */
.table { width: 100%; border-collapse: collapse; }
.table td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td:first-child { padding-right: 20px; white-space: nowrap; }

/* ---------- Полоса «с нами работают» ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); padding: 18px 0; }
.proof-inner { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.proof-label { font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.proof-list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.proof-list li { position: relative; font-size: .95rem; color: var(--ink-2); }
.proof-list li + li::before {
  content: ""; position: absolute; left: -16px; top: 50%; width: 3px; height: 3px;
  border-radius: 50%; background: var(--ink-3); transform: translateY(-50%);
}

/* ---------- Секции ---------- */
.section { padding: 62px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head p { color: var(--ink-2); margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Категории ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.cat-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: .18s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d9c6ad; }
.cat-card img { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.cat-card h3 { margin: 0; font-size: 1.08rem; }
.cat-card p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.cat-card .cat-lead { font-weight: 600; color: var(--accent-dark); font-size: .88rem; margin-top: auto; }

/* ---------- Товары ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 26px; padding: 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-block; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font-size: .87rem;
}
.chip:hover { border-color: #d3bda2; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filters-right { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.filters input[type="search"], .filters select {
  font: inherit; font-size: .9rem; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--paper); color: var(--ink); min-width: 190px;
}
.empty-note { padding: 30px; text-align: center; color: var(--ink-2); background: var(--paper-2); border-radius: var(--radius); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.products.compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }

.product {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .18s ease;
}
.product:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product .ph { position: relative; background: var(--paper-2); }
.product .ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product .badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.product-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; flex: 1; }
.product h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.product .size { font-size: .82rem; color: var(--ink-3); }
.product .desc {
  font-size: .88rem; color: var(--ink-2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.product .price-row { display: flex; align-items: baseline; gap: 9px; margin-top: auto; flex-wrap: wrap; }
.price { font-family: var(--font-h); font-size: 1.32rem; font-weight: 700; }
.price-note { font-size: .82rem; color: var(--ink-3); }
.old-price { color: var(--ink-3); text-decoration: line-through; font-size: .95rem; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; }
.variant-select {
  font: inherit; font-size: .85rem; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper); width: 100%;
}
.products.compact .desc, .products.compact .size { display: none; }
.products.compact .product-body { padding: 11px; gap: 6px; }
.products.compact h3 { font-size: .94rem; }
.products.compact .price { font-size: 1.1rem; }

/* ---------- Преимущества / шаги ---------- */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.perk {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.perk h3 { margin: 0 0 6px; font-size: 1.05rem; }
.perk p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.perk .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 10px;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: .9rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 78ch; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary::marker { color: var(--accent); }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p { margin: 0; color: var(--ink-2); }

/* ---------- Полоса-призыв ---------- */
.cta-band {
  background: linear-gradient(135deg, #33241a, #1e140e); color: #f7efe6;
  border-radius: var(--radius); padding: 38px; display: grid;
  grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center;
}
.cta-band h2 { color: #fff8ef; margin-bottom: .3em; }
.cta-band p { color: #e0d0c0; margin-bottom: 0; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Страница-заголовок и хлебные крошки ---------- */
.page-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 34px 0 38px; }
.page-hero .lead { color: var(--ink-2); max-width: 70ch; font-size: 1.05rem; }
.breadcrumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: #b9a78f; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Текстовые страницы ---------- */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.note {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.2em;
}
.note p:last-child { margin-bottom: 0; }
.todo { background: #fff3cd; border-bottom: 1px dashed #d8a400; padding: 0 3px; }

.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card ul { margin-bottom: 0; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { display: block; font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.contact-list .value { font-size: 1.05rem; font-weight: 600; }
.messenger-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Подвал ---------- */
.footer { background: #1d140e; color: #cdbcae; margin-top: 0; padding: 46px 0 26px; font-size: .92rem; }
.footer a { color: #e5d6c7; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.footer h3 { color: #fff5ea; font-size: 1rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; color: #a89484;
}
.footer-legal { font-size: .84rem; color: #a89484; }

/* ---------- Корзина ---------- */
.cart-btn { position: relative; }
.cart-count {
  display: none; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700;
}
.cart-count[data-show="1"] { display: inline-flex; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 90;
  width: min(430px, 100%); height: 100%; display: flex; flex-direction: column;
  background: var(--paper); box-shadow: var(--shadow-lg);
  transform: translateX(102%); transition: transform .24s ease; visibility: hidden;
}
.drawer[data-open="1"] { transform: none; visibility: visible; }
.drawer-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--line); background: var(--white);
}
.drawer-head h2 { margin: 0; font-size: 1.15rem; }
.drawer-close {
  margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 34px; height: 34px; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink);
}
/* Список товаров обязан оставаться видимым. У флекс-элемента с прокруткой
   автоматическая минимальная высота равна нулю, поэтому без явного min-height
   на телефоне он сжимался в полоску — и кнопку «удалить» было не достать. */
.drawer-body { padding: 16px 18px; overflow-y: auto; flex: 1 1 auto; min-height: 150px; }
/* Низ панели (поля и кнопки отправки) при нехватке места прокручивается сам */
.drawer-foot {
  border-top: 1px solid var(--line); padding: 16px 18px; background: var(--white);
  flex: 0 1 auto; max-height: 58vh; overflow-y: auto; overscroll-behavior: contain;
}
.overlay {
  position: fixed; inset: 0; background: rgba(24, 16, 10, .45); z-index: 55;
  opacity: 0; visibility: hidden; transition: .2s ease;
}
.overlay[data-open="1"] { opacity: 1; visibility: visible; }

.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line h4 { margin: 0; font-family: var(--font-b); font-size: .95rem; font-weight: 600; }
.cart-line .meta { font-size: .82rem; color: var(--ink-3); }
.cart-line .sum { font-weight: 700; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 1.05rem; line-height: 1; color: var(--ink);
}
.qty button:hover { background: var(--paper-2); }
.qty .q { min-width: 24px; text-align: center; font-weight: 600; }
.cart-remove {
  background: none; border: 0; color: var(--ink-3); cursor: pointer;
  font-size: .85rem; text-decoration: underline; padding: 8px 2px; min-height: 36px;
}
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; }
.cart-total .sum { font-family: var(--font-h); font-size: 1.5rem; font-weight: 700; }
.cart-empty { color: var(--ink-2); text-align: center; padding: 26px 0; }
.field { margin-bottom: 10px; }
.field label { display: block; font-size: .82rem; color: var(--ink-2); margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .92rem; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
}
.send-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.send-hint { font-size: .8rem; color: var(--ink-3); margin: 10px 0 0; }

/* ---------- Уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: .92rem; box-shadow: var(--shadow-lg); z-index: 80;
  opacity: 0; visibility: hidden; transition: .2s ease; max-width: 90vw; text-align: center;
}
.toast[data-show="1"] { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Плашка о cookie ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 14px 18px; display: flex; gap: 16px;
  align-items: center; flex-wrap: wrap; font-size: .88rem;
}
.cookie p { margin: 0; flex: 1 1 320px; color: var(--ink-2); }
.cookie[hidden] { display: none; }

/* ---------- Плавающие кнопки мессенджеров ---------- */
.chat-fabs {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.chat-fab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 9px; border-radius: 999px;
  color: #fff; text-decoration: none;
  font-size: .9rem; font-weight: 500; line-height: 1;
  transition: transform .18s ease, box-shadow .24s ease, filter .18s ease;
}
.chat-fab:hover { transform: translateY(-2px); filter: brightness(1.08); }
.chat-fab-badge {
  min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
}
.chat-fab--vk { background: #0077ff; box-shadow: 0 10px 28px rgba(0, 119, 255, .38); }
.chat-fab--vk:hover { box-shadow: 0 14px 36px rgba(0, 119, 255, .5); }
.chat-fab--max { background: linear-gradient(135deg, #5b6bff, #a24bff); box-shadow: 0 10px 28px rgba(124, 92, 255, .4); }
.chat-fab--max:hover { box-shadow: 0 14px 36px rgba(124, 92, 255, .55); }
/* Плашка cookie занимает низ экрана — поднимаем кнопки, чтобы не перекрывались */
body.cookie-open .chat-fabs { bottom: 104px; }
@media (max-width: 620px) {
  .chat-fabs { right: 14px; bottom: 14px; gap: 8px; }
  .chat-fab { padding: 8px; gap: 0; }
  .chat-fab-text { display: none; }
  body.cookie-open .chat-fabs { bottom: 124px; }
}

/* ---------- 404 ---------- */
.center-page { text-align: center; padding: 80px 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 46px 0 50px; }
  .hero-art { order: -1; max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 10px 16px 18px; display: none;
  }
  .nav[data-open="1"] { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .header-actions { margin-left: 0; }
  .header-phone { display: none; }
  .header-inner { gap: 10px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .filters { padding: 12px; }
  .filters-right { margin-left: 0; width: 100%; }
  .filters input[type="search"], .filters select { flex: 1; min-width: 0; }
  .products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .products .desc { display: none; }
  .product-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .send-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
