:root {
    --bg: #000;
    --fg: #fff;
    --accent: #e11d1d;
    --muted: #bdbdbd;
    --border: rgba(255, 255, 255, 0.15);
    --scroll: 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--fg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    background: #000;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -2;
    background:
        radial-gradient(ellipse 75% 60% at 50% 30%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 40%, rgba(0, 0, 0, 0) 70%),
        radial-gradient(ellipse 80% 80% at 80% 90%, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0) 60%),
        linear-gradient(180deg, #000 0%, #0a0a0a 60%, #050505 100%);
    transform: translate3d(0, calc(var(--scroll) * -0.12px), 0) scale(1.15);
    will-change: transform;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 60% 40% at calc(50% + (var(--scroll) * 0.05px)) calc(40% - (var(--scroll) * 0.04px)), rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0) 65%);
    pointer-events: none;
    will-change: background;
}

.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 10;
}

.site-header::after {
    content: "";
}

.logo {
    display: block;
}

.logo img {
    display: block;
    height: 110px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(225, 29, 29, 0.25));
}

.site-title {
    text-align: center;
    font-size: clamp(1.7rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.15;
}

.site-title .accent {
    color: var(--accent);
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 9;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--fg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.02);
}

.main-nav a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(225, 29, 29, 0.08);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 32px auto 0;
    padding: 0 32px;
    box-sizing: border-box;
}

.hero-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video:empty {
    display: none;
}

.hero-sound-toggle {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    z-index: 2;
}

.hero-sound-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 0, 0, 0.75);
}

.hero-sound-toggle svg {
    display: block;
    flex-shrink: 0;
}

.hero-sound-toggle .icon-unmuted { display: none; }
.hero-sound-toggle.is-muted .icon-muted { display: block; }
.hero-sound-toggle.is-muted .icon-unmuted { display: none; }
.hero-sound-toggle:not(.is-muted) .icon-muted { display: none; }
.hero-sound-toggle:not(.is-muted) .icon-unmuted { display: block; }

@media (max-width: 600px) {
    .hero-sound-toggle {
        left: 12px;
        bottom: 12px;
        padding: 8px 12px;
    }
    .hero-sound-label {
        display: none;
    }
}

.fab-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fab {
    position: relative;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab svg {
    position: relative;
    z-index: 2;
}

.fab:hover {
    transform: translateY(-2px) scale(1.05);
}

.fab:active {
    transform: translateY(0) scale(0.98);
}

.fab-tg {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    box-shadow: 0 6px 18px rgba(34, 158, 217, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.fab-tg svg { transform: translateX(-1px); }

.fab-tg:hover {
    box-shadow: 0 10px 24px rgba(34, 158, 217, 0.6), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.fab-vk {
    background: linear-gradient(135deg, #4A76A8 0%, #2A4F7E 100%);
    box-shadow: 0 6px 18px rgba(74, 118, 168, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.fab-vk:hover {
    box-shadow: 0 10px 24px rgba(74, 118, 168, 0.6), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(42, 171, 238, 0.5);
    z-index: 1;
    animation: fab-pulse 2.4s ease-out infinite;
}

@keyframes fab-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.6); opacity: 0;   }
    100% { transform: scale(1.6); opacity: 0;   }
}

@media (max-width: 600px) {
    .fab-stack {
        right: 16px;
        bottom: 16px;
        gap: 10px;
        flex-direction: column-reverse;
    }
    .fab {
        width: 54px;
        height: 54px;
    }
}

.hero-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-placeholder-text {
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    border: 2px dashed var(--accent);
    padding: 24px 48px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 32px;
    display: grid;
    gap: 48px;
}

.section {
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 32px 36px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
    font-family: Arial, Helvetica, sans-serif;
}

.section p {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-subtitle {
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: var(--accent);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.schedule-loading {
    grid-column: 1 / -1;
    color: var(--muted);
    font-style: italic;
    padding: 16px 4px;
}

.schedule-card {
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}

.schedule-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.schedule-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 18px;
    background: var(--accent);
    color: var(--fg);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.98rem;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table td:first-child {
    color: var(--muted);
}

.schedule-table td:last-child {
    text-align: right;
    color: var(--fg);
    font-weight: 700;
    white-space: nowrap;
}

.about-text {
    display: grid;
    gap: 16px;
    max-width: 820px;
    margin-bottom: 32px;
}

.about-text p {
    color: var(--fg);
    font-size: 1.05rem;
    line-height: 1.65;
}

.about-text strong {
    color: var(--accent);
    font-weight: 700;
}

.about-closing {
    margin-top: 8px;
    padding-left: 18px;
    border-left: 3px solid var(--accent);
    font-style: italic;
    color: var(--muted) !important;
}

.about-photos {
    column-count: 3;
    column-gap: 14px;
}

.about-photos img {
    width: 100%;
    display: block;
    margin: 0 0 14px;
    border-radius: 4px;
    border: 1px solid var(--border);
    break-inside: avoid;
    transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s;
}

.about-photos img:hover {
    border-color: var(--accent);
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(225, 29, 29, 0.2);
}

@media (max-width: 900px) {
    .about-photos {
        column-count: 2;
    }
}

@media (max-width: 520px) {
    .about-photos {
        column-count: 1;
    }
}

.coach-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 32px;
    align-items: start;
}

.coach-photo img {
    width: 100%;
    display: block;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.coach-info {
    display: grid;
    gap: 14px;
}

.coach-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-family: Arial, Helvetica, sans-serif;
}

.coach-title {
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    color: var(--muted) !important;
    font-style: italic;
    font-size: 1rem !important;
}

.coach-info p {
    color: var(--fg);
    font-size: 1.05rem;
    line-height: 1.65;
}

.coach-info strong {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 780px) {
    .coach-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .coach-photo {
        max-width: 360px;
        margin: 0 auto;
    }
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 32px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.55);
}

@media (max-width: 800px) {
    .site-header {
        grid-template-columns: auto 1fr;
        padding: 14px 20px;
        gap: 16px;
    }
    .logo img {
        height: 72px;
    }
    .main-nav {
        padding: 12px 16px;
        gap: 6px;
    }
    .main-nav a {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .hero {
        margin-top: 20px;
        padding: 0 20px;
    }
    .content {
        padding: 48px 20px;
    }
}
