/* =====================================================================
   Стили сайта. Основные цвета и шрифты — в блоке :root ниже.
   ===================================================================== */

:root {
  --bg: #FFF9F4;
  --surface: #FFFFFF;
  --soft: #FBF1E8;
  --ink: #3B2F2A;
  --muted: #8C7C73;
  --line: #EFE2D6;
  --accent: #E07F66;
  --accent-dark: #C9674F;
  --accent-soft: #FBE3DB;
  --sage: #A9C4A0;
  --sage-soft: #E3EEDD;
  --butter: #F5D689;
  --sky: #CFE0EC;
  --lilac: #E0D6F0;
  --danger: #C8513C;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(92, 60, 40, .18);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Unbounded", "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 46px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.section-head .link { color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.muted { color: var(--muted); }

.i { width: 22px; height: 22px; flex: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 800; font-size: 16px; line-height: 1;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
  background: var(--surface); color: var(--ink);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-soft { background: var(--accent-soft); color: var(--accent-dark); }
.btn-soft:hover { background: #F8D3C7; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink);
  transition: background .2s;
}
.icon-btn:hover, .icon-btn.active { background: var(--soft); }

/* ---------- Шапка ---------- */
.topbar { background: var(--ink); color: #F4E9DF; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar-right { display: flex; gap: 20px; }
.topbar a { font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 249, 244, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; }
.logo-mark .i { width: 20px; height: 20px; fill: #fff; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-weight: 700; color: #5C4D46; transition: background .2s, color .2s; }
.main-nav a:hover { background: var(--soft); color: var(--ink); }
.main-nav a.active { background: var(--accent-soft); color: var(--accent-dark); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-search {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px; width: 230px; flex: 0 1 230px; min-width: 150px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
}
.header-search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--ink); }
.header-search:focus-within { border-color: var(--accent); }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.burger { display: none; }

/* Переключатель языков UZ | RU */
.lang-switch {
  display: inline-flex; flex: none; padding: 3px; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  min-width: 38px; height: 36px; padding: 0 10px; border-radius: 999px;
  font: 800 13px/1 var(--font); letter-spacing: .04em; color: var(--muted);
  transition: background .2s, color .2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: var(--accent-soft); color: var(--accent-dark); cursor: default; }
.lang-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Блоки на одном языке: показываем только текущий */
html[lang="uz"] [data-lang]:not([data-lang="uz"]),
html[lang="ru"] [data-lang]:not([data-lang="ru"]) { display: none !important; }

.mobile-menu { position: fixed; inset: 0; z-index: 100; background: rgba(59, 47, 42, .4); }
.mobile-menu-panel {
  width: min(360px, 88vw); height: 100%; overflow-y: auto;
  background: var(--bg); padding: 16px 20px 32px;
  display: flex; flex-direction: column; gap: 18px;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(-100%); } }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.mobile-search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--ink); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 12px 0; font-weight: 800; font-size: 18px; border-bottom: 1px solid var(--line); }
.mobile-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-cats a { padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; }
.mobile-phone { display: flex; gap: 10px; align-items: center; font-weight: 800; margin-top: auto; }

/* ---------- Главный экран ---------- */
.hero { padding: 40px 0 24px; }
.hero-in {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  background: var(--soft); border-radius: 36px; padding: 56px;
  position: relative; overflow: hidden;
}
.hero-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); font-weight: 800; font-size: 14px; color: var(--accent-dark); margin-bottom: 18px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-text { font-size: 18px; color: #6A5A52; max-width: 460px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-height: 460px; justify-self: center; width: 100%; }
.hero-photo { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-tiles { position: absolute; inset: 0; }
.hero-tile {
  position: absolute; display: grid; place-items: center;
  border-radius: 28px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hero-tile svg { width: 52%; color: rgba(59, 47, 42, .55); }
.hero-tile:nth-child(1) { width: 52%; height: 58%; left: 4%; top: 6%; background: #F6D3CC; }
.hero-tile:nth-child(2) { width: 40%; height: 44%; right: 4%; top: 0; background: #CFE0EC; animation-delay: -2s; }
.hero-tile:nth-child(3) { width: 42%; height: 42%; right: 10%; bottom: 2%; background: #F8E4B0; animation-delay: -4s; }
.hero-tile:nth-child(4) { width: 30%; height: 30%; left: 14%; bottom: 4%; background: #D3E3CC; animation-delay: -1s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-tile { animation: none; } }

/* ---------- Преимущества ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--sage-soft); color: #4F7046; }
.feature:nth-child(2) .feature-icon { background: var(--accent-soft); color: var(--accent-dark); }
.feature:nth-child(3) .feature-icon { background: #FBEFCB; color: #9A7414; }
.feature:nth-child(4) .feature-icon { background: #E6EFF6; color: #3F6F8F; }
.feature b { display: block; font-size: 16px; margin-bottom: 2px; }
.feature span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- Разделы (категории) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 170px; padding: 20px; border-radius: var(--radius);
  background: var(--tile, var(--soft)); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile b { font-size: 17px; line-height: 1.25; max-width: 70%; position: relative; z-index: 1; }
.cat-tile span { font-size: 14px; color: rgba(59, 47, 42, .7); font-weight: 700; position: relative; z-index: 1; }
.cat-tile svg { position: absolute; right: -6px; bottom: -6px; width: 110px; color: rgba(59, 47, 42, .35); transition: transform .3s; }
.cat-tile:hover svg { transform: rotate(-6deg) scale(1.05); }

/* ---------- Карточки товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media .alt { opacity: 0; transition: opacity .35s; }
.card:hover .media .alt { opacity: 1; }
.card-media > img:not(.alt) { transition: transform .5s; }
.card:hover .card-media > img:not(.alt) { transform: scale(1.04); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ph, var(--soft)); }
.ph svg { width: 46%; color: color-mix(in srgb, var(--ph, #ccc) 40%, #3B2F2A); opacity: .7; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface); }
.badge-new { background: var(--sage); color: #24391F; }
.badge-hit { background: var(--butter); color: #5A430A; }
.badge-sale { background: var(--accent); color: #fff; }
.out-label { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 13px; font-weight: 800; color: var(--muted); }
.card.is-out .media > * { filter: grayscale(.35); }
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 0 4px; }
.card-meta { font-size: 13px; color: var(--muted); font-weight: 700; }
.card-title { font-family: var(--font); font-size: 16px; font-weight: 700; margin: 0; line-height: 1.35; }
.card:hover .card-title { color: var(--accent-dark); }
.card-sizes { font-size: 13px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.price-now { font-size: 18px; font-weight: 900; }
.price-now.is-sale { color: var(--accent-dark); }
.price-old { color: var(--muted); font-size: 14px; }

/* ---------- Баннер ---------- */
.banner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 36px 40px; border-radius: 32px; background: var(--sage-soft);
}
.banner-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--surface); color: #4F7046; }
.banner-icon .i { width: 36px; height: 36px; }
.banner h2 { margin-bottom: 6px; }
.banner p { margin: 0; color: #5B6A55; }

/* ---------- Хлебные крошки, заголовок страницы ---------- */
.page-head { padding: 32px 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs span::before { content: "/"; margin-right: 6px; opacity: .5; }

/* ---------- Каталог ---------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding-bottom: 72px; align-items: start; }
.filters { position: sticky; top: 94px; display: flex; flex-direction: column; gap: 22px; }
.filters-head { display: none; }
.f-group h4 { font-family: var(--font); font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.f-cats { display: flex; flex-direction: column; gap: 2px; }
.f-cats button {
  display: flex; justify-content: space-between; gap: 8px; width: 100%;
  padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-weight: 600;
}
.f-cats button:hover { background: var(--soft); }
.f-cats button.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; }
.f-cats small { color: var(--muted); font-weight: 700; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.price-range { display: flex; align-items: center; gap: 8px; }
.input, .price-range input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); outline: 0;
  transition: border-color .2s;
}
.input:focus, .price-range input:focus { border-color: var(--accent); }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.reset-link { border: 0; background: none; color: var(--accent-dark); font-weight: 800; padding: 0; text-align: left; }

.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; }
.toolbar .search .i { position: absolute; left: 14px; top: 12px; color: var(--muted); }
.toolbar .search input { padding-left: 44px; }
.toolbar select { width: auto; min-width: 200px; cursor: pointer; }
.filters-toggle { display: none; }
.result-count { color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.chip button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--soft); padding: 0; }
.chip .i { width: 14px; height: 14px; }
.load-more { display: flex; justify-content: center; margin-top: 40px; }
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line); }
.empty .ph-icon { width: 90px; margin: 0 auto 12px; color: var(--muted); opacity: .6; }

/* ---------- Страница товара ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 8px 0 64px; align-items: start; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; position: sticky; top: 94px; }
.gallery-main { position: relative; }
.gallery-main .media { border-radius: 28px; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; box-shadow: var(--shadow); }
.gallery-nav.prev { left: 14px; } .gallery-nav.next { right: 14px; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumb { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--soft); }
.thumb.active { border-color: var(--accent); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery.single { grid-template-columns: 1fr; }
.gallery.single .thumbs, .gallery.single .gallery-nav { display: none; }
.gallery-dots { display: none; }

.p-info h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.p-info .badges { position: static; margin-bottom: 14px; }
.p-sku { color: var(--muted); font-size: 14px; margin-bottom: 18px; display: flex; gap: 16px; flex-wrap: wrap; }
.stock-in { color: #4F7046; font-weight: 800; }
.stock-out { color: var(--danger); font-weight: 800; }
.p-info .price { margin: 0 0 26px; }
.p-info .price-now { font-size: 30px; }
.p-info .price-old { font-size: 18px; }
.opt { margin-bottom: 22px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; font-weight: 800; }
.opt-head a { font-size: 14px; color: var(--accent-dark); display: inline-flex; gap: 6px; align-items: center; }
.opt-head a .i { width: 18px; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn {
  min-width: 56px; height: 46px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface); font-weight: 700;
  transition: border-color .15s, background .15s;
}
.opt-btn:hover { border-color: var(--ink); }
.opt-btn.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt.error .opt-head { color: var(--danger); }
.opt.error .opt-btn { border-color: #F0B6A8; }
.buy-row { display: flex; gap: 12px; margin: 6px 0 26px; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); height: 50px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; display: grid; place-items: center; }
.qty button .i { width: 18px; }
.qty input { width: 36px; border: 0; text-align: center; font-weight: 800; outline: 0; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 40px; }
.qty.sm button { width: 36px; }
.p-perks { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--soft); margin-bottom: 24px; }
.p-perks div { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.p-perks .i { color: var(--accent-dark); }

.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 800; font-size: 17px; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 24px; font-weight: 400; line-height: 1; transition: transform .2s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 0 20px; color: #5C4D46; }
.acc-body p:last-child { margin-bottom: 0; }
.spec { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }

/* ---------- Корзина ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 36px; align-items: start; padding-bottom: 72px; }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); align-items: center; }
.cart-item .media { border-radius: 14px; }
.cart-item .ph svg { width: 56%; }
.ci-name { font-weight: 800; line-height: 1.35; display: block; margin-bottom: 4px; }
.ci-name:hover { color: var(--accent-dark); }
.ci-opts { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.ci-price { font-weight: 900; font-size: 18px; white-space: nowrap; }
.ci-remove { border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 0; }
.ci-remove:hover { color: var(--danger); }
.ci-remove .i { width: 18px; }

.panel { padding: 26px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.cart-side { position: sticky; top: 94px; display: flex; flex-direction: column; gap: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-total { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 16px; font-size: 20px; font-weight: 900; }
.free-bar { margin: 14px 0 4px; font-size: 14px; color: var(--muted); }
.free-bar .track { height: 8px; border-radius: 99px; background: var(--soft); margin-top: 8px; overflow: hidden; }
.free-bar .fill { height: 100%; background: var(--sage); border-radius: 99px; transition: width .3s; }

.checkout { margin-top: 28px; }
.checkout h2 { font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 800; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field.invalid .input { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 13px; display: none; }
.field.invalid .err { display: block; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.radio-card input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.radio-card:has(input:checked) { border-color: var(--accent); background: #FFF5F1; }
.radio-card .rc-text { flex: 1; }
.radio-card small { display: block; color: var(--muted); font-size: 13px; }
.radio-card b { white-space: nowrap; }

.success { text-align: center; max-width: 620px; margin: 0 auto; padding: 40px 0 80px; }
.success-icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--sage-soft); color: #4F7046; }
.success-icon .i { width: 40px; height: 40px; }
.order-text { text-align: left; white-space: pre-wrap; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 20px 0; max-height: 320px; overflow: auto; }

/* ---------- Текстовые страницы ---------- */
.prose { max-width: 820px; padding-bottom: 72px; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0 8px; }
.info-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card .i { color: var(--accent-dark); width: 28px; height: 28px; margin-bottom: 10px; }
.info-card b { display: block; font-size: 17px; margin-bottom: 4px; }
.info-card span { color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin: 16px 0 8px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--soft); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FFFBF8; }
.note { padding: 18px 20px; border-radius: var(--radius); background: #FBEFCB; color: #5A430A; margin: 20px 0; }
.faq .acc summary { font-size: 16px; }

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 72px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .feature-icon { background: var(--accent-soft); color: var(--accent-dark); }
.contact-item small { display: block; color: var(--muted); font-size: 14px; }
.contact-item a, .contact-item b { font-weight: 800; font-size: 17px; }
.map-box { min-height: 340px; border-radius: 28px; background: var(--sky); display: grid; place-items: center; text-align: center; padding: 24px; color: #3F6F8F; overflow: hidden; }
.map-box iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: #E9DDD2; padding: 56px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.site-footer h4 { font-family: var(--font); font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.site-footer a, .site-footer span { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; font-size: 15px; color: #CDBFB4; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; padding: 0; margin-bottom: 14px; font-size: 22px; }
.footer-brand p { color: #B3A398; max-width: 260px; }
.footer-contacts .i { width: 18px; height: 18px; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: 14px; color: #9D8D82; }

/* ---------- Уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 140%); opacity: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 18px; background: var(--ink); color: #fff;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.35);
  transition: transform .3s, opacity .3s; max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast a { color: var(--butter); font-weight: 800; white-space: nowrap; }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
  .header-in { gap: 20px; }
  .main-nav a { padding: 8px 10px; }
}

@media (max-width: 1180px) {
  .header-search { display: none; }
}

@media (max-width: 1100px) {
  .main-nav a { padding: 8px 8px; font-size: 15px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .burger { display: inline-grid; margin-left: -10px; }
  .main-nav, .header-search { display: none; }
  .header-in { gap: 8px; height: 64px; }
  .topbar-right span { display: none; }
  .hero-in { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; }
  .hero-visual { max-width: 420px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 110; width: min(360px, 90vw);
    background: var(--bg); padding: 20px; overflow-y: auto;
    transform: translateX(-100%); transition: transform .25s;
  }
  .filters.open { transform: none; box-shadow: 0 0 0 100vmax rgba(59,47,42,.4); }
  .filters-head { display: flex; justify-content: space-between; align-items: center; }
  .filters-head h3 { margin: 0; }
  .filters-toggle { display: inline-flex; }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .thumb { width: 72px; flex: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner { grid-template-columns: 1fr; text-align: left; padding: 28px; }
  .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .hero { padding-top: 16px; }
  .hero-in { border-radius: 28px; padding: 28px 20px; }
  .hero-text { font-size: 16px; }
  .hero-actions .btn { flex: 1; padding: 0 16px; }
  .topbar-in { justify-content: center; text-align: center; }
  .topbar-right { display: none; }
  .header-actions { gap: 4px; }
  .lang-switch button { min-width: 32px; height: 32px; padding: 0 7px; font-size: 12px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo-mark { width: 34px; height: 34px; }
  .features { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .card-title { font-size: 14px; }
  .price-now { font-size: 16px; }
  .media { border-radius: 16px; }
  .badges { top: 8px; left: 8px; }
  .badge { font-size: 11px; padding: 3px 8px; }
  .cat-tile { min-height: 130px; padding: 16px; }
  .cat-tile b { font-size: 15px; max-width: 80%; }
  .cat-tile svg { width: 80px; }
  .section-head { align-items: center; gap: 12px; }
  .section-head .link { font-size: 14px; }
  .toolbar .search { flex-basis: 100%; order: -1; }
  .toolbar select, .toolbar .filters-toggle { flex: 1; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 76px 1fr; gap: 14px; padding: 12px; }
  .ci-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .panel { padding: 20px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .spec { grid-template-columns: 1fr; gap: 2px; }
  .spec dd { margin-bottom: 8px; }
  .buy-row { flex-wrap: wrap; }
  .gallery-main .media { border-radius: 20px; }
}

@media (max-width: 380px) {
  .logo { font-size: 16px; gap: 6px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-mark .i { width: 16px; height: 16px; }
  .header-actions .icon-btn { width: 40px; }
}
