/* ── Глобальные стили ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 767px) {
    body  { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    main  { min-height: calc(100vh - 56px); }
    footer { margin-bottom: 0 !important; }
}

/* ── Анимации ────────────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.55s ease-out both; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.menu-open { animation: slideDown 0.2s ease-out; }

/* ── Scroll-reveal (начальное состояние — скрыто) ───────────────── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Карточки товаров — квадратное фото + hover ─────────────────── */
.product-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.07);
}

/* ── Нижняя навигация (мобильная) ───────────────────────────────── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: stretch;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}
.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-nav a.active { color: #FF4D00; }
.mobile-bottom-nav a:active { color: #FF4D00; }
.mobile-bottom-nav a.cta-btn {
    background: #FF4D00;
    color: #ffffff;
    border-radius: 16px;
    margin: 6px 4px;
    flex-direction: row;
    gap: 4px;
    font-size: 11px;
    box-shadow: 0 4px 14px rgba(255, 77, 0, 0.35);
}
.mobile-bottom-nav a.cta-btn:active { background: #CC3D00; }

@media (min-width: 768px) {
    .mobile-bottom-nav { display: none; }
}

/* ── Минимальный размер touch-цели ──────────────────────────────── */
button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}
.touch-target {
    min-height: 48px;
    display: flex;
    align-items: center;
}

/* ── Кастомные чекбоксы с анимацией галочки ─────────────────────── */
.custom-checkbox-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox:checked {
    background: #FF4D00;
    border-color: #FF4D00;
}

.custom-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.custom-checkmark::after {
    content: '';
    position: absolute;
    left: 2px;
    top: -1px;
    width: 6px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    transform-origin: center;
}

.custom-checkbox:checked + .custom-checkmark {
    opacity: 1;
    animation: checkPop 0.2s ease;
}

.custom-checkmark--light::after {
    border-color: #111827;
}
.custom-checkbox:checked ~ .custom-checkmark--light {
    opacity: 1;
}

@keyframes checkPop {
    0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
    60%  { transform: translate(-50%, -50%) scale(1.15); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Выбор пакета — индикатор радиокнопки */
.custom-radio-indicator {
    transition: border-color 0.2s ease, background 0.2s ease;
}
input[type="radio"]:checked + div .custom-radio-indicator {
    border-color: #FF4D00;
    background: #FF4D00;
    box-shadow: inset 0 0 0 3px white;
}

/* Пакеты на мобиле — горизонтальный скролл */
@media (max-width: 639px) {
    .packages-scroll {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .packages-scroll > label {
        min-width: 200px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    .packages-scroll::-webkit-scrollbar { height: 0; }
}

/* ── Обрезка длинного текста ─────────────────────────────────────── */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Фокус-кольцо ────────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid #FF4D00;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Кастомный скролл ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 99px; }

/* ── Placeholder ─────────────────────────────────────────────────── */
input::placeholder, textarea::placeholder { color: #9ca3af; }

/* ── Плавный скролл секций ───────────────────────────────────────── */
section { scroll-margin-top: 72px; }

/* ── Параллакс — не трогать transform на мобиле ─────────────────── */
@media (max-width: 767px) {
    #parallaxBg { transform: none !important; }
}

/* ── Scroll darkening — плавное затемнение/осветление секций ─────── */
.scroll-darken {
    transition: background-color 0.7s ease, box-shadow 0.7s ease;
}
.scroll-darken.section-active {
    background-color: #d8e8f8;
    box-shadow: inset 0 0 200px rgba(30,58,138,0.14);
}
.scroll-darken.dark-section.section-active {
    background-color: #010508;
    box-shadow: inset 0 0 260px rgba(0,0,0,0.90);
}
.scroll-darken.dark-section {
    background-color: #0A1828;
}

/* ── Улучшенные hover на кнопках ─────────────────────────────────── */
.btn-scale {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.2s ease,
                background-color 0.15s ease;
}
.btn-scale:hover {
    transform: scale(1.04) translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-scale:active {
    transform: scale(0.97);
}

/* ── Nav-карточки (три инструмента на главной) ───────────────────── */
.nav-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                background-color 0.3s ease;
    will-change: transform;
}
.nav-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 28px 65px rgba(0,0,0,0.18),
                0 10px 32px rgba(255, 77, 0, 0.22);
}

/* ── Product card — улучшенный hover ─────────────────────────────── */
.product-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    will-change: transform;
}
.product-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.10);
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.07);
}

/* ── Stagger — задержки для дочерних карточек в grid ─────────────── */
.stagger-grid > *:nth-child(1) { transition-delay: 0ms; }
.stagger-grid > *:nth-child(2) { transition-delay: 90ms; }
.stagger-grid > *:nth-child(3) { transition-delay: 180ms; }
.stagger-grid > *:nth-child(4) { transition-delay: 270ms; }
.stagger-grid > *:nth-child(5) { transition-delay: 360ms; }
.stagger-grid > *:nth-child(6) { transition-delay: 450ms; }

/* ── Модальное окно (отслеживание цены) ─────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
@media (min-width: 640px) {
    .modal-overlay {
        align-items: center;
        padding: 20px;
    }
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-sheet {
    background: white;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 28px 24px 32px;
    transform: translateY(40px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}
@media (min-width: 640px) {
    .modal-sheet {
        border-radius: 24px;
        transform: scale(0.95) translateY(0);
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    }
}
.modal-overlay.open .modal-sheet {
    transform: translateY(0);
}
@media (min-width: 640px) {
    .modal-overlay.open .modal-sheet {
        transform: scale(1) translateY(0);
    }
}

/* Дёргатель для мобильного шита */
.modal-handle {
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 99px;
    margin: 0 auto 20px;
}
@media (min-width: 640px) {
    .modal-handle { display: none; }
}

/* ── Результат "Найти дешевле" (инлайн) ─────────────────────────── */
.cheaper-result {
    display: none;
    margin-top: 8px;
    padding: 10px 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    font-size: 12px;
    color: #9a3412;
    line-height: 1.5;
    animation: fadeUp 0.3s ease-out;
}
.cheaper-result.visible { display: block; }

/* ─────────────────────────────────────────────────────────────────
   LIQUID GLASS — iOS 26 стиль
   ───────────────────────────────────────────────────────────────── */

/* Блеск-свип на кнопках */
.glass-btn {
    position: relative;
    overflow: hidden;
}
.glass-btn::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -80%;
    width: 55%;
    height: 120%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.glass-btn:hover::after {
    left: 140%;
}

/* Плавающая стеклянная сфера */
@keyframes floatSphere {
    0%, 100% { transform: translateY(0px) scale(1); }
    40%  { transform: translateY(-14px) scale(1.03); }
    70%  { transform: translateY(8px) scale(0.97); }
}
@keyframes floatDriftRight {
    0%   { transform: translate(0px,   0px)   scale(1); }
    30%  { transform: translate(55px, -14px)  scale(1.03); }
    60%  { transform: translate(80px,  9px)   scale(0.97); }
    80%  { transform: translate(40px, -8px)   scale(1.01); }
    100% { transform: translate(0px,   0px)   scale(1); }
}
@keyframes floatDriftLeft {
    0%   { transform: translate(0px,   0px)   scale(1); }
    30%  { transform: translate(-55px, -14px) scale(1.03); }
    60%  { transform: translate(-80px,  9px)  scale(0.97); }
    80%  { transform: translate(-40px, -8px)  scale(1.01); }
    100% { transform: translate(0px,   0px)   scale(1); }
}
.glass-sphere {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%,
        rgba(255,255,255,0.42) 0%,
        rgba(255,255,255,0.10) 50%,
        transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12),
                inset 0 2px 6px rgba(255,255,255,0.3),
                inset -2px -4px 8px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    animation: floatSphere var(--duration, 7s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform;
}
.drift-right {
    animation-name: floatDriftRight;
}
.drift-left {
    animation-name: floatDriftLeft;
}

/* Liquid-изображение в hero */
@keyframes liquidFloat {
    0%, 100% { transform: translateY(-50%) scale(1) rotate(0deg); }
    50%       { transform: translateY(calc(-50% - 20px)) scale(1.04) rotate(2.5deg); }
}
.liquid-hero-img {
    position: absolute;
    right: -4%;
    top: 50%;
    transform: translateY(-50%);
    width: min(52%, 560px);
    opacity: 0.2;
    mix-blend-mode: screen;
    filter: blur(0.5px) saturate(1.3);
    pointer-events: none;
    user-select: none;
    animation: liquidFloat 12s ease-in-out infinite;
    will-change: transform;
}
.liquid-seller-img {
    position: absolute;
    left: -4%;
    top: 50%;
    transform: translateY(-50%);
    width: min(48%, 520px);
    opacity: 0.18;
    mix-blend-mode: screen;
    filter: blur(0.5px) saturate(1.4);
    pointer-events: none;
    user-select: none;
    animation: liquidFloat 14s ease-in-out infinite reverse;
    will-change: transform;
}

@media (max-width: 767px) {
    .liquid-hero-img,
    .liquid-seller-img { display: none; }
}

/* ─────────────────────────────────────────────────────────────────
   DARK GLASS THEME
   ───────────────────────────────────────────────────────────────── */

/* Glass-карточка на тёмном фоне */
.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(255, 77, 0, 0.45);
    box-shadow: 0 16px 55px rgba(255, 77, 0, 0.22),
                0 5px 20px rgba(255, 77, 0, 0.14);
}

/* Тёмные инпуты и textarea внутри форм */
.dark-form textarea,
.dark-form input[type="text"],
.dark-form input[type="email"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
}
.dark-form textarea:focus,
.dark-form input[type="text"]:focus,
.dark-form input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 77, 0, 0.50) !important;
}
.dark-form textarea::placeholder,
.dark-form input::placeholder { color: #64748b !important; }
.dark-form label { color: #cbd5e1; }

/* Тёмная модалка */
.modal-sheet {
    background: #131f30;
    color: #f1f5f9;
}
.modal-sheet .modal-handle { background: rgba(255,255,255,0.15); }
.modal-sheet .text-gray-700,
.modal-sheet .text-gray-800,
.modal-sheet .text-gray-900 { color: #e2e8f0 !important; }
.modal-sheet .text-gray-500,
.modal-sheet .text-gray-600 { color: #94a3b8 !important; }
.modal-sheet .bg-gray-50,
.modal-sheet .bg-gray-100 { background: rgba(255,255,255,0.06) !important; }
.modal-sheet .bg-gray-200,
.modal-sheet .hover\:bg-gray-200:hover { background: rgba(255,255,255,0.12) !important; }
.modal-sheet .border-gray-200 { border-color: rgba(255,255,255,0.12) !important; }
.modal-sheet input[type="number"] {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15) !important;
    color: #f1f5f9;
}
.modal-sheet .custom-checkbox {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
}

/* Мобильная навигация — тёмная */
.mobile-bottom-nav {
    background: rgba(10, 21, 37, 0.92) !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
}
.mobile-bottom-nav a { color: #64748b !important; }
.mobile-bottom-nav a.active { color: #FF4D00 !important; }
.mobile-bottom-nav a:active { color: #FF4D00 !important; }
.mobile-bottom-nav a.cta-btn { color: #ffffff !important; }

/* ─────────────────────────────────────────────────────────────────
   ТЕМА: переключатель светлая / тёмная
   ───────────────────────────────────────────────────────────────── */

[data-theme="light"] body {
    background-color: #f8fafc;
    color: #0f172a;
}

/* Header → светлый */
[data-theme="light"] header {
    background: rgba(248, 250, 252, 0.94) !important;
    box-shadow: 0 1px 16px rgba(0, 0, 0, 0.07) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
}
[data-theme="light"] header nav a { color: #475569 !important; }
[data-theme="light"] header nav a:hover { color: #FF4D00 !important; }
[data-theme="light"] header .text-white:not([class*="bg-brand"]) { color: #0f172a !important; }
[data-theme="light"] header .text-slate-400 { color: #64748b !important; }

/* Мобильное меню → светлое */
[data-theme="light"] #mobileMenu {
    background: rgba(248, 250, 252, 0.97) !important;
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] #mobileMenu .text-slate-300 { color: #374151 !important; }
[data-theme="light"] #mobileMenu .text-slate-200 { color: #1f2937 !important; }
[data-theme="light"] #mobileMenu .hover\:bg-white\/5 { background: rgba(0,0,0,0.04); }

/* Контентные секции (кроме .keep-dark) → прозрачные, фон body виден */
[data-theme="light"] section:not(.keep-dark) {
    background-color: transparent;
}
[data-theme="dark"] section:not(.keep-dark) {
    background-color: transparent;
}

/* Заголовки в контентных секциях */
[data-theme="light"] section:not(.keep-dark) h1,
[data-theme="light"] section:not(.keep-dark) h2,
[data-theme="light"] section:not(.keep-dark) h3 {
    color: #0f172a;
}

/* Серый текст → чуть темнее для читаемости на светлом */
[data-theme="light"] section:not(.keep-dark) .text-slate-400,
[data-theme="light"] section:not(.keep-dark) .text-slate-500,
[data-theme="light"] section:not(.keep-dark) .text-gray-400,
[data-theme="light"] section:not(.keep-dark) .text-gray-500,
[data-theme="light"] section:not(.keep-dark) .text-gray-600 {
    color: #64748b !important;
}

/* Glass-карточки → белые */
[data-theme="light"] .glass-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07) !important;
    color: #0f172a;
}
[data-theme="light"] .glass-card:hover {
    background: #ffffff !important;
    border-color: rgba(255, 77, 0, 0.30) !important;
    box-shadow: 0 8px 32px rgba(255, 77, 0, 0.10) !important;
}

/* Nav-карточки на светлой теме — тёмный текст + оранжевый ховер */
[data-theme="light"] .nav-card.glass-card .text-white {
    color: #111827 !important;
}
[data-theme="light"] .nav-card.glass-card .text-slate-400 {
    color: #64748b !important;
}
[data-theme="light"] .nav-card.glass-card .text-brand {
    color: #FF4D00 !important;
}
[data-theme="light"] .nav-card.glass-card:hover {
    background: #FF4D00 !important;
    border-color: #e04300 !important;
    box-shadow: 0 16px 48px rgba(255, 77, 0, 0.35) !important;
}
[data-theme="light"] .nav-card.glass-card:hover .text-white,
[data-theme="light"] .nav-card.glass-card:hover .text-slate-400,
[data-theme="light"] .nav-card.glass-card:hover .text-brand,
[data-theme="light"] .nav-card.glass-card:hover h3,
[data-theme="light"] .nav-card.glass-card:hover p,
[data-theme="light"] .nav-card.glass-card:hover div {
    color: white !important;
}
[data-theme="light"] .nav-card.glass-card:hover .bg-brand {
    background-color: rgba(255, 255, 255, 0.22) !important;
}

/* Тёмные инпуты → светлые */
[data-theme="light"] .dark-form textarea,
[data-theme="light"] .dark-form input[type="text"],
[data-theme="light"] .dark-form input[type="email"] {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
[data-theme="light"] .dark-form textarea::placeholder,
[data-theme="light"] .dark-form input::placeholder { color: #94a3b8 !important; }
[data-theme="light"] .dark-form label { color: #374151 !important; }

/* Нижняя мобильная навигация → светлая */
[data-theme="light"] .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .mobile-bottom-nav a { color: #9ca3af !important; }
[data-theme="light"] .mobile-bottom-nav a.active { color: #FF4D00 !important; }
[data-theme="light"] .mobile-bottom-nav a.cta-btn { color: #ffffff !important; }

/* Скроллбар */
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cbd5e1; }

/* ─────────────────────────────────────────────────────────────────
   LOGO GLOW — оранжевое свечение в тёмной теме
   ───────────────────────────────────────────────────────────────── */
[data-theme="dark"] .logo-container {
    box-shadow: 0 0 0 1.5px rgba(255, 77, 0, 0.42),
                0 0 16px rgba(255, 77, 0, 0.18);
    transition: box-shadow 0.3s ease;
}

/* ─────────────────────────────────────────────────────────────────
   SLIDE-IN REVEAL — блоки выезжают сбоку при скролле
   ───────────────────────────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateX(-55px);
    transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="right"] {
    transform: translateX(55px);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ─────────────────────────────────────────────────────────────────
   AUTH PAGES — тёмная тема для login / register
   ───────────────────────────────────────────────────────────────── */
[data-theme="dark"] .auth-page {
    background-color: #13101e !important;
}
[data-theme="dark"] .auth-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45) !important;
    color: #f1f5f9 !important;
}
[data-theme="dark"] .auth-card input[type="text"],
[data-theme="dark"] .auth-card input[type="password"],
[data-theme="dark"] .auth-card input[type="email"] {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
}
[data-theme="dark"] .auth-card input::placeholder { color: #64748b !important; }
[data-theme="dark"] .auth-card label,
[data-theme="dark"] .auth-card .text-gray-700 { color: #cbd5e1 !important; }
[data-theme="dark"] .auth-card h1,
[data-theme="dark"] .auth-card h2,
[data-theme="dark"] .auth-card .text-gray-900 { color: #f1f5f9 !important; }
[data-theme="dark"] .auth-card .text-gray-600,
[data-theme="dark"] .auth-card .text-gray-500,
[data-theme="dark"] .auth-card .text-gray-400 { color: #94a3b8 !important; }
[data-theme="dark"] .auth-card a:not([class*="bg-"]) { color: #FF6B35 !important; }
[data-theme="dark"] .auth-card .border-gray-200 { border-color: rgba(255, 255, 255, 0.12) !important; }
[data-theme="dark"] .auth-card .bg-white { background: transparent !important; }
[data-theme="dark"] .auth-role-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
}
[data-theme="dark"] .auth-role-card .text-gray-400 { color: #94a3b8 !important; }
[data-theme="dark"] .auth-role-card .font-bold { color: #f1f5f9 !important; }

/* ─────────────────────────────────────────────────────────────────
   ЦВЕТОВЫЕ ПЕРЕМЕННЫЕ — чуть разные акценты по теме
   ───────────────────────────────────────────────────────────────── */
[data-theme="light"] {
    --brand-glow: rgba(255, 77, 0, 0.15);
}
[data-theme="dark"] {
    --brand-glow: rgba(255, 107, 53, 0.20);
}

/* ── Оранжевая сфера (как серая, но оранжевого цвета) ───────────── */
.orange-sphere {
    background: radial-gradient(circle at 34% 26%,
        rgba(255, 195, 120, 0.68) 0%,
        rgba(255, 85, 15, 0.40) 52%,
        rgba(175, 35, 0, 0.14) 100%);
    border: 1px solid rgba(255, 130, 55, 0.42);
    box-shadow: 0 8px 32px rgba(200, 70, 20, 0.22),
                inset 0 2px 8px rgba(255, 205, 120, 0.58),
                inset -2px -4px 10px rgba(150, 40, 0, 0.24);
}

/* ── Декоративные сферы (все страницы) ──────────────────────────── */
.page-spheres {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}
.page-spheres .glass-sphere {
    position: absolute;
}
@media (max-width: 1100px) {
    .page-spheres { display: none; }
}

/* Серые сферы на светлой теме — видимый серый вместо прозрачного белого */
[data-theme="light"] .page-spheres .glass-sphere:not(.orange-sphere) {
    background: radial-gradient(circle at 32% 28%,
        rgba(175, 188, 205, 0.58) 0%,
        rgba(135, 152, 172, 0.27) 50%,
        transparent 100%);
    border: 1px solid rgba(148, 165, 185, 0.38);
    box-shadow: 0 8px 32px rgba(100, 120, 145, 0.10),
                inset 0 2px 6px rgba(220, 228, 238, 0.52),
                inset -2px -4px 8px rgba(100, 120, 145, 0.14);
}
