/* ============================================================
   Dveri Eko-opt — css-main.txt (v50, глобальная унификация)
   База + шапка + крошки + кнопки + footer + cookie + MAX +
   помощник + корзина + FAQ (единый!) + Hero + общие компоненты
   Каталог / карточка товара — в HEAD (css2)
   ============================================================ */

/* ============ 1. ROOT + RESET ============ */
:root {
  --blue: #1e3a8a; --blue-dark: #172554; --blue-light: #e0e7ff; --blue-soft: #eef2ff;
  --primary: #1e3a8a; --primary-dark: #172554; --burgundy: #7f1d1d; --burgundy-hover: #991b1b;
  --navy: #0b1f3a; --gold: #d4a373; --gold-dark: #c4956a; --dark: #0b0b0f; --white: #fff;
  --muted: #4a4a4a; --border: #e5e7eb; --container: 1280px;
  --header-height: 80px; --header-height-mobile: 80px;
  --breadcrumbs-height: 44px; --breadcrumbs-height-mobile: 40px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06); --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 20px; --radius-btn: 12px; --transition: 0.25s ease;
  --text: #1f2937; --muted-soft: #6b7280; --bg-soft: #f8fafc;
  --radius-sm: 12px; --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #000; background: var(--white); line-height: 1.6; margin: 0; overflow-x: hidden; max-width: 100%; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; color: #000; margin: 0 0 16px; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 14px; }

/* ============ 2. КОМПЕНСАЦИЯ ШАПКИ ============ */
html body { padding-top: 124px !important; transition: padding-top .35s cubic-bezier(.4,0,.2,1); }
html body.header-is-hidden { padding-top: 44px !important; }
html body #allrecords, html body .t-body { padding-top: 0 !important; overflow-x: hidden !important; }
@media (max-width: 768px) {
  html body { padding-top: 120px !important; }
  html body.header-is-hidden { padding-top: 40px !important; }
  html body #allrecords, html body .t-body { padding-top: 0 !important; }
}

/* ============ 3. КРОШКИ ============ */
html body.image-modal-open { padding-top: 0 !important; }
html body.image-modal-open .custom-header,
html body.image-modal-open #smartHeader,
html body.image-modal-open .breadcrumbs,
html body.image-modal-open #globalBreadcrumbs {
  display: none !important; visibility: hidden !important;
  opacity: 0 !important; pointer-events: none !important;
}
.breadcrumbs, #globalBreadcrumbs.breadcrumbs {
  position: fixed !important; left: 0 !important; right: 0 !important;
  top: var(--header-height) !important; z-index: 9998 !important;
  background: #fff !important; border-bottom: 1px solid var(--border) !important;
  height: var(--breadcrumbs-height);
  transition: top .35s cubic-bezier(.4,0,.2,1); will-change: top;
  display: flex !important; align-items: center;
  padding: 0 24px; font-size: .9rem; gap: 8px;
  max-width: 100%; margin: 0 auto; box-sizing: border-box;
  flex-wrap: wrap; overflow: visible;
}
body.header-is-hidden .breadcrumbs,
body.header-is-hidden #globalBreadcrumbs.breadcrumbs { top: 0 !important; }
.breadcrumbs a, #globalBreadcrumbs.breadcrumbs a {
  color: var(--muted) !important; font-weight: 500;
  white-space: nowrap; transition: color var(--transition); text-decoration: none;
}
.breadcrumbs a:hover, #globalBreadcrumbs.breadcrumbs a:hover { color: var(--blue) !important; text-decoration: underline; }
.breadcrumbs .sep, #globalBreadcrumbs.breadcrumbs .sep { color: #767676 !important; flex-shrink: 0; }
.breadcrumbs .current, #globalBreadcrumbs.breadcrumbs .current { color: #000 !important; font-weight: 600; white-space: nowrap; }
@media (max-width: 768px) {
  .breadcrumbs, #globalBreadcrumbs.breadcrumbs {
    top: 80px !important; height: auto !important; min-height: 34px !important;
    padding: 8px 14px !important; font-size: 0.78rem !important; line-height: 1.35 !important;
    gap: 5px !important; flex-wrap: wrap !important; align-items: center !important;
  }
  body.header-is-hidden .breadcrumbs,
  body.header-is-hidden #globalBreadcrumbs.breadcrumbs { top: 0 !important; }
  .breadcrumbs a, .breadcrumbs .current,
  #globalBreadcrumbs.breadcrumbs a, #globalBreadcrumbs.breadcrumbs .current {
    white-space: normal !important; word-break: break-word !important;
  }
}

/* ============ 4. ССЫЛКИ ============ */
p a, .seo__content p a, .seo__content li a, .faq__a a, .faq__a a,
.steps__item a, .review p a, .why__item a,
article a, .text-block a, .article-content a {
  color: var(--burgundy) !important; text-decoration: underline !important;
  text-decoration-thickness: 1px !important; text-underline-offset: 2px !important;
  transition: color .2s ease, text-decoration-thickness .2s ease !important;
}
p a:hover, .seo__content p a:hover, .seo__content li a:hover, .faq__a a:hover,
.steps__item a:hover, .review p a:hover, .why__item a:hover,
article a:hover, .text-block a:hover, .article-content a:hover {
  color: var(--burgundy-hover) !important; text-decoration-thickness: 2px !important;
}
.btn a, a.btn, .breadcrumbs a, .nav-menu a, .has-dropdown a, .footer-col a,
.card a, .card__link, .card__btn, .presets a, .service-group a,
.fixed-panel a, .nav-modal a, .sale-item > a {
  color: inherit !important; text-decoration: none !important;
}
.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;
}
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px;
}

/* ============ 5. КНОПКИ ============ */
.btn {
  display: inline-block; padding: 14px 36px;
  border-radius: var(--radius-btn) !important;
  font-weight: 700; border: none; cursor: pointer;
  transition: all var(--transition); text-align: center;
}
.btn:hover { transform: translateY(-2px); opacity: .9; }
.btn-primary, .btn-blue, .btn-green, .btn-gold {
  background: var(--blue) !important; color: #fff !important;
  border-radius: var(--radius-btn) !important;
}
.btn-primary:hover, .btn-blue:hover, .btn-green:hover, .btn-gold:hover { background: var(--blue-dark) !important; color: #fff !important; }
.btn-sm { padding: 10px 24px; font-size: 14px; border-radius: var(--radius-btn) !important; }
.btn-block { display: block; width: 100%; margin-top: 12px; border-radius: var(--radius-btn) !important; }
.btn, .btn-primary, .btn-blue, .btn-green, .btn-gold, .btn-block, .btn-sm,
.call-consent-trigger, button.btn, a.btn, input[type="submit"].btn,
.t-btn, .t-submit, .t-form__submit, button[type="submit"], input[type="submit"] { color: #fff !important; }
.btn *, .btn-primary *, .btn-blue *, .btn-green *, .btn-gold *,
.call-consent-trigger *, a.btn * { color: #fff !important; }
.card .btn, .card .btn-primary, .card .btn-sm,
.card-item .btn, .card-item .btn-block { color: #fff !important; }
.card .btn *, .card-item .btn * { color: #fff !important; }
.modal-btn, #confirmCall, .fixed-panel .inner .btn,
.submit-btn, .cart-modal .submit-btn { color: #fff !important; }
.custom-header .btn, .custom-footer-global .btn { color: #fff !important; }
.btn, .btn-primary, .btn-blue, .btn-green, .btn-gold, button.btn, a.btn {
  padding: 14px 28px !important; font-size: 15px !important;
  font-weight: 700 !important; line-height: 1.2 !important;
  min-height: auto !important; height: auto !important;
  box-sizing: border-box !important;
  display: inline-flex !important; align-items: center !important;
  justify-content: center !important; text-align: center !important;
}
.btn-sm, button.btn-sm, a.btn-sm { padding: 10px 22px !important; font-size: 14px !important; }
.btn-block, .card .btn, .card-item .btn-block, .product .btn-primary {
  width: 100% !important; max-width: 100% !important;
  display: flex !important; justify-content: center !important;
}
.custom-footer-global .btn, .banner-call .btn {
  padding: 14px 28px !important; font-size: 15px !important;
  font-weight: 700 !important; box-shadow: none !important;
}

/* ============ 6. СЕТКИ ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }

/* ============ 7. КАРТОЧКИ (глобальные, единые) ============ */
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition-smooth);
  position: relative; height: 100%; min-width: 0;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--blue); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.card__badge { display: inline-block; padding: 4px 12px; border-radius: 30px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.card__badge--sale { background: #dc2626; color: #fff; }
.card__badge--hit { background: var(--gold); color: #fff; }
.card__badge--new { background: #059669; color: #fff; }
.card__link { display: flex; flex-direction: column; height: 100%; flex: 1 1 auto; text-decoration: none; color: inherit; }
.card__img { aspect-ratio: 4 / 3; background: #f1f5f9; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-smooth); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; height: 100%; }
.card__cat { font-size: 0.75rem; color: var(--muted-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.card__title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0; color: var(--text); }
.card__features { list-style: none; padding: 0; margin: 4px 0; font-size: 0.8rem; color: var(--muted-soft); display: flex; flex-wrap: wrap; gap: 6px; }
.card__features li { display: inline-flex; align-items: center; gap: 4px; }
.card__features li::before { content: '·'; color: var(--border); }
.card__features li:first-child::before { display: none; }
.card__price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.card__price .new { font-size: 1.3rem; font-weight: 800; color: var(--blue); }
.card__price .old { font-size: 0.9rem; color: #9ca3af; text-decoration: line-through; }
.card__btn {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; background: var(--blue); color: #fff;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 0.875rem;
  text-decoration: none; transition: all var(--transition-smooth);
  border: none; cursor: pointer; width: 100%; font-family: inherit; margin-top: auto;
}
.card__btn:hover { background: var(--blue-dark); }
.card--lg .card__title { font-size: 1.15rem; }
.card--lg .card__img { aspect-ratio: 4/3; }

/* ============ 8. ШАПКА ============ */
.custom-header { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; height: var(--header-height); background: var(--white); box-shadow: var(--shadow); z-index: 99999 !important; transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease; will-change: transform; max-width: 100%; overflow: visible !important; }
.custom-header.header-hidden { transform: translateY(-100%); box-shadow: none; }
.header-container { max-width: var(--container); margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative !important; z-index: 99999 !important; overflow: visible !important; }
.t-width { overflow: visible !important; z-index: 99999 !important; }
.logo a { font-size: 22px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.logo-accent { color: var(--navy); }
.nav-menu ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; overflow: visible !important; }
.nav-menu > ul > li { display: flex; align-items: center; }
.nav-menu a { font-weight: 600; font-size: 15px; color: #000; transition: color var(--transition); padding: 6px 2px; position: relative; }
.nav-menu a.is-active { color: var(--blue); }
.nav-menu a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--blue); border-radius: 2px; }
.nav-menu a:hover { color: var(--blue); }
.has-dropdown { position: relative !important; display: flex; align-items: center; overflow: visible !important; }
.has-dropdown > .dropdown-toggle { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 6px 8px; margin-left: 2px; transition: transform var(--transition); line-height: 1; }
.has-dropdown:hover > .dropdown-toggle, .has-dropdown.open > .dropdown-toggle { transform: rotate(180deg); color: var(--blue); }
.has-dropdown .dropdown { position: absolute !important; top: 100% !important; left: 0 !important; min-width: 240px !important; max-width: 320px !important; width: auto !important; background: #fff !important; box-shadow: 0 8px 24px rgba(0,0,0,.15) !important; border-radius: 12px !important; padding: 8px 0 !important; list-style: none !important; margin: 0 !important; z-index: 9999999 !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; overflow: visible !important; }
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transform: translateY(0) !important; z-index: 9999999 !important; }
.has-dropdown .dropdown li { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.has-dropdown .dropdown a { display: block !important; padding: 8px 20px !important; font-weight: 500 !important; font-size: 14px !important; color: #000 !important; white-space: nowrap !important; }
.has-dropdown .dropdown a:hover, .has-dropdown .dropdown a.is-active { background: var(--blue-soft) !important; color: var(--blue) !important; }
.header-right { display: flex; align-items: center; gap: 16px; }
.phone-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--blue); white-space: nowrap; transition: color var(--transition); }
.phone-link:hover { color: var(--blue-dark); }
.cart-icon { position: relative; background: none; border: none; font-size: 22px; cursor: pointer; padding: 6px; color: inherit; opacity: 0; transform: scale(.8); transition: opacity .25s ease, transform .25s ease; }
.cart-icon:not([hidden]) { opacity: 1; transform: scale(1); }
.cart-icon[hidden] { display: none; }
.cart-count { position: absolute; top: -4px; right: -6px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.mobile-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--blue); padding: 6px; position: relative !important; z-index: 100000 !important; pointer-events: auto !important; }
@media (max-width: 768px) {
  .header-container { padding: 0 12px !important; gap: 8px !important; max-width: 100% !important; overflow: visible !important; }
  .logo a { font-size: 16px !important; }
  .header-right { gap: 8px !important; flex-shrink: 0 !important; }
  .phone-text { display: none !important; }
  .phone-link { font-size: 16px !important; padding: 4px !important; }
  .header-max-btn .header-max-text { display: none !important; }
  .header-max-btn { width: 36px !important; height: 36px !important; min-width: 36px !important; max-width: 36px !important; padding: 0 !important; border-radius: 50% !important; }
  .mobile-toggle { font-size: 22px !important; padding: 4px !important; flex-shrink: 0 !important; }
  .nav-menu { max-width: 100vw !important; overflow-x: hidden !important; }
}

/* ============ 9. МОБИЛЬНОЕ МЕНЮ ============ */
@media (max-width: 768px) {
  .mobile-toggle { display: block !important; }
  .nav-menu { position: fixed !important; top: 80px !important; left: 0 !important; right: 0 !important; background: #fff !important; box-shadow: 0 8px 24px rgba(0,0,0,.15) !important; max-height: 0 !important; overflow: hidden !important; transition: max-height .35s ease !important; z-index: 100000 !important; display: block !important; }
  .nav-menu.open { max-height: calc(100vh - 80px) !important; overflow-y: auto !important; }
  .nav-menu > ul { display: block !important; padding: 8px 0 !important; margin: 0 !important; list-style: none !important; }
  .nav-menu > ul > li { display: block !important; width: 100% !important; border-bottom: 1px solid #f0f0f0 !important; position: relative !important; margin: 0 !important; padding: 0 !important; }
  .nav-menu > ul > li > a { display: block !important; padding: 14px 60px 14px 24px !important; font-size: 16px !important; font-weight: 600 !important; color: #000 !important; }
  .nav-menu .dropdown-toggle { position: absolute !important; top: 50% !important; right: 16px !important; transform: translateY(-50%) !important; padding: 8px 12px !important; font-size: 14px !important; background: transparent !important; border: none !important; }
  .nav-menu .has-dropdown.open > .dropdown-toggle { transform: translateY(-50%) rotate(180deg) !important; color: #1e3a8a !important; }
  .nav-menu .has-dropdown .dropdown { position: static !important; display: block !important; opacity: 1 !important; visibility: visible !important; transform: none !important; box-shadow: none !important; background: #f8fafc !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important; min-width: 0 !important; max-height: 0 !important; overflow: hidden !important; transition: max-height .3s ease !important; pointer-events: auto !important; }
  .nav-menu .has-dropdown.open .dropdown { max-height: 800px !important; }
  .nav-menu .has-dropdown .dropdown li { border-bottom: 1px solid #e8e8e8 !important; }
  .nav-menu .has-dropdown .dropdown a { display: block !important; padding: 12px 24px 12px 40px !important; font-size: 14px !important; color: #333 !important; background: #f8fafc !important; }
}

/* ============ 10. HERO (единый для всего сайта) ============ */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  padding: 48px 0 56px; border-bottom: 1px solid var(--border);
  max-width: 100%; overflow-x: hidden;
}
.hero__inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero__grid--text-only { grid-template-columns: 1fr; max-width: 800px; }
.hero__badge {
  display: inline-block; background: var(--blue-soft); color: var(--blue);
  font-size: 0.8rem; font-weight: 700; padding: 6px 16px; border-radius: 30px;
  margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.15; margin: 0 0 16px; color: var(--text); }
.hero__subtitle { font-size: clamp(16px, 1.6vw, 19px); color: #374151; line-height: 1.6; margin-bottom: 16px; max-width: 720px; }
.hero__text { font-size: 1rem; line-height: 1.7; color: #4b5563; margin: 0 0 20px; max-width: 720px; }
.hero__stats { display: flex; gap: 32px; margin: 24px 0 28px; flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat .num { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; color: var(--blue); line-height: 1; }
.hero__stat .label { font-size: 0.85rem; color: var(--muted-soft); margin-top: 4px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); aspect-ratio: 4 / 3; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) {
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 32px 0 40px; }
}

/* ============ 11. FAQ (ЕДИНЫЙ для всего сайта) ============ */
.faq { max-width: 1280px; margin: 0 auto; padding: 48px 20px; }
.faq__list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq__q {
  width: 100%; padding: 18px 22px; text-align: left; background: none; border: none;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--text); font-family: inherit; line-height: 1.4;
}
.faq__q:hover { background: var(--blue-soft); }
.faq__q .icon { transition: transform var(--transition-smooth); color: var(--blue); font-size: 1.1rem; flex-shrink: 0; }
.faq__q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq__a {
  max-height: 0; overflow: hidden; padding: 0 22px;
  color: #374151; font-size: 0.95rem; line-height: 1.7;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq__a.is-open { max-height: 900px; padding: 0 22px 18px; }
.faq__a a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.faq h2 { text-align: center; margin-bottom: 8px; }
.faq > p, .faq .faq__sub { text-align: center; color: var(--muted-soft); font-size: 1.05rem; margin: 0 0 32px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ============ 12. FADE-UP ============ */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } }

/* ============ 13. КАРТА ============ */
.t-map, .t-map__container, .t-map__wrapper, [class*="t-map"], .map-wrap, .map-block, .ya-map, #map, .map { width: 100% !important; max-width: 100% !important; min-height: 400px !important; height: auto !important; display: block !important; margin: 0 auto !important; }
.t-map iframe, [class*="t-map"] iframe, .map-wrap iframe, .map-block iframe, .ya-map iframe, #map iframe, iframe[src*="yandex"], iframe[src*="maps.yandex"] { width: 100% !important; min-height: 400px !important; height: 400px !important; display: block !important; border: 0 !important; border-radius: 16px !important; }

/* ============ 14. FOOTER ============ */
.custom-footer-global { background: var(--navy); color: var(--white); padding: 48px 0 24px; margin-top: 60px; border-top: 2px solid var(--blue); max-width: 100%; }
.footer-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-col h2 { font-size: 16px; font-weight: 700; color: var(--white); margin: 0 0 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col p, .footer-col ul li, .footer-col div, .footer-address div { color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.8; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a, .footer-col a { color: rgba(255,255,255,.85); transition: color var(--transition); }
.footer-col a:hover, .footer-col ul li a:hover { color: #93c5fd; }
.footer-cta a { color: #93c5fd; font-weight: 700; }
.footer-mini { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-mini li a { font-size: 13px; }
.footer-address { font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; flex-wrap: wrap; gap: 12px; }
.footer-bottom-left { color: rgba(255,255,255,.75); font-size: 13px; }
.footer-bottom-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom-right a { color: rgba(255,255,255,.75); font-size: 13px; }
.footer-bottom-right a:hover { color: #93c5fd; }
.footer-bottom-right span { color: rgba(255,255,255,.5); }
.footer-reviews-cta { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-reviews-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; background: #FFD93D; color: #333 !important; border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none !important; transition: all 0.25s ease; box-shadow: 0 4px 16px rgba(255,217,61,0.2); }
.footer-reviews-btn:hover { background: #f5cd2c; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,217,61,0.35); color: #333 !important; }
.footer-reviews-btn .star-icon { font-size: 18px; line-height: 1; }
.footer-reviews-btn .reviews-sub { display: block; font-size: 12px; font-weight: 500; opacity: 0.75; margin-top: 2px; }
.highlight { animation: pricePulse .4s ease; }
@keyframes pricePulse { 0% { transform: scale(1); } 50% { transform: scale(1.06); color: var(--blue); } 100% { transform: scale(1); } }

/* ============ 15. COOKIE-БАННЕР ============ */
#cookieConsent { position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; z-index: 99997 !important; background: #0b1f3a !important; color: #fff !important; box-shadow: 0 -2px 12px rgba(0,0,0,0.12) !important; padding: 10px 20px !important; display: none; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; font-size: 14px !important; line-height: 1.4 !important; box-sizing: border-box !important; animation: cookieSlideUp 0.3s ease-out; }
#cookieConsent.is-visible { display: block !important; }
@keyframes cookieSlideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#cookieConsent .cookie-inner { max-width: 1280px !important; margin: 0 auto !important; display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 16px !important; flex-wrap: nowrap !important; }
#cookieConsent .cookie-text { flex: 1 1 auto !important; min-width: 0 !important; color: rgba(255,255,255,0.92) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
#cookieConsent .cookie-text strong { color: #fff !important; font-weight: 700 !important; }
#cookieConsent .cookie-text a { color: #93c5fd !important; text-decoration: none !important; border-bottom: 1px dashed rgba(147,197,253,0.6) !important; white-space: nowrap !important; }
#cookieConsent .cookie-actions { display: flex !important; gap: 8px !important; flex-shrink: 0 !important; align-items: center !important; }
#cookieConsent button { font-family: inherit !important; font-size: 13.5px !important; font-weight: 700 !important; padding: 8px 18px !important; border-radius: 8px !important; border: none !important; cursor: pointer !important; transition: all 0.2s ease !important; white-space: nowrap !important; line-height: 1.2 !important; }
#cookieAcceptBtn { background: #FFD93D !important; color: #333 !important; min-height: 36px !important; }
#cookiePolicyBtn { background: transparent !important; color: rgba(255,255,255,0.85) !important; padding: 8px 12px !important; font-weight: 500 !important; font-size: 13.5px !important; text-decoration: underline !important; text-underline-offset: 2px !important; min-height: 36px !important; }
@media (max-width: 640px) { #cookieConsent { padding: 10px 14px !important; font-size: 13px !important; } #cookieConsent .cookie-inner { gap: 10px !important; flex-wrap: wrap !important; } #cookieConsent .cookie-text { flex: 1 1 100% !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; text-align: center !important; margin-bottom: 2px !important; } #cookieConsent .cookie-actions { width: 100% !important; justify-content: center !important; gap: 8px !important; } #cookieConsent button { min-height: 40px !important; padding: 10px 20px !important; font-size: 13.5px !important; } }

/* ============ 16. ПОМОЩНИК (.nav-trigger) ============ */
.nav-trigger { position: fixed !important; right: 20px !important; bottom: 90px !important; width: 56px !important; height: 56px !important; min-width: 56px !important; max-width: 56px !important; min-height: 56px !important; max-height: 56px !important; padding: 0 !important; border-radius: 50% !important; background: #FFD93D !important; border: none !important; cursor: pointer !important; z-index: 9998 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; box-shadow: 0 6px 20px rgba(255,217,61,.4) !important; transition: transform .25s ease, box-shadow .25s ease !important; overflow: visible !important; box-sizing: border-box !important; }
.nav-trigger:hover { transform: scale(1.08) !important; box-shadow: 0 8px 28px rgba(255,217,61,.55) !important; }
.nav-trigger svg, .nav-trigger > svg { width: 30px !important; height: 30px !important; max-width: 30px !important; max-height: 30px !important; min-width: 30px !important; min-height: 30px !important; flex-shrink: 0 !important; display: block !important; stroke: #333 !important; fill: none !important; pointer-events: none !important; overflow: visible !important; }
@media (max-width: 480px) {
  .nav-trigger { width: 52px !important; height: 52px !important; min-width: 52px !important; max-width: 52px !important; min-height: 52px !important; max-height: 52px !important; right: 16px !important; bottom: 110px !important; }
  .nav-trigger svg, .nav-trigger > svg { width: 26px !important; height: 26px !important; max-width: 26px !important; max-height: 26px !important; min-width: 26px !important; min-height: 26px !important; }
}

/* ============ 17. ПОМОЩНИК (.nav-modal) ============ */
.nav-modal { display: none; position: fixed !important; inset: 0 !important; background: rgba(0,0,0,.6) !important; z-index: 99999 !important; align-items: center !important; justify-content: center !important; padding: 20px !important; box-sizing: border-box !important; }
.nav-modal.open { display: flex !important; }
.nav-modal .modal-box { background: #fff !important; border-radius: 20px !important; padding: 28px !important; max-width: 560px !important; width: 100% !important; max-height: 90vh !important; overflow-y: auto !important; position: relative !important; box-shadow: 0 20px 60px rgba(0,0,0,.3) !important; }
.nav-modal .close-modal { position: absolute !important; top: 12px !important; right: 16px !important; background: none !important; border: none !important; font-size: 1.8rem !important; cursor: pointer !important; color: #6b7280 !important; line-height: 1 !important; width: 40px !important; height: 40px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.nav-modal .nav-character { text-align: center !important; margin-bottom: 16px !important; }
.nav-modal .nav-character svg { width: 100px !important; height: 100px !important; max-width: 100px !important; max-height: 100px !important; min-width: 100px !important; min-height: 100px !important; margin: 0 auto !important; display: block !important; flex-shrink: 0 !important; pointer-events: none !important; }
.nav-modal .nav-character .bubble { background: #eef2ff !important; border-radius: 12px !important; padding: 12px 16px !important; margin-top: 10px !important; font-size: .95rem !important; line-height: 1.5 !important; color: #1f2937 !important; max-width: 100% !important; }
.nav-modal .nav-progress { display: flex !important; justify-content: center !important; gap: 8px !important; margin-bottom: 20px !important; flex-wrap: wrap !important; }
.nav-modal .nav-progress .step { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 4px !important; font-size: .75rem !important; color: #6b7280 !important; }
.nav-modal .nav-progress .step .num { width: 28px !important; height: 28px !important; border-radius: 50% !important; background: #e5e7eb !important; display: flex !important; align-items: center !important; justify-content: center !important; font-weight: 700 !important; color: #333 !important; }
.nav-modal .nav-progress .step.active .num { background: #1e3a8a !important; color: #fff !important; }
.nav-modal .nav-progress .step.done .num { background: #93c5fd !important; color: #fff !important; }
.nav-modal .nav-price-preview { text-align: center !important; font-size: .9rem !important; color: #6b7280 !important; margin-bottom: 16px !important; }
.nav-modal .nav-price-preview span { font-weight: 700 !important; color: #1e3a8a !important; }
.nav-modal .nav-question .q-text { font-weight: 700 !important; margin-bottom: 14px !important; font-size: 1.05rem !important; color: #1f2937 !important; }
.nav-modal .nav-question .options { display: flex !important; flex-direction: column !important; gap: 8px !important; }
.nav-modal .nav-question .options .option { padding: 12px 16px !important; text-align: left !important; border: 1.5px solid #e5e7eb !important; border-radius: 10px !important; background: #fff !important; cursor: pointer !important; font-size: .95rem !important; font-weight: 500 !important; transition: all .25s ease !important; font-family: inherit !important; color: #1f2937 !important; }
.nav-modal .nav-question .options .option:hover { border-color: #1e3a8a !important; background: #eef2ff !important; }
.nav-modal .nav-question .options .option.selected { border-color: #1e3a8a !important; background: #e0e7ff !important; font-weight: 700 !important; }
.nav-modal .nav-actions { display: flex !important; gap: 8px !important; margin-top: 20px !important; flex-wrap: wrap !important; }
.nav-modal .nav-actions .btn-secondary,
.nav-modal .nav-actions .btn-primary,
.nav-modal .nav-actions .btn-outline { padding: 12px 24px !important; border-radius: 12px !important; font-weight: 700 !important; cursor: pointer !important; font-size: .95rem !important; border: none !important; font-family: inherit !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; min-height: 48px !important; }
.nav-modal .nav-actions .btn-secondary { background: #1e3a8a !important; color: #fff !important; }
.nav-modal .nav-actions .btn-primary { background: #1e3a8a !important; color: #fff !important; flex: 1 !important; }
.nav-modal .nav-actions .btn-outline { background: transparent !important; color: #1e3a8a !important; border: 1.5px solid #1e3a8a !important; }
.nav-modal .nav-actions .btn-secondary:hover, .nav-modal .nav-actions .btn-primary:hover { background: #172554 !important; }
.nav-modal div[role="button"], .nav-modal button { pointer-events: auto !important; cursor: pointer !important; -webkit-tap-highlight-color: rgba(30,58,138,0.15); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
@media (max-width: 768px) {
  .nav-modal .modal-box { padding: 20px !important; }
  .nav-modal .nav-character svg { width: 80px !important; height: 80px !important; max-width: 80px !important; max-height: 80px !important; min-width: 80px !important; min-height: 80px !important; }
  .nav-modal .nav-actions { flex-direction: column !important; gap: 10px !important; }
  .nav-modal .nav-actions .btn-secondary,
  .nav-modal .nav-actions .btn-primary,
  .nav-modal .nav-actions .btn-outline { width: 100% !important; min-height: 52px !important; }
}
body:not(.nav-modal-open) .nav-modal:not(.open):not([style*="display: flex"]) { display: none !important; visibility: hidden !important; pointer-events: none !important; }

/* ============ 18. ПОМОЩНИК (.nav-result) ============ */
.nav-modal .nav-result { display: flex !important; flex-direction: column !important; gap: 12px !important; margin-top: 16px !important; padding-top: 16px !important; border-top: 1px solid #e5e7eb !important; }
.nav-modal .nav-result p { margin: 0 0 8px 0 !important; font-weight: 700 !important; font-size: 1rem !important; color: #1f2937 !important; text-align: left !important; }
.nav-modal .nav-result .result-item { display: flex !important; justify-content: space-between !important; align-items: center !important; gap: 12px !important; padding: 8px 12px !important; background: #f8fafc !important; border-radius: 8px !important; font-size: 0.9rem !important; line-height: 1.4 !important; }
.nav-modal .nav-result .result-label { color: #6b7280 !important; font-weight: 500 !important; flex-shrink: 0 !important; }
.nav-modal .nav-result .result-value { color: #1f2937 !important; font-weight: 600 !important; text-align: right !important; word-break: break-word !important; }
.nav-modal .nav-result > div:last-child { display: flex !important; gap: 10px !important; flex-wrap: wrap !important; margin-top: 12px !important; }
.nav-modal .nav-result .btn-primary,
.nav-modal .nav-result .btn-outline { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; padding: 14px 20px !important; border-radius: 12px !important; font-weight: 700 !important; font-size: 0.95rem !important; line-height: 1.2 !important; text-align: center !important; cursor: pointer !important; transition: all 0.25s ease !important; font-family: inherit !important; border: none !important; min-height: 50px !important; flex: 1 1 180px !important; text-decoration: none !important; box-sizing: border-box !important; }
.nav-modal .nav-result .btn-primary { background: #1e3a8a !important; color: #ffffff !important; }
.nav-modal .nav-result .btn-primary:hover { background: #172554 !important; transform: translateY(-1px) !important; }
.nav-modal .nav-result .btn-outline { background: #ffffff !important; color: #1e3a8a !important; border: 2px solid #1e3a8a !important; }
.nav-modal .nav-result .btn-outline:hover { background: #1e3a8a !important; color: #ffffff !important; transform: translateY(-1px) !important; }
.nav-modal .nav-result .btn-primary *, .nav-modal .nav-result .btn-outline * { color: inherit !important; }

/* ============ 19. MAX ============ */
.header-max-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; padding: 8px 14px !important; background: linear-gradient(135deg, #6B46C1 0%, #9333EA 50%, #DB2777 100%) !important; color: #ffffff !important; border: none !important; border-radius: 10px !important; font-weight: 700 !important; font-size: 14px !important; line-height: 1 !important; text-decoration: none !important; cursor: pointer !important; transition: all 0.25s ease !important; box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25) !important; font-family: inherit !important; box-sizing: border-box !important; height: 40px !important; min-width: 40px !important; white-space: nowrap !important; }
.header-max-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(147, 51, 234, 0.45) !important; color: #ffffff !important; }
.header-max-btn svg { width: 18px !important; height: 18px !important; flex-shrink: 0 !important; display: block !important; }
.header-max-btn .header-max-text { display: inline !important; color: #ffffff !important; font-weight: 700 !important; }
.header-max-btn * { color: #ffffff !important; }
.max-contact-btn { display: flex !important; align-items: center !important; justify-content: center !important; gap: 10px !important; width: 100% !important; padding: 14px 24px !important; margin-top: 10px !important; background: linear-gradient(135deg, #6B46C1 0%, #9333EA 50%, #DB2777 100%) !important; color: #ffffff !important; border: none !important; border-radius: var(--radius-btn, 12px) !important; font-weight: 700 !important; font-size: 15px !important; line-height: 1.2 !important; text-decoration: none !important; cursor: pointer !important; transition: all 0.25s ease !important; box-shadow: 0 4px 16px rgba(147, 51, 234, 0.25) !important; font-family: inherit !important; box-sizing: border-box !important; }
.max-contact-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(147, 51, 234, 0.4) !important; color: #ffffff !important; }
.max-contact-btn * { color: #ffffff !important; }
.max-contact-btn__icon { display: inline-flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; }
.max-contact-btn__icon svg { width: 20px !important; height: 20px !important; display: block !important; }
.footer-max-link { margin-top: 10px !important; padding-top: 10px !important; border-top: 1px dashed rgba(255, 255, 255, 0.15) !important; }
.footer-max-link a { display: inline-flex !important; align-items: center !important; gap: 8px !important; color: #a78bfa !important; font-weight: 700 !important; font-size: 14px !important; text-decoration: none !important; transition: color 0.2s ease !important; }
.footer-max-link a:hover { color: #c4b5fd !important; text-decoration: underline !important; text-underline-offset: 2px !important; }
.footer-max-link svg { width: 18px !important; height: 18px !important; flex-shrink: 0 !important; color: #a78bfa !important; }

/* ============ 20. КОРЗИНА ============ */
.cart-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99999999; justify-content: center; align-items: center; padding: 20px; }
.cart-modal[aria-hidden="false"] { display: flex; }
.cart-modal-content { background: var(--white); border-radius: 20px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 30px; position: relative; color: #000; z-index: 100000000; }
.close-cart-btn { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 24px; cursor: pointer; color: #000; }
.cart-item { padding: 12px 0; border-bottom: 1px solid #eee; }
.cart-remove-btn { background: #b91c1c; color: var(--white); border: none; border-radius: 4px; padding: 4px 12px; font-size: 12px; cursor: pointer; margin-top: 4px; }
.empty-cart { color: var(--muted); text-align: center; padding: 40px 0; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; color: #000; }
.form-group input { width: 100%; padding: 10px 12px; border: 2px solid #767676; border-radius: 8px; font-size: 14px; font-family: inherit; background: var(--white); color: #000; }
.form-group input:focus { outline: none; border-color: var(--blue); }
.submit-btn { background: var(--blue) !important; color: var(--white) !important; border: none; border-radius: var(--radius-btn); padding: 14px 24px; font-size: 16px; font-weight: 700; cursor: pointer; }
.submit-btn:hover { background: var(--blue-dark) !important; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--blue); color: var(--white); padding: 14px 28px; border-radius: 12px; font-weight: 600; z-index: 9999999; box-shadow: 0 4px 20px rgba(0,0,0,.3); max-width: 90%; text-align: center; }

/* ============ 21. МОДАЛКА СОГЛАСИЯ ============ */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99999999; align-items: center; justify-content: center; padding: 20px; }
.modal-window { background: #fff; border-radius: 20px; padding: 32px; max-width: 460px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #6b7280; line-height: 1; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.modal-window h3 { margin: 0 0 12px; font-size: 1.2rem; color: #1f2937; }
.modal-window p { margin: 0 0 20px; font-size: 0.95rem; color: #4b5563; line-height: 1.6; }
.modal-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; font-size: 0.875rem; color: #374151; line-height: 1.5; }
.modal-checkbox input { margin-top: 3px; width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.modal-checkbox a { color: #1e3a8a; text-decoration: underline; }
.modal-btn { display: block; width: 100%; padding: 16px 24px; background: #1e3a8a; color: #fff; border: none; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.25s ease; font-family: inherit; }
.modal-btn:hover { background: #172554; }

/* ============ 22. ФИКС outline-кнопки ============ */
.btn-outline-blue,
a.btn-outline-blue,
button.btn-outline-blue,
.btn-outline-blue *,
a.btn-outline-blue * {
  color: #1e3a8a !important;
  background: #ffffff !important;
  border-color: #1e3a8a !important;
}
.btn-outline-blue:hover,
a.btn-outline-blue:hover {
  background: #1e3a8a !important;
  color: #ffffff !important;
}
.btn-outline-blue:hover *,
a.btn-outline-blue:hover * {
  color: #ffffff !important;
}
.btn-outline-blue {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 2px solid #1e3a8a; text-decoration: none; cursor: pointer;
  transition: all 0.25s ease;
}

/* ============ 23. PAGE-WRAP ============ */
.page-wrap { max-width: var(--container); margin: 0 auto; padding: 40px 20px; }
.page-wrap > h2, .page-wrap > h1, .page-wrap > .section-title, .section-title { text-align: center; }
.page-wrap > p, .page-wrap > .subtitle, .page-wrap > .lead { text-align: center; }
h2 + p, h1 + p, .section-title + p { text-align: center; }