/* ============================================================
   Dveri Eko-opt — css-main.css (v85.1, PRO MAX FINAL)
   ============================================================ */

/* ============ 1. ПЕРЕМЕННЫЕ И БАЗОВЫЙ СБРОС ============ */
:root {
  --blue: #1e3a8a; --blue-dark: #172554; --blue-light: #e0e7ff; --blue-soft: #eef2ff;
  --primary: #1e3a8a; --burgundy: #7f1d1d; --burgundy-hover: #991b1b;
  --navy: #0b1f3a; --gold: #d4a373; --white: #fff;
  --muted: #4a4a4a; --muted-soft: #6b7280; --border: #e5e7eb; --bg-soft: #f8fafc;
  --text: #1f2937;
  
  --container: 1280px;
  --header-height: 80px;
  --breadcrumbs-height: 44px;
  
  --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; 
  --radius-sm: 12px;
  
  --transition: 0.25s ease;
  --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. УТИЛИТЫ И КОНТЕЙНЕРЫ ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; width: 100%; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.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 { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* Компенсация фиксированной шапки */
html body { padding-top: 124px !important; transition: padding-top .35s ease; }
html body.header-is-hidden { padding-top: 44px !important; }
html body #allrecords, html body .t-body { padding-top: 0 !important; overflow-x: hidden !important; }

/* Хлебные крошки */
html body.image-modal-open .custom-header, html body.image-modal-open #smartHeader, html body.image-modal-open .breadcrumbs { display: none !important; }
.breadcrumbs { position: fixed !important; left: 0; right: 0; top: var(--header-height); z-index: 9998; background: #fff; border-bottom: 1px solid var(--border); height: var(--breadcrumbs-height); display: flex; align-items: center; padding: 0 24px; font-size: .9rem; gap: 8px; transition: top .35s ease; }
body.header-is-hidden .breadcrumbs { top: 0 !important; }
.breadcrumbs a { color: var(--muted); font-weight: 500; white-space: nowrap; transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs .sep { color: #767676; flex-shrink: 0; }
.breadcrumbs .current { color: #000; font-weight: 600; white-space: nowrap; }

/* Ссылки в тексте */
p a, .seo__content p a, .seo__content li a, .faq__a a, .steps__item a, .why__item a {
  color: var(--burgundy) !important; text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 2px !important;
}
p a:hover, .seo__content p a:hover, .faq__a a:hover, .steps__item a:hover { color: var(--burgundy-hover) !important; }

/* Сброс цвета для ссылок-кнопок */
.btn a, a.btn, .breadcrumbs a, .nav-menu a, .footer-col a, .card a, .card__link, .card__btn, .seo__content .card__btn, .product__btn, .dveri-2gis-block__link {
  color: inherit !important; text-decoration: none !important;
}

/* ============ 3. КНОПКИ ============ */
.btn, .btn-primary, a.btn, button.btn, input[type="submit"].btn, .t-btn, .t-submit, .submit-btn, .card__btn, .product__btn, .nav-modal .btn-primary, .nav-modal .btn-secondary, .cta__box .btn-primary {
  background-color: var(--blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: var(--radius-btn) !important;
  border: none !important;
  text-decoration: none !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; text-align: center !important;
  padding: 14px 28px !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1.2 !important;
  cursor: pointer !important; transition: all var(--transition) !important;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15) !important;
}
.btn:hover, .btn-primary:hover, a.btn:hover, .card__btn:hover, .product__btn:hover, .submit-btn:hover, .cta__box .btn-primary:hover {
  background-color: var(--blue-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25) !important;
}
/* Фикс цвета текста внутри кнопок (Tilda hack) */
.btn *, .btn-primary *, a.btn *, .card__btn *, .product__btn *, .submit-btn *, .cta__box .btn-primary * { 
  color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; 
}

/* Кнопки с обводкой */
.btn-outline-blue, a.btn-outline-blue {
  color: var(--blue) !important; -webkit-text-fill-color: var(--blue) !important;
  background: #ffffff !important; border: 2px solid var(--blue) !important;
  border-radius: var(--radius-btn) !important; padding: 14px 32px !important;
  font-weight: 700 !important; font-size: 15px !important; cursor: pointer !important; transition: all 0.25s ease !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  text-decoration: none !important;
}
.btn-outline-blue *, a.btn-outline-blue * { color: var(--blue) !important; -webkit-text-fill-color: var(--blue) !important; }
.btn-outline-blue:hover, a.btn-outline-blue:hover {
  color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
  background: var(--blue) !important; border-color: var(--blue) !important;
}
.btn-outline-blue:hover *, a.btn-outline-blue:hover * { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }

/* Желтая кнопка (опт) */
.opt__btn.btn, a.btn.btn-primary.opt__btn { background: #FFD93D !important; color: #333 !important; border: none !important; }
.opt__btn.btn *, a.btn.btn-primary.opt__btn * { color: #333 !important; -webkit-text-fill-color: #333 !important; }

/* ============ 4. КАРТОЧКИ ТОВАРОВ ============ */
.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__link { display: flex; flex-direction: column; height: 100%; flex: 1 1 auto; text-decoration: none; color: inherit; }
.card__img { flex: 0 0 auto !important; aspect-ratio: 3 / 4 !important; background: #fff !important; overflow: hidden !important; position: relative !important; }
.card__img img { width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center center !important; transition: transform 0.35s ease !important; }
.card:hover .card__img img { transform: scale(1.04) !important; }
.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__price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.card__price-new, .new { font-size: 1.3rem; font-weight: 800; color: #7f1d1d !important; }
.card__price-old, .old { font-size: 0.9rem; color: #000 !important; text-decoration: line-through !important; font-weight: 500 !important; }
.card__btn { width: 100% !important; margin-top: auto !important; }

/* Бейджи */
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.card__badge { display: inline-block; padding: 6px 14px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.card__badge--sale { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); color: #fff; padding-left: 18px; }
.card__badge--hit { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); color: #fff; }

/* ============ 5. ШАПКА И МЕНЮ ============ */
.custom-header { position: fixed !important; top: 0; left: 0; right: 0; height: var(--header-height); background: var(--white); box-shadow: var(--shadow); z-index: 99999 !important; transition: transform .35s ease, box-shadow .35s ease; }
.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; }
.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; }
.nav-menu a { font-weight: 600; font-size: 15px; color: #000; transition: color var(--transition); padding: 6px 2px; position: relative; }
.nav-menu a:hover, .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; }
.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); }

/* Кнопка 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; text-decoration: none !important; height: 40px !important; transition: transform 0.25s ease !important; }
.header-max-btn:hover { transform: translateY(-2px) !important; }
.header-max-btn * { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }

/* Корзина */
.cart-icon { position: relative; background: none; border: none; font-size: 22px; cursor: pointer; padding: 6px; opacity: 0; transform: scale(.8); transition: all 0.25s ease; }
.cart-icon:not([hidden]) { opacity: 1; transform: scale(1); }
.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; }

/* Выпадающее меню (Desktop) */
.has-dropdown { position: relative; display: flex; align-items: center; }
.has-dropdown > .dropdown-toggle { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 6px 8px; transition: transform 0.25s ease; }
.has-dropdown:hover > .dropdown-toggle, .has-dropdown.open > .dropdown-toggle { transform: rotate(180deg); color: var(--blue); }
.has-dropdown .dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.15); border-radius: 12px; padding: 8px 0; list-style: none; margin: 0; z-index: 999999; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s ease; }
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown .dropdown a { display: block; padding: 8px 20px; font-weight: 500; font-size: 14px; color: #000; white-space: nowrap; }
.has-dropdown .dropdown a:hover { background: var(--blue-soft); color: var(--blue); }

/* ============ 6. HERO ============ */
.hero { background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%); padding: 48px 0 56px; border-bottom: 1px solid var(--border); }
.hero__inner { max-width: var(--container); 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__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__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; }

/* ============ 7. СЕКЦИИ КАТАЛОГА ============ */
.category-tiles { padding: 48px 0 32px; }
.category-tiles__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.category-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition-smooth); text-decoration: none; color: inherit; }
.category-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--blue); }
.category-tile__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: #f1f5f9; }
.category-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-smooth); }
.category-tile__label { position: absolute; bottom: 16px; left: 16px; background: rgba(255,255,255,0.95); color: var(--blue); font-weight: 800; font-size: 1.05rem; padding: 8px 18px; border-radius: 30px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.category-tile__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.category-tile__body p { color: var(--muted-soft); font-size: 0.95rem; line-height: 1.6; margin: 0; flex: 1 1 auto; }
.category-tile__link { color: var(--blue); font-weight: 700; font-size: 0.95rem; text-decoration: none; align-self: flex-start; }

.catalog-section { padding: 32px 0 48px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.section-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; text-align: center; margin: 0 0 8px; color: var(--text); }
.section-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; }

.steps { padding: 48px 0; background: var(--bg-soft); }
.steps__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps__item { counter-increment: step; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px 20px 20px; position: relative; }
.steps__item::before { content: counter(step); position: absolute; top: -16px; left: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; }
.steps__item strong { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.steps__item p { font-size: 0.875rem; color: var(--muted-soft); line-height: 1.5; margin: 0; }

.why { padding: 48px 0; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.why__item { text-align: center; padding: 28px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition-smooth); }
.why__item--left { text-align: left; }
.why__icon { font-size: 2rem; margin-bottom: 12px; }
.why__title { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.why__desc { font-size: 0.875rem; color: var(--muted-soft); line-height: 1.5; margin: 0; }

.seo { padding: 48px 0; }
.seo__content { max-width: 900px; margin: 0 auto; background: #fff; border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 28px 32px; font-size: 1rem; line-height: 1.8; color: #374151; }
.seo__content h2, .seo__content h3 { font-size: 1.4rem; font-weight: 800; margin: 0 0 16px; color: var(--text); text-align: left; }
.seo__content a { color: var(--blue); text-decoration: underline; }

.cta { padding: 48px 0; }
.cta__box { background: linear-gradient(135deg, #FFD93D 0%, #f5cd2c 100%); border-radius: var(--radius); padding: 40px 32px; text-align: center; color: #333; }
.cta__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin: 0 0 12px; color: var(--navy); }
.cta__sub { font-size: 1rem; margin: 0 0 24px; color: rgba(0,0,0,0.7); }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta__phone { display: inline-block; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--navy); text-decoration: none; margin-top: 16px; }

/* ============ 8. СТРАНИЦА ТОВАРА ============ */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; padding: 24px; background: var(--white); border-radius: 20px; border: 1px solid var(--border); max-width: var(--container); margin: 24px auto 0; align-items: start; }
.product__gallery { display: flex; flex-direction: column; gap: 16px; }
.product__main-img { width: 100%; background: #f1f5f9; border-radius: 16px; overflow: hidden; }
.product__main-img img { width: 100%; height: auto; max-height: 560px; object-fit: contain; cursor: zoom-in; }
.product__thumbnails { display: flex; gap: 10px; flex-wrap: wrap; }
.product__thumbnails img { width: 72px !important; height: 72px !important; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.product__thumbnails img.active, .product__thumbnails img:hover { border-color: var(--blue); }
.product__config { display: flex; flex-direction: column; gap: 14px; }
.product h1 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; margin: 0 0 6px; line-height: 1.25; }
.product__size { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--bg-soft); border-radius: 12px; font-weight: 600; }
.product__size select { flex: 1; padding: 10px 12px; font-size: 15px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; }
.product__price-block { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--blue-soft); border: 1px dashed var(--blue); border-radius: 12px; font-weight: 700; }
.product__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.product__presets button { padding: 10px 18px; font-size: .9rem; font-weight: 600; background: var(--blue) !important; color: #fff !important; border: none !important; border-radius: var(--radius-btn); cursor: pointer; }
.product__total-card { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--blue-soft); border-radius: 14px; font-weight: 800; font-size: 1.05rem; }
.product__total-card .price { color: var(--blue); font-size: 1.6rem; font-weight: 800; }

/* ============ 9. FAQ И ФОРМЫ ============ */
.faq { max-width: var(--container); 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); }
.faq__q:hover { background: var(--blue-soft); }
.faq__q .icon { transition: transform 0.3s ease; color: var(--blue); }
.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; }

/* ============ 10. ПОДВАЛ ============ */
.custom-footer-global { background: var(--navy); color: var(--white); padding: 48px 0 24px; margin-top: 60px; border-top: 2px solid var(--blue); }
.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; }
.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 { color: rgba(255,255,255,.85); transition: color 0.25s ease; }
.footer-col ul li a:hover { color: #93c5fd; }
.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-reviews-btn { display: inline-flex; 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; text-decoration: none !important; transition: all 0.25s ease; margin-top: 24px; }
.footer-reviews-btn:hover { background: #f5cd2c; transform: translateY(-2px); }
.footer-reviews-btn * { color: #333 !important; -webkit-text-fill-color: #333 !important; }

/* ============ 11. МОДАЛЬНЫЕ ОКНА И ПОМОЩНИК ============ */
.nav-trigger { position: fixed !important; right: 20px !important; bottom: 90px !important; width: 56px !important; height: 56px !important; border-radius: 50% !important; background: #FFD93D !important; border: none !important; cursor: pointer !important; z-index: 9998 !important; display: 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 !important; }
.nav-trigger:hover { transform: scale(1.08) !important; }
.nav-trigger svg { width: 30px !important; height: 30px !important; stroke: #333 !important; fill: none !important; }

.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; }
.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; }

.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; }
.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; }

.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; }

/* ============ 12. АДАПТИВНОСТЬ ============ */
@media (max-width: 768px) {
  html body { padding-top: 120px !important; }
  html body.header-is-hidden { padding-top: 40px !important; }
  
  .header-container { padding: 0 12px !important; gap: 8px !important; }
  .logo a { font-size: 16px !important; }
  .phone-text { display: none !important; }
  .header-max-btn { width: 36px !important; height: 36px !important; padding: 0 !important; border-radius: 50% !important; }
  .header-max-btn .header-max-text { display: none !important; }
  .mobile-toggle { display: block !important; }
  
  .nav-menu { position: fixed; top: 80px; left: 0; right: 0; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.15); max-height: 0; overflow: hidden; transition: max-height .35s ease; z-index: 100000; display: block; }
  .nav-menu.open { max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav-menu > ul { display: block; padding: 8px 0; margin: 0; }
  .nav-menu > ul > li { display: block; width: 100%; border-bottom: 1px solid #f0f0f0; position: relative; }
  .nav-menu > ul > li > a { display: block; padding: 14px 24px; font-size: 16px; font-weight: 600; }
  .nav-menu .dropdown-toggle { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); padding: 8px 12px; }
  .nav-menu .has-dropdown .dropdown { position: static; display: block; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: #f8fafc; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .nav-menu .has-dropdown.open .dropdown { max-height: 800px; }
  .nav-menu .has-dropdown .dropdown a { padding: 12px 24px 12px 40px; font-size: 14px; color: #333; }

  .hero__grid, .category-tiles__grid, .why__grid, .why__grid--cols-2, .product, .footer-grid { grid-template-columns: 1fr !important; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .card__body { padding: 12px 12px 16px !important; }
  .card__title { font-size: 0.95rem !important; }
  .card__price-new { font-size: 1.05rem !important; }
  .card__btn { padding: 10px 12px !important; font-size: 0.85rem !important; }
  
  .breadcrumbs { top: 80px !important; height: auto !important; min-height: 34px !important; padding: 8px 14px !important; font-size: 0.78rem !important; flex-wrap: wrap !important; }
  body.header-is-hidden .breadcrumbs { top: 0 !important; }
  
  /* Отключаем hover-эффекты на мобильных */
  .card:hover, .category-tile:hover, .why__item:hover { transform: none !important; box-shadow: none !important; }
  .btn:hover, .card__btn:hover { transform: none !important; }
}

@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .card__body { padding: 10px 10px 14px !important; }
  .card__title { font-size: 0.85rem !important; }
  .card__price-new { font-size: 0.95rem !important; }
  .card__btn { padding: 9px 10px !important; font-size: 0.8rem !important; }
}

/* ============ Дополнительные классы для футера ============ */
.footer-link-highlight { color: #93c5fd !important; font-weight: 700; }
.footer-socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,0.15); }
.footer-social-link { display: inline-flex; align-items: center; gap: 8px; color: #a78bfa !important; font-weight: 700; font-size: 14px; text-decoration: none; transition: color 0.2s ease; }
.footer-social-link:hover { color: #c4b5fd !important; text-decoration: underline; }
.footer-social-link svg { flex-shrink: 0; }