/* ========== INDUSTRIAL PREMIUM — СВЕТЛЫЙ HEADER И FOOTER ========== */
:root {
  --primary-terracotta: #D35400;
  --primary-terracotta-dark: #A04000;
  --primary-terracotta-light: #E67E22;
  --primary-orange: var(--primary-terracotta);
  --primary-orange-dark: var(--primary-terracotta-dark);
  --asphalt-dark: #1A1C20;
  --asphalt-medium: #2C2F36;
  --asphalt-light: #4A4E57;
  --concrete-bg-light: #F4F5F7;
  --concrete-bg-medium: #E8E9ED;
  --concrete-border: #D1D5DB;
  --header-gradient: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(249, 250, 251, 0.92) 50%,
    rgba(243, 244, 246, 0.88) 100%
  );
  --footer-bg-top: #e4e1d4;
  --footer-bg-bottom: #cbc7b2;
  --concrete-bg: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(135deg, #343741 0%, #171921 40%, #2c3138 100%);
  --bg-light: var(--concrete-bg-light);
  --text-main: var(--asphalt-dark);
  --text-muted: #6B7280;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --max-width: 1280px;
  --transition-fast: 0.2s ease;
  --transition-slow: 0.3s ease;
  /* CTA зелёный */
  --green-cta: #2E7D32;
  --green-cta-hover: #1B5E20;
}

:root {
  --button-bg:       #D35400;
  --button-text:     #ffffff;
  --button-hover-bg: #A04000;
  --accent-color:    #D35400;
  --card-bg:         #ffffff;
  --heading-color:   #1A1C20;
}

/* ========== BASE RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--concrete-bg);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ========== LAYOUT HELPERS ========== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page > main {
  flex: 1 0 auto;
}
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
}
@media (max-width: 480px) {
  .container { padding: 0 12px; }
}
.page-main-inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-block: 18px 44px;
}
.page-section {
  position: relative;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  padding: 20px 14px 24px;
  border: 1px solid var(--concrete-border);
}
@media (min-width: 768px) {
  .page-main-inner {
    gap: 30px;
    padding-block: 22px 56px;
  }
  .page-section {
    padding: 24px 22px 28px;
  }
}
body[data-page="cart"] {
  background: var(--concrete-bg-light);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.btn-primary {
  background: var(--button-bg);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--button-hover-bg);
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}
.btn-primary:active { transform: translateY(2px); }
.btn-primary:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}
.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}
.btn-outline:hover {
  background: var(--button-bg);
  color: #ffffff;
  transform: translateY(1px);
}
.btn-outline:active { transform: translateY(2px); }
.btn-full {
  width: 100%;
  justify-content: center;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ========== HEADER ========== */
/* ========== ТОПБАР ========== */
.topbar {
  display: none; /* скрыт на мобиле */
  background: #F1F3F5;
  border-bottom: 1px solid #E2E5E9;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 36px;
}
.topbar-geo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6B7280;
  font-weight: 400;
}
.topbar-geo svg { color: var(--accent-color); flex-shrink: 0; }
.topbar-nav { display: flex; align-items: center; gap: 20px; }
.topbar-nav a {
  font-size: 12px;
  color: #6B7280;
  font-weight: 400;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.topbar-nav a:hover { color: var(--accent-color); }

/* ========== ХЕДЕР ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.3s ease;
}
.header::before { display: none; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  max-width: 1440px;
  margin: 0 auto;
  background: transparent;
  overflow: visible;
}
@media (max-width: 768px) { .header-inner { padding: 10px 16px; } }
@media (max-width: 480px) { .header-inner { padding: 8px 12px; } }

.header-top-row { display: contents; }

/* ========== ЛОГОТИП ========== */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.logo-icon { width: 50px; height: 50px; flex-shrink: 0; display: block; }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-title { font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; font-family: Georgia, 'Times New Roman', serif; }
.logo-sevak { color: #2E7D32; }
.logo-stroy { color: var(--accent-color); }
.logo-sub { font-size: 10px; color: #6B7280; font-weight: 500; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 768px) { .logo-icon { width: 40px; height: 40px; } .logo-title { font-size: 17px; } }
@media (max-width: 640px) { .logo-sub { display: none; } }
@media (max-width: 480px) { .logo-icon { width: 32px; height: 32px; } .logo-title { font-size: 14px; } }

/* ========== ПРАВЫЙ БЛОК ========== */
.header-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.header-phone-main { font-weight: 700; font-size: 16px; color: #111827; white-space: nowrap; }
.header-hours { font-size: 11px; color: #6b7280; white-space: nowrap; }

.header-cta-btn {
  display: inline-flex;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--green-cta) !important;
  color: #fff !important;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  border: none;
}
.header-cta-btn:hover {
  background: var(--green-cta-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.32);
}
@media (max-width: 599px) { .header-cta-btn { display: none !important; } }

/* Корзина — круглая иконка */
.header-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #F4F5F7;
  border: 1.5px solid #E2E5E9;
  color: #111827;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}
.header-cart:hover {
  background: #fff;
  border-color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.header-cart-icon { width: 20px; height: 18px; position: relative; display: inline-block; }
.header-cart-icon::before {
  content: ""; position: absolute;
  left: 2px; right: 2px; bottom: 3px; height: 9px;
  border-radius: 3px; border: 2px solid #374151;
}
.header-cart-icon::after {
  content: ""; position: absolute;
  left: 4px; top: 1px; width: 8px; height: 6px;
  border-radius: 2px 2px 0 0;
  border-top: 2px solid #374151;
  border-left: 2px solid #374151;
  border-right: 2px solid #374151;
}
.header-cart-label { display: none; }
.header-cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent-color); color: white;
  border-radius: 999px; padding: 2px 5px;
  font-size: 10px; font-weight: 700; min-width: 16px;
  text-align: center; line-height: 1.4; border: 2px solid #fff;
}
@media (max-width: 480px) { .header-cart { width: 36px; height: 36px; } }

/* ========== БУРГЕР ========== */
.burger {
  display: none; width: 42px; height: 42px;
  border-radius: var(--radius-md); border: 1px solid rgba(0,0,0,0.15);
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.04); cursor: pointer;
  transition: all 0.2s ease; flex-shrink: 0;
}
/* Показываем бургер на всех устройствах до 1024px */
@media (max-width: 1024px) {
  .burger { display: flex; }
}
.burger:hover { background: rgba(0,0,0,0.08); border-color: var(--accent-color); }
.burger span { width: 20px; height: 2px; background: #111827; position: relative; display: block; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; width: 20px; height: 2px;
  background: #111827; left: 0; transition: 0.25s ease;
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.burger.active span { background: transparent; }
.burger.active span::before { top: 0; transform: rotate(45deg); }
.burger.active span::after  { top: 0; transform: rotate(-45deg); }
@media (max-width: 480px) { .burger { width: 38px; height: 38px; } .burger span, .burger span::before, .burger span::after { width: 18px; } }

/* ========== ДЕСКТОПНАЯ НАВИГАЦИЯ ========== */
.header-nav { display: none; }

/* ========== DROPDOWN ========== */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; }
.nav-dropdown-head { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown-link { display: inline-flex; align-items: center; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: none; border-radius: 999px;
  background: rgba(211, 84, 0, 0.08); color: var(--accent-color);
  cursor: pointer; transition: background 0.18s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown.is-open .nav-dropdown-toggle { background: rgba(211, 84, 0, 0.16); }
.nav-dropdown-arrow { flex-shrink: 0; transition: transform 0.22s ease, opacity 0.22s ease; opacity: 0.9; }
.nav-dropdown.is-open .nav-dropdown-arrow { transform: rotate(180deg); opacity: 1; }
.nav-dropdown-menu {
  position: fixed; top: 0; left: 0;
  min-width: 240px; max-width: min(320px, calc(100vw - 24px));
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 2px 10px rgba(15, 23, 42, 0.06);
  padding: 8px; z-index: 9000;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.nav-dropdown-menu::before { display: none; }
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: #374151;
  white-space: nowrap; transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover { background: rgba(211, 84, 0, 0.07); color: var(--accent-color); transform: translateX(2px); }
.nav-dropdown-icon { font-size: 16px; flex-shrink: 0; width: 18px; text-align: center; }

/* ========== ВТОРОЙ РЯД НАВИГАЦИИ (скрыт на мобиле) ========== */
.header-nav-secondary {
  display: none;
}

/* ========== ДЕСКТОП ≥1025px ========== */
@media (min-width: 1025px) {
  .topbar { display: none; }

  /* header-inner — колонка: ряд 1 (лого+правый) + ряд 2 (все ссылки) */
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 32px;
    gap: 0;
    height: auto;
  }

  /* Первый ряд: лого + правый блок */
  .header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    width: 100%;
  }

  /* Единый ряд навигации: все пункты вместе */
  .header-nav {
    display: flex !important;
    align-items: center;
    gap: 0;
    padding: 0;
    overflow: visible;
    width: 100%;
    border-top: 1px solid #E8EAED;
  }

  /* Все ссылки и дропдауны — единый стиль */
  .header-nav > a,
  .nav-dropdown-link {
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    padding: 9px 14px;
    position: relative;
    transition: color 0.15s ease;
    letter-spacing: 0.01em;
  }
  .header-nav > a::after, .nav-dropdown-link::after { display: none; }
  .header-nav > a:hover,
  .nav-dropdown-link:hover,
  .nav-dropdown.has-active .nav-dropdown-link { color: var(--accent-color); }
  .header-nav > a.is-active,
  .nav-dropdown-link.is-active { color: var(--accent-color); font-weight: 600; }

  /* Второй ряд не нужен — всё в одном */
  .header-nav-secondary { display: none !important; }

  .header-phone { display: flex; }
  .header-cta-btn { display: inline-flex !important; }
  .header-right { gap: 16px; }
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}
.mobile-menu-overlay.open { display: block; }

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #ffffff;
  z-index: 999;
  padding: 80px 24px 28px;
  display: none;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.mobile-menu-logo {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #111827;
}
.mobile-menu-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 18px;
  cursor: pointer;
  color: #374151;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover { background: #fee2e2; color: #ef4444; }

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* MOBILE ACCORDION */
.mobile-accordion { border-bottom: 1px solid #e5e7eb; }
.mobile-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  cursor: pointer;
}
.mobile-accordion-title {
  font-size: 18px;
  font-weight: 500;
  color: #111827;
  flex: 1;
  padding: 0;
  border: none;
  transition: color 0.2s ease;
}
.mobile-accordion-title:hover { color: var(--accent-color); }
.mobile-accordion-title::after { display: none !important; }
.mobile-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: rgba(211, 84, 0, 0.08);
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.25s, box-shadow 0.2s;
}
.mobile-accordion-toggle:hover {
  background: rgba(211, 84, 0, 0.14);
  box-shadow: 0 4px 12px rgba(211, 84, 0, 0.14);
}
.mobile-accordion.is-open .mobile-accordion-toggle {
  transform: rotate(180deg);
  background: rgba(211, 84, 0, 0.16);
}
.mobile-accordion-body {
  display: none;
  flex-direction: column;
  gap: 0;
  padding-bottom: 8px;
}
.mobile-accordion.is-open .mobile-accordion-body {
  display: flex;
  animation: accordion-open 0.25s ease;
}
@keyframes accordion-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-accordion-body a {
  font-size: 15px;
  font-weight: 400;
  color: #374151;
  padding: 10px 0 10px 16px;
  border-left: 2px solid #e5e7eb;
  margin-left: 4px;
  transition: color 0.2s ease, border-color 0.2s ease, padding-left 0.15s ease;
}
.mobile-accordion-body a:hover {
  color: var(--accent-color);
  border-left-color: var(--accent-color);
  padding-left: 22px;
}
.mobile-menu-nav .mobile-accordion-body a {
  border-bottom: none;
  font-size: 15px;
  padding: 10px 0 10px 16px;
}
.mobile-menu-nav .mobile-accordion-body a:hover { padding-left: 22px; }

.mobile-menu-nav > a {
  font-size: 18px;
  font-weight: 500;
  color: #111827;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: block;
}
.mobile-menu-nav > a:hover {
  color: var(--accent-color);
  padding-left: 8px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 16px;
}

body.menu-open { overflow: hidden; }

@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-overlay { display: none !important; }
}

/* ========== FOOTER ========== */
.footer {
  flex-shrink: 0;
  padding: 48px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--asphalt-dark);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-info { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-info { grid-column: auto; }
}
@media (max-width: 768px) {
  .footer { padding: 32px 0 20px; }
  .footer-grid { margin-bottom: 28px; }
}
@media (max-width: 480px) {
  .footer { padding: 28px 0 16px; }
}
.footer-info { display: flex; flex-direction: column; gap: 10px; }
.footer-logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1.2;
}
.footer-logo span { color: var(--accent-color); }
.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 38ch;
  margin: 0;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
}
.footer-nav-col,
.footer-contacts-col { display: flex; flex-direction: column; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: rgba(255, 255, 255, 0.95); }
.footer-contacts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.footer-contact-item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-contact-item a {
  color: #ffffff;
  font-weight: 700;
  transition: color 0.2s ease;
}
.footer-contact-item a:hover { color: var(--accent-color); }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.footer-social a:hover {
  background: var(--button-bg);
  border-color: var(--button-bg);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
@media (max-width: 600px) {
  .footer-social { gap: 8px 6px; }
  .footer-social a {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 11px;
    padding: 6px 8px;
  }
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}
.footer-separator { color: rgba(255, 255, 255, 0.15); }
@media (max-width: 768px) {
  .footer-bottom { justify-content: center; text-align: center; gap: 8px; padding-top: 20px; }
}
@media (max-width: 480px) { .footer-bottom { font-size: 12px; } }

/* ========== STICKY CTA (МОБИЛЬНАЯ КНОПКА) ========== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #ffffff;
  padding: 12px 20px;
  box-shadow: var(--shadow-xl);
  border-top: 2px solid var(--accent-color);
  z-index: 100;
}
.sticky-cta .btn { width: 100%; padding: 14px; font-size: 16px; }
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  main { padding-bottom: 70px; }
}

/* ========== CART PAGE ========== */
.cart-title { font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.cart-sub { font-size: 14px; color: #6b7280; margin-bottom: 24px; line-height: 1.6; }
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 320px; } }
.cart-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}
.cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart-table thead { background: #f9fafb; border-bottom: 2px solid #e5e7eb; }
.cart-table th { padding: 12px 16px; text-align: left; font-weight: 600; color: #374151; white-space: nowrap; }
.cart-table td { padding: 16px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.cart-table tbody tr:last-child td { border-bottom: none; }
.cart-table tbody tr:hover { background: #fafbfc; }
.cart-item-title { font-weight: 600; color: #111827; margin-bottom: 4px; }
.cart-item-page { font-size: 12px; color: #6b7280; }
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 4px 8px;
  background: #ffffff;
}
.cart-qty-btn {
  width: 24px; height: 24px;
  border-radius: 6px; border: none;
  background: #f3f4f6; color: #374151;
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-qty-btn:hover { background: #e5e7eb; color: #111827; }
.cart-qty-btn:active { transform: scale(0.95); }
.cart-qty-input {
  width: 40px; text-align: center; border: none;
  font-size: 14px; font-weight: 600; color: #111827;
  background: transparent;
  appearance: textfield; -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty-input:focus { outline: none; }
.cart-remove-btn {
  width: 32px; height: 32px;
  border-radius: 8px; border: 1px solid #e5e7eb;
  background: #ffffff; color: #ef4444;
  font-size: 16px; cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-remove-btn:hover { background: #fef2f2; border-color: #ef4444; transform: scale(1.1); }
.cart-empty { padding: 48px 24px; text-align: center; color: #6b7280; font-size: 16px; background: #f9fafb; border-radius: 12px; }
.cart-summary {
  position: sticky; top: 80px;
  background: #ffffff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 20px;
  height: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 14px; color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.cart-summary-row:last-of-type { border-bottom: none; }
.cart-summary-row-total { font-size: 18px; font-weight: 700; color: #111827; padding-top: 16px; margin-top: 8px; border-top: 2px solid #e5e7eb; }
.cart-summary-clear {
  margin-top: 16px; width: 100%; padding: 12px;
  border-radius: 8px; border: 1px solid #e5e7eb;
  background: #ffffff; color: #ef4444;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease;
}
.cart-summary-clear:hover { background: #fef2f2; border-color: #ef4444; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); }
.cart-summary-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f3f4f6; font-size: 12px; color: #6b7280; line-height: 1.5; }
.cart-close-btn {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.9);
  background: #ffffff; color: #111827;
  font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  transition: background 0.15s ease, transform 0.12s ease;
}
.cart-close-btn:hover { background: #f3f4f6; transform: translateY(-1px); }
@media (max-width: 768px) {
  .cart-table { font-size: 13px; }
  .cart-table th, .cart-table td { padding: 10px 8px; }
  .cart-qty { padding: 2px 6px; }
  .cart-qty-btn { width: 20px; height: 20px; font-size: 14px; }
  .cart-qty-input { width: 32px; font-size: 13px; }
}

/* ========== ORDER FORM ========== */
.cart-order-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.cart-order-sub { font-size: 14px; color: #6b7280; margin-bottom: 24px; line-height: 1.6; }
.cart-order-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 600; color: #374151; }
.input, .textarea {
  width: 100%; padding: 12px 14px;
  border-radius: 8px; border: 1px solid #d1d5db;
  background: #ffffff; font-size: 14px;
  font-family: inherit; color: #1f2937;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.textarea-fixed {
  resize: none !important; cursor: default;
  background: #f9fafb; color: #374151;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.5;
  scrollbar-width: thin; scrollbar-color: #d1d5db #f9fafb;
}
.textarea-fixed::-webkit-scrollbar { width: 8px; }
.textarea-fixed::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 4px; }
.textarea-fixed::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.textarea-fixed::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
.textarea-resizable { resize: vertical; min-height: 80px; max-height: 300px; line-height: 1.5; overflow-y: auto; }
.form-note { font-size: 12px; color: #6b7280; line-height: 1.5; margin-top: 8px; }
.form-note a { color: #3b82f6; font-weight: 600; }
.form-note a:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .cart-order-form { max-width: 600px; }
  .cart-order-title { font-size: 26px; }
}
@media (max-width: 768px) {
  .input, .textarea { font-size: 16px; }
}

/* ========== MODAL WINDOWS ========== */
.confirm-modal {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.confirm-modal-content {
  background: #fff; border-radius: 16px;
  padding: 32px 28px; max-width: 420px; width: 100%;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.4);
  animation: slideUp 0.3s ease-out; text-align: center;
}
.confirm-modal-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid rgba(248, 113, 113, 0.3);
}
.confirm-modal-title { font-size: 21px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.confirm-modal-text { font-size: 15px; color: #6b7280; margin-bottom: 28px; line-height: 1.6; }
.confirm-modal-buttons { display: flex; gap: 12px; }
.confirm-modal-btn { flex: 1; padding: 13px 22px; border-radius: 10px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s ease; }
.confirm-modal-btn-cancel { background: #f3f4f6; color: #374151; }
.confirm-modal-btn-cancel:hover { background: #e5e7eb; transform: translateY(-1px); }
.confirm-modal-btn-confirm { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45); }
.confirm-modal-btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(239, 68, 68, 0.55); }
.success-modal {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}
.success-modal-content {
  background: #fff; border-radius: 16px;
  padding: 40px 32px; max-width: 480px; width: 100%;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.4);
  animation: slideUp 0.3s ease-out; text-align: center;
}
.success-modal-icon {
  width: 80px; height: 80px;
  margin: 0 auto 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  animation: successPulse 0.6s ease-out;
}
.success-modal-title { font-size: 24px; font-weight: 700; color: #111827; margin-bottom: 12px; }
.success-modal-text { font-size: 15px; color: #6b7280; margin-bottom: 20px; line-height: 1.6; }
.success-modal-details { background: #f9fafb; border-radius: 10px; padding: 14px 16px; margin-bottom: 24px; font-size: 14px; color: #374151; line-height: 1.8; }
.success-modal-btn {
  width: 100%; padding: 14px 24px; border-radius: 10px;
  font-size: 16px; font-weight: 600; border: none; cursor: pointer;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); transition: all 0.2s ease;
}
.success-modal-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes successPulse {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
@media (max-width: 480px) {
  .confirm-modal-content, .success-modal-content { padding: 24px 20px; }
  .confirm-modal-title, .success-modal-title { font-size: 18px; }
  .confirm-modal-buttons { flex-direction: column; }
  .confirm-modal-btn { width: 100%; }
}

/* ========== OTHER COMPONENTS ========== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}
.hero-main { display: flex; flex-direction: column; gap: 16px; }
.hero-main-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 107, 53, 0.08); color: var(--primary-orange);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  width: fit-content;
}
.stats-section { background: linear-gradient(135deg, #111827, #1f2937); color: #ffffff; padding: 32px 24px; margin-bottom: 24px; }
@media (min-width: 768px) { .stats-section { padding: 48px 32px; } }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.stat-item { text-align: center; }
.stat-number { font-size: 48px; font-weight: 800; color: var(--primary-orange); line-height: 1; margin-bottom: 8px; }
@media (min-width: 768px) { .stat-number { font-size: 56px; } }
.stat-label { font-size: 14px; color: rgba(255, 255, 255, 0.8); line-height: 1.4; }
.service-card { position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), #fbbf24);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.cta-section::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}
.cta-side ul { margin: 0; padding-left: 18px; line-height: 1.8; }
.cta-side li { margin-bottom: 6px; }
.hero-side-highlight { background: linear-gradient(135deg, #fef3c7, #fbbf24); }
.hero-side-highlight-main { color: #78350f; font-weight: 800; font-size: 14px; }
.hero-side-highlight-sub { color: #92400e; font-size: 12px; }
.hero-side-photo-secondary { border: 2px solid rgba(255, 255, 255, 0.9); }
.benefit-card { transition: all 0.3s ease; }
.benefit-card:hover { background: #ffffff; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1); transform: translateY(-2px); }
.geo-meta strong { font-weight: 700; color: #111827; }
.geo-meta a { color: var(--primary-orange); font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
.geo-meta a:hover { color: var(--primary-orange-dark); text-decoration: underline; }