/**
 * Светлая тема публичного сайта (поверх style.css).
 * Для страниц с формами админки (.admin-header) палитра откатывается к тёмной ниже.
 */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-card: #ffffff;
    --bg-hover: #ebebeb;
    --accent-primary: #ffdd2d;
    --accent-secondary: #1a1a1a;
    --accent-success: #22c55e;
    --text-primary: #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.72);
    --text-muted: rgba(26, 26, 26, 0.48);
    --border-light: rgba(0, 0, 0, 0.08);
    --border-light-strong: rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #ffdd2d 0%, #f5c400 100%);
    --gradient-dark: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.82) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 4px 24px rgba(255, 221, 45, 0.35);
    --radius-card: 16px;
    --radius-btn: 999px;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --footer-muted: rgba(255, 255, 255, 0.65);
}

html {
    background-color: var(--bg-secondary);
}

body:has(.admin-header) {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-hover: #242424;
    --accent-primary: #ff6b35;
    --accent-secondary: #f7931e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #6b6b6b;
    --border-light: rgba(255, 255, 255, 0.05);
    --border-light-strong: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.65) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
}

body:has(.admin-header) html {
    background-color: var(--bg-primary);
}

/* Шапка */
body:not(:has(.admin-header)) .navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

body:not(:has(.admin-header)) .navbar.scrolled {
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

body:not(:has(.admin-header)) .nav-logo {
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: -0.02em;
    font-weight: 600;
    font-size: 1.25rem;
}

body:not(:has(.admin-header)) .nav-logo i {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--text-primary);
}

body:not(:has(.admin-header)) .nav-link {
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
}

body:not(:has(.admin-header)) .nav-link:hover,
body:not(:has(.admin-header)) .nav-link.active {
    color: var(--text-primary);
}

body:not(:has(.admin-header)) .nav-link::after {
    background: var(--text-primary);
    height: 2px;
}

body:not(:has(.admin-header)) .bar {
    background-color: var(--text-primary);
}

/* Hero */
body:not(:has(.admin-header)) .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.88) 100%),
        radial-gradient(circle at 20% 40%, rgba(255, 221, 45, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.04) 0%, transparent 50%);
}

body:not(:has(.admin-header)) .hero::before,
body:not(:has(.admin-header)) .training-hero::before,
body:not(:has(.admin-header)) .contacts-hero::before {
    background: radial-gradient(circle at 30% 20%, rgba(255, 221, 45, 0.08) 0%, transparent 50%);
}

body:not(:has(.admin-header)) .hero,
body:not(:has(.admin-header)) .training-hero,
body:not(:has(.admin-header)) .contacts-hero {
    color: var(--text-primary);
}

body:not(:has(.admin-header)) .hero-content h1 {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: -0.03em;
    font-weight: 700;
}

body:not(:has(.admin-header)) .hero-content p {
    color: var(--text-secondary);
    font-weight: 400;
}

body:not(:has(.admin-header)) .training-hero .hero-overlay,
body:not(:has(.admin-header)) .contacts-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.9) 100%);
}

body:not(:has(.admin-header)) .training-hero .container,
body:not(:has(.admin-header)) .contacts-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 2rem;
}

body:not(:has(.admin-header)) .training-hero .container h1,
body:not(:has(.admin-header)) .contacts-hero .container h1 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: none;
    margin-bottom: 1rem;
}

body:not(:has(.admin-header)) .training-hero .container p,
body:not(:has(.admin-header)) .contacts-hero .container p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Кнопки CTA */
body:not(:has(.admin-header)) .cta-button {
    background: var(--gradient-primary);
    color: #1a1a1a;
    border-radius: var(--radius-btn);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: none;
}

body:not(:has(.admin-header)) .cta-button:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

body:not(:has(.admin-header)) .cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    box-shadow: none;
}

body:not(:has(.admin-header)) .cta-button.secondary:hover {
    background: var(--text-primary);
    color: #ffffff;
}

/* Карточки */
body:not(:has(.admin-header)) .feature-card,
body:not(:has(.admin-header)) .contact-card,
body:not(:has(.admin-header)) .schedule-day,
body:not(:has(.admin-header)) .program-card {
    border-radius: var(--radius-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

body:not(:has(.admin-header)) .feature-card:hover {
    border-color: var(--border-light-strong);
    box-shadow: var(--shadow-md);
}

body:not(:has(.admin-header)) .feature-card i {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #1a1a1a;
}

body:not(:has(.admin-header)) .features h2,
body:not(:has(.admin-header)) .about h2,
body:not(:has(.admin-header)) .cta h2,
body:not(:has(.admin-header)) .training-programs h2,
body:not(:has(.admin-header)) .schedule h2,
body:not(:has(.admin-header)) .registration h2,
body:not(:has(.admin-header)) .contact-info h2 {
    text-transform: none;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Подвал */
body:not(:has(.admin-header)) .footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: none;
}

body:not(:has(.admin-header)) .footer-section h3 {
    color: var(--footer-text);
}

body:not(:has(.admin-header)) .footer-section p {
    color: var(--footer-muted);
}

body:not(:has(.admin-header)) .footer-bottom {
    color: var(--footer-muted);
    border-top-color: rgba(255, 255, 255, 0.12);
}

body:not(:has(.admin-header)) .footer-section i {
    color: var(--accent-primary);
}

body:not(:has(.admin-header)) .stat-number {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--text-primary);
}

body:not(:has(.admin-header)) .stat-label {
    text-transform: none;
    letter-spacing: 0.02em;
}

body:not(:has(.admin-header)) .about-text h2 {
    text-transform: none;
    letter-spacing: -0.02em;
}

body:not(:has(.admin-header)) .contacts-hero {
    background: var(--bg-secondary);
    padding: 10rem 0 4rem;
}

body:not(:has(.admin-header)) .contacts-hero .container h1 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.03em;
}

body:not(:has(.admin-header)) .contacts-hero .container p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

body:not(:has(.admin-header)) .contact-icon i {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--text-primary);
}

body:not(:has(.admin-header)) .contact-card a {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body:not(:has(.admin-header)) .contact-card a:hover {
    color: var(--text-secondary);
}

body:not(:has(.admin-header)) .contact-card:hover {
    border-color: var(--border-light-strong);
}

body:not(:has(.admin-header)) .location h2,
body:not(:has(.admin-header)) .team h2 {
    text-transform: none;
    letter-spacing: -0.02em;
}

body:not(:has(.admin-header)) .schedule .time {
    color: var(--text-primary);
}

body:not(:has(.admin-header)) .map-open-link {
    color: var(--text-primary);
    text-decoration: underline;
}
