/* ============================================================
   ФАРГАЗ — дизайн-система прототипа
   По брендбуку: PANTONE 299c #09a0dc → 285c #0071ce, Montserrat
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600;1,700&display=swap');

:root {
  /* Фирменные цвета брендбука */
  --brand-light: #09a0dc;   /* PANTONE 299c */
  --brand: #0071ce;         /* PANTONE 285c */
  --brand-dark: #00579e;    /* глубокий 285c для hover */
  --brand-deep: #04335c;    /* самый тёмный синий: топбар, футер */
  --brand-soft: #e8f5fd;    /* светлая синяя подложка */
  --teal: #7ca6ab;          /* PANTONE 5493c — поддержка */
  --gray7: #97999b;         /* PANTONE Cool Gray 7 */
  --gradient: linear-gradient(115deg, #09a0dc 0%, #0071ce 100%);
  --gradient-deep: linear-gradient(115deg, #0669b8 0%, #03406f 100%);

  --navy: #043a6b;
  --navy-2: #00579e;
  --navy-3: #0071ce;
  --ink: #16324d;
  --body: #46586b;
  --muted: #7b8b9c;
  --line: #e2eaf2;
  --bg: #f4f8fc;
  --bg-soft: #edf4fa;
  --white: #ffffff;
  --accent: #0071ce;
  --accent-dark: #00579e;
  --accent-soft: #e8f5fd;
  --green: #1a9e6e;
  --green-soft: #e5f6ef;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(0, 60, 120, .07);
  --shadow: 0 12px 32px rgba(0, 60, 120, .12);
  --shadow-lg: 0 24px 60px rgba(0, 45, 95, .20);
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

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

/* ---------- Типографика ---------- */
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 20px; }
p { color: var(--body); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { margin-top: 10px; font-size: 17px; }
.section { padding: 76px 0; }
.section--gray { background: var(--bg); }
.section--navy { background: var(--gradient-deep); color: #d4e6f5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #aebfce; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 113, 206, .35); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-soft); transform: translateY(-1px); }
.btn-ghost { color: var(--navy); padding: 10px 16px; }
.btn-ghost:hover { color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.link-arrow { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { gap: 10px; }
.link-arrow svg { transition: transform .2s; }

/* ---------- Формы ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(20, 80, 127, .12);
}
.textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success.is-visible { display: block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft);
  color: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 16px;
}
.form.is-sent { display: none; }

/* ============================================================
   ХЕДЕР
   ============================================================ */
.topbar { background: var(--brand-deep); color: #c4d9ec; font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 20px; }
.topbar-contacts { display: flex; gap: 22px; align-items: center; }
.topbar-contacts a { display: inline-flex; align-items: center; gap: 7px; color: #d6e1ec; transition: color .2s; }
.topbar-contacts a:hover { color: var(--accent); }
.topbar-nav { display: flex; gap: 2px; }
.topbar-nav a { padding: 6px 10px; border-radius: 6px; color: #b9c8d6; transition: all .2s; white-space: nowrap; }
.topbar-nav a:hover, .topbar-nav a.active { color: #fff; background: rgba(255,255,255,.08); }

.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-img { height: 48px; width: auto; display: block; }
.logo-slogan {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-top: 2px;
}
.logo-mark {
  width: 44px; height: 44px; border-radius: 11px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ""; position: absolute; right: -8px; bottom: -8px; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255,255,255,.25);
}
.logo-mark span { position: relative; z-index: 1; color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.logo-text b { display: block; font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: .06em; }
.logo-text small { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav > li { position: static; }
.main-nav > li > a {
  display: flex; align-items: center; gap: 7px; padding: 28px 16px; font-weight: 600;
  font-size: 15.5px; color: var(--navy); transition: color .2s; position: relative;
}
.main-nav > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 18px; height: 2.5px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transition: transform .25s;
}
.main-nav > li:hover > a, .main-nav > li > a.active { color: var(--accent); }
.main-nav > li:hover > a::after, .main-nav > li > a.active::after { transform: scaleX(1); }
.caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }

/* Мегаменю */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .22s ease;
}
.main-nav > li:hover .mega, .main-nav > li:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { max-width: var(--container); margin: 0 auto; padding: 30px 24px 34px; display: grid; grid-template-columns: 1fr 280px; gap: 34px; }
.mega-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.mega-cats { width: max-content; min-width: 300px; max-width: 460px; }
.mega-cats li { margin-bottom: 4px; position: relative; }
.mega-cats > li > a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 9px; font-weight: 600; color: var(--navy); transition: all .18s;
}
.mega-cats > li > a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.fly-caret { color: var(--muted); font-size: 19px; line-height: 1; font-weight: 400; transition: transform .2s, color .2s; }
.mega-cats li:hover .fly-caret, .mega-cats li:focus-within .fly-caret { color: var(--brand); transform: translateX(3px); }

/* Третий уровень: выезжающая панель подразделов (вплотную к категории) */
.mega-flyout {
  position: absolute; left: calc(100% + 6px); top: -14px; width: 340px; max-height: 430px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px; z-index: 6;
  opacity: 0; visibility: hidden; transform: translateX(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
/* невидимый мостик через зазор, чтобы hover не пропадал по диагонали */
.mega-flyout::before { content: ""; position: absolute; right: 100%; top: 0; width: 14px; height: 100%; }
.mega-cats li:hover .mega-flyout,
.mega-cats li:focus-within .mega-flyout { opacity: 1; visibility: visible; transform: translateX(0); }
.fly-head {
  font-size: 14px; font-weight: 700; color: var(--navy); padding-bottom: 10px;
  margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.mega-flyout ul li a {
  display: block; padding: 9px 10px; border-radius: 8px; font-size: 13.5px;
  font-weight: 500; color: var(--body); line-height: 1.45;
}
.mega-flyout ul li a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.fly-cta { width: 100%; margin-top: 12px; }
.mega-card {
  border-radius: var(--radius); overflow: hidden; position: relative; min-height: 210px;
  display: flex; align-items: flex-end; color: #fff; padding: 18px;
}
.mega-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,45,85,.05) 30%, rgba(3,45,85,.85)); }
.mega-card b { position: relative; z-index: 1; font-size: 16px; line-height: 1.35; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone { text-align: right; }
.header-phone a { display: block; font-weight: 700; color: var(--navy); font-size: 16.5px; line-height: 1.25; }
.header-phone small { color: var(--muted); font-size: 12px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; display: flex; align-items: center; justify-content: center; color: var(--navy);
  transition: all .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.burger { display: none; }

/* Поиск в хедере (модалка) */
.search-bar { display: flex; gap: 10px; }
.search-bar .input { flex: 1; }

/* Мобильное меню */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(3,45,85,.5); z-index: 200;
  opacity: 0; visibility: hidden; transition: all .25s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); background: #fff; z-index: 201;
  transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; padding: 22px;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-nav > li > a { display: block; padding: 13px 4px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line); }
.drawer-sub { padding: 4px 0 10px 14px; }
.drawer-sub a { display: block; padding: 8px 4px; font-size: 14.5px; color: var(--body); }
.drawer-sub a:hover { color: var(--accent); }
.drawer-sub .drawer-cat { font-weight: 700; color: var(--navy); font-size: 14px; padding-top: 10px; }
.drawer-subsub { padding-left: 12px; border-left: 2px solid var(--line); margin: 2px 0 6px 6px; }
.drawer-subsub a { font-size: 12.8px; padding: 6px 4px; color: var(--muted); line-height: 1.4; }
.drawer-subsub a:hover { color: var(--accent); }
.drawer .topbar-nav { flex-direction: column; align-items: stretch; margin-top: 18px; }
.drawer .topbar-nav a { color: var(--navy); padding: 11px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
.drawer-contacts { margin-top: 22px; font-size: 14.5px; }
.drawer-contacts a { display: block; padding: 6px 0; font-weight: 600; color: var(--navy); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(2,35,70,.94) 0%, rgba(0,87,158,.74) 45%, rgba(9,160,220,.42) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 110px 0 120px; max-width: 680px; }
.brand-decor { position: absolute; pointer-events: none; z-index: 0; }
.hero .brand-decor { right: -40px; bottom: -30px; width: 420px; opacity: .55; }
.lead .brand-decor { right: 30px; bottom: -50px; width: 320px; opacity: .3; }
.hero .eyebrow { color: #7fd4f5; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { color: #cfdbe7; font-size: 18px; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.play-btn {
  display: inline-flex; align-items: center; gap: 12px; background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.35); color: #fff; padding: 12px 22px 12px 13px;
  border-radius: 50px; font-weight: 600; transition: all .25s; backdrop-filter: blur(6px);
}
.play-btn:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.play-btn .triangle {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.play-btn .triangle::before { content: ""; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }

.brand-strip { background: #fff; border-bottom: 1px solid var(--line); }
.brand-strip .container { display: flex; align-items: center; gap: 34px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.brand-strip .label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.brand-item { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 18px; opacity: .75; transition: opacity .2s; }
.brand-item:hover { opacity: 1; }
.brand-item .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--gradient); }
.brand-item small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .05em; }

/* ============================================================
   ВИДЖЕТ-ПОДБОР
   ============================================================ */
.wizard-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 38px; position: relative; overflow: hidden;
}
.wizard-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient); }
.wizard-steps { display: flex; gap: 10px; margin-bottom: 28px; }
.wizard-step {
  flex: 1; padding: 12px 14px; border-radius: 10px; background: var(--bg-soft);
  font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 9px;
  border: 1.5px solid transparent; transition: all .2s;
}
.wizard-step .num {
  width: 24px; height: 24px; border-radius: 50%; background: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; flex-shrink: 0;
}
.wizard-step.active { background: var(--accent-soft); color: var(--accent-dark); border-color: rgba(0,113,206,.35); }
.wizard-step.active .num { background: var(--accent); color: #fff; }
.wizard-step.done { background: var(--green-soft); color: var(--green); }
.wizard-step.done .num { background: var(--green); color: #fff; }
.wizard-pane { display: none; }
.wizard-pane.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wizard-pane h3 { margin-bottom: 6px; }
.wizard-pane .hint { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.option-chip {
  position: relative; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font-weight: 600; color: var(--navy); text-align: left; transition: all .18s;
  display: flex; align-items: center; gap: 10px;
}
.option-chip:hover { border-color: var(--navy-3); background: var(--bg-soft); }
.option-chip.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.option-chip .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--navy-3); }
.option-chip.selected .ico { background: #fff; color: var(--accent); }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }
.wizard-summary { background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; font-size: 14.5px; }
.wizard-summary b { color: var(--navy); }
.wizard-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.wizard-form-grid .full { grid-column: 1 / -1; }

/* ============================================================
   КАРТОЧКИ (ЗАДАЧИ И МИРЫ)
   ============================================================ */
.cards-grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.task-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff; padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.task-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.task-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.task-card:hover img { transform: scale(1.05); }
.task-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,45,85,.08) 25%, rgba(3,45,85,.9) 100%); }
.task-card > * { position: relative; z-index: 1; }
.task-card h3 { color: #fff; font-size: 19px; margin-bottom: 7px; }
.task-card p { color: #d3dee9; font-size: 14px; margin-bottom: 14px; }
.task-card .go {
  align-self: flex-start; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  backdrop-filter: blur(4px); transition: all .2s;
}
.task-card:hover .go { background: var(--accent); border-color: var(--accent); }

.world-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.world-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.world-card .thumb { height: 210px; overflow: hidden; position: relative; }
.world-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.world-card:hover .thumb img { transform: scale(1.06); }
.world-card .num {
  position: absolute; top: 16px; left: 16px; background: rgba(3,45,85,.85); color: #fff;
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.world-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.world-card h3 { margin-bottom: 8px; }
.world-card .tagline { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.world-card p { font-size: 14.5px; margin-bottom: 16px; flex: 1; }
.world-card ul { margin-bottom: 18px; }
.world-card ul li { font-size: 14px; color: var(--body); padding: 7px 0 7px 22px; position: relative; border-bottom: 1px dashed var(--line); }
.world-card ul li:last-child { border-bottom: 0; }
.world-card ul li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--accent);
}

/* ============================================================
   АККОРДЕОН ДОКУМЕНТОВ
   ============================================================ */
.accordion { display: grid; gap: 14px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: #fff; border: 0; text-align: left; font-size: 17px; font-weight: 700; color: var(--navy);
}
.acc-head .acc-ico {
  width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.acc-head .acc-count { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }
.acc-head .plus {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  transition: transform .25s; flex-shrink: 0; font-size: 17px;
}
.acc-item.open .plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-item.open .acc-body { max-height: 600px; }
.acc-body-inner { padding: 4px 24px 20px 84px; }
.doc-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 10px;
  transition: background .15s;
}
.doc-row:hover { background: var(--bg-soft); }
.doc-ico { width: 38px; height: 44px; border-radius: 7px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.doc-row .doc-name { flex: 1; font-weight: 600; font-size: 14.5px; color: var(--navy); }
.doc-row .doc-meta { font-size: 12.5px; color: var(--muted); }
.doc-row .doc-download { color: var(--accent); font-weight: 700; font-size: 13.5px; white-space: nowrap; }

/* ============================================================
   ДОВЕРИЕ
   ============================================================ */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 44px; }
.partner-badge {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; font-weight: 800; color: var(--navy);
  transition: all .2s; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.partner-badge:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.partner-badge small { font-weight: 600; color: var(--muted); font-size: 12px; }
.letters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.letter {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px 20px;
  aspect-ratio: 3/4; display: flex; flex-direction: column; position: relative; overflow: hidden;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; cursor: pointer;
}
.letter:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: var(--shadow); }
.letter .l-head { text-align: center; font-weight: 800; color: var(--navy); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 14px; }
.letter .l-lines { flex: 1; display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.letter .l-lines i { display: block; height: 7px; border-radius: 4px; background: var(--bg-soft); }
.letter .l-lines i:nth-child(odd) { width: 88%; }
.letter .l-lines i:nth-child(3n) { width: 70%; }
.letter .stamp {
  position: absolute; right: 14px; bottom: 16px; width: 64px; height: 64px; border-radius: 50%;
  border: 2.5px solid rgba(0, 113, 206, .55); color: rgba(0, 113, 206, .75);
  display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800;
  text-align: center; line-height: 1.2; transform: rotate(-12deg); text-transform: uppercase;
}
.letter .l-foot { font-size: 11.5px; color: var(--muted); margin-top: 12px; }

/* ============================================================
   НОВОСТИ
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card .thumb { height: 190px; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.news-meta .cat { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.news-card h3 { font-size: 17.5px; margin-bottom: 9px; }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { font-size: 14px; flex: 1; }
.news-card .link-arrow { margin-top: 16px; font-size: 14px; }

/* ============================================================
   ЛИД-МАГНИТ
   ============================================================ */
.lead {
  border-radius: var(--radius-lg); background: var(--gradient);
  padding: 60px; color: #fff; position: relative; overflow: hidden;
}
.lead::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.14);
}
.lead::before {
  content: ""; position: absolute; right: 60px; bottom: -120px; width: 260px; height: 260px;
  border-radius: 50%; border: 30px solid rgba(255,255,255,.05);
}
.lead-inner { position: relative; z-index: 1; max-width: 640px; }
.lead h2 { color: #fff; margin-bottom: 12px; }
.lead p { color: #e3f1fb; font-size: 17px; margin-bottom: 28px; }
.lead-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer { background: var(--brand-deep); color: #a9c4dc; padding: 64px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer .logo-text b { color: #fff; }
.footer-about p { color: #8ba0b3; margin: 16px 0 20px; font-size: 13.5px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .08em; }
.footer-col a { display: block; padding: 6px 0; color: #9fb2c4; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-contact div { margin-bottom: 12px; display: flex; gap: 10px; }
.footer-contact .ico { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: #d6e1ec; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex;
  justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #6e8296;
}
.requisites { font-size: 12.5px; color: #7b8fa3; line-height: 1.7; }

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ / СТРАНИЦЫ
   ============================================================ */
.breadcrumbs { padding: 22px 0 0; font-size: 13.5px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; color: #c2cdd8; }
.page-hero { background: var(--bg); padding: 34px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 720px; margin-top: 12px; font-size: 16.5px; }
.content-page { padding: 60px 0 80px; }
.content-page h2 { margin: 34px 0 14px; font-size: 26px; }
.content-page h2:first-child { margin-top: 0; }
.content-page h3 { margin: 24px 0 10px; }
.content-page p { margin-bottom: 14px; }
.content-page ul.bullets { margin: 0 0 16px; }
.content-page ul.bullets li { padding: 7px 0 7px 26px; position: relative; color: var(--body); }
.content-page ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0; }
.info-tile { background: var(--bg); border-radius: var(--radius); padding: 24px; }
.info-tile .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.info-tile h3 { font-size: 17px; margin-bottom: 8px; }
.info-tile p { font-size: 14px; margin: 0; }
.contacts-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.contact-card { background: var(--bg); border-radius: var(--radius-lg); padding: 30px; }
.contact-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ico { width: 42px; height: 42px; border-radius: 10px; background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row b { display: block; color: var(--navy); }
.contact-row span { color: var(--body); font-size: 14px; }
.map-placeholder {
  border-radius: var(--radius-lg); height: 340px; background:
    linear-gradient(rgba(3,45,85,.82), rgba(3,45,85,.82)),
    repeating-linear-gradient(0deg, transparent, transparent 44px, rgba(255,255,255,.07) 45px),
    repeating-linear-gradient(90deg, transparent, transparent 44px, rgba(255,255,255,.07) 45px),
    var(--navy);
  display: flex; align-items: center; justify-content: center; color: #cdd9e5; flex-direction: column; gap: 10px;
}
.article-layout { max-width: 820px; margin: 0 auto; }
.article-layout img { border-radius: var(--radius-lg); margin: 26px 0; box-shadow: var(--shadow-sm); }
.article-layout .news-meta { margin-bottom: 18px; }

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.catalog-layout { display: grid; grid-template-columns: 290px 1fr; gap: 32px; padding: 36px 0 80px; align-items: start; }
.sidebar { position: sticky; top: 96px; }
.side-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.side-block-title { padding: 16px 18px; font-weight: 700; color: var(--navy); font-size: 15px; border-bottom: 1px solid var(--line); background: var(--bg-soft); display: flex; align-items: center; justify-content: space-between; }
.tree { padding: 10px; max-height: 420px; overflow-y: auto; }
.tree-section > .tree-link { font-weight: 700; color: var(--navy); font-size: 14.5px; padding: 10px 10px; border-radius: 8px; display: flex; align-items: center; gap: 8px; }
.tree-section > .tree-link:hover { background: var(--bg-soft); }
.tree-section > .tree-link.active { background: var(--accent-soft); color: var(--accent-dark); }
.tree-cats { padding: 2px 0 6px 14px; }
.tree-cats a { display: block; padding: 8px 10px; font-size: 13.8px; color: var(--body); border-radius: 8px; border-left: 2px solid var(--line); margin-left: 4px; }
.tree-cats a:hover { color: var(--accent); border-left-color: var(--accent); }
.tree-cats a.active { color: var(--accent-dark); font-weight: 700; border-left-color: var(--accent); background: var(--accent-soft); }
.tree-count { font-size: 11.5px; color: var(--muted); background: var(--bg-soft); border-radius: 20px; padding: 2px 8px; margin-left: auto; }

.filter-group { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-size: 13.5px; color: var(--navy); margin-bottom: 11px; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--body); cursor: pointer; }
.filter-option input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.filter-option:hover { color: var(--navy); }
.filter-option .cnt { margin-left: auto; font-size: 12px; color: var(--muted); }

.catalog-toolbar {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; flex-wrap: wrap;
}
.catalog-toolbar .count { font-size: 14px; color: var(--muted); }
.catalog-toolbar .count b { color: var(--navy); }
.catalog-toolbar .select { width: auto; padding: 9px 14px; font-size: 14px; margin-left: auto; }
.mobile-filter-btn { display: none; }
#filterClose { display: none; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--navy); color: #fff;
  border-radius: 30px; padding: 7px 8px 7px 14px; font-size: 13px; font-weight: 600; border: 0;
}
.chip button { background: rgba(255,255,255,.2); border: 0; color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.chip button:hover { background: var(--accent); }
.reset-link { background: none; color: var(--accent); font-weight: 600; font-size: 13.5px; padding: 7px 4px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dde7; }
.product-photo {
  height: 170px; background: linear-gradient(150deg, var(--bg-soft) 0%, #e4ecf4 100%);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.product-photo .ph-model {
  font-weight: 800; color: var(--navy-3); font-size: 15px; letter-spacing: .03em; text-align: center;
  background: rgba(255,255,255,.85); padding: 9px 16px; border-radius: 9px; box-shadow: var(--shadow-sm);
  max-width: 86%;
}
.product-photo .ph-icon { position: absolute; top: 14px; left: 14px; color: rgba(3,45,85,.25); }
.product-photo .ph-brand { position: absolute; bottom: 12px; right: 14px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stock-badge {
  position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 700;
  padding: 5px 10px; border-radius: 20px;
}
.stock-badge.stock { background: var(--green-soft); color: var(--green); }
.stock-badge.order { background: #e8f1f8; color: #00579e; }
.product-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.product-body h3 { font-size: 15.5px; line-height: 1.4; margin-bottom: 10px; }
.product-body h3 a:hover { color: var(--accent); }
.product-specs { font-size: 12.8px; color: var(--body); margin-bottom: 16px; flex: 1; }
.product-specs div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.product-specs span:first-child { color: var(--muted); }
.product-specs b { color: var(--navy); font-weight: 600; text-align: right; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { margin-bottom: 20px; }

/* ============================================================
   КАРТОЧКА ТОВАРА
   ============================================================ */
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; padding: 34px 0 70px; align-items: start; }
.gallery-main {
  background: linear-gradient(150deg, var(--bg-soft), #e2eaf3); border-radius: var(--radius-lg);
  min-height: 420px; display: flex; align-items: center; justify-content: center; position: relative;
  border: 1px solid var(--line);
}
.gallery-main .ph-model { font-size: 26px; font-weight: 800; color: var(--navy-3); background: rgba(255,255,255,.9); padding: 18px 30px; border-radius: 14px; box-shadow: var(--shadow); }
.gallery-main .stock-badge { top: 20px; right: 20px; font-size: 13px; padding: 7px 14px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs div {
  width: 84px; height: 70px; border-radius: 10px; background: var(--bg-soft); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); font-weight: 700;
}
.gallery-thumbs div.active { border-color: var(--accent); }
.product-info .product-brand { font-size: 13px; }
.product-info h1 { font-size: clamp(26px, 3vw, 34px); margin: 8px 0 14px; }
.product-lead { color: var(--body); margin-bottom: 24px; }
.info-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.info-badge { background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.info-badge b { display: block; color: var(--navy); font-size: 14.5px; }
.buy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.buy-card .price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.buy-card .price { font-size: 24px; font-weight: 800; color: var(--navy); }
.buy-card .price-note { font-size: 13px; color: var(--muted); }
.buy-card .btn { margin-bottom: 10px; }
.buy-card .form-note { margin-top: 4px; }
.tabs { margin-top: 46px; }
.tab-btns { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tab-btn { background: none; border: 0; padding: 13px 20px; font-weight: 700; color: var(--muted); font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .25s ease; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table tr:nth-child(odd) { background: var(--bg-soft); }
.spec-table th, .spec-table td { padding: 14px 20px; text-align: left; font-size: 14.5px; }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; }
.spec-table td { color: var(--navy); font-weight: 600; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }

/* ============================================================
   МОДАЛКИ
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(2,35,70,.75); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: all .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: min(560px, 100%); max-height: 90vh;
  overflow-y: auto; transform: translateY(14px); transition: transform .25s;
}
.modal-overlay.open .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-close { width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; font-size: 17px; color: var(--navy); }
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-body { padding: 24px; }
.modal-lg { width: min(880px, 100%); }
.video-frame {
  aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(rgba(3,45,85,.55), rgba(3,45,85,.55)), url("../images/hero.jpg") center/cover;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: #fff; text-align: center; padding: 20px;
}
.video-frame .big-play {
  width: 84px; height: 84px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 12px rgba(9,160,220,.28);
}
.video-frame .big-play::before { content: ""; border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
.video-frame b { font-size: 20px; }
.video-frame small { color: #cfdbe7; }

/* ============================================================
   СТРАНИЦЫ «СЕРТИФИКАТЫ» И «ОТЗЫВЫ»: ЗАГЛУШКИ ДОКУМЕНТОВ
   ============================================================ */
.edit-hint {
  background: var(--accent-soft); border: 1px solid #c7e2f7; color: var(--brand-dark);
  border-radius: 10px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 24px;
}
.edit-hint b { color: var(--navy); }

.scan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.scan-card { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.scan-thumb {
  aspect-ratio: 3/4; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; color: var(--muted); cursor: pointer;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.scan-thumb:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.doc-ico-lg {
  width: 66px; height: 80px; border-radius: 8px; background: var(--bg-soft);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-weight: 800; font-size: 15px; letter-spacing: .04em; position: relative;
}
.doc-ico-lg::after {
  content: ""; position: absolute; top: 0; right: 0; border-style: solid;
  border-width: 0 14px 14px 0; border-color: transparent #fff transparent transparent;
  filter: drop-shadow(-1px 1px 1px rgba(0,60,120,.15));
}
.scan-thumb small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; }

/* Редактируемые подписи */
.scan-title, .company-name {
  outline: none; border: 1px dashed transparent; border-radius: 8px; transition: background .2s, border-color .2s;
}
.scan-title {
  font-size: 14px; font-weight: 600; color: var(--navy); text-align: center;
  min-height: 42px; padding: 7px 8px; line-height: 1.45;
}
.scan-title:hover, .scan-title:focus,
.company-name:hover, .company-name:focus { border-color: var(--brand-light); background: var(--bg); }
.scan-title:empty::before, .company-name:empty::before {
  content: attr(data-placeholder); color: var(--muted); font-weight: 500;
}

.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 10px; }
.logo-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px 16px; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #cfe0f0; }
.logo-ph {
  height: 74px; border-radius: 10px; background: var(--bg-soft); color: var(--muted);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 13px; font-weight: 700; line-height: 1.5; margin-bottom: 12px;
}
.company-name { font-size: 13.5px; font-weight: 600; color: var(--navy); text-align: center; min-height: 30px; padding: 5px; }

/* ============================================================
   БЛОК «ПОЧЕМУ ФАРГАЗ»
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px 0 10px; }
.why-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f0; }
.why-card .ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.why-card .why-num {
  position: absolute; top: 18px; right: 22px; font-size: 15px; font-weight: 800;
  color: var(--brand-light); opacity: .55; letter-spacing: .04em;
}
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p { font-size: 14px; margin: 0; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1200px) {
  .mega-flyout { width: 320px; }
}
@media (max-width: 1100px) {
  .main-nav > li > a { padding: 26px 10px; font-size: 14.5px; }
  .header-phone { display: none; }
  .mega-flyout { width: 300px; max-height: 380px; }
  .mega-flyout ul li a { font-size: 13px; padding: 8px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid, .letters-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .scan-grid, .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .topbar-nav { display: none; }
  .main-nav, .header-actions .btn { display: none; }
  .burger { display: flex; }
  .mega { display: none; }
  .grid-3, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); z-index: 210; background: #fff;
    overflow-y: auto; padding: 20px; transform: translateX(-105%); transition: transform .3s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .mobile-filter-btn { display: inline-flex; }
  #filterClose { display: flex; width: 32px; height: 32px; }
  .product-layout, .contacts-grid { grid-template-columns: 1fr; }
  .scan-grid, .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lead { padding: 40px 28px; }
  .wizard-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 54px 0; }
  .hero-inner { padding: 72px 0 80px; }
  .brand-decor { display: none; }
  .grid-3, .grid-2, .news-grid, .partners-grid, .letters-grid, .info-grid, .related-grid, .product-grid, .why-grid, .scan-grid, .logo-grid { grid-template-columns: 1fr; }
  .wizard-card { padding: 24px 18px; }
  .wizard-steps { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar-contacts { gap: 14px; font-size: 12.5px; }
  .topbar .container { justify-content: center; }
  .acc-body-inner { padding-left: 24px; }
  .acc-head { padding: 16px; font-size: 15px; }
  .doc-row { flex-wrap: wrap; }
  .brand-strip .container { gap: 18px; }
}
