/* EV China — редизайн v3. ДНК EV Group: зелёный #085541, Montserrat/Roboto, белый минимализм.
   Цвета и шрифты сняты со старого сайта на Elementor (global colors + Google Fonts). */

:root {
  --green: #085541;
  --green-dark: #063f30;
  --green-deep: #052e23;
  --green-soft: #eef4f1;
  --green-line: #d6e4df;
  --ink: #1a1d1b;
  --ink-soft: #3f4744;
  --muted: #6b7670;
  --line: #e8e8e8;
  --bg: #ffffff;
  --bg-alt: #f7f9f8;
  --status: #a8342a;
  --dark: #222228;
  --radius: 10px;
  --maxw: 1180px;
  --shadow: 0 14px 40px rgba(8, 85, 65, .08);

  /* ── Металлический слой дизайн-системы (сталь/графит) ── финализировано арт-директором.
     Зелёный (--green) — фирменный акцент (лого/кнопки/ссылки).
     Металл — слайдер главной, скрим hero-фото, плитки групп каталога.
     Правится ТОЛЬКО здесь; всё остальное берёт значения из токенов. */
  --metal-deep:  #13161a;   /* фон карусели: почти чёрный графит                  */
  --metal-dark:  #1e2226;   /* тёмный оттенок металла (тень, bg фолбэк)           */
  --metal-mid:   #52585f;   /* средний серо-стальной                               */
  --metal-1:     #858c93;   /* светло-стальной                                     */
  --metal-2:     #a8b0b8;   /* серебристо-стальной                                 */
  --metal-hi:    #cdd3d9;   /* светлый хайлайт полированной стали                  */
  /* диагональный «перелив» полированной стали — fallback плитки без фото */
  --metal-grad: linear-gradient(138deg,
      #cdd3d9 0%, #8a9199 16%, #52585f 38%,
      #3e4449 50%, #6d7479 64%, #b8bfc6 82%, #6a7178 100%);
  /* тёмный металлический скрим для читаемости текста поверх фото (слайдер, hero) */
  --metal-scrim: linear-gradient(100deg,
      rgba(15, 18, 21, .88) 0%, rgba(22, 26, 30, .58) 52%, rgba(36, 41, 46, .32) 100%);
  /* узкий диагональный «блик» — скользит по металлу при hover */
  --metal-sheen: linear-gradient(112deg,
      transparent 20%, rgba(255, 255, 255, .22) 44%,
      rgba(255, 255, 255, .34) 50%, rgba(255, 255, 255, .22) 56%, transparent 80%);
}

/* Утилита: полированная металлическая поверхность с бликом. Используется на плитках
   крупных категорий каталога и как фолбэк, пока нет фото от арт-директора. */
.metal-surface {
  position: relative;
  background: var(--metal-grad);
  overflow: hidden;
}
.metal-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--metal-sheen);
  mix-blend-mode: screen;
  pointer-events: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", system-ui, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  margin: 0 0 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green-line); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--green-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 28px;
}
.brand {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
  font-family: "Montserrat", sans-serif; font-weight: 800;
  font-size: 20px; letter-spacing: .02em; color: var(--ink);
}
.brand .mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 800;
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .12em; }
.brand-logo { height: 38px; max-height: 38px; width: auto; flex-shrink: 0; object-fit: contain; display: block; }
.footer-brand .brand-logo { filter: brightness(0) invert(1); }
.menu { display: flex; flex-wrap: nowrap; gap: clamp(14px, 1.8vw, 30px); list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.menu a {
  font-family: "Montserrat", sans-serif; font-weight: 500; font-size: 15px;
  color: var(--ink-soft); padding: 6px 0; position: relative;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--green); }
.menu a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--green);
}
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-price { white-space: nowrap; padding: 10px 16px; font-size: 13.5px; }
.nav-phone { font-family: "Montserrat", sans-serif; font-weight: 600; color: var(--ink); white-space: nowrap; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(8, 85, 65, .10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.01em; }
.hero h1 .accent { color: var(--green); }
.hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 30em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 38px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .num { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 30px; color: var(--green); }
.hero-stats .cap { font-size: 13px; color: var(--muted); }
.hero-card {
  background: var(--dark); color: #fff; border-radius: 16px; padding: 34px;
  box-shadow: var(--shadow);
}
.hero-card h2 { color: #fff; font-size: 22px; }
.hero-card ul { list-style: none; margin: 18px 0 0; padding: 0; }
.hero-card li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.hero-card li:first-child { border-top: 0; }
.hero-card .ic { color: #fff; flex: 0 0 auto; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h1, .section-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.section-head p { font-size: 17px; color: var(--ink-soft); margin: 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature:hover { border-color: var(--green-line); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature .ic-box {
  width: 50px; height: 50px; border-radius: 12px; background: var(--green-soft);
  color: var(--green); display: grid; place-items: center; margin-bottom: 18px;
}
.feature h3 { font-size: 19px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* category grid */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s;
}
.cat:hover { border-color: var(--green-line); box-shadow: var(--shadow); }
.cat-top { background: var(--green); color: #fff; padding: 22px 24px; }
.cat-top h3 { color: #fff; font-size: 19px; margin: 0; }
.cat-body { padding: 22px 24px; flex: 1; }
.cat-body ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; }
.cat-body li { margin-bottom: 6px; }
.cat-foot { padding: 0 24px 22px; }
.cat-link { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 15px; }
/* category card photo */
.cat-img { aspect-ratio: 16 / 10; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cat:hover .cat-img img { transform: scale(1.04); }

/* металлическая hero-плитка крупной категории каталога (Чёрный/Нержавеющий/Арматура/Цветной) */
.cat-hero {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 20px 22px;
  background-size: cover;
  background-position: center;
}
.cat-hero {
  position: relative;
  overflow: hidden;
}
.cat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--metal-sheen);
  transform: translateX(-120%);
  transition: transform .65s ease;
  z-index: 1;  /* под h3 (z-index:2), над фоном */
  pointer-events: none;
}
.cat:hover .cat-hero::before { transform: translateX(130%); }
.cat-hero h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: 22px;
  letter-spacing: -.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
.cat-group:hover .cat-hero.metal-surface::after { opacity: .85; }

/* product grid (catalog) */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.product:hover { border-color: var(--green-line); box-shadow: var(--shadow); transform: translateY(-3px); }
.product-img {
  aspect-ratio: 4 / 3; background: var(--green-soft);
  display: grid; place-items: center; color: var(--green); border-bottom: 1px solid var(--line);
}
.product-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product .tag {
  align-self: flex-start; font-family: "Montserrat", sans-serif; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--green);
  background: var(--green-soft); border-radius: 999px; padding: 5px 12px; margin-bottom: 12px;
}
.product h3 { font-size: 18px; margin-bottom: 8px; }
.product p { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; }
.product .specs { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; }
.product .specs li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.product .specs .k { color: var(--muted); }
.product .specs .v { font-weight: 600; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.product .price { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--green); }

/* catalog: пагинация грида + карточка товара */
#pager { margin-top: 32px; text-align: center; }
.found { align-self: center; color: var(--muted); font-size: 14px; }
.pd-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; margin-top: 8px; }
.pd-specs { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.pd-specs li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.pd-specs li:first-child { border-top: 0; }
.pd-specs .k { color: var(--muted); }
.pd-specs .v { font-weight: 600; text-align: right; }
.order-box {
  border: 1px solid var(--green-line); border-radius: var(--radius); background: var(--green-soft);
  padding: 24px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px;
}
.order-box .price { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 21px; color: var(--green); }
.order-box .cat-link { text-align: center; }
@media (max-width: 760px) { .pd-layout { grid-template-columns: 1fr; } .order-box { position: static; } }

/* filter bar */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  font-family: "Montserrat", sans-serif; font-weight: 500; font-size: 14px;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; background: #fff;
  color: var(--ink-soft); cursor: pointer; transition: .18s;
}
.chip:hover { border-color: var(--green-line); color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }

/* breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green); }
.crumbs span[aria-current] { color: var(--ink); }

/* article */
.article { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; }
.article-body { max-width: 760px; }
.article-body h2 { font-size: 27px; margin-top: 40px; }
.article-body h3 { font-size: 21px; margin-top: 28px; }
.article-body p, .article-body li { color: var(--ink-soft); font-size: 16.5px; }
.article-body ul { padding-left: 22px; }
.lead-para { font-size: 19px !important; color: var(--ink) !important; }
.callout {
  border-left: 4px solid var(--green); background: var(--green-soft);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 26px 0;
}
.callout p { margin: 0; color: var(--green-deep); }
.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); }
.spec-table th { background: var(--green-soft); font-family: "Montserrat", sans-serif; color: var(--green-deep); }
.spec-table tr:nth-child(even) td { background: var(--bg-alt); }
.toc {
  position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: #fff;
}
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 9px 0; }
.toc a { font-size: 14.5px; color: var(--ink-soft); }
.toc a:hover { color: var(--green); }

/* CTA band */
.cta-band { background: var(--green); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 8px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #c9cdcb; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; margin-bottom: 16px; }
.site-footer a { color: #c9cdcb; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 14px; color: #9aa19e; max-width: 26em; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8a918e;
}

/* ---------- Encyclopedia (standards) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip-n { font-weight: 700; opacity: .7; margin-left: 4px; }
.enc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.enc-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.enc-card:hover { border-color: var(--green-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.enc-card[hidden] { display: none !important; }
.enc-fam {
  align-self: flex-start; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--green);
  background: var(--green-soft); border-radius: 999px; padding: 4px 11px;
}
.enc-code { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }
.enc-title { color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }
.enc-empty { text-align: center; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0; }
.table-wrap .spec-table { margin: 0; min-width: 460px; }
.article--single { grid-template-columns: 1fr; }
.article-body table:not(.spec-table) { width: 100%; border-collapse: collapse; }
/* Пометки внутри статей справочника. В выгрузке они были заданы атрибутом style
   (красный текст «стандарт выведен из обращения», подсветка строки) — оформление
   перенесено сюда, разметка статьи остаётся без инлайновых стилей. */
.enc-status { color: var(--status); font-weight: 600; }
.enc-hl { background: var(--bg-alt); }
.spec-table td.enc-hl, .spec-table th.enc-hl { background: var(--green-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .article { grid-template-columns: 1fr; }
  .features, .cats, .products { grid-template-columns: repeat(2, 1fr); }
  .enc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc { display: none; }
}
@media (max-width: 680px) {
  .menu, .nav-phone { display: none; }
  .burger { display: block; }
  .features, .cats, .products, .enc-grid, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .menu.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 6px;
  }
}

/* langs-блок ВНУТРИ гамбургер-меню: на десктопе скрыт, показывается только на мобиле */
.m-langs { display: none; }

/* ---------- Language switcher ---------- */
.langs { display: flex; align-items: center; gap: 2px; }
.langs a {
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 13px;
  color: var(--muted); padding: 5px 8px; border-radius: 7px; line-height: 1;
}
.langs a:hover { color: var(--green); background: var(--green-soft); }
.langs a[aria-current="true"] { color: var(--green); background: var(--green-soft); }
@media (max-width: 680px) {
  .langs { margin-left: auto; }
}


/* ===== Мобайл-доработки (тикет #704f6623cbe0): лого / языки в меню / плавающая CTA ===== */
@media (max-width: 680px) {
  /* #3 лого держит геометрию и не сжимается, чуть компактнее на мобиле */
  .brand-logo { height: 34px; max-height: 34px; width: auto; flex-shrink: 0; object-fit: contain; }

  /* #4 переключатель языков убираем из верхней строки и кладём внутрь гамбургер-меню */
  .nav-cta > .langs { display: none; }
  .m-langs { display: flex; width: 100%; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
  .m-langs .langs { gap: 6px; flex-wrap: wrap; }
  .m-langs .langs a { font-size: 15px; padding: 8px 12px; }

  /* backdrop-filter на .site-header создаёт containing-block для position:fixed потомка —
     из-за этого bottom отсчитывался от шапки, а не от вьюпорта. На мобиле отключаем,
     чтобы плавающая кнопка позиционировалась относительно экрана. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* #5 кнопка «Запросить прайс» — плавающая/липкая внизу экрана во всю ширину */
  .nav-cta .nav-price {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    justify-content: center; padding: 14px 20px;
    box-shadow: 0 10px 26px rgba(8, 85, 65, .30);
  }
  /* чтобы плавающая кнопка не перекрывала контакты в подвале */
  .site-footer { padding-bottom: 92px; }
}


/* ===== Карусель оферов + раздел ВЭД + принципы (тикет #fd7a78d5) ===== */
/* ---------- Карусель оферов (hero) ---------- */
.hero-carousel {
  position: relative; padding: 0; overflow: hidden;
  background: var(--metal-deep);
  min-height: clamp(460px, 60vh, 660px); display: flex;
}
/* Тонкий стальной глинт поверх всей карусели — придаёт металлическую глубину */
.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg,
    transparent 0%, rgba(255,255,255,.04) 35%,
    rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 65%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.hero-carousel .slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  background-size: cover; background-position: center;
  transition: opacity .7s ease; display: flex; align-items: center;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-inner { width: 100%; }
.slide-body { max-width: 700px; color: #fff; padding: 48px 0; }
.slide-title { color: #fff; font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -.01em; margin: 0 0 18px; }
.slide-text { color: rgba(255, 255, 255, .92); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65; max-width: 42em; margin: 0 0 28px; }
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.car-arrow:hover { background: rgba(255, 255, 255, .32); }
.car-prev { left: 22px; }
.car-next { right: 22px; }
.dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; gap: 10px; justify-content: center; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .42); padding: 0; transition: background .2s, transform .2s; }
.dot.is-active { background: #fff; transform: scale(1.2); }

/* ---------- Полоса статистики под каруселью ---------- */
.stats-strip { padding: 28px 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.stats-strip .hero-stats { margin-top: 0; justify-content: center; gap: 56px; }
.stats-strip .num { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 30px; color: var(--green); }
.stats-strip .cap { font-size: 13px; color: var(--muted); }

/* ---------- О компании / принципы ---------- */
.about-quote { max-width: 18em; }
.about-slogan { font-family: "Montserrat", sans-serif; font-weight: 600; color: var(--green); font-size: 18px; }
.about-text { max-width: 82ch; margin: 18px 0 0; color: var(--ink-soft); line-height: 1.75; font-size: 16px; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.principle { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.principle:hover { border-color: var(--green-line); box-shadow: var(--shadow); transform: translateY(-3px); }
.principle-n { font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--green-line); font-size: 28px; display: block; margin-bottom: 12px; }
.principle h3 { font-size: 18px; margin: 0; }

/* ---------- Услуги ВЭД ---------- */
.ved-media { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 36px; }
.ved-media img { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; }
.ved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ved-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 24px 22px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.ved-card:hover { border-color: var(--green-line); box-shadow: var(--shadow); transform: translateY(-3px); }
.ved-n { font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--green); opacity: .35; font-size: 28px; line-height: 1; }
.ved-card h3 { font-size: 16px; line-height: 1.4; margin: 12px 0 16px; flex: 1; }
.ved-link { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 14px; color: var(--green); }

@media (max-width: 960px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .ved-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .principles, .ved-grid, .ved-media { grid-template-columns: 1fr; }
  .hero-carousel { min-height: 560px; }
  .slide-body { padding: 64px 0; }
  .ved-media img { height: 200px; }
  .car-arrow { width: 38px; height: 38px; font-size: 22px; }
  .car-prev { left: 10px; }
  .car-next { right: 10px; }
  .stats-strip .hero-stats { gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* ===== Попап заказа (тикет #02d6abdb6ec2): единое модальное окно заявки ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 30, 25, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 460px;
  background: #fff; border-radius: 16px; padding: 32px 30px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  max-height: 92vh; overflow-y: auto;
}
.modal-title { margin: 0 0 18px; font-family: "Montserrat", sans-serif; font-size: 22px; color: var(--ink); }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--muted); padding: 4px 9px;
}
.modal-close:hover { color: var(--ink); }
.modal-form label { display: block; margin-bottom: 14px; }
.modal-form label span {
  display: block; margin-bottom: 6px;
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 14px; color: var(--ink);
}
.modal-form input, .modal-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; box-sizing: border-box; resize: vertical;
}
.modal-form input:focus, .modal-form textarea:focus { outline: none; border-color: var(--green); }
.modal-submit { width: 100%; justify-content: center; margin-top: 4px; }
.modal-note { font-size: 14px; margin: 12px 0 0; min-height: 18px; }

/* Согласие на обработку ПДн: одинаково выглядит в форме на странице и в попапе.
   Селекторы продублированы через .modal-form, иначе строку перебьют правила
   .modal-form label / .modal-form input (растягивают чекбокс на всю ширину). */
.consent, .modal-form .consent {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px;
}
.consent input[type="checkbox"], .modal-form .consent input[type="checkbox"] {
  width: 17px; height: 17px; min-width: 17px; margin: 2px 0 0; padding: 0;
  accent-color: var(--green); cursor: pointer;
}
.consent span, .modal-form .consent span {
  display: block; margin: 0; font-family: inherit; font-weight: 400;
  font-size: 13.5px; line-height: 1.45; color: var(--muted);
}
.consent a { color: var(--green); text-decoration: underline; }

/* ===== Выпадающие меню (Услуги ВЭД, Стандарты) + страницы услуг — тикет #9bf744bfcfde ===== */
.menu .has-dropdown { position: relative; }
.menu .has-dropdown > a .caret { font-size: 10px; opacity: .65; margin-left: 2px; }
.menu .dropdown {
  position: absolute; top: 100%; left: 0; z-index: 70;
  min-width: 268px; max-width: 340px; margin: 0; padding: 14px 8px 8px;
  list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 38px rgba(8, 40, 30, .14);
  display: none;
}
.menu .dropdown li { white-space: normal; }
.menu .dropdown a {
  display: block; padding: 8px 10px; font-size: 14px; line-height: 1.35;
  color: var(--ink-soft); border-radius: 8px; font-weight: 500;
}
.menu .dropdown a::after { content: none; }
.menu .dropdown a:hover { background: var(--green-soft); color: var(--green); }
.menu .has-dropdown:hover > .dropdown,
.menu .has-dropdown:focus-within > .dropdown { display: block; }
.menu .dropdown--fams { min-width: 230px; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.menu .dropdown--fams a { text-align: center; font-weight: 600; }
.menu .has-dropdown:hover > .dropdown--fams,
.menu .has-dropdown:focus-within > .dropdown--fams { display: grid; }

/* Страница услуги ВЭД */
.svc-photo { width: 100%; max-height: 440px; object-fit: cover; border-radius: 16px; margin: 6px 0 30px; display: block; }
.svc-lead p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); max-width: 86ch; }
.svc-lead .btn { margin-top: 20px; }
.svc-step p { margin: 0; font-weight: 500; color: var(--ink); }
.svc-includes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.svc-includes li { position: relative; padding-left: 26px; color: var(--ink-soft); line-height: 1.55; }
.svc-includes li::before { content: 2713; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }

@media (max-width: 680px) {
  /* Мобильное меню — аккордеон: подменю СХЛОПНУТО по умолчанию, раскрывается тапом по каретке.
     Ссылки подменю остаются в разметке (внутренняя перелинковка), скрыт только показ. */
  .menu .has-dropdown > .dropdown,
  .menu .has-dropdown > .dropdown--fams {
    position: static; box-shadow: none; border: none;
    padding: 2px 0 8px 12px; margin: 0; min-width: 0; max-width: none;
  }
  /* :hover на тач-устройствах «залипает» — раскрытие только по классу .open */
  .menu .has-dropdown:hover > .dropdown,
  .menu .has-dropdown:focus-within > .dropdown,
  .menu .has-dropdown:hover > .dropdown--fams,
  .menu .has-dropdown:focus-within > .dropdown--fams { display: none; }
  .menu .has-dropdown.open > .dropdown { display: block; }
  .menu .has-dropdown.open > .dropdown--fams { display: grid; }
  .menu .dropdown--fams { grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px 14px; }

  .menu .has-toggle { display: flex; align-items: center; flex-wrap: wrap; }
  .menu .has-toggle > a { flex: 1 1 auto; }
  .menu .has-toggle > a .caret { display: none; }
  .submenu-toggle {
    flex: 0 0 auto; width: 44px; height: 44px; padding: 0; margin: 0;
    background: none; border: 0; cursor: pointer; color: inherit; font: inherit;
    line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  }
  .submenu-toggle .caret { transition: transform .18s; display: inline-block; }
  .submenu-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
  .submenu-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 8px; }
  .menu .has-toggle > .dropdown,
  .menu .has-toggle > .dropdown--fams { flex: 1 0 100%; }

  .svc-includes { grid-template-columns: 1fr; }
}

/* Каретка-кнопка — только мобильная навигация; на десктопе меню работает как работало */
@media (min-width: 681px) {
  .submenu-toggle { display: none; }
}

/* catalog: список-строки с панелью фильтров (тикет #685f7ad1 — плитки → список+фасеты) */
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.facet-panel {
  position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 18px; max-height: calc(100vh - 110px); overflow: auto;
}
.facet-q {
  width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; font-family: inherit;
}
.facet-q:focus { outline: none; border-color: var(--green); }
.facet { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.facet-h { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.facet-vals { display: flex; flex-direction: column; gap: 7px; max-height: 210px; overflow: auto; }
.facet-opt { display: flex; gap: 9px; align-items: center; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.facet-opt input { accent-color: var(--green); width: 15px; height: 15px; flex-shrink: 0; }
.facet-opt:hover { color: var(--green); }
.facet-reset { width: 100%; margin-top: 16px; }

.list-head { display: flex; justify-content: flex-end; align-items: center; min-height: 20px; margin-bottom: 14px; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.list-row {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 14px 18px;
  transition: border-color .18s, box-shadow .18s;
}
.list-row:hover { border-color: var(--green-line); box-shadow: var(--shadow); }
.lr-main { min-width: 0; flex: 1; }
.lr-name { display: block; font-weight: 600; font-size: 15.5px; color: var(--ink); line-height: 1.35; }
.lr-name:hover { color: var(--green); }
.lr-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.lr-tag {
  font-family: "Montserrat", sans-serif; font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--green); background: var(--green-soft);
  border-radius: 999px; padding: 3px 10px;
}
.lr-kv { font-size: 12.5px; color: var(--muted); background: var(--green-soft); border-radius: 6px; padding: 3px 9px; }
.lr-kv .lr-k { color: var(--muted); }
.lr-kv b { color: var(--green); font-weight: 600; }
.lr-act { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex-shrink: 0; }
.lr-price { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--green); font-size: 13.5px; white-space: nowrap; }
.lr-order { padding: 8px 20px; font-size: 14px; }

.filters-toggle { display: none; width: 100%; margin-bottom: 18px; }

@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .facet-panel { position: static; display: none; max-height: none; }
  .facet-panel.open { display: block; margin-bottom: 22px; }
  .filters-toggle { display: block; }
  .list-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .lr-act { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Иллюстрация статьи стандарта (картинка из источника, если есть) */
.enc-figure{margin:18px 0 24px;padding:16px;background:var(--green-soft);
  border:1px solid var(--green-line);border-radius:14px;text-align:center}
.enc-figure img{max-width:100%;height:auto;display:inline-block;border-radius:8px;
  background:#fff;padding:8px}

/* Страница Доставка — карточки по видам перевозки */
.delivery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:26px;margin-top:8px}
.delivery-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--green-line);
  border-radius:16px;overflow:hidden;box-shadow:0 6px 24px rgba(5,46,35,.06)}
.delivery-media{aspect-ratio:16/10;overflow:hidden;background:var(--green-soft)}
.delivery-media img{width:100%;height:100%;object-fit:cover;display:block}
.delivery-body{padding:22px 24px 24px}
.delivery-body h3{margin:0 0 10px;font-family:Montserrat,sans-serif;color:var(--green-deep)}
.delivery-body p{margin:0 0 14px;color:var(--ink-soft);line-height:1.55}
.delivery-term{display:inline-flex;align-items:center;gap:10px;margin:0;font-weight:700;color:var(--green-dark)}
.delivery-term span{font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.04em;
  color:#fff;background:var(--green);padding:4px 10px;border-radius:999px}
@media(max-width:760px){.delivery-grid{grid-template-columns:1fr}}

/* Коммерческий блок в карточке стандарта — «прокат под стандарт в наличии».
   Токены общие (green/line/radius) — при смене дизайн-системы блок наследует её. */
.comm-block {
  margin: 44px 0 8px;
  padding: 32px clamp(20px, 4vw, 40px);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}
.comm-eyebrow {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 8px;
}
.comm-block h2 { font-size: 24px; margin: 0 0 8px; }
.comm-lead { color: var(--ink-soft); max-width: 640px; margin: 0 0 22px; }
.comm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.comm-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.comm-card:hover {
  border-color: var(--green-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.comm-card__name { font-family: Montserrat, sans-serif; font-weight: 600; color: var(--ink); }
.comm-card__meta { font-size: 13px; color: var(--muted); }
.comm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
  .comm-block { padding: 24px 18px; }
  .comm-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* Поле загрузки файлов в форме заявки + honeypot (тикет #5dfd29c7b1b4). */
.file-field input[type="file"] {
  width: 100%;
  padding: 11px 13px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  font: inherit;
  cursor: pointer;
}
.file-field input[type="file"]:hover { border-color: var(--green-line); }
.file-hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* ── Статичные страницы: О компании, Контакты, документы ─────────────── */
.page-hero { padding: 34px 0 10px; }
.page-body { padding: 8px 0 56px; }

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0 0 12px; }
.value-card { background: var(--green-soft); border: 1px solid var(--green-line); border-radius: var(--radius); padding: 20px 22px; }
.value-num { display: block; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 22px; color: var(--green); margin-bottom: 8px; }
.value-card p { margin: 0; font-weight: 600; color: var(--ink); }

.doc { max-width: 820px; }
.doc h2 { font-size: clamp(19px, 2vw, 24px); font-weight: 700; margin: 34px 0 12px; color: var(--ink); }
.doc h2:first-child { margin-top: 12px; }
.doc p { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.72; }
.doc a { color: var(--green); }
/* Маркированный список внутри статьи (текст «О компании» от SEO) — в один
   ритм с .doc p, иначе браузерный дефолт выбивается по цвету и интерлиньяжу. */
.doc ul { margin: 0 0 14px; padding-left: 22px; color: var(--ink-soft); line-height: 1.72; }
.doc li { margin: 0 0 8px; }
.doc li strong { color: var(--ink); }
.doc .doc-item { padding-left: 18px; position: relative; }
.doc .doc-item::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.doc-sign { margin-top: 22px; font-weight: 600; color: var(--ink); }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 26px; }
.contact-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card h2 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.contact-card p { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.contact-card a { color: var(--green); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-hours { color: var(--muted); font-size: 15px; }
.contact-cta { margin: 0 0 8px; }

.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: inherit; opacity: .78; text-decoration: none; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 640px) {
  .page-hero { padding-top: 22px; }
  .contact-card { padding: 18px; }
}
