/* =========================================================
   АДС · АвтоДеталиСервис
   Дизайн-система v1
   ========================================================= */

/* ----- 1. Custom Properties ----- */
:root {
  /* Palette */
  --ink:        #0d1117;
  --ink-2:      #161b22;
  --ink-3:      #21262d;
  --bone:       #f5f1ea;
  --bone-2:     #ebe6dc;
  --paper:      #ffffff;
  --steel-1:    #8b949e;
  --steel-2:    #c9d1d9;
  --steel-3:    #6c7689;
  --line:       #30363d;
  --line-2:     #d8d3c8;
  --line-3:     #e5ddc8;
  --signal:     #da3633;
  --signal-2:   #b71f1c;
  --signal-3:   #f85149;
  --gold:       #d4a017;
  --good:       #2ea043;

  /* Typography */
  --f-display:  "Russo One", "Roboto Condensed", "Arial Narrow", sans-serif;
  --f-body:     "Onest", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono:     "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Spacing scale */
  --s-0:  0.25rem;
  --s-1:  0.5rem;
  --s-2:  0.75rem;
  --s-3:  1rem;
  --s-4:  1.5rem;
  --s-5:  2rem;
  --s-6:  3rem;
  --s-7:  4rem;
  --s-8:  6rem;
  --s-9:  8rem;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  /* Container */
  --container: 1280px;
  --gutter-d:  24px;
  --gutter-m:  16px;
}

/* ----- 2. Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
input, select, textarea, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ----- 3. Typography ----- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.005em; }
.h-hero { font-size: clamp(40px, 6.5vw, 88px); line-height: 0.98; text-transform: uppercase; }
.h-1    { font-size: clamp(32px, 4.5vw, 56px); text-transform: uppercase; }
.h-2    { font-size: clamp(26px, 3.2vw, 40px); text-transform: uppercase; }
.h-3    { font-size: clamp(20px, 2vw, 26px); text-transform: uppercase; }
.h-4    { font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; }
.lead   { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--ink-2); }
.mono   { font-family: var(--f-mono); letter-spacing: -0.02em; }
.label  { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--steel-3); }
.eyebrow { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--signal); margin-bottom: var(--s-2); }

/* ----- 4. Layout ----- */
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter-d); }
.wrap--narrow { max-width: 1080px; }
.wrap--text { max-width: 760px; }
@media (max-width: 768px) { .wrap { padding: 0 var(--gutter-m); } }
.section { padding: var(--s-7) 0; }
.section--lg { padding: var(--s-8) 0; }
.section--dark { background: var(--ink); color: var(--bone); }
.section--ink { background: var(--ink-2); color: var(--bone); }
.section--paper { background: var(--paper); }
.section--bone { background: var(--bone); }
.divider { height: 1px; background: var(--line-2); margin: var(--s-5) 0; }
.divider--dark { background: var(--line); }

/* ----- 5. Top bar (above the nav) ----- */
.topbar {
  background: var(--ink);
  color: var(--bone);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; gap: 20px;
}
.topbar__left { display: flex; gap: var(--s-4); align-items: center; color: var(--steel-1); }
.topbar__hours { display: inline-flex; align-items: center; gap: 6px; }
.topbar__hours::before { content: ""; width: 6px; height: 6px; background: var(--good); border-radius: 50%; box-shadow: 0 0 8px var(--good); }
.topbar__right { display: flex; gap: var(--s-3); align-items: center; }
.topbar__phone { font-family: var(--f-mono); font-weight: 500; color: var(--bone); font-size: 13px; letter-spacing: -0.02em; }
.topbar__phone:hover { color: var(--signal-3); }
.topbar__phone .tag { font-family: var(--f-body); font-size: 11px; color: var(--steel-1); margin-left: 6px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ----- 6. Header / Nav ----- */
.nav {
  background: var(--bone);
  border-bottom: 1px solid var(--line-2);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(245, 241, 234, 0.92);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: var(--s-4);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-size: 22px; letter-spacing: 0.04em; color: var(--ink); }
.brand__sub  { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.24em; color: var(--steel-3); text-transform: uppercase; margin-top: 4px; }
.menu { display: flex; gap: var(--s-2); }
.menu a {
  position: relative;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color 0.18s ease;
}
.menu a:hover { color: var(--signal); }
.menu a.is-active { color: var(--ink); }
.menu a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--signal);
}
.nav__cta { display: flex; align-items: center; gap: var(--s-2); }
.burger {
  display: none; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 3px 0; }
@media (max-width: 968px) {
  .menu { display: none; }
  .burger { display: inline-flex; }
  .menu.is-open {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bone); border-bottom: 1px solid var(--line-2);
    padding: var(--s-2); gap: 0;
  }
  .menu.is-open a { border-radius: 0; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
  .menu.is-open a:last-child { border-bottom: none; }
  .nav__cta .btn--ghost { display: none; }
}

/* ----- 7. Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none; border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--signal); color: var(--paper); }
.btn--primary:hover { background: var(--signal-2); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(218, 54, 51, 0.6); }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--bone); border: 1px solid rgba(245,241,234,0.25); }
.btn--ghost-light:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--sm { padding: 9px 14px; font-size: 12px; }
.btn--lg { padding: 18px 28px; font-size: 15px; }
.btn--block { width: 100%; }
.btn .arr { display: inline-block; transform: translateY(-1px); transition: transform 0.2s ease; }
.btn:hover .arr { transform: translate(4px, -1px); }

/* ----- 8. Hero ----- */
.hero {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
  padding: var(--s-8) 0 var(--s-7);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(218, 54, 51, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 60% at 15% 75%, rgba(212, 160, 23, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 110%, rgba(218, 54, 51, 0.10), transparent 50%),
    repeating-linear-gradient(135deg, rgba(245,241,234,0.018) 0px, rgba(245,241,234,0.018) 1px, transparent 1px, transparent 14px);
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(245,241,234,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,241,234,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-7);
  align-items: center;
}
@media (max-width: 968px) { .hero__grid { grid-template-columns: 1fr; gap: var(--s-5); } }
.hero__title { font-size: clamp(40px, 6vw, 80px); }
.hero__title .accent { color: var(--signal); }
.hero__title em { font-style: normal; color: var(--steel-1); }
.hero__lead { color: var(--steel-2); font-size: clamp(16px, 1.3vw, 19px); margin: var(--s-4) 0 var(--s-5); max-width: 540px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.hero__stat .num { font-family: var(--f-display); font-size: clamp(28px, 3vw, 42px); color: var(--bone); }
.hero__stat .num .unit { color: var(--signal); }
.hero__stat .lbl { font-family: var(--f-mono); font-size: 11px; color: var(--steel-1); text-transform: uppercase; letter-spacing: 0.15em; margin-top: 4px; }

/* Hero search card */
.hero__card {
  background: var(--bone);
  color: var(--ink);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  position: relative;
}
.hero__card::before {
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 4px; background: var(--signal); border-radius: 0 0 4px 4px;
}
.hero__card-title { font-family: var(--f-display); font-size: 22px; text-transform: uppercase; margin-bottom: var(--s-3); }
.hero__card-sub { color: var(--steel-3); font-size: 14px; margin-bottom: var(--s-4); line-height: 1.5; }

/* Contact-card variant inside hero (replaces search form) */
.hero-contact { display: grid; gap: var(--s-3); }
.hero-contact__item {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.hero-contact__item:hover { border-color: var(--ink); transform: translateY(-1px); }
.hero-contact__label {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--steel-3);
}
.hero-contact__value {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-contact__value:hover { color: var(--signal); }
.hero-contact__value--tg { color: #229ED9; }
.hero-contact__value--tg:hover { color: #1c8cc2; }
.hero-contact__value--tg svg { color: #229ED9; }
.hero-contact__hours {
  margin-top: 4px;
  padding: 12px 16px;
  background: var(--ink-2);
  color: var(--steel-2);
  border-radius: var(--r-md);
  font-size: 12px;
  display: flex; align-items: center; gap: 8px;
}
.hero-contact__dot {
  width: 8px; height: 8px;
  background: var(--good);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--good);
  flex-shrink: 0;
}

/* ----- 9. Search form ----- */
.search-form { display: grid; gap: 10px; }
.search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: border 0.16s ease, box-shadow 0.16s ease;
}
.field:focus-within { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(218,54,51,0.12); }
.field input, .field select {
  width: 100%;
  padding: 14px 14px 14px 42px;
  font-size: 14px;
  background: transparent;
  border: none; outline: none;
  color: var(--ink);
  appearance: none; -webkit-appearance: none;
}
.field--no-icon input, .field--no-icon select { padding-left: 14px; }
.field select { padding-right: 36px; cursor: pointer; }
.field input::placeholder { color: var(--steel-3); }
.field .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--steel-3); }
.field .chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; color: var(--steel-3); pointer-events: none; }

/* ----- 10. Brand grid ----- */
.brands {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 968px) { .brands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .brands { grid-template-columns: repeat(2, 1fr); } }
.brand-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s-3);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
/* Subtle background pattern per region */
.brand-tile[data-tags*="jp"]::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(218, 54, 51, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(245, 241, 234, 0.5) 100%);
  pointer-events: none;
}
.brand-tile[data-tags*="kr"]::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 158, 217, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(245, 241, 234, 0.5) 100%);
  pointer-events: none;
}
.brand-tile[data-tags*="eu"]::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(13, 17, 23, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(245, 241, 234, 0.5) 100%);
  pointer-events: none;
}
.brand-tile[data-tags*="us"]::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 160, 23, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(245, 241, 234, 0.5) 100%);
  pointer-events: none;
}
.brand-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(218,54,51,0.08) 100%);
  opacity: 0; transition: opacity 0.22s ease;
  pointer-events: none;
}
.brand-tile:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 14px 30px -14px rgba(13, 17, 23, 0.25);
}
.brand-tile:hover::after { opacity: 1; }
.brand-tile > * { position: relative; z-index: 1; }
.brand-tile__top { display: flex; justify-content: space-between; align-items: flex-start; }
.brand-tile__dot { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; opacity: 0.7; }
.brand-tile__num { font-family: var(--f-mono); font-size: 10px; color: var(--steel-3); letter-spacing: 0.1em; }
.brand-tile__car {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
  min-height: 0;
  padding: 4px 8px;
}
.brand-tile__car svg {
  width: 78%;
  max-width: 110px;
  height: auto;
  color: var(--steel-1);
  transition: color 0.25s ease, transform 0.3s ease;
}
.brand-tile__car img {
  max-width: 78%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.92);
  transition: filter 0.25s ease, transform 0.3s ease;
}
.brand-tile:hover .brand-tile__car svg {
  color: var(--ink);
  transform: scale(1.06) translateX(3px);
}
.brand-tile:hover .brand-tile__car img {
  filter: saturate(1.08);
  transform: scale(1.06);
}
.brand-tile__name {
  font-family: var(--f-display);
  font-size: clamp(15px, 1.4vw, 19px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.brand-tile__cta { font-family: var(--f-mono); font-size: 11px; color: var(--signal); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }
.brand-tile__cta .arr { transition: transform 0.2s ease; display: inline-block; }
.brand-tile:hover .brand-tile__cta .arr { transform: translateX(4px); }

/* ----- 11. Feature cards (Преимущества) ----- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4);
}
@media (max-width: 768px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: var(--s-5);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.12); }
.feature__icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--bone); border-radius: var(--r-md); margin-bottom: var(--s-4); }
.feature__title { font-family: var(--f-display); font-size: 20px; text-transform: uppercase; margin-bottom: var(--s-2); }
.feature__text { color: var(--steel-3); line-height: 1.6; font-size: 15px; }
.feature__num { position: absolute; top: var(--s-3); right: var(--s-4); font-family: var(--f-mono); font-size: 12px; color: var(--steel-3); }

/* ----- 12. Stats strip ----- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
@media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
  padding: var(--s-5) var(--s-4);
  border-right: 1px solid var(--line-2);
}
.stat-item:last-child { border-right: none; }
@media (max-width: 768px) {
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
}
.stat-item .num { font-family: var(--f-display); font-size: clamp(40px, 4.5vw, 60px); color: var(--ink); line-height: 1; }
.stat-item .num .accent { color: var(--signal); }
.stat-item .lbl { font-family: var(--f-mono); font-size: 12px; color: var(--steel-3); text-transform: uppercase; letter-spacing: 0.12em; margin-top: var(--s-2); }
.section--dark .stat-item .num { color: var(--bone); }
.section--dark .stat-item { border-color: var(--line); }

/* ----- 13. Steps (numbered) ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--s-4); }
.step__num {
  font-family: var(--f-display);
  font-size: 64px;
  color: var(--signal);
  line-height: 1;
}
.step__title { font-family: var(--f-display); font-size: 22px; text-transform: uppercase; margin: var(--s-3) 0 var(--s-2); }
.step__text { color: var(--steel-3); font-size: 15px; line-height: 1.6; }

/* ----- 14. Banner / CTA strip ----- */
.cta-strip {
  background: var(--ink);
  color: var(--bone);
  padding: var(--s-6) 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; right: -10%; top: -50%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(218,54,51,0.15) 0%, transparent 70%);
}
.cta-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); position: relative; z-index: 1; }
@media (max-width: 768px) { .cta-strip__inner { flex-direction: column; align-items: flex-start; } }
.cta-strip__title { font-family: var(--f-display); font-size: clamp(22px, 2.8vw, 36px); text-transform: uppercase; max-width: 700px; }

/* ----- 15. Reviews / Testimonials ----- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 968px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .reviews-grid { grid-template-columns: 1fr; } }
.review {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.review__stars { display: flex; gap: 2px; color: var(--gold); }
.review__stars svg { width: 16px; height: 16px; }
.review__text { color: var(--ink-2); font-size: 15px; line-height: 1.6; flex: 1; }
.review__meta { display: flex; gap: 10px; align-items: center; padding-top: var(--s-3); border-top: 1px solid var(--line-3); }
.review__avatar { width: 40px; height: 40px; background: var(--ink); color: var(--bone); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 16px; }
.review__name { font-weight: 600; font-size: 14px; color: var(--ink); }
.review__date { font-family: var(--f-mono); font-size: 11px; color: var(--steel-3); }

/* ----- 16. Contact card ----- */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
@media (max-width: 768px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.contact-card__label { font-family: var(--f-mono); font-size: 11px; color: var(--signal); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: var(--s-2); }
.contact-card__title { font-family: var(--f-display); font-size: 22px; text-transform: uppercase; margin-bottom: var(--s-3); }
.contact-card__addr { color: var(--ink-2); margin-bottom: var(--s-4); font-size: 15px; }
.phone-list { display: grid; gap: 10px; }
.phone-list__item { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding: 10px 0; border-bottom: 1px dashed var(--line-3); }
.phone-list__item:last-child { border-bottom: none; }
.phone-list__num { font-family: var(--f-mono); font-size: 16px; color: var(--ink); font-weight: 500; letter-spacing: -0.02em; }
.phone-list__num:hover { color: var(--signal); }
.phone-list__tag { font-family: var(--f-mono); font-size: 11px; color: var(--steel-3); text-transform: uppercase; letter-spacing: 0.12em; }

/* ----- 17. Page header (interior pages) ----- */
.page-header {
  background: var(--ink);
  color: var(--bone);
  padding: var(--s-7) 0 var(--s-6);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 50% at 90% 30%, rgba(218,54,51,0.12), transparent 60%);
  z-index: 1;
}
.page-header__inner { position: relative; z-index: 2; }
/* Photo-backed page headers — guaranteed-load CSS-only textures with per-section tints */
.page-header--photo { background: var(--ink); }
.page-header--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-color: var(--ink-2);
  background-image:
    radial-gradient(circle at 20% 40%, rgba(218, 54, 51, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 160, 23, 0.10) 0%, transparent 50%),
    repeating-linear-gradient(45deg, rgba(245,241,234,0.02) 0px, rgba(245,241,234,0.02) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(-45deg, rgba(245,241,234,0.015) 0px, rgba(245,241,234,0.015) 1px, transparent 1px, transparent 12px);
  background-size: cover, cover, 60px 60px, 60px 60px;
}
.page-header--about::after  {
  background-image:
    radial-gradient(circle at 75% 30%, rgba(218, 54, 51, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(212, 160, 23, 0.10) 0%, transparent 55%),
    repeating-linear-gradient(45deg, rgba(245,241,234,0.025) 0px, rgba(245,241,234,0.025) 1px, transparent 1px, transparent 14px);
}
.page-header--delivery::after {
  background-image:
    radial-gradient(ellipse at 90% 40%, rgba(218, 54, 51, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 60%, rgba(34, 158, 217, 0.10) 0%, transparent 55%),
    repeating-linear-gradient(90deg, rgba(245,241,234,0.02) 0px, rgba(245,241,234,0.02) 1px, transparent 1px, transparent 30px);
}
.page-header--catalog::after {
  background-image:
    radial-gradient(circle at 60% 50%, rgba(218, 54, 51, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(245,241,234,0.04) 1px, transparent 1px) 0 0 / 100% 80px,
    linear-gradient(90deg, rgba(245,241,234,0.04) 1px, transparent 1px) 0 0 / 80px 100%;
}
.page-header--reviews::after {
  background-image:
    radial-gradient(circle at 85% 25%, rgba(212, 160, 23, 0.20) 0%, transparent 50%),
    radial-gradient(circle at 25% 75%, rgba(218, 54, 51, 0.15) 0%, transparent 55%),
    repeating-linear-gradient(60deg, rgba(245,241,234,0.02) 0px, rgba(245,241,234,0.02) 1px, transparent 1px, transparent 16px);
}
.page-header--contacts::after {
  background-image:
    radial-gradient(circle at 30% 60%, rgba(218, 54, 51, 0.20) 0%, transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(34, 158, 217, 0.12) 0%, transparent 55%),
    repeating-radial-gradient(circle at center, rgba(245,241,234,0.015) 0px, rgba(245,241,234,0.015) 1px, transparent 1px, transparent 12px);
}

.crumb { display: flex; gap: var(--s-2); font-family: var(--f-mono); font-size: 12px; color: var(--steel-1); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: var(--s-4); }
.crumb a { color: var(--steel-1); }
.crumb a:hover { color: var(--signal-3); }
.crumb__sep { color: var(--line); }
.page-header__title { font-size: clamp(36px, 5vw, 64px); text-transform: uppercase; line-height: 1; max-width: 900px; }
.page-header__lead { color: var(--steel-2); font-size: clamp(15px, 1.2vw, 18px); margin-top: var(--s-3); max-width: 700px; }

/* ----- 18. Two-column text content ----- */
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose p { margin: 0 0 var(--s-3); }
.prose h2 { margin: var(--s-5) 0 var(--s-3); font-size: 28px; text-transform: uppercase; color: var(--ink); }
.prose h3 { margin: var(--s-4) 0 var(--s-2); font-size: 20px; text-transform: uppercase; color: var(--ink); }
.prose ul { padding-left: 0; margin: 0 0 var(--s-3); }
.prose ul li { padding: 4px 0 4px var(--s-4); position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 14px; width: 12px; height: 2px; background: var(--signal); }
.prose ol { padding-left: 22px; margin: 0 0 var(--s-3); list-style: decimal; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }

.two-col {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6);
  align-items: start;
}
@media (max-width: 968px) { .two-col { grid-template-columns: 1fr; gap: var(--s-5); } }
.side-card {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.side-card__label { font-family: var(--f-mono); font-size: 11px; color: var(--signal); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: var(--s-2); }
.side-card__title { font-family: var(--f-display); font-size: 20px; text-transform: uppercase; margin-bottom: var(--s-3); }

/* ----- 19. Footer ----- */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: var(--s-7) 0 var(--s-3);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-5);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 968px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__col h4 { font-family: var(--f-display); font-size: 14px; text-transform: uppercase; margin-bottom: var(--s-3); color: var(--bone); letter-spacing: 0.04em; }
.footer__about { font-size: 14px; color: var(--steel-2); line-height: 1.6; margin-top: var(--s-3); }
.footer__col ul li a { color: var(--steel-2); font-size: 14px; display: block; padding: 6px 0; transition: color 0.16s ease; }
.footer__col ul li a:hover { color: var(--signal-3); }
.footer__contact-item { margin-bottom: var(--s-3); font-size: 14px; }
.footer__contact-item .lbl { font-family: var(--f-mono); font-size: 11px; color: var(--steel-3); text-transform: uppercase; letter-spacing: 0.15em; display: block; margin-bottom: 4px; }
.footer__contact-item a { color: var(--bone); }
.footer__contact-item a:hover { color: var(--signal-3); }
.footer__brand { font-family: var(--f-display); font-size: 26px; letter-spacing: 0.04em; color: var(--bone); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s-4); font-size: 12px; color: var(--steel-3); gap: var(--s-4); flex-wrap: wrap; }
.footer__legal { font-family: var(--f-mono); font-size: 11px; color: var(--steel-3); letter-spacing: 0.04em; }

/* ----- 20. Misc helpers ----- */
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }

/* ----- 21. Section header (label + title) ----- */
.section-header { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); margin-bottom: var(--s-5); flex-wrap: wrap; }
.section-header__title { font-size: clamp(28px, 3.6vw, 44px); text-transform: uppercase; max-width: 700px; }
.section-header__cta { display: flex; gap: var(--s-2); }

/* ----- 22. Tabbed / filter pills ----- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-5); }
.pill {
  padding: 9px 18px; font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 100px;
  cursor: pointer; transition: all 0.16s ease;
}
.pill:hover { border-color: var(--ink); }
.pill.is-active { background: var(--ink); color: var(--bone); border-color: var(--ink); }

/* ----- 23. Delivery / icons block ----- */
.icon-list { display: grid; gap: var(--s-3); }
.icon-list__item { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); align-items: start; }
.icon-list__icon { width: 44px; height: 44px; background: var(--ink); color: var(--bone); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; }
.icon-list__title { font-family: var(--f-display); font-size: 16px; text-transform: uppercase; margin-bottom: 4px; }
.icon-list__text { color: var(--steel-3); font-size: 14px; }

/* ----- 24. FAQ accordion ----- */
.faq { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__q { width: 100%; text-align: left; background: transparent; border: none; padding: 22px 40px 22px 0; font-family: var(--f-display); font-size: 17px; text-transform: uppercase; color: var(--ink); cursor: pointer; position: relative; }
.faq__q::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--f-body); font-size: 24px; font-weight: 300; color: var(--signal); transition: transform 0.2s ease; }
.faq__item.is-open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 0 22px; color: var(--ink-2); font-size: 15px; line-height: 1.7; display: none; max-width: 760px; }
.faq__item.is-open .faq__a { display: block; }

/* ----- 25. Region tag cloud ----- */
.regions { display: flex; flex-wrap: wrap; gap: 8px; }
.regions__item { padding: 6px 12px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13px; color: var(--ink-2); font-family: var(--f-mono); }

/* ----- 26. Floating action ----- */
.fab-stack {
  position: fixed; right: 22px; bottom: 22px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 80;
}
.fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.fab--tg {
  background: #229ED9; color: #fff;
  box-shadow: 0 10px 30px -8px rgba(34, 158, 217, 0.55), 0 0 0 4px rgba(34, 158, 217, 0.08);
}
.fab--tg:hover { background: #1B86B8; transform: translateY(-3px); box-shadow: 0 14px 36px -8px rgba(34, 158, 217, 0.7), 0 0 0 6px rgba(34, 158, 217, 0.12); }
.fab--tg svg { width: 26px; height: 26px; }
.fab--top {
  background: var(--signal); color: var(--bone);
  box-shadow: 0 10px 30px -10px rgba(218, 54, 51, 0.7);
  font-size: 20px; font-family: var(--f-body); font-weight: 600;
  opacity: 0; transform: scale(0.7); pointer-events: none;
}
.fab--top.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.fab--top:hover { background: var(--signal-2); transform: scale(1.06); }
@media (max-width: 560px) {
  .fab-stack { right: 14px; bottom: 14px; gap: 10px; }
  .fab { width: 52px; height: 52px; }
}

/* ----- 26b. Telegram chip (topbar) ----- */
.tg-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--bone);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.tg-chip:hover { background: #229ED9; border-color: #229ED9; color: #fff; transform: translateY(-1px); }
.tg-chip__icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: #229ED9; color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.tg-chip:hover .tg-chip__icon { background: #fff; color: #229ED9; }
.tg-chip__icon svg { width: 12px; height: 12px; }
@media (max-width: 760px) {
  .tg-chip__label { display: none; }
  .tg-chip { padding: 4px; }
}

/* ----- 27. Reveal helper (kept as a hook, no longer hides content) ----- */
.reveal { opacity: 1; transform: none; }

/* ----- 28. Notice banner ----- */
.notice {
  background: var(--gold); color: var(--ink);
  padding: 8px 0; font-size: 12px; font-family: var(--f-mono); letter-spacing: 0.05em;
  text-align: center;
}
.notice strong { font-weight: 700; }

/* ----- 29. Map placeholder ----- */
.map-frame { border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-3); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ----- 30. Form ----- */
.form { display: grid; gap: var(--s-3); }
.form label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--steel-3); display: block; margin-bottom: 6px; }
.form .field input, .form .field textarea, .form .field select { padding: 14px; }
.form textarea { width: 100%; padding: 14px; border: none; outline: none; min-height: 120px; resize: vertical; background: transparent; font-family: inherit; font-size: 14px; }

/* Form status banner — shown after submit */
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.5;
  margin-top: var(--s-2);
  border: 1px solid transparent;
}
.form-status--ok    { background: #e8f7ed; color: #0b5128; border-color: #2ea043; }
.form-status--error { background: #fceaea; color: #8b1c1c; border-color: #da3633; }
.form-status--warn  { background: #fdf6e3; color: #6b5414; border-color: #d4a017; }
