/* 74pro.ru — стиль v1.9.5 */

:root {
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="green"] {
    --bg: #0B1120; --bg-alt: #111827; --bg-dark: #030712;
    --text: #F3F4F6; --text-muted: #9CA3AF; --text-invert: #F8FAFC; --text-invert-muted: #94A3B8;
    --border: #1F2937; --border-dark: #111827; --card-bg: #1F2937;
    --link: #60A5FA; --link-hover: #93C5FD;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4); --shadow-md: 0 8px 24px rgba(0,0,0,0.5); --shadow-lg: 0 16px 40px rgba(0,0,0,0.6);
    --shadow-accent: 0 8px 24px rgba(16, 185, 129, 0.25);
    --radius-sm: 8px; --radius: 12px; --radius-lg: 20px;
    --danger: #ef4444;
    --accent: #10B981; --accent-hover: #059669;
    --accent-gradient: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

[data-theme="ice"] {
    --bg: #E0F2FE; --bg-alt: #F0F9FF; --bg-dark: #BAE6FD;
    --text: #0F172A; --text-muted: #475569; --text-invert: #0F172A; --text-invert-muted: #475569;
    --border: #BAE6FD; --border-dark: #7DD3FC; --card-bg: #FFFFFF;
    --link: #0284C7; --link-hover: #0369A1;
    --accent: #0EA5E9; --accent-hover: #0284C7;
    --accent-gradient: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%);
    --shadow-sm: 0 2px 8px rgba(14, 165, 233, 0.1); --shadow-md: 0 8px 24px rgba(14, 165, 233, 0.15); --shadow-lg: 0 16px 40px rgba(14, 165, 233, 0.2);
    --shadow-accent: 0 8px 24px rgba(14, 165, 233, 0.3);
    --radius-sm: 4px; --radius: 4px; --radius-lg: 8px;
    --danger: #ef4444;
}

[data-theme="space"] {
    --bg: #09090B; --bg-alt: #18181B; --bg-dark: #000000;
    --text: #FAFAFA; --text-muted: #A1A1AA; --text-invert: #FFFFFF; --text-invert-muted: #D4D4D8;
    --border: #3F3F46; --border-dark: #27272A; --card-bg: #27272A;
    --link: #A78BFA; --link-hover: #C4B5FD;
    --accent: #8B5CF6; --accent-hover: #7C3AED;
    --accent-gradient: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.15); --shadow-md: 0 8px 24px rgba(139, 92, 246, 0.2); --shadow-lg: 0 16px 40px rgba(139, 92, 246, 0.3);
    --shadow-accent: 0 8px 24px rgba(139, 92, 246, 0.4);
    --radius-sm: 12px; --radius: 16px; --radius-lg: 24px;
    --danger: #ef4444;
}

[data-theme="planets"] {
    --bg: #020617; --bg-alt: #0F172A; --bg-dark: #000000;
    --text: #F8FAFC; --text-muted: #94A3B8; --text-invert: #FFFFFF; --text-invert-muted: #CBD5E1;
    --border: #334155; --border-dark: #1E293B; --card-bg: #1E293B;
    --link: #FCD34D; --link-hover: #FDE68A;
    --accent: #F59E0B; --accent-hover: #D97706;
    --accent-gradient: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%);
    --shadow-sm: 0 2px 8px rgba(245, 158, 11, 0.15); --shadow-md: 0 8px 24px rgba(245, 158, 11, 0.2); --shadow-lg: 0 16px 40px rgba(245, 158, 11, 0.3);
    --shadow-accent: 0 8px 24px rgba(245, 158, 11, 0.4);
    --radius-sm: 8px; --radius: 12px; --radius-lg: 16px;
    --danger: #ef4444;
}

[data-theme="autumn"] {
    --bg: #2D1A11; --bg-alt: #3F2519; --bg-dark: #1A0D08;
    --text: #FEF3C7; --text-muted: #D6D3D1; --text-invert: #FFFFFF; --text-invert-muted: #E7E5E4;
    --border: #78350F; --border-dark: #451A03; --card-bg: #451A03;
    --link: #FCD34D; --link-hover: #FDE68A;
    --accent: #D97706; --accent-hover: #B45309;
    --accent-gradient: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    --shadow-sm: 0 2px 8px rgba(217, 119, 6, 0.15); --shadow-md: 0 8px 24px rgba(217, 119, 6, 0.2); --shadow-lg: 0 16px 40px rgba(217, 119, 6, 0.3);
    --shadow-accent: 0 8px 24px rgba(217, 119, 6, 0.4);
    --radius-sm: 6px; --radius: 10px; --radius-lg: 14px;
    --danger: #ef4444;
}

[data-theme="summer"] {
    --bg: #FEF3C7; --bg-alt: #FFFBEB; --bg-dark: #FDE68A;
    --text: #451A03; --text-muted: #78350F; --text-invert: #451A03; --text-invert-muted: #78350F;
    --border: #FDE68A; --border-dark: #FCD34D; --card-bg: #FFFFFF;
    --link: #EA580C; --link-hover: #C2410C;
    --accent: #EA580C; --accent-hover: #C2410C;
    --accent-gradient: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
    --shadow-sm: 0 2px 8px rgba(234, 88, 12, 0.1); --shadow-md: 0 8px 24px rgba(234, 88, 12, 0.15); --shadow-lg: 0 16px 40px rgba(234, 88, 12, 0.2);
    --shadow-accent: 0 8px 24px rgba(234, 88, 12, 0.3);
    --radius-sm: 12px; --radius: 20px; --radius-lg: 32px;
    --danger: #ef4444;
}

[data-theme="spring"] {
    --bg: #F0FDF4; --bg-alt: #DCFCE7; --bg-dark: #BBF7D0;
    --text: #064E3B; --text-muted: #047857; --text-invert: #064E3B; --text-invert-muted: #047857;
    --border: #BBF7D0; --border-dark: #86EFAC; --card-bg: #FFFFFF;
    --link: #DB2777; --link-hover: #BE185D;
    --accent: #DB2777; --accent-hover: #BE185D;
    --accent-gradient: linear-gradient(135deg, #DB2777 0%, #F472B6 100%);
    --shadow-sm: 0 2px 8px rgba(219, 39, 119, 0.1); --shadow-md: 0 8px 24px rgba(219, 39, 119, 0.15); --shadow-lg: 0 16px 40px rgba(219, 39, 119, 0.2);
    --shadow-accent: 0 8px 24px rgba(219, 39, 119, 0.3);
    --radius-sm: 16px; --radius: 24px; --radius-lg: 40px;
    --danger: #ef4444;
}

[data-theme="metal"] {
    --bg: #18181B; --bg-alt: #27272A; --bg-dark: #000000;
    --text: #F4F4F5; --text-muted: #A1A1AA; --text-invert: #FFFFFF; --text-invert-muted: #D4D4D8;
    --border: #3F3F46; --border-dark: #27272A; --card-bg: #27272A;
    --link: #FBBF24; --link-hover: #FCD34D;
    --accent: #DC2626; --accent-hover: #B91C1C;
    --accent-gradient: linear-gradient(135deg, #DC2626 0%, #F59E0B 100%);
    --shadow-sm: 0 2px 8px rgba(220, 38, 38, 0.2); --shadow-md: 0 8px 24px rgba(220, 38, 38, 0.3); --shadow-lg: 0 16px 40px rgba(220, 38, 38, 0.4);
    --shadow-accent: 0 8px 24px rgba(220, 38, 38, 0.5);
    --radius-sm: 2px; --radius: 4px; --radius-lg: 8px;
    --danger: #ef4444;
}

:root { --container: 1140px; }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }

body { 
    margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); 
    background: transparent; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility; overflow-x: hidden; 
}

#fog-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0.5; }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--link-hover); }

.breadcrumbs { font-size: 14px; color: var(--text-muted); padding: 16px 0; position: relative; z-index: 10; }
.breadcrumbs .container { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep { opacity: 0.5; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.section { padding: 56px 0; position: relative; }
.section-title { font-size: clamp(24px, 5vw, 40px); line-height: 1.15; margin: 0 0 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.subsection-title { font-size: clamp(18px, 4vw, 22px); margin: 0 0 16px; font-weight: 700; letter-spacing: -0.02em; }
.muted { color: var(--text-muted); font-size: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 28px; font-size: 16px; font-weight: 600; line-height: 1.1; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center; transition: all .2s ease; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-gradient); color: #fff; box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3); }
.btn--secondary { background: var(--card-bg); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { border-color: var(--text-muted); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; } .btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; font-size: 15px; color: var(--text); text-align: left; text-decoration: none; }
.link-btn:hover { color: var(--accent); }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
[data-theme="ice"] .site-header, [data-theme="summer"] .site-header, [data-theme="spring"] .site-header { background: rgba(255, 255, 255, 0.8); }
[data-theme="autumn"] .site-header { background: rgba(45, 26, 17, 0.8); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; flex-wrap: nowrap; }
.brand { font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; letter-spacing: -0.04em; flex-shrink: 0; }
.brand__mark { color: var(--accent); } .brand__text { color: var(--text); } .brand:hover .brand__text { color: var(--accent); }

.site-nav { display: none; gap: 16px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px; }
.site-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; flex: 1; justify-content: flex-end; }

.theme-switcher { display: flex; gap: 2px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; padding: 2px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; max-width: 100%; }
.theme-switcher::-webkit-scrollbar { display: none; }
.theme-btn { background: transparent; border: none; cursor: pointer; min-width: 26px; height: 26px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: background .2s; flex-shrink: 0; }
.theme-btn:hover { background: var(--border); }
.theme-btn.is-active { background: var(--accent); color: #fff; }

.clock-widget { display: none; font-size: 12px; line-height: 1.2; color: var(--text); font-weight: 600; padding-right: 6px; border-right: 1px solid var(--border); flex-direction: column; align-items: flex-end; }
.clock-date { font-size: 10px; color: var(--text-muted); }

.callback-btn, .login-btn { display: none; }

.header-socials { display: flex; gap: 6px; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.social-icon:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.social-icon--max { background: var(--accent-gradient); }
.social-icon--tg { background: #0088cc; }

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 6px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 105;
    flex-shrink: 0;
    position: relative;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

dialog.modal { border: none; border-radius: 16px; padding: 0; background: transparent; max-width: 440px; width: 90%; margin: auto; color: var(--text); font-family: var(--font); }
dialog.modal::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal__content { background: var(--bg-alt); border-radius: 16px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative; color: var(--text); }
.modal__close { position: absolute; top: 16px; right: 16px; background: transparent; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); font-family: Arial, sans-serif; }
.modal__close:hover { color: var(--danger); }
.modal__title { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: var(--text); font-family: var(--font); }
.modal__demo-info { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); padding: 12px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; color: var(--text); }
.modal__demo-info code { background: rgba(0,0,0,0.2); padding: 2px 6px; border-radius: 4px; font-weight: bold; font-family: monospace; color: var(--accent); }

.logs-box { background: #000; color: #0f0; padding: 16px; border-radius: 8px; font-family: monospace; font-size: 13px; border: 1px solid #333; }

.hero__title { font-size: clamp(24px, 5vw, 36px); line-height: 1.2; margin: 0 0 20px; font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
.hero__note { display: block; font-size: 0.65em; font-weight: 500; color: var(--text-muted); margin-top: 12px; line-height: 1.4; letter-spacing: -0.01em; }
.hero__subtitle { font-size: clamp(16px, 4vw, 18px); color: var(--text-muted); margin: 0 0 32px; max-width: 680px; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.hero__actions .btn { flex: 1 1 auto; min-width: 200px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: 15px; font-weight: 500; color: var(--text-muted); }
.hero__trust li { position: relative; padding-left: 26px; }
.hero__trust li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--accent); font-weight: 800; font-size: 18px; }

.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--bg-dark); color: var(--text-invert); }
.section--dark .section-title { color: #fff; }
.section--dark .disclaimer { background: rgba(255,255,255,0.05); border-color: var(--border-dark); color: var(--text-invert-muted); }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; } 
.grid--3 { grid-template-columns: 1fr; }

.card, .case { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover, .case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__title { margin: 0 0 12px; font-size: clamp(18px, 4vw, 22px); font-weight: 800; letter-spacing: -0.02em; }
.card__price { margin: 0 0 24px; font-size: clamp(22px, 5vw, 28px); font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }
.card__desc { margin: 0 0 24px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.card__list { margin: 0 0 24px; padding: 0; flex: 1; list-style: none; }
.card__list li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--text-muted); font-size: 15px; }
.card__list li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); font-weight: bold; font-size: 20px; line-height: 1; top: 0; }
.card__actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.card--featured { border-color: var(--accent); box-shadow: 0 8px 32px rgba(255, 107, 0, 0.12); position: relative; }
.card--featured::before { content: "Популярный"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.case__metric { font-weight: 800; margin: 0 0 12px; color: var(--accent); font-size: 18px; letter-spacing: -0.01em; }
.case__desc { margin: 0 0 16px; font-weight: 500; }
.case__limit { margin: 0; font-size: 14px; color: var(--text-muted); padding-top: 16px; border-top: 1px solid var(--border); }

.support-grid { display: grid; gap: 16px; margin-bottom: 32px; }
.support-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 24px; }
.support-card--accent { border-color: var(--accent); background: rgba(255,107,0,0.1); }
.support-card__month { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-invert-muted); margin: 0 0 8px; }
.support-card__price { font-size: 24px; font-weight: 800; color: var(--accent); margin: 0 0 16px; }
.support-card__desc { color: var(--text-invert-muted); margin: 0; font-size: 15px; line-height: 1.6; }
.manifesto-quote { font-size: clamp(16px, 4vw, 18px); font-style: italic; line-height: 1.6; color: var(--text-invert); padding-left: 24px; border-left: 3px solid var(--accent); max-width: 800px; }

.disclaimer { margin-top: 24px; font-size: 14px; color: var(--text-muted); padding: 16px 20px; background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 8px; }
.manifesto p { max-width: 800px; font-size: clamp(16px, 4vw, 18px); line-height: 1.7; color: var(--text-invert-muted); }
.manifesto strong { color: var(--text-invert); }
.not-for__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.not-for__list li { padding: 20px 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 500; box-shadow: var(--shadow-sm); }
.about__inner { display: grid; gap: 32px; }

.about-room { position: relative; width: 100%; aspect-ratio: 4 / 5; background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); color: var(--border); max-height: 400px; }
.room-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

.contacts-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.contacts-list__label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.steps { padding: 0; margin: 0; max-width: 800px; counter-reset: step; list-style: none; }
.steps li { position: relative; padding-left: 48px; margin-bottom: 24px; font-size: 17px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }

details { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; background: var(--card-bg); box-shadow: var(--shadow-sm); }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; position: relative; padding-right: 32px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -4px; color: var(--accent); font-weight: 800; font-size: 26px; line-height: 1; transition: transform .2s; }
details[open] summary::after { content: "−"; transform: rotate(180deg); }
details p { margin: 16px 0 0; color: var(--text-muted); font-size: 16px; }

.form { display: grid; gap: 20px; max-width: 520px; width: 100%; }
.form__field { display: grid; gap: 8px; }
.form__label { font-size: 15px; font-weight: 600; }
.form__input { width: 100%; min-height: 52px; padding: 14px 18px; font-family: inherit; font-size: 16px; color: var(--text); border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.form__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
.checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; padding: 4px; border-radius: 8px; transition: background-color .2s, padding .2s; }
.checkbox input[type="checkbox"] { margin-top: 3px; width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.checkbox label { cursor: pointer; }
.checkbox--error { padding: 12px; background: #FFF5F5; border: 1px solid #F5C2C7; }
.form__error { color: var(--danger); font-size: 14px; padding: 12px 16px; background: #FFF5F5; border: 1px solid #F5C2C7; border-radius: 8px; }
.form__error[hidden] { display: none; }
.form__success { padding: 20px; background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success-text); border-radius: var(--radius); font-weight: 500; }
.form__success[hidden] { display: none; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; overflow: hidden; }

.site-footer { border-top: 1px solid var(--border); padding: 48px 0 64px; margin-top: 48px; background: var(--bg-alt); }
.footer__cols { display: grid; gap: 40px; }
.footer__brand { font-weight: 800; font-size: 24px; margin: 0 0 12px; letter-spacing: -0.03em; }
.footer__meta { font-size: 14px; color: var(--text-muted); margin: 0; max-width: 320px; line-height: 1.6; }
.footer__heading { font-weight: 700; margin: 0 0 16px; font-size: 16px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__links a, .footer__links .link-btn { font-size: 15px; color: var(--text-muted); }
.footer__links a:hover, .footer__links .link-btn:hover { color: var(--accent); }
.footer__copyright { margin: 48px 0 0; font-size: 13px; color: var(--text-muted); text-align: center; border-top: 1px solid var(--border); padding-top: 24px; }

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: var(--card-bg); border-top: 1px solid var(--border); box-shadow: 0 -8px 32px rgba(0,0,0,0.2); padding: 20px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { max-width: var(--container); margin: 0 auto; }
.cookie-banner__title { font-weight: 700; margin: 0 0 8px; font-size: 18px; }
.cookie-banner__text { margin: 0 0 16px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.cookie-banner__text a { color: var(--link); }
.cookie-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner__actions .btn { flex: 1; min-width: 160px; }

.floating-sidebar { display: none; }
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--card-bg); border-top: 1px solid var(--border); box-shadow: 0 -4px 24px rgba(0,0,0,0.2); gap: 12px; align-items: stretch; }
.mobile-cta .btn { flex: 1; min-width: 0; padding: 12px 12px; font-size: 14px; }
.mobile-cta .btn--primary { flex: 2; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 600px; }
.admin-table th, .admin-table td { border: 1px solid var(--border); padding: 8px; text-align: left; vertical-align: top; word-break: break-word; }
.admin-table th { background: var(--bg-alt); font-weight: 600; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }

.legal { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: clamp(24px, 5vw, 40px); margin: 0 0 12px; font-weight: 800; letter-spacing: -0.03em; }
.legal h2 { font-size: clamp(18px, 4vw, 22px); margin: 40px 0 16px; font-weight: 700; letter-spacing: -0.02em; }
.legal h3 { font-size: clamp(16px, 3vw, 18px); margin: 28px 0 12px; font-weight: 600; }
.legal p, .legal li { font-size: 16px; color: var(--text-muted); }
.legal ul, .legal ol { padding-left: 24px; }
.legal li { margin-bottom: 8px; }

.funny-character {
    position: absolute;
    top: 0; left: 0;
    width: 50px; height: 50px;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s;
    z-index: 10;
    cursor: pointer;
}
.char-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(255,255,255,0.95);
    color: #000;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.char-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(255,255,255,0.95) transparent transparent transparent;
}

#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: var(--card-bg); color: var(--text); padding: 14px 20px; border-radius: 8px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--accent); font-size: 14px; font-weight: 500; opacity: 0; transform: translateX(50px); transition: opacity 0.3s, transform 0.3s; pointer-events: auto; max-width: 350px; word-wrap: break-word; }
.toast--show { opacity: 1; transform: translateX(0); }
.toast--error { border-left-color: var(--danger); }

/* ─── АДАПТИВНОСТЬ (Media Queries) ─── */

@media (max-width: 768px) {
    body { padding-bottom: 80px; }
    body.has-cookie-banner { padding-bottom: 220px; }
    
    .site-header__inner { 
        padding: 18px 0; 
        justify-content: space-between; 
        flex-wrap: nowrap; 
        gap: 6px; 
    }
    .brand { font-size: 18px; flex-shrink: 0; }
    
    /* Уменьшен gap, чтобы дать место бургеру */
    .header-actions { flex: 1; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
    
    .theme-switcher { 
        display: flex; 
        gap: 1px; 
        padding: 2px; 
        flex: 1; 
        justify-content: space-between; 
        max-width: none; 
        overflow: visible; 
    }
    .theme-btn { 
        min-width: 24px; 
        height: 24px; 
        font-size: 12px; 
        padding: 0;
    }
    
    /* Бургер: жестко задаем белые полоски и белую рамку */
    .menu-toggle { 
        display: flex; 
        width: 44px; 
        height: 44px; 
        padding: 0; 
        margin-left: 8px;
        margin-right: 16px;
        background: var(--accent-gradient); 
        border: 2px solid #ffffff; 
        border-radius: 8px;
        align-items: center;
        justify-content: center; 
        flex-direction: column;
        gap: 5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        flex-shrink: 0;
    }
    .menu-toggle span { 
        display: block !important;
        width: 24px !important; 
        height: 3px !important; 
        background-color: #ffffff !important; 
        border-radius: 2px;
        margin: 0 !important;
        padding: 0 !important;
        transition: transform 0.3s, opacity 0.3s;
    }
    .menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .header-socials { display: none !important; }

    .site-nav {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: var(--bg-alt);
        color: var(--text);
        padding: 80px 24px 24px;
        box-shadow: 4px 0 24px rgba(0,0,0,0.5);
        z-index: 95;
        transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        gap: 16px;
        overflow-y: auto;
    }
    .site-nav.is-open { left: 0; }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link { 
        font-size: 18px; 
        padding: 12px 0; 
        border-bottom: 1px solid var(--border); 
        color: var(--text);
        display: block;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .nav-link:last-child { border-bottom: none; }

    .site-nav.is-open .nav-link { opacity: 1; transform: translateX(0); }
    .site-nav.is-open .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .site-nav.is-open .nav-link:nth-child(2) { transition-delay: 0.15s; }
    .site-nav.is-open .nav-link:nth-child(3) { transition-delay: 0.2s; }
    .site-nav.is-open .nav-link:nth-child(4) { transition-delay: 0.25s; }
    .site-nav.is-open .nav-link:nth-child(5) { transition-delay: 0.3s; }

    .mobile-quick-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .site-nav.is-open .mobile-quick-actions {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.35s;
    }

    .mobile-socials {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .site-nav.is-open .mobile-socials {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.4s;
    }
    
    .mobile-phone {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 18px;
        font-weight: 600;
        color: var(--text);
        text-decoration: none;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
    .mobile-phone svg { color: var(--accent); }
    
    .mobile-social-icons {
        display: flex;
        gap: 12px;
    }
    .mobile-social-icons .social-icon {
        width: 44px;
        height: 44px;
    }

    .menu-overlay { display: block; }
    .menu-open .menu-overlay { opacity: 1; pointer-events: auto; }
    .menu-open { overflow: hidden; }

    .hero__actions .btn { width: 100%; }
    .hero__trust { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hero__trust li { font-size: 14px; }
    
    .grid { gap: 12px; }
    .card, .case { padding: 16px; }
    .card__title { font-size: 18px; }
    .card__price { font-size: 22px; }
    
    .about__inner { grid-template-columns: 1fr; }
    .about-room { max-height: 350px; margin: 0 auto; }
    
    .admin-bar { flex-direction: column; align-items: stretch; }
    .admin-bar h1 { text-align: center; margin-bottom: 8px !important; }
    .admin-bar .btn { width: 100%; margin-bottom: 4px; }
    
    .cookie-banner__actions { flex-direction: column; }
    .cookie-banner__actions .btn { width: 100%; }
    
    .footer__cols { grid-template-columns: 1fr; gap: 24px; }
    .footer__copyright { margin-top: 24px; }
    
    .floating-sidebar { display: none !important; }
    .mobile-cta { display: flex; }
    
    .toast { max-width: 90vw; right: 5vw; bottom: 100px; }
    
    #logs-modal { width: 100vw !important; height: 100vh !important; max-width: 100vw !important; max-height: 100vh !important; border-radius: 0 !important; }
    .logs-modal-content { padding: 16px !important; }
}

@media (min-width: 769px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .about__inner { grid-template-columns: 340px 1fr; align-items: center; gap: 48px; }
    
    .site-nav { display: flex; position: static; width: auto; height: auto; background: transparent; padding: 0; box-shadow: none; flex-direction: row; align-items: center; overflow: visible; }
    .nav-links { flex-direction: row; gap: 16px; }
    .nav-link { font-size: 14px; padding: 0; border: none; color: var(--text); opacity: 1; transform: none; transition: none; }
    
    .mobile-quick-actions, .mobile-socials { display: none; }
    
    .header-actions { flex-wrap: nowrap; }
    .clock-widget { display: flex; }
    .callback-btn, .login-btn { display: inline-flex; }
    
    .floating-sidebar { display: flex; flex-direction: column; gap: 16px; position: fixed; right: 32px; bottom: 32px; z-index: 50; } 
    .floating-socials { display: flex; flex-direction: column; gap: 12px; }
    .floating-btn { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--accent-gradient); color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,0.3); transition: transform .2s, box-shadow .2s; } 
    .floating-btn--tg { background: #0088cc; }
    .floating-btn:hover { transform: scale(1.08) translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); color: #fff; } 
    
    .scroll-buttons { display: flex; flex-direction: column; gap: 8px; }
    .scroll-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--border); color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm); transition: all .2s ease; }
    .scroll-btn:hover { background: var(--bg-alt); color: var(--accent); border-color: var(--accent); transform: scale(1.08); }
    .scroll-btn svg { width: 20px; height: 20px; }
    
    .cookie-banner__actions { justify-content: flex-end; }
    .cookie-banner__actions .btn { flex: 0 0 auto; }
    
    .mobile-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) { 
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } 
    #fog-canvas { display: none; } 
}