/* ============================================================
   Zakaz-Drova · "Тёплая логистика" design system
   Tokens are set per-city via --accent/--deep/--bg/--sand (inline #city-theme).
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: #2b2b2b; background: var(--bg, #F6F3ED); line-height: 1.6; font-size: 16px;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
:root {
  --accent: #B86535; --deep: #2F6451; --bg: #F6F3ED; --sand: #E6D7C4;
  --ink: #26221f; --mut: #6b665f; --line: rgba(0,0,0,.09); --radius: 16px;
  --shadow: 0 10px 30px rgba(40,30,20,.10); --shadow-sm: 0 4px 14px rgba(40,30,20,.08);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 750; line-height: 1.18; color: var(--ink); letter-spacing: -.01em; }
.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 60px 0; }
.section.tinted { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { color: var(--accent); font-weight: 650; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; margin-bottom: 8px; }
.h2 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 30px; }
.lead-muted { color: var(--mut); max-width: 72ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent;
  background: var(--accent); color: #fff; font-weight: 650; font-size: 15px; padding: 13px 22px; border-radius: 12px;
  cursor: pointer; transition: .18s ease; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.deep { background: var(--deep); }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- topbar ---------- */
.topbar { background: var(--deep); color: #F2EFE8; font-size: 13px; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; gap: 16px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; opacity: .95; }
.topbar__item svg { width: 15px; height: 15px; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo__crest { width: 46px; height: 53px; flex: 0 0 auto; }
.logo__crest svg { width: 100%; height: 100%; }
.logo__crest .coat, .neighbor__crest .coat, .hero__crest .coat { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.card__img .coat, .crest-img { object-fit: contain; }
.logo__name { font-weight: 800; font-size: 20px; line-height: 1.05; color: var(--ink); }
.logo__sub { font-size: 12px; color: var(--mut); }
.header__nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header__nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: #3b3733; transition: .15s; }
.header__nav a:hover { background: var(--sand); color: var(--accent); }
.header__nav a svg { width: 18px; height: 18px; color: var(--accent); }
.header__phone { text-align: right; margin-left: 8px; }
.header__phone a { font-weight: 750; font-size: 16px; color: var(--ink); }
.header__phone span { display: block; font-size: 11.5px; color: var(--mut); }
.header__actions { display: flex; align-items: center; gap: 8px; }

/* ---------- burger ---------- */
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--bg) 0%, var(--sand) 100%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 54px 0 60px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--deep); }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(30px, 4.5vw, 48px); margin: 16px 0 14px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #4b463f; font-size: 17px; max-width: 54ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero__metrics { display: flex; gap: 34px; margin-top: 28px; flex-wrap: wrap; }
.hero__metrics b { font-size: 26px; color: var(--ink); display: block; }
.hero__metrics span { font-size: 13px; color: var(--mut); }
.hero__img { position: relative; }
.hero__img .ph { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero__crest { position: absolute; left: -18px; bottom: -18px; width: 88px; height: 102px; background: #fff;
  border-radius: 16px; padding: 8px; box-shadow: var(--shadow-sm); }

/* ---------- chips / promos ---------- */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 13px; align-items: flex-start; }
.chip svg { width: 30px; height: 30px; flex: 0 0 auto; color: var(--accent); }
.chip b { display: block; font-size: 15px; color: var(--ink); }
.chip span { font-size: 13.5px; color: var(--mut); }

/* ---------- card grids ---------- */
.grid { display: grid; gap: 20px; }
.grid.cards { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__img { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--sand); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; top: 10px; left: 10px; background: var(--deep); color: #fff; font-size: 11.5px; font-weight: 650; padding: 4px 9px; border-radius: 8px; }
.card__badge.hit { background: var(--accent); }
.card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card__cat { color: var(--mut); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.card__title { font-size: 16.5px; margin: 6px 0 4px; }
.card__desc { color: var(--mut); font-size: 13.5px; margin-bottom: 12px; flex: 1; }
.card__price { display: flex; align-items: baseline; gap: 8px; }
.card__price b { font-size: 19px; color: var(--ink); }
.card__price s { color: var(--mut); font-size: 13px; }
.card__foot { display: flex; gap: 8px; margin-top: 14px; }
.card__foot .btn { flex: 1; padding: 11px 8px; font-size: 14px; }

/* ---------- rating table ---------- */
.rating__row { display: grid; grid-template-columns: 160px repeat(4, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rating__row b { font-size: 15px; }
.rating__bar { height: 9px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.rating__bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.rating__row span { font-size: 13px; color: var(--mut); text-align: right; }

/* ---------- price table ---------- */
table.price { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.price th, table.price td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
table.price th { background: var(--sand); font-weight: 650; color: var(--ink); }
table.price tr:last-child td { border-bottom: 0; }
table.price td:nth-child(2), table.price th:nth-child(2) { text-align: right; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 650; font-size: 15.5px; color: var(--ink); list-style: none; position: relative; padding-right: 46px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 18px 16px; color: var(--mut); font-size: 14.5px; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review__av { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.review__name b { display: block; color: var(--ink); }
.review__name span { font-size: 12.5px; color: var(--mut); }
.review__stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.review__text { color: #3f3b36; font-size: 14.5px; }

/* ---------- works ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.work__body { padding: 14px 16px; }
.work__body b { display: block; color: var(--ink); }
.work__body span { font-size: 13px; color: var(--mut); }
.work__meta { font-size: 12.5px; color: var(--accent); margin-top: 4px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.step__num { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step b { display: block; margin-bottom: 6px; color: var(--ink); }
.step span { font-size: 13.5px; color: var(--mut); }

/* ---------- delivery zones table ---------- */
.delzones { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.delzones th, .delzones td { padding: 12px 15px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px; }
.delzones th { background: var(--sand); font-weight: 650; }

/* ---------- cities grid / goroda ---------- */
.citygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.citygrid a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; color: var(--ink); transition: .15s; }
.citygrid a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- front cards (neighbors) ---------- */
.neighbors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.neighbor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; }
.neighbor__crest { width: 34px; height: 39px; flex: 0 0 auto; }
.neighbor__crest svg { width: 100%; height: 100%; }
.neighbor b { display: block; color: var(--ink); }
.neighbor span { font-size: 12.5px; color: var(--mut); }

/* ---------- contact / forms ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card h3 { font-size: 18px; }
.contact-card p { color: var(--mut); margin: 6px 0; }
.form { display: grid; gap: 14px; }
.field label { font-size: 13px; color: var(--mut); font-weight: 600; display: block; margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 11px; font-size: 15px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form .consent { font-size: 12.5px; color: var(--mut); }

/* ---------- breadcrumbs (centred) ---------- */
.crumbs { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 20px 0 0; font-size: 13px; color: var(--mut); }
.crumbs a { color: var(--mut); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--accent); }
.crumbs .cur { color: var(--ink); font-weight: 600; }

/* ---------- page title ---------- */
.pagehead { text-align: center; padding: 20px 0 8px; }
.pagehead h1 { font-size: clamp(26px, 3.4vw, 40px); }
.pagehead p { color: var(--mut); max-width: 78ch; margin: 12px auto 0; }

/* ---------- footer ---------- */
.footer { background: #23201d; color: #cfc9c0; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 50px 0; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer a { color: #cfc9c0; display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .logo__name { color: #fff; }

/* ---------- mobile menu overlay (no drawer slide) ---------- */
.mmenu { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: none; overflow-y: auto; }
.mmenu.open { display: block; }
.mmenu__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; }
.mmenu__list { padding: 12px 20px 120px; }
.mmenu__list a { display: flex; align-items: center; gap: 13px; padding: 14px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: 16px; }
.mmenu__list a svg { width: 22px; height: 22px; color: var(--accent); }
.mmenu__tell { margin: 16px 8px 0; text-align: center; }
.closeX { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; font-size: 20px; }

/* ---------- sticky mobile bar ---------- */
.stickybar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70; display: none; gap: 8px; }
.stickybar .btn { flex: 1; border-radius: 14px; padding: 14px 8px; box-shadow: var(--shadow); font-size: 14px; }

/* ---------- catalog tools ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }
.filterrow { display: flex; gap: 8px; flex-wrap: wrap; }
.filterrow a { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #4b463f; }
.filterrow a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- quiz ---------- */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-sm); }
.quiz__step { display: none; }
.quiz__step.active { display: block; }
.quiz__opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.quiz__opts button { background: var(--bg); border: 1.5px solid var(--line); padding: 16px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink); text-align: left; }
.quiz__opts button:hover, .quiz__opts button.on { border-color: var(--accent); background: var(--sand); }

/* ---------- product page ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.pd--buy { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; align-self: start; position: sticky; top: 96px; }
.pd--buy .btn { margin-top: 14px; }
.buybox__price { font-size: 34px; font-weight: 800; color: var(--ink); }
.buybox__price s { font-size: 18px; color: var(--mut); margin-left: 10px; font-weight: 500; }
.buybox__opts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 20px; }
.buybox__opts button { border: 1.5px solid var(--line); background: #fff; border-radius: 11px; padding: 12px; font-weight: 650; cursor: pointer; }
.buybox__opts button.on, .buybox__opts button:hover { border-color: var(--accent); color: var(--accent); }
.buybox__note { font-size: 13px; color: var(--mut); margin-top: 12px; }
.gallery img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery__thumbs img { width: 88px; height: 66px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.gallery__thumbs img.on { border-color: var(--accent); }
.tabs__tab { display: flex; gap: 8px; border-bottom: 2px solid var(--line); margin: 30px 0 18px; overflow-x: auto; }
.tabs__tab button { background: none; border: none; padding: 12px 16px; font-size: 15px; font-weight: 650; color: var(--mut); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs__tab button.on { color: var(--accent); border-color: var(--accent); }

/* ---------- compare / fav / cart badges ---------- */
.favcount, .cartcount { position: relative; }
.favcount::after, .cartcount::after { content: attr(data-n); position: absolute; top: -4px; right: -8px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 12px; font-size: 14px; z-index: 200; opacity: 0; transition: .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- back to top ---------- */
.toTop { position: fixed; right: 16px; bottom: 86px; width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; border: none; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 65; box-shadow: var(--shadow); }
.toTop.show { display: flex; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20,18,16,.55); z-index: 150; display: none; align-items: center; justify-content: center; padding: 20px; }
.overlay.open { display: flex; }
.modal { background: #fff; border-radius: 18px; max-width: 460px; width: 100%; padding: 26px; position: relative; }
.modal h3 { margin-top: 0; }
.modal__close { position: absolute; top: 14px; right: 14px; }

/* ---------- seo text ---------- */
.seo-text { color: #454039; font-size: 15px; }
.seo-text h2 { font-size: 22px; margin: 26px 0 10px; }
.seo-text p { margin: 0 0 14px; }

/* ---------- 404 ---------- */
.e404 { text-align: center; padding: 80px 20px; }
.e404 b { font-size: 90px; color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid.cards { grid-template-columns: repeat(3, 1fr); }
  .header__nav a { padding: 8px 9px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  .header__nav, .header__phone { display: none; }
  .burger { display: flex; }
  .hero__inner, .pd { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .reviews, .works { grid-template-columns: 1fr 1fr; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .citygrid, .neighbors { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .rating__row { grid-template-columns: 120px repeat(4, 1fr); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  .section { padding: 40px 0; }
  .grid.cards, .reviews, .works { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__metrics { gap: 20px; }
  .logo__name { font-size: 17px; }
  .logo__crest { width: 38px; height: 44px; }
  .stickybar { display: flex; }
  body { padding-bottom: 74px; }
  .rating__row { grid-template-columns: 1fr; gap: 6px; }
  .rating__row span { text-align: left; }
  .quiz__opts { grid-template-columns: 1fr; }
  .buybox__opts { grid-template-columns: 1fr 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .delzones, table.price { font-size: 13px; }
  .delzones th, .delzones td, table.price th, table.price td { padding: 9px 10px; }
  .footer__grid { grid-template-columns: 1fr; }
  .pd--buy { position: static; }
}
