/* 🔧 Добавьте в ваш styles.css для полной совместимости */

/* Карточки */
.glass, .card, .service-card {
  contain: layout style paint;
  isolation: isolate;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Активный тир */
.tier-active {
  border-color: #4ADE80 !important;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.5) !important;
  transform: scale(1.05) !important;
  transition: all 0.3s ease;
}

/* Цены со скидкой */
.price-original { text-decoration: line-through; opacity: 0.6; font-size: 0.9em; }
.price-discounted { color: #4ADE80; margin-left: 0.25rem; font-weight: 700; }
.price-badge { font-size: 0.8em; color: #4ADE80; margin-left: 0.25rem; }

/* Toast */
.referral-toast {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  border-left: 4px solid #10b981;
}
.toast-content { display: flex; gap: 0.75rem; align-items: start; }
.toast-icon { font-size: 1.5rem; }
.toast-message { font-size: 0.95rem; line-height: 1.4; flex: 1; }
.toast-close { background: none; border: none; color: #94a3b8; font-size: 1.25rem; cursor: pointer; margin-left: auto; }

/* Скидка 100% */
.discount-free {
  background: linear-gradient(135deg, #4ADE80, #1e90ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Кнопки */
.btn-copied { background: linear-gradient(135deg, #10b981, #059669) !important; }

/* Админ-кнопка */
.admin-btn-hidden {
  position: fixed; bottom: 20px; left: 20px;
  padding: 10px 15px; border-radius: 50px;
  background: #1e293b; color: #fff;
  border: 1px solid #334155; cursor: pointer;
  z-index: 999; opacity: 0.3; transition: opacity 0.3s;
}
.admin-btn-hidden:hover { opacity: 1; }

/* Модальное окно */
.admin-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.admin-content {
  background: #0f172a; color: #fff; padding: 2rem;
  border-radius: 16px; width: 90%; max-width: 800px; max-height: 80vh; overflow: auto;
}
.btn-close, .btn-confirm {
  margin-top: 1rem; padding: 0.5rem 1rem; border-radius: 8px;
  border: none; cursor: pointer; font-weight: 600;
}
.btn-close { background: #ef4444; color: #fff; }
.btn-confirm { background: #10b981; color: #fff; }

/* Сообщение с кодом */
.code-display-content {
  margin-top: 1rem; padding: 1rem; border-radius: 12px;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(30,144,255,0.1));
  border: 1px solid rgba(74,222,128,0.4); text-align: center;
}
.referral-code { color: #4ADE80; font-weight: 700; font-size: 1.3rem; }
.link-copy { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin: 0.75rem 0; }
.link-copy input {
  flex: 1; min-width: 200px; padding: 0.5rem 0.75rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.2); color: white; font-size: 0.85rem;
}
.btn-copy {
  padding: 0.5rem 1rem; border-radius: 8px; border: none;
  background: linear-gradient(135deg, #1e90ff, #4ADE80); color: white; font-weight: 600; cursor: pointer;
}

/* Личное сообщение */
.personal-msg {
  margin: 1rem 0; padding: 1rem; border-radius: 12px;
  background: linear-gradient(135deg, rgba(74,222,128,0.15), rgba(30,144,255,0.1));
  border: 1px solid rgba(74,222,128,0.4); text-align: center;
  animation: slideIn 0.4s ease;
}
.discount-value { color: #4ADE80; font-weight: 700; }
.next-level { margin-top: 0.5rem; font-size: 0.95rem; opacity: 0.9; }

/* Частицы */
.particle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.3); pointer-events: none;
  animation: float 20s infinite linear;
}
@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}


/* 🔧 Добавьте в ваш CSS */

/* Toast-уведомления: фиксированная высота при появлении */
.referral-toast {
  min-height: 72px; /* высота контента + padding */
  contain: layout style; /* изоляция рефлоу */
}

/* Карточки скидок: предотвращаем сдвиг при изменении opacity */
#discounts .grid-auto > article {
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
  contain: layout;
}

/* Прогресс-бар: резервируем место до загрузки */
.discount-progress {
  min-height: 8px;
  background: rgba(255,255,255,0.1); /* placeholder */
}

/* Цены: предотвращаем скачок при замене innerHTML */
.price, .total, [data-price] {
  display: inline-flex;
  align-items: baseline;
  min-width: 60px; /* под типичную цену */
}


/* ==========================================
   🎨 Multi Cleaning — Clean Unified CSS
   ========================================== */

:root {
  /* 🧠 Палитра */
  --trust: #0F4C81;
  --trust-light: #E8F0FE;
  --action: #FF6B35;
  --action-hover: #E55A25;
  --calm: #0D9488;
  --calm-dark: #0F766E;
  --calm-light: #F0FDFA;
  
  /* 📐 База */
  --bg: linear-gradient(180deg, var(--trust-light) 0%, #F8FAFC 40%, var(--calm-light) 100%);
  --surface: rgba(255,255,255,0.94);
  --text: #0F172A;
  --text-muted: #475569;
  --radius: 20px;
  --transition: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* ✨ НЕОН как в .contact-list (единый для всех карточек) */
  --neon-base:
    0 0 10px rgba(0,140,255,0.7),
    0 0 25px rgba(0,140,255,0.3),
    0 0 40px rgba(255,255,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.3);
  --neon-hover:
    0 0 15px rgba(0,140,255,0.9),
    0 0 35px rgba(0,140,255,0.5),
    0 0 60px rgba(255,255,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

/* =========================
   📐 Сброс и база
   ========================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  perspective: 1000px;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--trust); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--action); }
.container { width: min(1200px, 92%); margin: 0 auto; position: relative; }
/* =========================
   🧩 Universal Grid
   ========================= */

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}

.grid-auto > * {
  min-width: 0;
}
/* =========================
   🌌 Фон и частицы
   ========================= */
@keyframes bgFloat {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-15px) scale(1.05); }
  100% { transform: translate(0,0) scale(1); }
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,140,255,0.2), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.15), transparent 45%),
    radial-gradient(circle at 40% 80%, rgba(0,200,255,0.1), transparent 50%);
  filter: blur(30px); animation: bgFloat 20s ease-in-out infinite;
  will-change: transform;
}
.particles { position: fixed; inset: 0; pointer-events: none; z-index: -2; opacity: 0.5; }
.particle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(15,76,129,0.12); animation: float 20s infinite linear;
}
@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; } 90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* =========================
   ✨ Glass-карточки + НЕОН (единый стиль)
   ========================= */
.glass, .card, .service-card, .trust-card, .review-card, .faq-item, .location-card {
  background: var(--surface);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative; overflow: hidden;
  
  /* 🔒 GPU-контекст для стабильного неона */
  isolation: isolate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  
  /* ✨ Неон как в .contact-list */
  box-shadow: var(--neon-base);
  transition: transform var(--transition), box-shadow var(--transition);
}

/* Ховер: усиленный неон + лёгкий подъём */
.glass:hover, .card:hover, .service-card:hover, .review-card:hover, .location-card:hover, .faq-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--neon-hover);
}

/* ✨ Блеск (Light Sweep) — GPU оптимизирован */
.glass::after, .card::after, .service-card::after, .location-card::after, .review-card::after, .contact-list a::after {
  content: ""; position: absolute; top: -60%; left: -120%;
  width: 80px; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: rotate(20deg) translateX(0);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none; z-index: 1;
}
.glass:hover::after, .card:hover::after, .service-card:hover::after, .location-card:hover::after, .review-card:hover::after, .contact-list a:hover::after {
  transform: rotate(20deg) translateX(280%);
}

/* =========================
   🎬 Scroll Reveal
   ========================= */
.reveal { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(4px); transition: all 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* =========================
   🚀 Header
   ========================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  transition: box-shadow var(--transition), padding var(--transition);
  contain: layout style;
}
.site-header.scrolled { box-shadow: var(--neon-base); padding: 0.5rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--trust); font-size: 1.25rem; }
.logo img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--text); font-weight: 600; position: relative; padding: 0.4rem 0; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--action); transition: width var(--transition); border-radius: 2px; }
nav a:hover::after { width: 100%; }
.header-actions { display: flex; gap: 0.75rem; }
.btn-link {
  padding: 0.65rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  background: var(--trust-light); color: var(--trust); border: 1px solid transparent;
  transition: all var(--transition); display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-link:hover { background: var(--trust); color: #fff; transform: translateY(-1px); box-shadow: var(--neon-hover); }

/* =========================
   🌊 Hero
   ========================= */
.hero { background: linear-gradient(135deg, var(--trust) 0%, #1e40afa2 60%, #2564eb91 100%); color: #fff; padding: 6rem 0 5rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 55%); animation: pulse 8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.8; } 50% { opacity: 1; } }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; position: relative; z-index: 2; }
.eyebrow { color: rgba(255,255,255,0.9); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.eyebrow::before { content: '✨'; }
.hero h1 { font-size: clamp(2.3rem, 2.8vw, 3.4rem); line-height: 1.12; margin-bottom: 1.1rem; font-weight: 800; }
.hero-text { font-size: 1.18rem; opacity: 0.94; margin-bottom: 1.6rem; max-width: 590px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.2rem; }
.hero-features { display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; }
.hero-features li { background: rgba(255,255,255,0.16); backdrop-filter: blur(10px); padding: 0.55rem 1.1rem; border-radius: 999px; font-size: 0.92rem; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; gap: 0.4rem; box-shadow: var(--neon-base); }
.hero-features li::before { content: '✓'; color: #4ADE80; font-weight: bold; }
.hero-image { position: relative; }
.hero-image img { border-radius: 24px; box-shadow: 0 25px 60px rgba(0,0,0,0.35); border: 4px solid rgba(255,255,255,0.28); animation: float-img 6s ease-in-out infinite; }
@keyframes float-img { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-media { display: flex; gap: 1.2rem; align-items: center; margin-top: 2.5rem; position: relative; z-index: 2; flex-wrap: wrap; }
.hero-media img { width: 140px; height: 140px; border-radius: 18px; object-fit: cover; border: 3px solid rgba(255,255,255,0.3); }
.hero-caption { color: rgba(255,255,255,0.92); font-size: 0.95rem; }

/* =========================
   🔘 Кнопки
   ========================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem 1.9rem; border-radius: 999px; font-weight: 700; border: none; cursor: pointer; transition: all var(--transition); font-size: 1rem; position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent); opacity: 0; transition: opacity 0.3s ease; border-radius: inherit; }
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-4px) scale(1.04); box-shadow: var(--neon-hover); }
.btn-primary { background: linear-gradient(135deg, var(--action), var(--action-hover)); color: #fff; box-shadow: 0 8px 25px rgba(53, 208, 255, 0.8); }
.btn-primary:hover { transform: translateY(-3px) scale(1.04); box-shadow: var(--neon-hover); }
.btn-secondary { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: rgba(255,255,255,0.28); transform: translateY(-2px) scale(1.03); }

/* =========================
   📐 Секции
   ========================= */
section { padding: 5rem 0; position: relative; }
.section-light { background: rgba(25, 127, 229, 0.5); }
.section-calm { background: var(--calm-light); }
h2 { font-size: clamp(1.9rem, 2.2vw, 2.6rem); margin-bottom: 1.1rem; color: var(--text); position: relative; display: inline-block; }
h2::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 60px; height: 3px; background: linear-gradient(90deg, var(--action), var(--calm)); border-radius: 2px; box-shadow: 0 0 12px rgba(0,140,255,0.8), 0 0 20px rgba(255,255,255,0.5); }
.section-desc { max-width: 690px; margin-bottom: 2.3rem; color: var(--text-muted); font-size: 1.05rem; }

/* =========================
   💼 Услуги
   ========================= */
.service-card { display: flex; flex-direction: column; }
.service-card h3 { color: var(--trust); margin-bottom: 0.7rem; font-size: 1.25rem; }
.service-card p { color: var(--text-muted); margin-bottom: 0.6rem; flex-grow: 1; }
.service-price { font-size: 1.3rem; font-weight: 800; color: var(--calm); margin: 0.9rem 0; display: flex; align-items: center; gap: 0.4rem; }
.service-price::before { content: '💎'; }
.service-card ul { list-style: none; margin: 0.9rem 0 0; padding-left: 0.3rem; }
.service-card ul li { margin-bottom: 0.55rem; padding-left: 1.4rem; color: var(--text-muted); position: relative; font-size: 0.98rem; }
.service-card ul li::before { content: '•'; color: var(--action); position: absolute; left: 0; font-weight: bold; font-size: 1.3rem; line-height: 1; }
.service-card .btn { margin-top: auto; width: 100%; justify-content: center; }

/* =========================
   🖼️ Галерея
   ========================= */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.gallery-item { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--neon-base); transition: transform var(--transition); }
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--neon-hover); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 60%); opacity: 0; transition: opacity var(--transition); }
.gallery-item:hover::after { opacity: 1; }

/* =========================
   📝 Контакты — НЕОН + БЛЕСК
   ========================= */
.contacts-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.8rem; align-items: start; }
.contact-copy, .contact-copy h2, .contact-list a { isolation: isolate; transform: translateZ(0); -webkit-transform: translateZ(0); }
.contact-copy { color: #fff; }
.contact-copy h2 { color: #fff; text-shadow: 0 0 12px rgba(0,140,255,0.9), 0 0 25px rgba(255,255,255,0.7), 0 1px 3px rgba(0,0,0,0.2); }
.contact-copy h2::after { background: linear-gradient(90deg, rgba(0,140,255,1), rgba(255,255,255,0.9), rgba(200,200,200,0.5)); box-shadow: 0 0 12px rgba(0,140,255,0.8), 0 0 20px rgba(255,255,255,0.5); }
.contact-copy p { opacity: 0.95; font-size: 1.05rem; text-shadow: 0 0 6px rgba(255,255,255,0.15); }
.contact-list { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.contact-list a {
  color: #fff; font-weight: 600; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.1rem; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,120,255,0.2), rgba(255,255,255,0.1));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--neon-base);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease; position: relative; overflow: hidden;
}
.contact-list a:hover { transform: translateX(6px) scale(1.02); box-shadow: var(--neon-hover); }
.contact-list a::before { font-size: 1.2rem; text-shadow: 0 0 8px rgba(0,140,255,0.9), 0 0 15px rgba(255,255,255,0.8); }
.contact-list a[href^="tel"]::before { content: '📞'; }
.contact-list a[href^="https://t.me"]::before { content: '✈️'; }

.contact-form { background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 2rem; box-shadow: var(--neon-base); }
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #fff; font-weight: 500; font-size: 0.95rem; }
.form-input { width: 100%; padding: 0.9rem 1.1rem; border-radius: 14px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 1rem; transition: all var(--transition); }
.form-input:focus { outline: none; border-color: var(--action); background: rgba(255,255,255,0.18); box-shadow: 0 0 0 3px rgba(255,107,53,0.2); }
.form-input::placeholder { color: rgba(255,255,255,0.5); }
textarea.form-input { min-height: 110px; resize: vertical; }
.form-help { display: block; margin-top: 0.4rem; font-size: 0.8rem; opacity: 0.7; color: #fff; }
.form-note { margin-top: 0.8rem; font-size: 0.85rem; opacity: 0.8; color: #fff; }
.form-note a { color: #93C5FD; text-decoration: underline; }
.form-message { margin-top: 1rem; padding: 0.8rem; border-radius: 10px; text-align: center; font-weight: 600; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.form-message.success { background: rgba(16,185,129,0.2); color: #A7F3D0; border: 1px solid #10B981; }
.form-message.error { background: rgba(239,68,68,0.2); color: #FCA5A5; border: 1px solid #EF4444; }

/* =========================
   ❓ FAQ — Аккордеон + НЕОН
   ========================= */
.faq-item { cursor: pointer; transition: background-color 0.3s ease, box-shadow 0.3s ease; overflow: hidden; }
.faq-item:hover { background: rgba(255,255,255,0.95); }
.faq-item h3 {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  font-size: 1.1rem; font-weight: 700; color: var(--trust); margin: 0 0 0.3rem 0; line-height: 1.3;
}
.faq-item h3 > span:first-child { font-weight: 700; }
.telegram-badge {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem;
  background: linear-gradient(135deg, rgba(0,140,255,0.2), rgba(255,255,255,0.1));
  border: 1px solid rgba(0,140,255,0.3); border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; color: var(--trust);
  white-space: nowrap; cursor: pointer; transition: all 0.2s ease;
}
.telegram-badge:hover { background: rgba(0,140,255,0.35); border-color: rgba(0,140,255,0.6); transform: translateX(2px); box-shadow: 0 0 10px rgba(0,140,255,0.4); }
.faq-item h3::after { content: '+'; font-size: 1.4rem; color: var(--action); transition: transform 0.3s ease; align-self: flex-end; margin-left: auto; font-weight: 300; }
.faq-item.active h3::after { content: '−'; transform: rotate(90deg); }
.faq-item p { max-height: 0; overflow: hidden; opacity: 0; margin: 0; color: var(--text-muted); line-height: 1.5; font-size: 0.95rem; transition: max-height 0.4s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.3s ease, margin-top 0.3s ease; }
.faq-item.active p { max-height: 500px; opacity: 1; margin-top: 0.8rem !important; }

/* =========================
   📐 Сетки 2×2 (Отзывы + Локации)
   ========================= */
.reviews-grid-2x2, .locations-grid-2x2 {
  display: grid; grid-template-columns: repeat(2, 1fr) !important; gap: 1.6rem;
}
.review-card, .location-card { height: 100%; display: flex; flex-direction: column; }
.review-card p, .location-card p { flex-grow: 1; }
.location-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--trust); margin: 0 0 0.6rem 0; line-height: 1.3; display: flex; align-items: center; gap: 0.4rem; }
.review-author { font-weight: 700; color: var(--calm); margin-top: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
.review-author::before { content: '👤'; }
.stars { color: #FBBF24; font-size: 1.1rem; letter-spacing: 2px; }

/* =========================
   🦶 Footer & Extras
   ========================= */
.site-footer { background: linear-gradient(180deg, var(--trust) 0%, #0B1120 100%); color: #CBD5E1; padding: 4rem 0 2.5rem; margin-top: 3rem; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.2rem; }
.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: 1.1rem; font-size: 1.15rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.7rem; }
.site-footer a { color: #93C5FD; transition: color var(--transition), transform var(--transition); display: inline-flex; align-items: center; gap: 0.4rem; }
.site-footer a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.9rem; opacity: 0.7; }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; background: rgba(13,148,136,0.12); color: var(--calm-dark); border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.badge::before { content: '✓'; }
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--action), var(--calm)); width: 0%; z-index: 1000; transition: width 0.1s linear; contain: layout; }
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; border-radius: 50%; background: var(--trust); color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all var(--transition); box-shadow: var(--neon-base); z-index: 99; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--action); transform: translateY(-4px); box-shadow: var(--neon-hover); }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.shimmer { background: linear-gradient(90deg, transparent, rgba(77, 205, 230, 0.5), transparent); background-size: 200% 100%; animation: shimmer 2.5s infinite; }

/* =========================
   📱 АДАПТИВ — ЕДИНЫЙ БЛОК (без дублей)
   ========================= */
@media (max-width: 980px) {
  .hero-grid, .contacts-inner { grid-template-columns: 1fr !important; }
  .hero { text-align: center; padding: 4rem 0 3rem; }
  .hero-text, .hero-features { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-media { justify-content: center; }
  .contacts-inner { gap: 1.5rem !important; padding: 0 0.5rem; }
  .contact-copy { order: 1; text-align: center; padding: 0 0.5rem 1rem; }
  .contact-form { order: 2; margin-top: 1rem; width: 100%; min-height: auto; }
  .form-input { font-size: 16px !important; padding: 1rem 1.1rem; }
  .contact-form .btn { width: 100%; padding: 1.1rem 1.5rem; font-size: 1.05rem; }
  .form-help, .form-note { font-size: 0.85rem; text-align: center; }
  
  /* ✅ Сохраняем неон на мобильных (не упрощаем!) */
  .glass, .card, .service-card, .review-card, .location-card, .faq-item, .contact-list a {
    isolation: isolate !important; transform: translateZ(0) !important; -webkit-transform: translateZ(0) !important;
    box-shadow: var(--neon-base) !important;
  }
  .glass:hover, .card:hover, .service-card:hover, .review-card:hover, .location-card:hover, .faq-item:hover, .contact-list a:hover {
    box-shadow: var(--neon-hover) !important;
  }
}

@media (max-width: 720px) {
  .header-inner { flex-direction: column; gap: 1rem; padding: 0.8rem 0; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  nav a { font-size: 0.95rem; }
  .container { width: 94%; }
  section { padding: 3.5rem 0; }
  h2 { font-size: 1.8rem; }
  .btn { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 1.6rem 1.2rem; }
  .form-group label { font-size: 0.9rem; }
  .reviews-grid-2x2, .locations-grid-2x2 { gap: 1.2rem !important; }
  .review-card, .location-card, .faq-item { padding: 1.4rem !important; }
  .location-card h3, .faq-item h3 { font-size: 1.05rem !important; }
  .location-card p, .faq-item p { font-size: 0.93rem !important; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-features { justify-content: center; }
  .hero { padding: 3rem 0 2.5rem !important; }
  .container { padding: 0 0.8rem; width: 100%; }
  .contact-form { padding: 1.4rem 1rem !important; }
  .form-input { padding: 0.85rem 1rem; }
  .glass, .card, .service-card, .review-card, .location-card, .faq-item { padding: 1.1rem !important; }
  .reviews-grid-2x2, .locations-grid-2x2 { gap: 0.9rem !important; }
  .location-card h3, .faq-item h3 { font-size: 0.95rem !important; margin-bottom: 0.4rem !important; }
  .location-card p, .faq-item p { font-size: 0.85rem !important; line-height: 1.4 !important; }
  .review-author { font-size: 0.82rem; flex-wrap: wrap; gap: 0.3rem; }
  .stars { font-size: 0.85rem; letter-spacing: 1px; }
  .telegram-badge { font-size: 0.7rem; padding: 0.25rem 0.6rem; }
}

@supports (-webkit-touch-callout: none) {
  .contact-form { padding-bottom: 2rem; }
  .form-input:focus { -webkit-appearance: none; }
}

@media (prefers-contrast: high) {
  .glass, .card, .service-card, .review-card, .location-card, .faq-item {
    border-color: rgba(0,0,0,0.25); background: rgba(240,245,250,0.98);
    box-shadow: 0 0 15px rgba(0,140,255,0.8), 0 0 30px rgba(255,255,255,0.4) !important;
  }
  .contact-form { background: rgba(15,23,42,0.95); border-color: rgba(100,200,255,0.6); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  body::before { animation: none !important; }
}




/* ==========================================
   🔋 LEAD BATTERY
   ========================================== */

.form-battery{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 20px;
}

/* КОРПУС — ВСЕГДА ЧЁРНЫЙ */
.battery-shell{
    width:50px;
    height:28px;

    position:relative;
    overflow:visible;

    border:3px solid #000;
    border-radius:8px;

    background:transparent;

    transition: box-shadow .2s ease;
}

/* ПИМПОЧКА — ВСЕГДА ЧЁРНАЯ */
.battery-shell::after{
    content:"";
    position:absolute;

    right:-7px;
    top:50%;
    transform:translateY(-50%);

    width:4px;
    height:10px;

    background:#000;
    border-radius:2px;
}

/* ВНУТРЕННЯЯ ЗАЛИВКА */
.battery-fill{
    width:0%;
    height:100%;
    border-radius:4px;

    transition:
        width .2s linear,
        background .2s linear,
        box-shadow .2s linear;
}

/* ЦИФРЫ */
#batteryPercent{
    color:#000;
    font-weight:800;
    min-width:42px;

    transition:
        text-shadow .2s ease,
        transform .2s ease;
}
