/* =========================================================================
   Альфа-Медик — стили сайта
   1. Переменные и база      5. Каталог и карточки
   2. Кнопки, формы          6. Корзина и оформление
   3. Шапка и меню           7. Документы и текстовые страницы
   4. Главная                8. Подвал, cookie, адаптив
   ========================================================================= */

/* ---------- 1. Переменные и база ---------------------------------------- */
:root {
  --navy-900: #0c2233;
  --navy-800: #12324a;
  --navy-700: #1b4a68;
  --brand-700: #0a6a8d;
  --brand-600: #0b7fa8;
  --brand-500: #1394bf;
  --brand-100: #d6ecf5;
  --brand-50:  #eef8fc;
  --accent:    #e2553d;
  --accent-dk: #c4432e;
  --green:     #16a34a;
  --amber:     #c97a09;
  --ink:       #16222e;
  --muted:     #5f7386;
  --line:      #e1e8ef;
  --bg:        #f4f7fa;
  --surface:   #ffffff;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --sh-1: 0 1px 2px rgba(16, 40, 60, .06), 0 2px 8px rgba(16, 40, 60, .05);
  --sh-2: 0 4px 12px rgba(16, 40, 60, .09), 0 12px 32px rgba(16, 40, 60, .08);
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

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

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.4vw, 38px); }
h2 { font-size: clamp(21px, 2.4vw, 28px); }
h3 { font-size: clamp(18px, 1.8vw, 21px); }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; width: 100%; }

.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 17px; height: 17px; }
.icon--lg { width: 28px; height: 28px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-600); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- 2. Кнопки, формы, общие блоки -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
  text-align: center; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dk); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand-600); border-color: var(--line); }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: var(--brand-50); color: var(--navy-900); }
.btn--sm { padding: 9px 15px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }

.field { margin-bottom: 16px; }
.field__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--navy-800); }
.field__label .req { color: var(--accent); }
.field__hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.field__error { font-size: 13px; color: var(--accent-dk); margin-top: 5px; display: none; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .input { border-color: var(--accent); background: #fef6f4; }

.input, .textarea, .select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50); outline: none;
}
.textarea { min-height: 96px; resize: vertical; }

.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; line-height: 1.45; }
.check input { margin: 2px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--brand-600); }
.check.is-invalid { color: var(--accent-dk); }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.section { padding: 44px 0; }
.section--tight { padding: 28px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__link { font-weight: 600; font-size: 15px; }

.note {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--navy-800);
  font-size: 15px; margin-bottom: 20px;
}
.note--warn { background: #fff8ec; border-color: #f4e0bd; color: #6b4d12; }
.note--error { background: #fdf1ee; border-color: #f3cfc6; color: #8c3423; }
.note p:last-child { margin-bottom: 0; }

.crumbs { font-size: 14px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-600); }
.crumbs__sep { margin: 0 7px; opacity: .55; }
.crumbs__cur { color: var(--ink); }

/* ---------- 3. Шапка и меню ---------------------------------------------- */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }

.hdr__top { background: var(--navy-900); color: #c8dae7; font-size: 13.5px; }
.hdr__top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.hdr__hours { display: inline-flex; align-items: center; gap: 7px; }
.hdr__toplinks { display: flex; gap: 20px; flex-wrap: wrap; }
.hdr__toplinks a { color: #c8dae7; }
.hdr__toplinks a:hover { color: #fff; }

.hdr__main {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: 22px; padding: 14px 20px;
}
.hdr__burger {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px; color: var(--navy-800); cursor: pointer;
}

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--navy-900); text-decoration: none; }
.logo:hover { text-decoration: none; color: var(--navy-900); }
.logo__mark { width: 40px; height: 40px; color: var(--brand-600); flex: none; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.logo__slogan { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }

.search { display: flex; max-width: 560px; width: 100%; }
.search__input {
  flex: 1; padding: 11px 16px; font: inherit; border: 1px solid var(--line);
  border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--bg);
}
.search__input:focus { outline: none; border-color: var(--brand-500); background: #fff; }
.search__btn {
  padding: 0 18px; background: var(--brand-600); color: #fff; border: 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0; cursor: pointer; display: flex; align-items: center;
}
.search__btn:hover { background: var(--brand-700); }

.hdr__contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; }
.hdr__phone { font-size: 17px; font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.hdr__phone:hover { color: var(--brand-600); text-decoration: none; }
.hdr__mail { font-size: 13.5px; color: var(--muted); }

.cartbtn {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-sm);
  color: var(--navy-800); font-weight: 600; position: relative; white-space: nowrap;
}
.cartbtn:hover { background: var(--brand-100); color: var(--navy-900); text-decoration: none; }
.cartbtn__count {
  position: absolute; top: -7px; left: 26px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 10px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cartbtn__sum:empty::before { content: "Корзина"; color: var(--muted); font-weight: 500; }

.nav { border-top: 1px solid var(--line); background: var(--surface); }
.nav__in { display: flex; align-items: center; gap: 24px; }
.nav__catalog { position: relative; }
.nav__catalog-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; margin: 0;
  background: var(--brand-600); color: #fff; border: 0; font: inherit; font-weight: 600;
  cursor: pointer; border-radius: 0;
}
.nav__catalog-btn:hover { background: var(--brand-700); }
.nav__drop {
  position: absolute; top: 100%; left: 0; z-index: 45; width: 340px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--sh-2);
}
.nav__drop-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink); font-size: 15px;
}
.nav__drop-item:hover { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.nav__drop-item svg { color: var(--brand-600); }
.nav__drop-item em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted); }

.nav__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav__list a { color: var(--navy-800); font-size: 15px; font-weight: 500; padding: 13px 0; display: inline-block; }
.nav__list a:hover, .nav__list a.is-active { color: var(--brand-600); text-decoration: none; box-shadow: inset 0 -2px 0 var(--brand-600); }
.nav__note { margin-left: auto; font-size: 13px; color: var(--muted); }

.mobile { position: fixed; inset: 0; z-index: 90; background: rgba(12, 34, 51, .45); }
.mobile__panel {
  width: min(340px, 88vw); height: 100%; background: #fff; padding: 18px 20px 40px;
  overflow-y: auto; box-shadow: var(--sh-2);
}
.mobile__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mobile__title { font-weight: 700; font-size: 18px; }
.mobile__close { background: none; border: 0; padding: 6px; color: var(--muted); cursor: pointer; }
.mobile__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 6px; }
.mobile__list { list-style: none; margin: 0 0 6px; padding: 0; }
.mobile__list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile__list svg { color: var(--brand-600); }
.mobile__cta { margin-top: 18px; }

/* ---------- 4. Главная ---------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--brand-700) 100%);
  color: #fff; padding: 52px 0;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); font-size: 13.5px; font-weight: 600; margin-bottom: 16px;
}
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero__lead { font-size: clamp(16px, 1.6vw, 18px); color: #cfe3ee; max-width: 46em; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.hero__stat b { display: block; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; }
.hero__stat span { font-size: 13.5px; color: #b9d2e2; }
.hero__card {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-lg); padding: 24px; backdrop-filter: blur(2px);
}
.hero__card h2 { font-size: 19px; color: #fff; }
.hero__steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.hero__steps li {
  counter-increment: s; display: flex; gap: 13px; padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; color: #dbeaf3;
}
.hero__steps li:last-child { border-bottom: 0; }
.hero__steps li::before {
  content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat {
  display: flex; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); color: var(--ink); transition: box-shadow .15s, border-color .15s, transform .15s;
}
.cat:hover { text-decoration: none; box-shadow: var(--sh-2); border-color: var(--brand-100); transform: translateY(-2px); color: var(--ink); }
.cat__icon {
  width: 46px; height: 46px; flex: none; border-radius: var(--r-sm);
  background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
}
.cat__name { font-weight: 700; font-size: 16.5px; margin-bottom: 4px; }
.cat__descr { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.cat__count { font-size: 12.5px; color: var(--brand-600); font-weight: 600; margin-top: 8px; display: block; }

.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adv__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.adv__icon {
  width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--brand-50);
  color: var(--brand-600); display: flex; align-items: center; justify-content: center; margin-bottom: 13px;
}
.adv__title { font-weight: 700; margin-bottom: 6px; }
.adv__text { font-size: 14px; color: var(--muted); margin: 0; }

.cta {
  background: var(--navy-800); color: #fff; border-radius: var(--r-lg); padding: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { color: #c3d8e6; margin: 0; max-width: 52em; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

.seo { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; color: var(--muted); font-size: 14.5px; }
.seo h2 { color: var(--ink); font-size: 20px; }
.seo p:last-child { margin-bottom: 0; }

/* ---------- 5. Каталог и карточки ---------------------------------------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  position: sticky; top: 16px;
}
.filters__title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.filters__list { list-style: none; margin: 0 0 18px; padding: 0; }
.filters__list a {
  display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink); font-size: 14.5px;
}
.filters__list a:hover { background: var(--brand-50); text-decoration: none; }
.filters__list a.is-active { background: var(--brand-600); color: #fff; font-weight: 600; }
.filters__list em { font-style: normal; opacity: .65; font-size: 12.5px; }

.toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 18px;
}
.toolbar__count { color: var(--muted); font-size: 14px; }
.toolbar__sort { margin-left: auto; display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.toolbar__sort .select { width: auto; padding: 8px 12px; font-size: 14px; }

.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
  display: flex; flex-direction: column; position: relative; transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: var(--sh-2); border-color: var(--brand-100); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; z-index: 2; }
.badge {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 5px; background: var(--brand-600); color: #fff;
}
.badge--sale { background: var(--accent); }
.badge--new { background: var(--green); }
.badge--premium { background: var(--navy-800); }
.badge--discount { background: var(--accent); }

.card__link { display: block; color: inherit; }
.card__link:hover { text-decoration: none; color: inherit; }
.card__img, .ph {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: var(--r-sm);
  background: var(--bg); margin-bottom: 12px;
}
.ph { display: flex; align-items: center; justify-content: center; }
.ph__icon { width: 42%; height: 42%; color: var(--brand-600); opacity: .5; }
.ph--consumables   { background: linear-gradient(135deg, #eaf5fa, #d9ecf5); }
.ph--instruments   { background: linear-gradient(135deg, #eef2f7, #dde6ee); }
.ph--materials     { background: linear-gradient(135deg, #eaf7f3, #d7eee6); }
.ph--sterilization { background: linear-gradient(135deg, #f0f4fb, #dee7f6); }
.ph--equipment     { background: linear-gradient(135deg, #eef1f6, #dbe3ec); }
.ph--prophylaxis   { background: linear-gradient(135deg, #f6f2fb, #e8dff5); }

.card__brand { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.card__name { font-size: 14.5px; line-height: 1.4; font-weight: 500; margin: 0 0 10px; }
.card__stock { font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.card__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.card__stock--warn::before { background: var(--amber); }
.card__stock--out::before { background: var(--muted); }
.card__stock--warn { color: var(--amber); }
.card__foot { margin-top: auto; }
.card__prices { display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px; }
.card__price { font-size: 19px; font-weight: 800; }
.card__old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.card__unit { font-size: 12.5px; color: var(--muted); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.qty__btn {
  width: 34px; height: 38px; background: #fff; border: 0; color: var(--navy-800);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.qty__btn:hover { background: var(--brand-50); }
.qty__input {
  width: 46px; height: 38px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.card__actions { display: flex; gap: 8px; }
.card__actions .btn { flex: 1; }
.btn-added { background: var(--green) !important; color: #fff !important; }

.empty { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 40px; text-align: center; }
.empty__icon { color: var(--brand-600); opacity: .45; margin: 0 auto 12px; width: 48px; height: 48px; }

/* Карточка товара */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.product__media { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; position: relative; }
.product__media .ph, .product__media .card__img { aspect-ratio: 1 / 1; margin: 0; }
.product__title { margin-bottom: 10px; }
.product__meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.product__buy {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 20px;
}
.product__prices { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.product__price { font-size: 30px; font-weight: 800; }
.product__old { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.product__buyrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.product__buyrow .btn { flex: 1 1 170px; white-space: nowrap; padding-left: 16px; padding-right: 16px; }
@media (min-width: 961px) {
  .product__media { position: sticky; top: 16px; }
}
.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--muted); width: 46%; }
.tabs__title { margin-top: 26px; }

/* ---------- 6. Корзина и оформление -------------------------------------- */
.cartpage { display: grid; grid-template-columns: 1fr 350px; gap: 24px; align-items: start; }
.cart-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .ph, .cart-item .card__img { width: 88px; aspect-ratio: 1/1; margin: 0; }
.cart-item__name { font-size: 15px; font-weight: 500; color: var(--ink); }
.cart-item__name:hover { color: var(--brand-600); }
.cart-item__meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.cart-item__price { font-weight: 700; white-space: nowrap; text-align: right; }
.cart-item__unit { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.cart-item__del { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.cart-item__del:hover { color: var(--accent); }

.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: sticky; top: 16px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.summary__row--total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 19px; font-weight: 800; }
.summary__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.summary .btn { margin-top: 16px; }

.checkout { display: grid; grid-template-columns: 1fr 350px; gap: 24px; align-items: start; }
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 20px; }
.formcard__title { font-size: 17px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.radio-card:hover { border-color: var(--brand-100); background: var(--brand-50); }
.radio-card input { margin-top: 2px; accent-color: var(--brand-600); width: 18px; height: 18px; flex: none; }
.radio-card b { display: block; font-size: 15px; }
.radio-card span { font-size: 13.5px; color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }

.mini-list { list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; }
.mini-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mini-list span { color: var(--muted); }

.success { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 40px; text-align: center; max-width: 720px; margin: 0 auto; }
.success__icon {
  width: 64px; height: 64px; border-radius: 50%; background: #e7f6ed; color: var(--green);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.success__num { font-size: 22px; font-weight: 800; color: var(--brand-600); }
.success__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- 7. Документы и текстовые страницы ----------------------------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0 30px; margin-bottom: 34px; }
.page-head h1 { margin-bottom: 8px; }
.page-head__lead { color: var(--muted); font-size: 16.5px; max-width: 62em; margin: 0; }

.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 4vw, 44px); max-width: 900px; }
.doc h2 { font-size: 20px; margin-top: 32px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin-top: 22px; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.65; }
.doc ol, .doc ul { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc__meta { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg); font-weight: 600; }
.doc__scroll { overflow-x: auto; }

.doclist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doclist__item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: var(--ink); }
.doclist__item:hover { text-decoration: none; box-shadow: var(--sh-2); border-color: var(--brand-100); color: var(--ink); }
.doclist__icon { width: 42px; height: 42px; flex: none; border-radius: var(--r-sm); background: var(--brand-50); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.doclist__name { font-weight: 700; margin-bottom: 4px; }
.doclist__descr { font-size: 13.5px; color: var(--muted); }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.infocard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.infocard h2, .infocard h3 { margin-top: 0; }
.infocard p:last-child, .infocard ul:last-child { margin-bottom: 0; }

.reqs { width: 100%; border-collapse: collapse; font-size: 15px; }
.reqs th, .reqs td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.reqs th { font-weight: 500; color: var(--muted); width: 40%; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.contact-card__icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--brand-50); color: var(--brand-600); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.contact-card b { display: block; font-size: 17px; margin-bottom: 4px; }
.contact-card span, .contact-card a { font-size: 14.5px; }
.map-frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; min-height: 320px; display: flex; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 24px; }

.steps { counter-reset: st; display: grid; gap: 14px; }
.step { counter-increment: st; display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.step::before {
  content: counter(st); flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-600); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step b { display: block; margin-bottom: 4px; font-size: 16.5px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-600); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 20px 16px; margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 8. Подвал, cookie, наверх, адаптив ---------------------------- */
.ftr { background: var(--navy-900); color: #b7cddc; margin-top: 50px; padding: 44px 0 26px; font-size: 14.5px; }
.ftr a { color: #b7cddc; }
.ftr a:hover { color: #fff; }
.ftr__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.logo--ftr { color: #fff; margin-bottom: 14px; }
.logo--ftr:hover { color: #fff; }
.logo--ftr .logo__mark { color: var(--brand-500); }
.logo--ftr .logo__slogan { color: #7f9fb5; }
.ftr__about { font-size: 14px; line-height: 1.6; }
.ftr__contacts { display: flex; flex-direction: column; gap: 9px; }
.ftr__contacts a, .ftr__contacts span { display: flex; align-items: center; gap: 9px; }
.ftr__contacts svg { color: var(--brand-500); flex: none; }
.ftr__title { color: #fff; font-weight: 700; margin: 0 0 12px; font-size: 15.5px; }
.ftr__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ftr__disclaimer {
  display: flex; gap: 11px; align-items: flex-start; margin: 22px 0 16px; padding: 14px 16px;
  background: rgba(255, 255, 255, .05); border-radius: var(--r-sm); font-size: 13px; line-height: 1.55; color: #a9c2d3;
}
.ftr__disclaimer svg { color: var(--brand-500); flex: none; margin-top: 2px; }
.ftr__legal, .ftr__copy { font-size: 13px; color: #8fabbf; line-height: 1.6; }
.ftr__copy { margin-bottom: 0; }

.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 0 20px 20px; }
.cookie__in {
  max-width: var(--wrap); margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-2); padding: 18px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie__text { margin: 0; font-size: 14px; flex: 1; min-width: 260px; color: var(--muted); }
.cookie__btns { display: flex; gap: 10px; flex-wrap: wrap; }

.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand-600);
  box-shadow: var(--sh-2); cursor: pointer; display: none; align-items: center; justify-content: center;
}
.totop svg { transform: rotate(-90deg); }
.totop.is-visible { display: flex; }

@media (max-width: 1100px) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .hdr__main { grid-template-columns: auto 1fr auto; gap: 16px; }
  .hdr__contacts { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .adv { grid-template-columns: repeat(2, 1fr); }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .cartpage, .checkout { grid-template-columns: 1fr; }
  .summary, .filters { position: static; }
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; }
  .nav__note { display: none; }
}

@media (max-width: 760px) {
  .hdr__top { display: none; }
  .hdr__burger { display: flex; }
  .hdr__main { grid-template-columns: auto 1fr auto; padding: 12px 20px; gap: 12px; }
  .search { order: 4; grid-column: 1 / -1; max-width: none; }
  .logo__slogan { display: none; }
  .logo__name { font-size: 19px; }
  .nav { display: none; }
  .grid-cards, .grid-cards--3 { grid-template-columns: repeat(2, 1fr); }
  .doclist, .cols-2, .form-row, .contact-grid { grid-template-columns: 1fr; }
  .cta { padding: 24px; }
  .section { padding: 32px 0; }
  .ftr__cols { grid-template-columns: 1fr; gap: 22px; }
  .cart-item { grid-template-columns: 64px 1fr auto; grid-template-areas: "img name del" "img qty price"; gap: 12px; }
  .cart-item .ph, .cart-item .card__img { width: 64px; grid-area: img; }
  .cart-item__body { grid-area: name; }
  .cart-item__qty { grid-area: qty; }
  .cart-item__price { grid-area: price; }
  .cart-item__del { grid-area: del; align-self: start; }
}

@media (max-width: 480px) {
  .grid-cards, .grid-cards--3 { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: 1fr; }
  .adv { grid-template-columns: 1fr; }
  .cartbtn__sum { display: none; }
  .cookie__in { padding: 14px; }
}

@media print {
  .hdr, .ftr__cols, .cookie, .totop, .crumbs { display: none; }
  body { background: #fff; }
  .doc { border: 0; padding: 0; }
}
