/* =====================================================
   RUS-STUDY.ru — CSS
   Design system from Claude Design 12.05.2026
   ===================================================== */

/* ───── CSS Variables ───── */
:root {
  --ink:        #15201F;
  --ink-2:      #2B3938;
  --muted:      #5E6B69;
  --muted-2:    #8A9694;
  --line:       #E2DDD2;
  --line-soft:  #EFEAE0;
  --paper:      #F5F1E8;
  --paper-2:    #EFE9DB;
  --paper-3:    #E8E2D2;
  --surface:    #FFFFFF;
  --teal:       #1F4845;
  --teal-2:     #2C5E5A;
  --teal-3:     #3F7A75;
  --teal-tint:  #DCE8E6;
  --ochre:      #B8732B;
  --ochre-2:    #D08A3F;
  --ochre-tint: #F2E4D0;
  --sage:       #7A8B5A;
  --sage-tint:  #E5E8D9;
  --rust:       #A14A2C;
  --ok:         #3F7A55;
  --ok-tint:    #DCEAD9;

  --r-xs: 2px; --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-xl: 14px;
  --sh-card: 0 1px 0 rgba(21,32,31,.04), 0 1px 2px rgba(21,32,31,.04);
  --sh-pop:  0 14px 36px -14px rgba(21,32,31,.22), 0 2px 6px rgba(21,32,31,.06);

  --ff-sans:  "IBM Plex Sans", system-ui, sans-serif;
  --ff-serif: "IBM Plex Serif", Georgia, serif;
  --ff-mono:  "JetBrains Mono", ui-monospace, monospace;

  /* Legacy aliases for inner-page compatibility */
  --green:  var(--teal);
  --black:  var(--ink);
  --white:  var(--surface);
  --beige:  var(--paper-2);
  --gray:   var(--paper);
  --gray2:  var(--line);
  --gray3:  var(--muted);
  --text:   var(--ink-2);
  --radius: var(--r-sm);
  --shadow: var(--sh-card);
}

/* ───── Reset ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ───── Layout ───── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.wrap.wide { max-width: 1920px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .container { padding: 0 16px; }
}

/* ───── Typography ───── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-serif);
  color: var(--ink);
  line-height: 1.3;
}
h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
@media (max-width: 1024px) { h1 { font-size: 36px; } h2 { font-size: 28px; } }
@media (max-width: 768px)  { h1 { font-size: 26px; } h2 { font-size: 22px; } }

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 24px;
  border-radius: var(--r-sm); font-weight: 600;
  cursor: pointer; border: none;
  transition: opacity .2s, background .2s, transform .1s;
  font-family: var(--ff-sans);
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--teal); color: var(--surface);
  padding: 13px 24px; border-radius: var(--r-sm);
  font: 500 15px var(--ff-sans);
}
.btn-primary:hover { background: var(--teal-2); opacity: 1; }

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(31,72,69,.3);
  color: var(--teal);
  padding: 12px 22px; border-radius: var(--r-sm);
  font: 500 15px var(--ff-sans);
}
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-tint); opacity: 1; }

.btn-dark {
  background: var(--ink); color: var(--surface);
  padding: 12px 24px; border-radius: var(--r-sm);
  font: 500 14px var(--ff-sans);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
}
.btn-dark:hover { background: var(--teal); opacity: 1; }

.btn-green  { background: var(--teal); color: var(--surface); }
.btn-ochre  { background: var(--ochre); color: var(--surface); }
.btn-outline { background: transparent; border: 2px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--surface); opacity: 1; }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ───── Topbar ───── */
.topbar {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.topbar .row { display: flex; align-items: center; gap: 24px; height: 38px; }
.topbar .left, .topbar .right { display: flex; gap: 22px; align-items: center; }
.topbar .right { margin-left: auto; }
.topbar a:hover { color: var(--ink); }
.topbar .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); display: inline-block; margin-right: 7px;
}

/* ───── Header ───── */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.header-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center; gap: 22px; height: 80px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--teal); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 2px 8px rgba(21,32,31,.22);
}
.logo .nm {
  display: flex; flex-direction: column; justify-content: center;
  font-weight: 700; font-size: 20px; letter-spacing: 0.02em;
  line-height: 1.05; text-transform: uppercase;
}
.logo .nm .word { display: flex; gap: .32em; }
.logo .nm .ru { color: var(--ochre); }
.logo small {
  display: block; font-size: 11px; color: var(--muted);
  font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px;
}

.cat-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 13px 20px; border-radius: var(--r-sm);
  font: 500 15px var(--ff-sans);
  white-space: nowrap;
}
.cat-btn:hover { background: var(--teal); }
.cat-btn .burger { display: flex; flex-direction: column; gap: 3px; }
.cat-btn .burger span { width: 14px; height: 2px; background: #fff; border-radius: 1px; }

.site-search {
  display: flex; align-items: center; height: 48px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 0 4px 0 18px;
  width: 100%;
}
.site-search:focus-within { border-color: var(--teal-3); }
.site-search svg { color: var(--muted-2); flex-shrink: 0; }
.site-search input {
  flex: 1; border: 0; outline: 0; background: transparent; padding: 0 12px;
  font: 500 15px var(--ff-sans); color: var(--ink);
}
.site-search input::placeholder { color: var(--muted-2); font-weight: 400; }
.site-search .find {
  background: var(--teal); color: #fff; height: 40px; padding: 0 22px;
  border-radius: var(--r-xs); font: 500 14px var(--ff-sans);
  border: none; cursor: pointer;
}
.site-search .find:hover { background: var(--teal-2); }
.site-search { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-pop);
  z-index: 1000; overflow: hidden;
}
.search-suggest__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; text-decoration: none; color: var(--ink);
  transition: background .12s;
}
.search-suggest__item:hover { background: var(--paper); }
.search-suggest__img {
  width: 40px; height: 40px; object-fit: contain; flex-shrink: 0;
  border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line);
}
.search-suggest__img-placeholder {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-sm);
  background: var(--paper-2); border: 1px solid var(--line);
}
.search-suggest__name { font-size: 13px; font-weight: 500; line-height: 1.35; flex: 1; }
.search-suggest__sku { font-size: 11px; color: var(--muted); white-space: nowrap; }
.search-suggest__all {
  display: block; text-align: center; padding: 8px; font-size: 13px;
  color: var(--teal); border-top: 1px solid var(--line); font-weight: 500;
}
.search-suggest__all:hover { background: var(--paper); }

/* Legacy header search compatibility */
.search { display: flex; align-items: center; height: 48px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0 4px 0 18px; }
.search:focus-within { border-color: var(--teal-3); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 0 12px;
  font: 500 15px var(--ff-sans); color: var(--ink); }
.search input::placeholder { color: var(--muted-2); font-weight: 400; }
.search .find { background: var(--teal); color: #fff; height: 40px; padding: 0 22px;
  border-radius: var(--r-xs); font: 500 14px var(--ff-sans); border: none; cursor: pointer; }

.h-actions { display: flex; align-items: center; gap: 18px; }
.h-phone { text-align: right; line-height: 1.3; }
.h-phone .num { font: 600 17px var(--ff-sans); letter-spacing: -0.01em; color: var(--ink); }
.h-phone .num a { color: inherit; }
.h-phone .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.h-email {
  display: flex; align-items: center; justify-content: flex-end; gap: 5px;
  font-size: 16px; font-weight: 600; color: var(--teal);
  text-decoration: none; margin-top: 4px;
}
.h-email:hover { text-decoration: underline; }
.h-email svg { flex-shrink: 0; }
.icon-btn {
  width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--paper-2);
  display: grid; place-items: center; color: var(--ink-2); position: relative;
}
.icon-btn:hover { background: var(--paper-3); }
.icon-btn .cnt {
  position: absolute; top: -4px; right: -4px;
  background: var(--ochre); color: #fff;
  font: 600 10px var(--ff-mono);
  padding: 1px 5px; border-radius: 8px; line-height: 1.4;
}

/* Mobile burger */
.burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--ink); display: block; border-radius: 1px; }

/* ───── HERO ───── */
.hero { padding: 48px 0 32px; position: relative; overflow: hidden; }

/* Full-carousel: one block, slides = text + image */
.hero-carousel {
  position: relative;
  background: linear-gradient(160deg, var(--paper-2) 0%, var(--paper-3) 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: 560px;
}
.hero-carousel::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(31,72,69,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31,72,69,.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hc-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); height: 100%; }
.hc-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px; padding: 48px 56px;
  align-items: center; position: relative; z-index: 1;
}
@media (max-width: 980px) { .hc-slide { grid-template-columns: 1fr; padding: 36px 28px; gap: 24px; } }
.hc-text { display: flex; flex-direction: column; }
.hc-num { font: 500 12px var(--ff-mono); color: var(--muted); letter-spacing: .16em; margin-bottom: 14px; }
.hc-num b { color: var(--ink); font-weight: 600; }
.hc-cat {
  display: inline-flex; align-self: flex-start;
  padding: 5px 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  font: 600 11px var(--ff-mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px;
}
.hc-slogan {
  font-family: var(--ff-serif); font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 18px;
}
.hc-slogan em { font-style: italic; font-weight: 400; color: var(--teal); }
.hc-desc { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 480px; margin: 0 0 28px; }
.hc-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-img {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  min-height: 380px;
}
.hc-img img, .hc-img svg { width: 100%; max-width: 560px; height: auto; border-radius: var(--r-md); filter: drop-shadow(0 14px 28px rgba(21,32,31,.14)); }
.hc-controls {
  position: absolute; bottom: 24px; left: 56px; right: 56px;
  display: flex; align-items: center; gap: 18px; z-index: 5;
}
@media (max-width: 720px) { .hc-controls { left: 24px; right: 24px; bottom: 18px; } }
.hc-dots { display: flex; gap: 8px; flex: 1; }
.hc-dot {
  width: 28px; height: 3px;
  background: rgba(21,32,31,.15); border-radius: 2px;
  cursor: pointer; border: none;
  transition: background .2s, width .25s;
}
.hc-dot.active { background: var(--teal); width: 44px; }
.hc-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); display: grid; place-items: center;
  cursor: pointer; transition: border-color .15s, transform .12s;
}
.hc-arrow:hover { border-color: var(--ink-2); }
.hc-arrow:active { transform: scale(.95); }
.hc-counter { font: 500 12px var(--ff-mono); color: var(--muted); letter-spacing: .04em; min-width: 48px; text-align: center; }
.hc-counter b { color: var(--ink); font-weight: 600; }

/* Hero placeholder (no slides) */
.hc-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 400px; gap: 10px; color: var(--muted);
}
.hc-empty svg { color: var(--teal); opacity: .55; }
.hc-empty span { font: 600 13px var(--ff-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.hc-empty small { font: 500 11px var(--ff-mono); letter-spacing: .06em; color: var(--muted); }

/* ───── Trust strip ───── */
.trust-strip {
  margin-top: 32px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 20px 28px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 24px; align-items: center;
}
@media (max-width: 980px) { .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 480px)  { .trust-strip { grid-template-columns: 1fr; } }

.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item .ic {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--paper-2); display: grid; place-items: center;
  color: var(--teal); flex-shrink: 0;
}
.trust-item b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.trust-item span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.3; }

/* ───── Section base ───── */
section.block { padding: 80px 0; }
@media (max-width: 720px) { section.block { padding: 56px 0; } }

.sec-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.sec-kicker {
  font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .16em; font-weight: 500; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.sec-kicker::before { content: ""; width: 18px; height: 1px; background: var(--ochre); }
.sec-title {
  font-family: var(--ff-serif); font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.12;
  margin: 0; max-width: 780px;
}
.sec-title em { font-style: italic; font-weight: 400; color: var(--teal); }
.sec-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-weight: 500; font-size: 15px;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
}
.sec-link:hover { border-bottom-color: var(--teal); }

/* ───── Спецпредложения ───── */
.specials {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px; grid-auto-rows: 200px;
}
@media (max-width: 820px) { .specials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .specials { grid-template-columns: 1fr; } }

.spc {
  border-radius: var(--r-lg); padding: 26px; color: #fff;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.spc:hover { transform: translateY(-2px); box-shadow: var(--sh-pop); }
.spc h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; max-width: 340px; font-family: var(--ff-sans); }
.spc.large { grid-row: span 2; padding: 36px; }
.spc.large h3 { font-size: 30px; max-width: 420px; }
.spc .tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18); padding: 5px 10px;
  border-radius: 100px; font: 600 11px var(--ff-mono);
  letter-spacing: .04em; text-transform: uppercase;
  align-self: flex-start; backdrop-filter: blur(4px);
}
.spc .arrow {
  align-self: flex-end;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
}
.spc-1 { background: var(--teal); }
.spc-1::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(208,138,63,.35), transparent 70%);
}
.spc-2 { background: var(--ochre); }
.spc-3 { background: var(--ink); }
.spc-4 { background: var(--rust); }
.spc-5 { background: var(--sage); color: var(--ink); }
.spc-5 .tag { background: rgba(21,32,31,.12); color: var(--ink); }
.spc-5 .arrow { background: var(--ink); color: #fff; }

/* ───── Новейшие разработки (featured products) ───── */
.featured-list { display: grid; gap: 16px; }
.feat {
  display: grid; grid-template-columns: 280px 1fr auto; gap: 32px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px; align-items: center;
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none; color: inherit;
}
.feat:hover { border-color: var(--teal-3); box-shadow: var(--sh-pop); }
@media (max-width: 780px) { .feat { grid-template-columns: 1fr; gap: 18px; } }

.feat .ph {
  aspect-ratio: 4/3;
  background: linear-gradient(140deg, var(--paper-2), var(--paper-3));
  border-radius: var(--r-md); overflow: hidden;
  display: grid; place-items: center; position: relative;
}
.feat .ph img { width: 100%; height: 100%; object-fit: contain; }
.feat .ph .badge-abs {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: #fff;
  font: 600 10px var(--ff-mono); letter-spacing: .06em;
  padding: 4px 8px; border-radius: 4px;
}
.feat-text .meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.feat-text h3 { margin: 0 0 10px; font-family: var(--ff-serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.feat-text p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 560px; }
.feat-text .specs { display: flex; gap: 10px; flex-wrap: wrap; }
.feat-text .specs .pill {
  font: 500 12px var(--ff-mono); padding: 5px 10px;
  background: var(--paper-2); border-radius: 4px; color: var(--ink-2);
}
.feat .price { text-align: right; min-width: 160px; }
.feat .price .v { font-family: var(--ff-serif); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); line-height: 1; }
.feat .price .v small { font: 400 14px var(--ff-sans); color: var(--muted); margin-left: 4px; }
.feat .price .more {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff;
  padding: 10px 16px; border-radius: var(--r-xs); font: 500 13px var(--ff-sans);
}
.feat .price .more:hover { background: var(--teal-2); }

/* ───── Категории (10 карточек) ───── */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 980px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .cats { grid-template-columns: repeat(2, 1fr); } }

.cat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px 18px 18px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 170px; position: relative;
  transition: border-color .15s, transform .15s;
  text-decoration: none; color: inherit;
}
.cat:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.cat .num {
  font: 500 11px var(--ff-mono); color: var(--muted-2); letter-spacing: .04em;
  position: absolute; top: 14px; right: 16px;
}
.cat .ic {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--teal-tint); color: var(--teal);
  display: grid; place-items: center;
}
.cat .ic.alt  { background: var(--ochre-tint); color: var(--ochre); }
.cat .ic.alt2 { background: var(--sage-tint);  color: var(--sage); }
.cat .ic.alt3 { background: var(--paper-3);    color: var(--ink-2); }
.cat .nm { font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; }
.cat .cnt { margin-top: auto; font-size: 12px; color: var(--muted); }
.cat .cnt b { color: var(--teal); font-weight: 600; }

/* ───── Catalog categories page ───── */
.cat-index-header { margin: 0 0 24px; }
.cat-index-header h1 { margin: 0; }
.cat-index-desc { margin: 10px 0 0; color: var(--muted); font-size: 15px; max-width: 600px; }

/* Мобильный список категорий — скрыт на десктопе */
.mob-cat-nav    { display: none; }
/* Прокручиваемая полоса контактов/слогана — скрыта на десктопе */
.mob-scroll-info { display: none; }

.cat-list {
  list-style: none; margin: 0 0 48px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}
.cat-list li + li { border-top: 1px solid var(--line); }

.cat-list__item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  text-decoration: none; color: inherit;
  transition: background .12s;
}
.cat-list__item:hover { background: var(--paper-2); }
.cat-list__item:hover .cat-list__arrow { color: var(--teal); }

.cat-list__name {
  flex: 1; font-size: 16px; font-weight: 600; line-height: 1.3;
  color: var(--ink);
}
.cat-list__meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.cat-list__subs { color: var(--teal); font-weight: 500; }
.cat-list__dot  { color: var(--line-2, #ccc); }
.cat-list__arrow { flex-shrink: 0; color: var(--muted-2); transition: color .12s; }

/* ───── Testimonials ───── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

.quote {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px 26px;
  display: flex; flex-direction: column;
}
.quote .mark {
  font-family: var(--ff-serif); font-size: 44px; line-height: 1;
  color: var(--ochre); margin-bottom: 8px; font-weight: 500;
}
.quote p { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.quote .who {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px; border-top: 1px dashed var(--line);
}
.quote .av {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper-2); color: var(--teal);
  display: grid; place-items: center; font: 600 14px var(--ff-sans);
  flex-shrink: 0; overflow: hidden;
}
.quote .av img { width: 100%; height: 100%; object-fit: cover; }
.quote .who b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.quote .who span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.3; }

/* ───── News (homepage) ───── */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .news { grid-template-columns: 1fr; } }

.news-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .15s;
  text-decoration: none; color: inherit;
}
.news-item:hover { border-color: var(--ink-2); }
.news-item .img {
  aspect-ratio: 16/10;
  background: linear-gradient(140deg, var(--paper-2), var(--paper-3));
  position: relative; overflow: hidden;
}
.news-item .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-item .img .tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.94); color: var(--ink);
  padding: 5px 10px; border-radius: 4px;
  font: 600 11px var(--ff-mono); letter-spacing: .04em;
}
.news-item .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-item .date { font: 500 12px var(--ff-mono); color: var(--muted); }
.news-item h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; font-family: var(--ff-sans); }
.news-item .read { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 500; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }

/* ───── Footer ───── */
footer { margin-top: 80px; background: var(--ink); color: #C5CCC9; padding: 64px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin: 0 0 16px; font-family: var(--ff-sans); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer ul a { font-size: 14px; color: rgba(197,204,201,.7); }
footer ul a:hover { color: #fff; }
footer .brand { font: 700 26px var(--ff-sans); color: #fff; margin-bottom: 12px; letter-spacing: -0.01em; }
footer .brand .ru { color: var(--ochre-2); }
footer .desc { font-size: 14px; line-height: 1.55; color: rgba(197,204,201,.65); max-width: 340px; margin-bottom: 18px; }
footer .gisp {
  display: inline-flex; gap: 10px; align-items: center;
  padding: 10px 14px; background: rgba(255,255,255,.06);
  border-radius: 8px; font: 500 12px var(--ff-mono);
  color: rgba(255,255,255,.85); letter-spacing: .04em;
}
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(197,204,201,.5);
}
.foot-bottom a { color: rgba(197,204,201,.5); }
.foot-bottom a:hover { color: #fff; }

/* ───── Хлебные крошки ───── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); flex-wrap: wrap; padding: 12px 0;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--ink); }
.breadcrumb span + span::before { content: " / "; color: var(--muted-2); }

/* ───── Page hero (inner pages) ───── */
.page-hero { background: var(--teal); padding: 40px 0 36px; color: #fff; }
.page-hero--compact { padding: 24px 0; }
.page-hero__title { font-size: 36px; font-weight: 700; color: #fff; margin: 8px 0 6px; line-height: 1.2; font-family: var(--ff-serif); }
.page-hero__sub { font-size: 15px; color: rgba(255,255,255,.65); margin: 0; }
.page-hero .breadcrumb { color: rgba(255,255,255,.55); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a:hover { color: var(--ochre-2); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.9); }
.page-hero .breadcrumb span + span::before { color: rgba(255,255,255,.3); }

/* ───── Каталог ───── */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding: 24px 0 48px; }

.sidebar__block { background: var(--paper); border-radius: var(--r-md); padding: 16px; margin-bottom: 16px; border: 1px solid var(--line); }
.sidebar__title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--teal); margin-bottom: 12px; font-family: var(--ff-sans); }
.sidebar__search input { width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); outline: none; font-family: var(--ff-sans); }
.sidebar__search input:focus { border-color: var(--teal); }

.cat-tree__link { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; }
.cat-tree__link:hover, .cat-tree__link.active { background: var(--teal); color: #fff; }
.cat-tree__link .count { font-size: 11px; background: var(--line); border-radius: 20px; padding: 1px 6px; color: var(--muted); }
.cat-tree__link.active .count { background: rgba(255,255,255,.3); color: #fff; }
.cat-tree__sub { padding-left: 12px; border-left: 2px solid var(--line); margin: 4px 0 4px 8px; }
.cat-tree__sub .cat-tree__link { font-size: 13px; padding: 4px 8px; }

.filter-price { display: flex; gap: 8px; align-items: center; }
.filter-price input { width: 80px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); outline: none; text-align: center; font-family: var(--ff-sans); }
.filter-price input:focus { border-color: var(--teal); }
.filter-price span { color: var(--muted); font-size: 13px; }
.filter-check label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.filter-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--teal); }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.category-description { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 40px; margin-bottom: 24px; max-width: 760px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.catalog-toolbar__count { color: var(--muted); font-size: 14px; }
.catalog-toolbar__sort select { padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); outline: none; cursor: pointer; font-family: var(--ff-sans); }
.catalog-toolbar__sort select:focus { border-color: var(--teal); }

/* Сетка товаров */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }

/* Карточка товара */
.product-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}
.product-card:hover { box-shadow: var(--sh-pop); transform: translateY(-2px); }
.product-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--surface); position: relative; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.product-card__img .no-img { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 13px; }
.product-card__badge { position: absolute; top: 8px; left: 8px; background: var(--ochre); color: #fff; font-size: 11px; font-weight: bold; padding: 2px 8px; border-radius: 20px; }
.product-card__body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-card__sku { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.product-card__name {
  font-size: 14px; font-weight: 600; color: var(--ink);
  line-height: 1.4; flex: 1; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--ff-sans);
}
.product-card__name:hover { color: var(--teal); }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-card__price { font-size: 18px; font-weight: 700; color: var(--teal); font-family: var(--ff-serif); }
.product-card__price.request { font-size: 13px; color: var(--muted); font-weight: normal; font-family: var(--ff-sans); }
.product-card__stock { font-size: 11px; }
.product-card__stock.in { color: var(--ok); }
.product-card__stock.out { color: var(--rust); }
.product-card__cart {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--teal); border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; flex-shrink: 0; transition: background .2s, color .2s;
}
.product-card__cart:hover { background: var(--teal-tint); color: var(--teal); border-color: var(--teal-3); }

/* Пагинация */
.pagination { display: flex; gap: 4px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; padding: 0 8px; }
.pagination a:hover { border-color: var(--teal); color: var(--teal); }
.pagination .active span { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.pagination .disabled span { color: var(--line); cursor: default; }
.pagination-wrap { margin-top: 8px; }

/* ───── Карточка товара (детальная) ───── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 32px 0 48px; }
.product-gallery__main {
  aspect-ratio: 1; background: var(--paper); border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.product-gallery__main .no-img { color: var(--muted); font-size: 14px; }
.product-gallery__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-gallery__thumb {
  width: 72px; height: 72px; border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden; cursor: pointer; background: var(--paper); flex-shrink: 0;
}
.product-gallery__thumb:hover, .product-gallery__thumb.active { border-color: var(--teal); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.product-info__badge { display: inline-block; background: var(--ochre); color: #fff; font-size: 11px; font-weight: bold; padding: 2px 10px; border-radius: 20px; margin-bottom: 10px; }
.product-info__sku { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.product-info__name { font-size: 26px; font-family: var(--ff-serif); color: var(--ink); line-height: 1.3; margin-bottom: 12px; }
.product-info__category { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.product-info__category a { color: var(--teal); }
.product-info__category a:hover { text-decoration: underline; }
.product-info__stock { font-size: 14px; margin-bottom: 20px; font-weight: 600; }
.product-info__stock.in { color: var(--ok); }
.product-info__stock.out { color: var(--rust); }
.product-price-block { background: var(--paper); border-radius: var(--r-sm); padding: 20px; margin-bottom: 20px; border: 1px solid var(--line); }
.product-price-block__price { font-size: 32px; font-weight: 700; color: var(--teal); line-height: 1.2; font-family: var(--ff-serif); }
.product-price-block__price.request { font-size: 18px; color: var(--muted); font-weight: normal; font-family: var(--ff-sans); }
.product-price-block__disclaimer { font-size: 12px; color: var(--muted-2); margin-top: 8px; }
.product-price-block__actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.product-info__short-desc { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.product-desc { padding: 36px 0; border-top: 1px solid var(--line); }
.product-desc__title { font-size: 22px; font-family: var(--ff-serif); margin-bottom: 20px; }
.product-desc__content { font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.product-desc__content p { margin-bottom: 12px; }
.product-desc__content ul, .product-desc__content ol { padding-left: 24px; margin-bottom: 12px; }
.product-desc__content li { margin-bottom: 6px; }
.product-desc__content h2 { margin: 24px 0 10px; font-size: 17px; font-weight: 700; color: var(--ink); }
.product-desc__content h3, .product-desc__content h4 { margin: 20px 0 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.desc-section-title { margin: 28px 0 10px; padding: 6px 14px; font-size: 15px; font-weight: 700; color: var(--teal); background: var(--paper, #F5F1E8); border-left: 3px solid var(--teal); border-radius: 0 4px 4px 0; }
.desc-section-title:first-child { margin-top: 0; }
.product-desc__content table { border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.product-desc__content table th { background: var(--paper, #F5F1E8); color: var(--ink); font-weight: 600; text-align: left; padding: 10px 16px; border: 1px solid var(--line); white-space: nowrap; }
.product-desc__content table td { padding: 10px 16px; border: 1px solid var(--line); color: var(--ink-2); text-align: center; }
.size-table-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 24px 0 10px; }
.size-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 24px; }
.related { padding: 36px 0; border-top: 1px solid var(--line); }
.related__title { font-size: 22px; font-family: var(--ff-serif); margin-bottom: 20px; }
@media (min-width: 1025px) { .related .products-grid { grid-template-columns: repeat(4, 1fr); } }

/* ───── Корзина ───── */
.cart-page { padding: 32px 0 48px; }
.cart-page h1 { margin-bottom: 24px; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 10px 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); border-bottom: 2px solid var(--line); font-family: var(--ff-sans); }
.cart-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-item__img { width: 72px; height: 72px; object-fit: contain; background: var(--paper); border-radius: var(--r-sm); padding: 4px; border: 1px solid var(--line); display: block; }
.cart-item__img-placeholder { width: 72px; height: 72px; background: var(--paper); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; border: 1px solid var(--line); text-align: center; }
.cart-item__name { font-weight: 600; font-size: 14px; color: var(--ink); display: block; margin-bottom: 4px; }
.cart-item__name:hover { color: var(--teal); }
.cart-item__sku { font-size: 12px; color: var(--muted); }
.cart-item__price { font-weight: 600; color: var(--teal); white-space: nowrap; }
.cart-item__price.request { color: var(--muted); font-size: 13px; font-weight: normal; }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty__btn { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.cart-qty__btn:hover { border-color: var(--teal); color: var(--teal); }
.cart-qty__val { min-width: 24px; text-align: center; font-weight: 600; }
.cart-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px 8px; }
.cart-remove:hover { color: var(--rust); }
.cart-sidebar { position: sticky; top: 90px; }
.cart-summary { background: var(--paper); border-radius: var(--r-sm); padding: 24px; margin-bottom: 20px; border: 1px solid var(--line); }
.cart-summary__title { font-size: 16px; font-weight: 700; margin-bottom: 16px; font-family: var(--ff-sans); }
.cart-summary__row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: var(--muted); }
.cart-summary__total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 700; color: var(--teal); padding-top: 12px; border-top: 2px solid var(--line); margin-top: 12px; }
.order-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 24px; }
.order-form__title { font-size: 18px; font-family: var(--ff-serif); margin-bottom: 8px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); outline: none; font-size: 14px; font-family: var(--ff-sans); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { min-height: 72px; resize: vertical; }
.form-error { color: var(--rust); font-size: 12px; margin-top: 4px; }
.form-required { color: var(--ochre); }
.alert-success { background: var(--ok-tint); color: var(--ok); padding: 16px 20px; border-radius: var(--r-sm); margin-bottom: 24px; font-size: 15px; }

/* ───── Поиск ───── */
.search-page { padding: 32px 0 48px; }
.search-page__header { margin-bottom: 32px; }
.search-page__title { font-size: 28px; font-family: var(--ff-serif); margin-bottom: 16px; }
.search-page__count { font-size: 14px; color: var(--muted); margin-top: 10px; }
.search-form { display: flex; max-width: 560px; }
.search-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-right: none; border-radius: var(--r-sm) 0 0 var(--r-sm); outline: none; font-size: 15px; font-family: var(--ff-sans); }
.search-form input:focus { border-color: var(--teal); }
.search-form button { padding: 11px 22px; background: var(--teal); color: #fff; border: none; border-radius: 0 var(--r-sm) var(--r-sm) 0; cursor: pointer; font-size: 14px; font-weight: 600; font-family: var(--ff-sans); }
.search-form button:hover { background: var(--ochre); }

/* ───── Пустое состояние ───── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { font-family: var(--ff-serif); margin-bottom: 10px; color: var(--ink); }

/* ───── Статичные страницы ───── */
.static-layout { max-width: 860px; margin: 0 auto; padding: 48px 0 64px; display: flex; flex-direction: column; gap: 40px; }
.static-content { font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.static-content h3 { font-size: 18px; font-weight: 700; color: var(--teal); margin: 24px 0 8px; font-family: var(--ff-serif); }
.static-content h3:first-child { margin-top: 0; }
.static-content p { margin-bottom: 12px; }
.static-content strong { color: var(--ink); }

.static-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--teal); border-radius: var(--r-xl); padding: 28px 32px; color: #fff;
}
.static-cta__text h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; font-family: var(--ff-sans); }
.static-cta__text p { font-size: 14px; color: rgba(255,255,255,.65); margin: 0; }
.static-cta__actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.btn-main { display: inline-block; padding: 10px 22px; background: var(--ochre); color: #fff; border-radius: var(--r-md); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: opacity .15s; border: 2px solid transparent; }
.btn-main:hover { opacity: .88; }
.btn-main--outline { background: transparent; border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.85); }
.btn-main--outline:hover { border-color: var(--ochre-2); color: var(--ochre-2); opacity: 1; }

/* О компании */
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-stat { background: var(--surface); border-radius: var(--r-md); padding: 20px; text-align: center; border: 1px solid var(--line); }
.about-stat__num { font-size: 36px; font-weight: 800; color: var(--teal); line-height: 1; font-family: var(--ff-serif); }
.about-stat__label { font-size: 12px; color: var(--muted); margin-top: 4px; }

.about-advantages h2 { font-size: 22px; font-weight: 700; color: var(--teal); margin-bottom: 20px; font-family: var(--ff-serif); }
.about-adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-adv-card { background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); padding: 22px; }
.about-adv-card__icon { margin-bottom: 12px; }
.about-adv-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-family: var(--ff-sans); }
.about-adv-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Доставка */
.delivery-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.delivery-method { background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); padding: 22px; text-align: center; }
.delivery-method__icon { margin-bottom: 14px; }
.delivery-method h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-family: var(--ff-sans); }
.delivery-method p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

.delivery-table-wrap h2 { font-size: 20px; font-weight: 700; color: var(--teal); margin-bottom: 14px; font-family: var(--ff-serif); }
.delivery-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.delivery-table th { background: var(--paper-2); padding: 10px 14px; text-align: left; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid var(--line); }
.delivery-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.delivery-table tr:last-child td { border-bottom: none; }
.delivery-table tr:hover td { background: var(--paper); }
.delivery-table__note { font-size: 12px; color: var(--muted-2); margin-top: 8px; margin-bottom: 0; }

/* Оплата */
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.payment-method { background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); padding: 22px; text-align: center; }
.payment-method__icon { margin-bottom: 14px; }
.payment-method h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-family: var(--ff-sans); }
.payment-method p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

.requisites-block h2 { font-size: 20px; font-weight: 700; color: var(--teal); margin-bottom: 14px; font-family: var(--ff-serif); }
.requisites-grid { background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.requisites-grid div { display: flex; gap: 8px; }
.requisites-grid span { color: var(--muted); min-width: 220px; flex-shrink: 0; }
.requisites-note { font-size: 12px; color: var(--muted-2); margin-top: 10px; margin-bottom: 0; }

/* Контакты */
.contacts-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px 0 64px; }
.contacts-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; align-items: flex-start; gap: 14px; background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); padding: 16px 18px; }
.contact-card__icon { flex-shrink: 0; margin-top: 2px; }
.contact-card__label { font-size: 12px; color: var(--muted-2); margin-bottom: 2px; }
.contact-card__value { display: block; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
a.contact-card__value:hover { color: var(--teal); }
.contact-card__value--text { font-weight: 400; font-size: 14px; line-height: 1.5; }
.contact-card__note { font-size: 12px; color: var(--muted-2); margin-top: 2px; }

.contact-form-wrap h2 { font-size: 22px; font-weight: 700; color: var(--teal); margin-bottom: 8px; font-family: var(--ff-serif); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.form-field input, .form-field textarea { padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; color: var(--ink); font-family: var(--ff-sans); transition: border-color .15s; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--teal); }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field__error { font-size: 12px; color: var(--rust); }

/* ───── Список новостей ───── */
.news-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.news-card-full { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.news-card-full:hover { box-shadow: var(--sh-pop); }
.news-card-full__img-wrap { display: block; height: 200px; overflow: hidden; background: #f7f8fa; display: flex; align-items: center; justify-content: center; }
.news-card-full__img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .3s; }
.news-card-full:hover .news-card-full__img-wrap img { transform: scale(1.04); }
.news-card-full__img-wrap--placeholder { display: flex; align-items: center; justify-content: center; background: var(--paper-3); }
.news-card-full__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-full__tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ochre); background: var(--ochre-tint); padding: 2px 8px; border-radius: 20px; align-self: flex-start; }
.news-card-full__title { font-size: 16px; font-weight: 700; line-height: 1.4; margin: 0; font-family: var(--ff-sans); }
.news-card-full__title a { color: var(--ink); text-decoration: none; }
.news-card-full__title a:hover { color: var(--teal); }
.news-card-full__excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.news-card-full__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.news-card-full__date { font-size: 12px; color: var(--muted-2); }
.news-card-full__link { font-size: 13px; font-weight: 600; color: var(--teal); text-decoration: none; }
.news-card-full__link:hover { color: var(--ochre); }

/* Детальная новость */
.news-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.news-article__tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ochre); background: var(--ochre-tint); padding: 2px 10px; border-radius: 20px; margin-bottom: 12px; }
.news-article__title { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: 10px; font-family: var(--ff-serif); }
.news-article__meta { font-size: 13px; color: var(--muted-2); margin-bottom: 24px; }
.news-article__cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 28px; }
.news-article__cover img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.news-article__body { font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.news-article__body h2, .news-article__body h3 { font-weight: 700; color: var(--teal); margin: 24px 0 8px; font-family: var(--ff-serif); }
.news-article__body h2 { font-size: 20px; }
.news-article__body h3 { font-size: 17px; }
.news-article__body p { margin-bottom: 14px; }
.news-article__back { margin-top: 32px; }

.news-sidebar { position: sticky; top: 80px; }
.news-sidebar__title { font-size: 16px; font-weight: 700; color: var(--teal); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); font-family: var(--ff-sans); }
.news-sidebar__item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.news-sidebar__item:last-child { border-bottom: none; }
.news-sidebar__img { width: 60px; height: 48px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.news-sidebar__img--placeholder { background: var(--paper-3); }
.news-sidebar__item-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 3px; }
.news-sidebar__item:hover .news-sidebar__item-title { color: var(--teal); }
.news-sidebar__item-date { font-size: 11px; color: var(--muted-2); }

/* ───── Cart Popup ───── */
.cart-popup-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.cart-popup {
  background: var(--paper); border-radius: var(--r-lg);
  padding: 40px 36px; max-width: 380px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.cart-popup__icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: #e8f4f0; color: #1F4845;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.cart-popup__title {
  font-size: 20px; font-weight: 700; color: var(--ink);
  margin: 0 0 24px; font-family: var(--ff-serif);
}
.cart-popup__actions {
  display: flex; flex-direction: column; gap: 10px;
}
.cart-popup__actions .btn { width: 100%; justify-content: center; }

/* ───── Responsive ───── */

/* Контакты вверху /forma-yuid — только мобильные */
.yuid-mob-contacts { display: none; }
@media (max-width: 640px) {
  .yuid-mob-contacts {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    padding: 8px 16px;
    background: #1565c0;
  }
  .yuid-mob-contacts a {
    display: flex; align-items: center; gap: 5px;
    color: rgba(255,255,255,.92); text-decoration: none;
    font-size: 12px; font-weight: 600;
  }
  .yuid-mob-contacts a:hover { color: #fff; }
  .yuid-mob-contacts__sep { color: rgba(255,255,255,.35); font-size: 14px; }
}

/* mobile-bar и mob-header — скрыты на десктопе */
.mobile-bar { display: none; }
.mob-header  { display: none; }

@media (max-width: 1100px) {
  .header-row { grid-template-columns: auto 1fr auto; }
  .cat-btn { display: none; }
}
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { gap: 24px; }
  .cart-layout { grid-template-columns: 1fr 320px; gap: 20px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .about-adv-grid { grid-template-columns: 1fr; }
  .delivery-methods { grid-template-columns: 1fr 1fr; }
  .payment-methods { grid-template-columns: 1fr 1fr; }
  .contacts-layout { grid-template-columns: 1fr; }
  .news-detail-layout { grid-template-columns: 1fr; }
  .news-sidebar { position: static; margin-top: 32px; }
  .static-cta { flex-direction: column; align-items: flex-start; }
  .requisites-grid div { flex-direction: column; gap: 2px; }
  .requisites-grid span { min-width: auto; }
}
@media (max-width: 820px) {
  .topbar .row { height: auto; padding: 6px 0; flex-wrap: wrap; gap: 8px; }
  .topbar .left { display: none; }
  .topbar .right { margin-left: 0; gap: 14px; flex-wrap: wrap; }
  .header-row { grid-template-columns: auto 1fr auto; height: 64px; gap: 14px; }
  .h-phone { display: none; }
}
@media (max-width: 768px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: block; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-detail { grid-template-columns: 1fr; }
  .product-info__name { font-size: 20px; }
  .product-price-block__price { font-size: 26px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-sidebar { position: static; }
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
  .news-list-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  /* Скрыть десктопную шапку и топбар */
  .topbar      { display: none; }
  header.site  { display: none; }

  /* ─── Мобильная шапка ─── */
  .mob-header {
    display: block;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 30;
  }

  /* Верхняя строка: лого + иконки */
  .mob-hdr-top {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
  }
  .mob-hdr-top .logo { flex: 1; min-width: 0; }
  .mob-hdr-top .logo .mark { width: 38px; height: 38px; }
  .mob-hdr-top .logo .mark svg { width: 32px; height: 32px; }
  .mob-hdr-top .logo .nm { font-size: 16px; }
  .mob-hdr-top .logo small { display: block; }

  /* Иконки: корзина + гамбургер */
  .mob-hdr-icons { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

  /* Гамбургер-кнопка */
  .mob-menu-toggle {
    background: none; border: none;
    padding: 8px 6px; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px;
    border-radius: 6px;
  }
  .mob-menu-toggle span {
    width: 20px; height: 2px;
    background: var(--ink); border-radius: 1px; display: block;
    transition: transform .2s, opacity .2s;
  }
  .mob-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mob-menu-toggle.open span:nth-child(2) { opacity: 0; }
  .mob-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Выпадающее меню */
  .mob-nav { display: none; background: var(--teal); }
  .mob-nav.open { display: block; }
  .mob-nav a {
    display: block; padding: 13px 20px;
    color: rgba(255,255,255,.92); font-size: 15px; font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none;
  }
  .mob-nav a:hover { background: rgba(255,255,255,.08); }

  /* Тело шапки: только поиск + строка каталог+телефон */
  .mob-hdr-body {
    display: flex; flex-direction: column; gap: 10px;
    padding: 10px 16px 12px;
    border-top: 1px solid var(--line);
  }

  /* Строка поиска */
  .mob-search-form {
    display: flex; align-items: center; gap: 8px;
    border: 1.5px solid var(--line); border-radius: 8px;
    padding: 0 10px; height: 42px; background: var(--paper);
  }
  .mob-search-form svg { color: var(--muted-2); flex-shrink: 0; }
  .mob-search-form input {
    flex: 1; border: none; background: transparent;
    font-size: 14px; color: var(--ink); outline: none;
  }
  .mob-search-form input::placeholder { color: var(--muted-2); }
  .mob-search-form button {
    padding: 6px 12px; background: var(--teal); color: #fff;
    border: none; border-radius: 6px; font-size: 13px;
    font-weight: 600; cursor: pointer; white-space: nowrap;
  }

  /* Строка: кнопка Каталог + иконка телефона */
  .mob-cat-row { display: flex; align-items: center; gap: 8px; }
  .mob-cat-link {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; background: var(--ink); color: #fff;
    border-radius: 8px; font-weight: 700; font-size: 15px;
    text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  }
  .mob-cat-link:hover { background: var(--teal); }
  .mob-phone-btn {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; flex-shrink: 0;
    background: var(--teal-tint); color: var(--teal);
    border-radius: 8px; text-decoration: none;
    transition: background .15s, color .15s;
  }
  .mob-phone-btn:hover { background: var(--teal); color: #fff; }

  /* Прокручиваемая полоса: контакты + слоган */
  .mob-scroll-info {
    display: block;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 12px;
  }
  .mob-contacts-strip {
    display: flex; justify-content: center; gap: 20px; padding: 2px 0 8px;
  }
  .mob-contacts-strip a {
    display: flex; align-items: center; gap: 6px;
    color: var(--teal); font-size: 13px; font-weight: 600; text-decoration: none;
  }
  .mob-slogan {
    text-align: center; font-size: 14px; color: var(--muted);
    font-weight: 500; line-height: 1.4;
  }

  /* Мобильный каталог: показать список категорий, скрыть товары */
  .mob-cat-nav { display: block; margin-bottom: 20px; }
  .catalog-layout.mob-hide-on-list { display: none; }

  /* Hero-карусель — скрыть */
  .hero-carousel { display: none; }
  .hero { padding: 16px 0 0; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Прочие страницы */
  .page-hero__title { font-size: 26px; }
  .delivery-methods { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .news-article__title { font-size: 22px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr !important; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr; }
}
