:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --border: #dfe4ec;
  --text: #17202e;
  --muted: #66708090;
  --muted-solid: #667080;
  --accent: #ee4d1e;          /* автомобильный оранжево-красный */
  --accent-dark: #cc3d13;
  --accent-2: #1668d6;
  --ok: #1a9e5f;
  --err: #d63a3a;
  --radius: 14px;
  --shadow: 0 2px 4px rgba(23,32,46,.04), 0 8px 24px rgba(23,32,46,.06);
  --shadow-lg: 0 6px 16px rgba(23,32,46,.08), 0 16px 40px rgba(23,32,46,.10);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 1.25rem; background: var(--surface);
  border-bottom: 3px solid var(--accent);
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 1px 0 var(--border);
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.25rem; color: var(--text);
  letter-spacing: -.02em;
}
.logo-img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.main-nav { display: flex; gap: 1.4rem; margin-left: 2rem; }
.main-nav a { color: var(--muted-solid); font-size: .95rem; font-weight: 500; }
.main-nav a:hover { color: var(--accent); }
.header-side { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.social-mini { display: flex; gap: .4rem; }
.soc {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; font-size: .72rem; font-weight: 700; color: #fff;
}
.soc-ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.soc-fb { background: #1877f2; }
.cart-count {
  display: inline-block; min-width: 1.35em; text-align: center;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: .72rem; padding: 0 .35em; font-weight: 700;
}
.cart-count.empty { background: var(--surface-2); color: var(--muted-solid); }
.lang-switch { display: flex; gap: .3rem; }
.lang-switch a { color: var(--muted-solid); font-size: .82rem; font-weight: 600; padding: .2rem .45rem; border-radius: 7px; }
.lang-switch a.active { color: #fff; background: var(--accent); }

.site-main { max-width: var(--max); margin: 0 auto; padding: 1.75rem 1.25rem 5rem; }

/* Hero */
.hero {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem;
  background:
    radial-gradient(1200px 400px at 80% -20%, rgba(238,77,30,.12), transparent 60%),
    linear-gradient(135deg, #ffffff 0%, #f4f6fa 100%);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.hero-inner { text-align: center; padding: 3rem 1.25rem 2.5rem; }
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.7rem); margin: 0 0 .6rem; }
.hero-sub { color: var(--muted-solid); max-width: 42rem; margin: 0 auto 1.75rem; font-size: 1.05rem; }

/* Search */
.search-box { position: relative; max-width: 36rem; margin: 0 auto; }
.search-box input {
  width: 100%; padding: 1rem 1.1rem; font-size: 1rem;
  background: var(--surface); color: var(--text);
  border: 2px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow);
}
.search-box input:focus { outline: none; border-color: var(--accent); }
.search-results {
  position: absolute; left: 0; right: 0; margin-top: .4rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; z-index: 15; text-align: left;
  box-shadow: var(--shadow-lg);
}
.search-hit { display: block; padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.search-hit:last-child { border-bottom: 0; }
.search-hit:hover { background: var(--surface-2); }
.hit-name { display: block; font-weight: 500; }
.hit-meta { display: block; color: var(--muted-solid); font-size: .85rem; }
.search-empty { padding: .8rem 1rem; color: var(--muted-solid); margin: 0; }

/* Cards shared */
.picker, .expert, .articles, .catalog, .product-page, .callback-page, .blog-page, .article-page {
  margin-bottom: 1.75rem;
}

/* Picker */
.picker { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.picker h2 { margin-top: 0; }
.picker-selects { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.picker-selects select {
  padding: .8rem; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; font-size: .95rem;
}
.picker-selects select:focus { outline: none; border-color: var(--accent); }
.picker-selects select:disabled { opacity: .5; background: var(--surface-2); }
.picker-result { margin-top: 1.1rem; }
.pick-item {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  align-items: center; padding: .9rem; border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: .6rem; background: var(--surface-2);
}
.pick-item-main { display: flex; flex-direction: column; gap: .25rem; }
.pick-codes { color: var(--muted-solid); font-size: .85rem; }
.pick-item-price { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.tier { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; width: fit-content; }
.tier-recommended { background: rgba(26,158,95,.14); color: var(--ok); }
.tier-budget { background: rgba(102,112,128,.16); color: var(--muted-solid); }
.tier-premium { background: rgba(22,104,214,.14); color: var(--accent-2); }
.picker-empty { color: var(--muted-solid); }
.picker-result h3 { color: var(--muted-solid); font-weight: 600; }
.badge-vin { font-size: .72rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 0 .4em; width: fit-content; }

/* Заявка внутри подбора */
.lead { margin-top: 1.1rem; padding: 1.3rem; background: linear-gradient(135deg, #fff7f3 0%, #f4f6fa 100%); border: 1px solid #f3d3c4; border-radius: 12px; }
.lead h3 { margin: 0 0 .3rem; }
.lead-sub { color: var(--muted-solid); margin: 0 0 1rem; }
.lead-form .lead-fields { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; }
.lead-form input { flex: 1 1 180px; padding: .85rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.lead-form input:focus { outline: none; border-color: var(--accent); }
.lead-form .btn-submit { flex: 0 0 auto; }
.lead-form .consent-note { margin: .6rem 0 0; }
.lead-form .form-status { margin: .4rem 0 0; }

/* Expert block */
.expert {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: center;
  background: linear-gradient(135deg, #17202e 0%, #23303f 100%);
  color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg);
}
.expert .kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.expert h2 { color: #fff; margin: .5rem 0 .7rem; font-size: 1.5rem; }
.expert p { color: #c7d0dc; margin: 0 0 1.2rem; }
.expert-badge {
  display: grid; place-items: center; padding: .5rem;
  background:
    radial-gradient(220px 220px at 50% 45%, rgba(238,77,30,.22), transparent 70%);
}
.expert-logo {
  width: min(220px, 70%); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 16px 40px rgba(0,0,0,.45);
}

/* Instagram видео */
.ig-videos { margin-bottom: 1.75rem; }
.ig-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ig-grid .instagram-media { min-width: 0 !important; box-shadow: var(--shadow) !important; border-radius: var(--radius) !important; }

/* Sections head */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.link-more { color: var(--accent); font-weight: 600; font-size: .92rem; }

/* Articles */
.article-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-thumb { aspect-ratio: 16/9; background: var(--surface-2); }
.article-body { padding: 1rem 1.1rem 1.2rem; }
.article-body h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.article-body p { color: var(--muted-solid); font-size: .92rem; margin: 0 0 .8rem; }
.read-more { color: var(--accent); font-weight: 600; font-size: .9rem; }

/* Article page */
.article-page { max-width: 44rem; margin-inline: auto; }
.article-date { color: var(--muted-solid); font-size: .85rem; margin-top: -.3rem; }
.article-content { font-size: 1.05rem; }
.article-content h2 { margin: 1.6rem 0 .6rem; font-size: 1.3rem; }
.article-content p { margin: 0 0 1rem; }
.article-content ul, .article-content ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.article-content li { margin-bottom: .4rem; }
.article-content a { color: var(--accent); font-weight: 600; }
.article-content .ig-inline { color: var(--accent); font-weight: 600; }
.article-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* Catalog / product grid */
.catalog h1, .blog-page h1, .callback-page h1 { margin-top: 0; }
.product-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 1.25rem; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-thumb { aspect-ratio: 4/3; background: var(--surface-2); }
.product-card h3 { font-size: 1rem; margin: .8rem .9rem .2rem; }
.product-meta { color: var(--muted-solid); font-size: .85rem; margin: 0 .9rem; }
.product-material { font-size: .8rem; margin: .25rem .9rem .7rem; color: var(--accent-2); font-weight: 600; }
.product-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem; border-top: 1px solid var(--border); gap: .5rem; }

/* Product page */
.breadcrumb { color: var(--muted-solid); font-size: .88rem; margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--accent); }
.product-top { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .product-top { grid-template-columns: 1fr 1fr; } }
.product-gallery { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 4/3; box-shadow: var(--shadow); }
.product-brand { color: var(--accent-2); font-weight: 600; margin: .2rem 0; }
.stock.in { color: var(--ok); font-weight: 600; }
.stock.out { color: var(--muted-solid); }
.price { font-weight: 700; }
.price-lg { font-size: 1.6rem; }
.price small { color: var(--muted-solid); font-weight: 400; font-size: .8rem; }
.product-codes { color: var(--muted-solid); font-size: .9rem; }
.product-codes span { color: var(--text); font-weight: 600; }
.product-specs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.product-specs table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.product-specs th, .product-specs td { text-align: left; padding: .55rem .3rem; border-bottom: 1px solid var(--border); }
.product-specs th { color: var(--muted-solid); font-weight: 400; width: 45%; }
.product-compat ul { list-style: none; padding: 0; }
.product-compat li { padding: .55rem 0; border-bottom: 1px solid var(--border); color: var(--muted-solid); }

/* Buttons */
.btn { cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: .6rem 1rem; border-radius: 10px; font-size: .92rem; font-weight: 600; transition: all .15s; display: inline-block; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; }
.btn-add.added { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb457; border-color: #1fb457; color: #fff; }
.btn-viber { background: #7360f2; border-color: #7360f2; color: #fff; }
.btn-viber:hover { background: #5f4de0; border-color: #5f4de0; color: #fff; }
.contact-quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.contact-quick .label { flex-basis: 100%; color: var(--muted-solid); font-size: .85rem; margin-bottom: .1rem; }

/* Callback / request page */
.callback-page { max-width: 34rem; }
.callback-sub { color: var(--muted-solid); margin: .3rem 0 1.4rem; }
.callback-items-title { font-size: 1rem; color: var(--muted-solid); margin: 0 0 .3rem; }
.callback-form { display: grid; gap: .85rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-top: 1.2rem; }
.callback-form label { display: grid; gap: .3rem; font-size: .9rem; color: var(--muted-solid); }
.callback-form input { padding: .85rem; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.callback-form input:focus { outline: none; border-color: var(--accent); }
.callback-form .btn-submit { padding: .9rem; font-size: 1rem; }
.consent-note { color: var(--muted-solid); font-size: .78rem; margin: 0; }
.hp { position: absolute; left: -9999px; }
.req-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.req-name span { display: block; color: var(--muted-solid); font-size: .85rem; }
.req-qty { display: flex; align-items: center; gap: .5rem; }
.req-qty button { width: 2rem; height: 2rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 8px; cursor: pointer; }
.req-qty button:hover { border-color: var(--accent); color: var(--accent); }
.req-del { background: none; border: none; color: var(--muted-solid); cursor: pointer; font-size: 1rem; }
.req-total { margin-top: 1rem; font-size: 1.15rem; }
.req-note, .request-empty { color: var(--muted-solid); font-size: .9rem; }
.form-status { min-height: 1.2em; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 2rem; }
.footer-cols { max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.footer-logo { font-size: 1.15rem; margin-bottom: .4rem; }
.footer-cols p { color: var(--muted-solid); font-size: .88rem; max-width: 28rem; margin: 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.footer-label { color: var(--muted-solid); font-size: .85rem; margin-right: .3rem; }

/* Bottom nav (mobile) */
.bottom-nav { display: none; }
@media (max-width: 700px) {
  .main-nav { display: none; }
  .expert { grid-template-columns: 1fr; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    justify-content: space-around; padding: .5rem 0; z-index: 20;
    box-shadow: 0 -2px 12px rgba(23,32,46,.06);
  }
  .bottom-nav a { color: var(--muted-solid); font-size: .72rem; text-align: center; font-weight: 500; }
}
