/* ============================================================
   Atlas Zdorovya — site.css
   Общий каркас нового стиля (A2): шапка, футер, фон + компоненты
   статичных страниц. Самодостаточный — без зависимости от main.css.
   ============================================================ */

:root {
  --cream: #FFFDF9;
  --sand: #F6F1E7;
  --sand-2: #EFE8DA;
  --sage: #7A9471;
  --sage-light: #E9F0E4;
  --sage-dark: #5C7355;
  --sage-deep: #3F5239;
  --ink: #2B2B26;
  --ink-soft: #6E6E64;
  --coral: #E2795B;
  --gold: #D9A441;
  --hair: rgba(43, 43, 38, 0.1);
  --radius: 16px;
  --gap-sm: 1rem;
  --gap-md: 1.75rem;
  --gap-lg: 3rem;
  --gap-xl: 4.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(1100px 560px at 85% -120px, rgba(122,148,113,0.20), transparent 62%),
    radial-gradient(800px 500px at -140px 420px, rgba(226,121,91,0.08), transparent 58%),
    linear-gradient(180deg, #FBF7EE 0%, var(--cream) 520px),
    var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  position: relative;
  line-height: 1.5;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.06; mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.container, .wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--sage-deep); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

@keyframes az-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.az-rise { animation: az-rise .55s cubic-bezier(.22,.7,.3,1) both; }
@media (prefers-reduced-motion: reduce) {
  .az-rise { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 14.5px 'Manrope', sans-serif; cursor: pointer; border: 0;
  padding: 13px 24px; border-radius: 12px; transition: background .16s, transform .16s, color .16s, opacity .16s;
  white-space: nowrap;
}
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled:hover, .btn[disabled]:hover { transform: none; }
.btn--primary { background: var(--sage); color: #fff; }
.btn--primary:hover { background: var(--sage-dark); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,0.7); color: var(--sage-deep); border: 1px solid var(--hair); }
.btn--ghost:hover { background: #fff; }
.btn--white { background: #fff; color: var(--sage-deep); }
.btn--white:hover { transform: translateY(-2px); }
.btn--outline-light { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); }
.btn--sm { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; }

/* ── Topbar ── */
.topbar { background: #21473A; color: #fff; font-size: 13px; font-weight: 600; padding: 7px 0; }
.topbar__sfr { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.topbar__sfr:hover { text-decoration: underline; }
.topbar__sfr img { width: 17px; height: 17px; object-fit: contain; background: #fff; border-radius: 50%; padding: 1px; flex: 0 0 auto; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar b { font-weight: 600; }
.topbar a { color: inherit; }
.topbar a:hover { text-decoration: underline; }
.topbar__sfr, .topbar__delivery { flex: 0 0 auto; }
.topbar__slogan { flex: 1 1 auto; min-width: 0; text-align: center; font-weight: 600; white-space: nowrap; color: inherit; text-decoration: none; cursor: pointer; }

/* ── Header ── */
/* Верхний блок (топбар + шапка) закреплён вместе — катается одной группой */
.az-sticky { position: sticky; top: 0; z-index: 200; }
.site-header {
  border-bottom: 1px solid var(--hair);
  background: rgba(255,253,249,0.92); backdrop-filter: blur(10px);
}
.head-row { display: flex; align-items: center; gap: 20px; padding: 16px 0; }
.head-row .gap { flex: 1 1 0; min-width: 0; }
/* логотип: в картинке ~26% пустого поля слева и ~18% справа — кадрируем рамкой,
   чтобы лого было у левого края (как на главной), а поиск примыкал к видимому лого */
.logo { display: block; width: 232px; height: 72px; overflow: hidden; flex: 0 0 auto; }
.logo img { height: 72px; width: auto; max-width: none; display: block; transform: translateX(-108px); }
.search {
  flex: 1 1 auto; display: flex; align-items: center; position: relative;
  background: var(--sand); border-radius: 12px;
  padding: 0 6px 0 16px; height: 50px;
  border: 1.5px solid transparent;
  transition: border-color .2s, background .2s, flex-basis .45s cubic-bezier(.22,.7,.3,1);
}
/* Размер и поведение как на главной: поиск по центру, растёт за счёт спейсеров .gap */
.search:focus-within { border-color: var(--sage); background: #fff; }
.head-row .logo, .head-row .head-contact, .head-row .cart, .head-row .burger { flex-shrink: 0; }
.search > svg { width: 17px; height: 17px; stroke: var(--ink-soft); margin-right: 10px; flex: 0 0 auto; }
.search input {
  flex: 1; border: 0; background: transparent; outline: none; min-width: 0;
  font: 500 15px 'Manrope', sans-serif; color: var(--ink);
}
.search button {
  border: 0; background: var(--sage); color: #fff; font: 600 14px 'Manrope', sans-serif;
  padding: 9px 18px; border-radius: 9px; cursor: pointer; transition: background .15s;
}
.search button:hover { background: var(--sage-dark); }
/* Подсказки поиска (рендерит site.js) */
.search-dd {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: #fff; border-radius: 14px; border: 1px solid var(--hair);
  box-shadow: 0 22px 48px rgba(43,43,38,0.14);
  overflow: hidden; display: none;
}
.search-dd.open { display: block; }
.search-dd a {
  display: flex; gap: 12px; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--ink);
}
.search-dd a:last-child { border-bottom: 0; }
.search-dd a:hover { background: var(--sand); }
.search-dd img { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.search-dd .nm {
  flex: 1; line-height: 1.35; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search-dd .pr { font-weight: 800; white-space: nowrap; }

.head-contact { text-align: right; line-height: 1.3; }
.head-contact .phone { font-weight: 800; font-size: 17px; white-space: nowrap; }
.head-contact .phone a { color: var(--ink); }
.head-contact .hint { font-size: 12px; color: var(--ink-soft); }
.cart {
  width: 50px; height: 50px; border-radius: 12px; background: var(--sand);
  display: grid; place-items: center; position: relative; transition: background .15s; flex: 0 0 auto;
}
.cart:hover { background: var(--sand-2); }
.cart .az-cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--coral); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; padding: 0 4px; display: grid; place-items: center;
}
.cart .az-cart-count:empty { display: none; }
.burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

.cats-nav {
  display: flex; justify-content: space-between; gap: 18px; padding: 0 0 12px;
  font-size: 14.5px; font-weight: 600; scrollbar-width: none;
}
@media (max-width: 900px) { .cats-nav { justify-content: flex-start; overflow-x: auto; } }
.cats-nav::-webkit-scrollbar { display: none; }
.cats-nav a { white-space: nowrap; opacity: 0.85; position: relative; padding-bottom: 3px; }
.cats-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--sage-dark); border-radius: 2px; transition: width .2s;
}
.cats-nav a:hover, .cats-nav a.active { color: var(--sage-dark); opacity: 1; }
.cats-nav a:hover::after, .cats-nav a.active::after { width: 100%; }
.cats-nav a.hot { color: var(--coral); opacity: 1; }
/* Выпадашка «Каталог»: все категории списком при наведении */
.cats-nav__cat { position: relative; display: inline-flex; }
.cats-nav__mega {
  position: absolute; top: 100%; left: 0; z-index: 60; display: none;
  grid-template-columns: 1fr 1fr; gap: 2px 16px; min-width: 440px;
  background: #fff; border: 1px solid var(--hair); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(27,36,32,.16); padding: 12px;
}
.cats-nav__cat:hover .cats-nav__mega, .cats-nav__mega:hover { display: grid; }
.cats-nav__mega a {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px;
  border-radius: 8px; font-weight: 500; opacity: 1; white-space: nowrap; color: var(--ink);
}
.cats-nav__mega a::after { content: none !important; }
.cats-nav__mega a:hover { background: var(--sage-light); color: var(--sage-dark); }
.cats-nav__mega .n { color: var(--ink-soft); font-weight: 500; font-size: 12.5px; }
.cats-nav__mega a.cats-nav__mega-all { grid-column: 1 / -1; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--hair); font-weight: 800; color: var(--sage-deep); }
/* выпадашки разделов (поставщики) — узкие, в одну колонку */
.cats-nav__mega[data-cat] { grid-template-columns: 1fr; min-width: 210px; }

/* ── Breadcrumbs ── */
.breadcrumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--sage-dark); }
.breadcrumbs__sep { margin: 0 8px; opacity: 0.5; }

/* ── Page hero (text + photo) ── */
.info-hero { padding: 38px 0 10px; }
.info-hero .container {
  display: grid; grid-template-columns: 1fr 0.9fr; gap: var(--gap-lg); align-items: center;
}
.info-hero--text-only .container { grid-template-columns: 1fr; }
.info-page__title {
  font: 800 clamp(34px, 4.4vw, 52px)/1.06 'Manrope', sans-serif; letter-spacing: -0.01em;
}
.info-page__title em { font-style: normal; color: var(--sage-dark); }
.info-page__subtitle { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 520px; }
.info-hero__photo img { width: 100%; height: auto; display: block; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 60px rgba(43,43,38,0.1); }

/* ── Sections ── */
.info-section { padding: var(--gap-lg) 0; }
.info-section--sage { }
.info-page__section-title {
  font: 800 clamp(26px, 3vw, 34px) 'Manrope', sans-serif; margin-bottom: var(--gap-md);
}
.info-page__section-title--center { text-align: center; }

/* ── Card grid ── */
.info-page__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.info-page__grid--3 { grid-template-columns: repeat(3, 1fr); }
.info-page__grid--2 { grid-template-columns: repeat(2, 1fr); }
.info-page__card {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .18s, box-shadow .18s;
}
.info-page__card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(43,43,38,0.08); }
.info-page__card-icon--circle {
  width: 52px; height: 52px; border-radius: 50%; background: var(--sage-light);
  display: grid; place-items: center; margin-bottom: 16px;
}
.info-page__card-title { font: 700 18px 'Manrope', sans-serif; margin-bottom: 8px; }
.info-page__card-title:first-child { font: 800 40px 'Manrope', sans-serif; color: var(--sage-dark); }
.info-page__card-text { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.info-page__card-text strong { color: var(--ink); font-weight: 700; }
.info-page__card-text + .info-page__card-text { margin-top: 4px; }

/* ── Timeline ── */
.info-page__timeline-row { grid-template-columns: repeat(3, 1fr); }
.info-page__timeline-card {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px 24px; text-align: center;
}
.info-page__timeline-number { font: 800 52px 'Manrope', sans-serif; color: var(--sage-dark); line-height: 1; }
.info-page__timeline-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.info-page__timeline-region { font-weight: 700; font-size: 16px; margin: 12px 0 8px; }
.info-page__timeline-card .info-page__card-text { text-align: left; }

/* ── Story (text block) ── */
.info-page__story p { font-size: 15.5px; line-height: 1.7; color: #45453F; margin-top: 14px; }
.info-page__story p:first-of-type { margin-top: 18px; }

/* ── CTA band ── */
.info-section--sage .info-cta-card {
  background: linear-gradient(96deg, var(--sage-deep), #4E6645);
  border-radius: 24px; color: #fff; padding: 44px 40px; text-align: center; position: relative; overflow: hidden;
}
.info-cta-card::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px;
  border: 1.5px solid rgba(255,255,255,0.12); border-radius: 50%;
}
.info-page__cta { text-align: center; }
.info-page__cta-title { font: 800 30px 'Manrope', sans-serif; position: relative; z-index: 1; }
.info-page__cta-text {
  margin: 12px auto 22px; max-width: 560px; font-size: 15.5px; line-height: 1.6;
  opacity: 0.85; position: relative; z-index: 1;
}
.info-page__cta-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}
/* CTA с фото (мужчина+женщина перенесены из шапки страницы СФР вниз) */
.sfr-cta-grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: var(--gap-lg, 3rem); align-items: center; }
.sfr-cta-grid .info-page__cta { text-align: left; }
.sfr-cta-grid .info-page__cta-text { margin-left: 0; margin-right: 0; }
.sfr-cta-grid .info-page__cta-buttons { justify-content: flex-start; }
.sfr-cta-photo img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 18px 50px rgba(43,43,38,0.12); }
@media (max-width: 768px) {
  .sfr-cta-grid { grid-template-columns: 1fr; gap: var(--gap-md, 1.75rem); }
  .sfr-cta-grid .info-page__cta { text-align: center; }
  .sfr-cta-grid .info-page__cta-text { margin-left: auto; margin-right: auto; }
  .sfr-cta-grid .info-page__cta-buttons { justify-content: center; }
}
.info-page__callback-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.info-page__input, .info-page__textarea {
  font: 500 15px 'Manrope', sans-serif; color: var(--ink);
  background: #fff; border: 1.5px solid var(--hair); border-radius: 12px; padding: 13px 16px; outline: none;
  transition: border-color .15s; width: 100%;
}
.info-page__input:focus, .info-page__textarea:focus { border-color: var(--sage); }
.info-page__callback-form .info-page__input { width: 280px; }
.info-page__textarea { resize: vertical; min-height: 110px; }
.info-page__label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }

/* ── Contacts grid ── */
.info-page__contacts-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: var(--gap-lg); align-items: start; }
.info-page__contacts-list { display: grid; gap: 22px; }
.info-page__contact-item { display: flex; gap: 16px; align-items: flex-start; }
.info-page__contact-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--sage-light);
  display: grid; place-items: center; flex: 0 0 auto;
}
.info-page__contact-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.info-page__contact-value { font-size: 16px; font-weight: 600; color: var(--ink); display: block; }
a.info-page__contact-value:hover { color: var(--sage-dark); }
.info-page__contact-note { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.info-page__messengers { display: flex; gap: 10px; margin-top: 6px; }
.info-page__messenger-btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 9px 16px; transition: .15s;
}
.info-page__messenger-btn:hover { border-color: var(--sage); color: var(--sage-dark); }
.info-page__contact-form-wrap { background: #fff; border: 1px solid var(--hair); border-radius: 20px; padding: 32px; box-shadow: 0 10px 40px rgba(43,43,38,0.05); }
.info-page__contact-form-title { font: 800 26px 'Manrope', sans-serif; }
.info-page__contact-form-desc { font-size: 14.5px; color: var(--ink-soft); margin: 8px 0 22px; line-height: 1.55; }
.info-page__contact-form { display: grid; gap: 16px; }
.info-page__contact-form-success { text-align: center; padding: 30px 0; display: grid; gap: 10px; justify-items: center; }
.info-page__contact-form-success p { font-size: 19px; font-weight: 700; }
.info-page__contact-form-success span { font-size: 14px; color: var(--ink-soft); }

/* На зелёной CTA-плашке тексты согласия и подтверждения заявки — белые (контраст) */
.info-section--sage .az-consent { color: rgba(255,255,255,0.92); }
.info-section--sage .az-consent a { color: #fff; text-decoration-color: rgba(255,255,255,0.7); }
.info-section--sage .info-page__contact-form-success p { color: #fff; }
.info-section--sage .info-page__contact-form-success span { color: rgba(255,255,255,0.85); }
.info-section--sage .info-page__contact-form-success svg { stroke: #fff; }

/* ── Map ── */
.info-map {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--hair);
  position: relative; min-height: 360px; background: var(--sand);
}
.info-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.info-map__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; color: var(--ink-soft);
}

/* ── Partner logos ── */
.partner-logos { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.partner-logos__item { height: 38px; width: auto; filter: grayscale(0.2); opacity: 0.85; transition: .18s; }
.partner-logos a:hover .partner-logos__item { opacity: 1; filter: none; transform: translateY(-2px); }

/* ── Pay icons strip ── */
.pay-icons { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.pay-icons span {
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--hair); border-radius: 8px; padding: 8px 14px;
}

/* ── Article / prose ── */
.prose { max-width: 760px; }
.prose h2 { font: 800 28px 'Manrope', sans-serif; margin: 32px 0 12px; }
.prose h3 { font: 700 19px 'Manrope', sans-serif; margin: 24px 0 8px; }
.prose p { font-size: 15.5px; line-height: 1.7; color: #45453F; margin: 10px 0; }
.prose ul { margin: 10px 0 10px 22px; }
.prose li { font-size: 15.5px; line-height: 1.65; color: #45453F; margin: 6px 0; }
.prose a { color: var(--sage-dark); text-decoration: underline; }
.legal-meta { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; }
.placeholder-note {
  background: #FFF6E8; border: 1px dashed var(--gold); border-radius: 12px;
  padding: 14px 18px; font-size: 14px; color: #8A6A1E; margin: 18px 0;
}

/* ── Footer ── */
.footer { background: #262622; color: rgba(255,255,255,0.85); padding: 30px 0 0; font-size: 14px; margin-top: var(--gap-lg); }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 22px; }
.f-logo { display: block; width: 150px; height: 46px; overflow: hidden; }
.f-brand img { height: 46px; width: auto; max-width: none; display: block; transform: translateX(-69px); filter: brightness(0) invert(1); opacity: 0.9; }
.f-brand p { margin-top: 14px; font-size: 13.5px; line-height: 1.55; opacity: 0.7; max-width: 300px; }
.f-socials { display: flex; gap: 10px; margin-top: 16px; }
.f-socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; transition: .15s; }
.f-socials a:hover { background: var(--sage); }
.f-socials svg { width: 17px; height: 17px; fill: #fff; }
.footer h4 { font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.55; margin-bottom: 14px; font-weight: 700; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a:hover { color: #fff; }
.f-contacts .phone { font-size: 18px; font-weight: 800; color: #fff; }
.f-contacts div { margin-bottom: 8px; }
.f-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 13px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; opacity: 0.6;
}
.f-bottom a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .info-hero .container, .info-page__contacts-grid { grid-template-columns: 1fr; }
  .info-page__grid { grid-template-columns: repeat(2, 1fr); }
  .head-contact { display: none; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .info-page__grid, .info-page__grid--3, .info-page__grid--2, .info-page__timeline-row { grid-template-columns: 1fr; }
  .cats-nav { display: none; }
  /* Бургер раскрывает меню вертикальной панелью (а не горизонтальной прокруткой) */
  .cats-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow: visible;
    padding: 4px 24px 10px; margin: 0 -24px; background: var(--cream);
    border-top: 1px solid var(--hair);
  }
  .cats-nav.is-open a {
    opacity: 1; white-space: normal; padding: 13px 2px; min-height: 44px;
    display: flex; align-items: center; border-bottom: 1px solid var(--hair);
  }
  .cats-nav.is-open a::after { content: none; }
  .cats-nav.is-open .cats-nav__cat { display: block; }
  /* Мега-меню — только hover (десктоп). На тач скрываем: категории доступны на /catalog */
  .cats-nav__mega { display: none !important; }
  .burger { display: flex; padding: 11px; }
  .head-row { flex-wrap: wrap; }
  .head-row .gap { display: none; }
  .search { order: 3; flex-basis: 100%; }
  .search:focus-within { flex-basis: 100%; }
  .logo { width: 150px; height: 46px; }
  .logo img { height: 46px; transform: translateX(-69px); }
  .topbar .container > :nth-child(2), .topbar .container > :nth-child(3) { display: none; }
  .topbar .container { justify-content: center; }
  .f-grid { grid-template-columns: 1fr; gap: 26px; }
  .info-cta-card { padding: 32px 22px; }
}
@media (max-width: 480px) {
  /* Топбар: одна строка СФР помещается, хвост «— компенсация до 100%» прячем */
  .topbar { font-size: 12px; }
  .topbar__sfr { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .topbar__sfr-tail { display: none; }
}

/* ════════════════════════════════════════════════════════════
   Модальные окна (квиз «Быстрый подбор», обратный звонок)
   Рендерятся site.js на любой странице.
   ════════════════════════════════════════════════════════════ */
.az-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(43, 43, 38, 0.45);
  backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 16px; overflow-y: auto;
}
.az-modal-overlay.open { display: flex; }
.az-modal {
  background: var(--cream); border-radius: 22px;
  width: 100%; max-width: 600px; padding: 32px 34px 30px;
  position: relative; box-shadow: 0 30px 80px rgba(43,43,38,0.3);
}
.az-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--sand); color: var(--ink);
  cursor: pointer; font-size: 16px; display: grid; place-items: center;
  transition: background .15s;
}
.az-modal__close:hover { background: var(--sand-2); }
.az-modal h3 { font: 800 26px 'Manrope', sans-serif; margin-bottom: 6px; padding: 0 30px 0 2px; }
.az-modal .sub { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 20px; line-height: 1.5; }

.quiz2__progress { display: flex; gap: 7px; margin-bottom: 20px; }
.quiz2__dot { width: 30px; height: 4px; border-radius: 2px; background: var(--sand-2); transition: background .2s; }
.quiz2__dot.active { background: var(--sage); }
.quiz2__options { display: grid; gap: 10px; }
.quiz2__opt {
  text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid var(--hair); border-radius: 14px;
  padding: 14px 18px; transition: border-color .15s, transform .15s, box-shadow .15s;
  font-family: inherit;
}
.quiz2__opt:hover { border-color: var(--sage); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(43,43,38,0.07); }
.quiz2__opt b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.quiz2__opt span { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 3px; line-height: 1.45; }
.quiz2__back {
  background: none; border: 0; cursor: pointer; color: var(--ink-soft);
  font: 600 13.5px 'Manrope', sans-serif; padding: 0; margin-top: 18px;
}
.quiz2__back:hover { color: var(--sage-dark); }
.quiz2__why {
  background: var(--sage-light); border-radius: 12px; padding: 12px 16px;
  font-size: 13.5px; line-height: 1.55; color: #3F4D3A; margin-bottom: 16px;
}
.quiz2__results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz2__item {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hair);
  border-radius: 14px; padding: 10px; color: var(--ink);
}
.quiz2__item .ph { height: 110px; display: grid; place-items: center; padding: 6px; }
.quiz2__item img { max-height: 98px; max-width: 100%; object-fit: contain; }
.quiz2__item .nm {
  font-size: 12.5px; font-weight: 600; line-height: 1.35; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 34px;
}
.quiz2__item .pr { font-size: 14.5px; font-weight: 800; margin-top: 5px; }
.quiz2__cta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.quiz2__phone-row { display: flex; gap: 8px; margin-top: 14px; }
.quiz2__phone-row input {
  flex: 1; font: 500 15px 'Manrope', sans-serif;
  border: 1.5px solid var(--hair); border-radius: 10px; padding: 11px 14px; outline: none;
}
.quiz2__phone-row input:focus { border-color: var(--sage); }
@media (max-width: 560px) {
  .az-modal { padding: 24px 18px; }
  .quiz2__results { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  /* на самых узких — одна колонка, чтобы названия товаров не обрезались */
  .quiz2__results { grid-template-columns: 1fr; }
}

/* ───────────────────────── Анимированная карта доставки ─────────────────────────
   Используется на странице «Доставка» (режим shield) и на главной (режим coral).
   Логика — assets/js/atlas-map.js + assets/js/russia-map-data.js. */
.atlas { position: relative; }
.atlas svg { width: 100%; height: auto; display: block; overflow: visible; }
.atlas .land { fill: #CDDBC5; stroke: #CDDBC5; stroke-width: 0.8; }
.atlas .route { fill: none; stroke: var(--sage-dark); stroke-width: 1.2; opacity: 0; transition: opacity .9s ease; stroke-dasharray: 4 5; animation: az-routeflow 2.6s linear infinite; }
.atlas .route.on { opacity: .5; }
@keyframes az-routeflow { to { stroke-dashoffset: -36; } }
.atlas .city { fill: var(--sage-deep); }
.atlas .cityG .city { opacity: .28; transition: opacity .7s ease; }
.atlas .cityG text { opacity: 0; transition: opacity .7s ease; }
.atlas .cityG .halo { visibility: hidden; }
.atlas .cityG.lit .city { opacity: 1; }
.atlas .cityG.lit text { opacity: 1; }
.atlas .cityG.lit .halo { visibility: visible; }
.atlas .cityG.origin .city, .atlas .cityG.origin text { opacity: 1; }
.atlas .cityG.origin .halo { visibility: visible; }
.atlas .halo { fill: none; stroke: var(--sage-dark); stroke-width: 1.3; animation: az-halo 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes az-halo { 0% { opacity: .7; transform: scale(.4); } 80%,100% { opacity: 0; transform: scale(2.3); } }
.atlas .msk { fill: var(--coral); }
.atlas .msk-halo { stroke: var(--coral); }
.atlas .shield { fill: var(--sage); stroke: #fff; stroke-width: 1; animation: az-shield-pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; filter: drop-shadow(0 1px 2px rgba(63,82,57,0.35)); }
@keyframes az-shield-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.atlas .cargo { opacity: 0; transition: opacity .45s ease; filter: drop-shadow(0 2px 3px rgba(43,43,38,0.25)); }
.atlas .cargo.on { opacity: 1; }
.atlas .plane { fill: var(--sage-deep); opacity: 0; transition: opacity .45s ease; filter: drop-shadow(0 2px 3px rgba(43,43,38,0.3)); }
.atlas .plane.on { opacity: 1; }
@keyframes az-cargo-pop { 0% { opacity: 0; transform: scale(.4); } 55% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
.atlas .cargo--landed { animation: az-cargo-pop .5s cubic-bezier(.22,.7,.3,1) both; transform-origin: center; transform-box: fill-box; }
.atlas text { font: 600 8.5px 'Manrope', sans-serif; fill: var(--ink-soft); paint-order: stroke; stroke: var(--cream); stroke-width: 2.5px; stroke-linejoin: round; }
.atlas .ship { margin-top: 8px; font: 600 14px 'Manrope', sans-serif; color: var(--ink-soft); text-align: center; transition: opacity .35s ease; }
.atlas .ship b { color: var(--sage-deep); font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .atlas .route, .atlas .halo, .atlas .shield, .atlas .cargo, .atlas .plane { animation: none !important; }
}
