/* =========================================
   HIGH TRAINING — landing
   ========================================= */

:root {
    --bg: #05070A;
    --bg-alt: #05070A;
    --graphite: #0C1016;
    --white: #FFFFFF;
    --muted: #A7B0BD;
    --line: rgba(255, 255, 255, 0.08);
    --blue: #2F7BFF;
    --blue-hover: #4B8FFF;
    --blue-soft: rgba(47, 123, 255, 0.16);
    --font-display: "Oswald", "Arial Narrow", sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;
    --header-h: 84px;
    --radius: 6px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--white);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

h1,
h2,
p {
    margin: 0;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

/* =========================================
   Header — logo on hero + compact glass nav
   ========================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: none;
    pointer-events: none;
}

.header-inner {
    pointer-events: auto;
    width: 100%;
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.logo img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    /* JPG имеет чёрный фон — смешиваем с тёмным hero */
    mix-blend-mode: lighten;
}

.header-panel {
    position: relative;
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: 20px;
    padding: 10px 12px;
    background: rgba(5, 8, 14, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.22s ease;
}

.nav a:hover {
    color: var(--white);
}

.header .btn--header {
    flex-shrink: 0;
    height: 46px;
    padding: 0 20px;
    font-size: 13px;
    border-radius: 9px;
}

.header .btn--header:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:active {
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 24px; }

.header.is-open .menu-toggle span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.header.is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.header.is-open .menu-toggle span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

/* =========================================
   Buttons
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--sm {
    height: 40px;
    padding: 0 16px;
    font-size: 12px;
}

.btn--lg {
    height: 54px;
    padding: 0 26px;
    font-size: 14px;
}

/* =========================================
   Hero
   ========================================= */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg);
    background-image: url("assets/hero-athlete-dekstop.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
    isolation: isolate;
}

/* Лёгкое затемнение только слева, чтобы не гасить синюю энергию */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(5, 7, 10, 0.58) 0%,
        rgba(5, 7, 10, 0.28) 36%,
        rgba(5, 7, 10, 0.04) 58%,
        rgba(5, 7, 10, 0) 72%
    );
}

/* Плавный переход низа hero в фон следующих блоков */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 7, 10, 0) 0%, var(--bg) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 12px) 0 48px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 560px;
}

.hero-brand {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 0.7rem + 0.15vw, 0.8125rem);
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 clamp(1.125rem, 1rem + 0.4vw, 1.5rem);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.24em;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.25rem, 1.5rem + 2.5vw, 4.25rem);
    line-height: 0.94;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 clamp(1.5rem, 1.35rem + 0.45vw, 1.875rem);
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    max-width: 28.75rem;
    font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.25rem);
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.hero-actions {
    width: 100%;
    margin-top: clamp(1.875rem, 1.7rem + 0.4vw, 2.25rem);
}

.hero-actions .btn {
    width: 17.5rem;
    max-width: 100%;
    height: clamp(3.25rem, 3.15rem + 0.2vw, 3.625rem);
    padding: 0 1.5rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.hero-note {
    margin-top: clamp(0.875rem, 0.8rem + 0.15vw, 1.125rem);
    font-size: 0.875rem;
    color: rgba(167, 176, 189, 0.78);
}

.hero-brand,
.hero-title,
.hero-subtitle,
.hero-actions {
    animation: fade-up 0.7s ease both;
}

.hero-title { animation-delay: 0.08s; }
.hero-subtitle { animation-delay: 0.16s; }
.hero-actions { animation-delay: 0.28s; }

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   About
   ========================================= */

.about {
    background: var(--bg);
    padding: 72px 0 28px;
}

.about-inner {
    max-width: 720px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.about-text {
    color: var(--muted);
    font-size: 16px;
    max-width: 42rem;
}

/* =========================================
   Advantages
   ========================================= */

.advantages {
    background: var(--bg);
    padding: 28px 0 80px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.advantage {
    padding: 28px 24px;
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.advantage-icon {
    width: 36px;
    height: 36px;
    color: var(--blue);
    margin-bottom: 16px;
}

.advantage-icon svg {
    width: 100%;
    height: 100%;
}

.advantage-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.advantage-text {
    color: var(--muted);
    font-size: 15px;
}

/* =========================================
   Final CTA
   ========================================= */

.cta {
    background: var(--bg);
    padding: 88px 0;
    border-top: 1px solid var(--line);
}

.cta-inner {
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cta-subtitle {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 28px;
}

/* =========================================
   Footer
   ========================================= */

.footer {
    padding: 22px 0 28px;
    border-top: 1px solid var(--line);
    color: rgba(167, 176, 189, 0.7);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
}

/* =========================================
   Responsive — tablet / laptop
   ========================================= */

@media (max-width: 1024px) {
    .hero,
    .hero-inner {
        min-height: 100svh;
    }

    .hero-content {
        max-width: min(480px, 52vw);
    }
}

@media (max-width: 900px) {
    .hero-inner,
    .container {
        width: min(100%, calc(100% - 32px));
    }

    .header-inner {
        padding: 0 24px;
    }

    .nav {
        gap: 20px;
    }
}

/* =========================================
   Mobile — отдельный фон и стек секций
   ========================================= */

@media (max-width: 768px) {
    :root {
        --header-h: 72px;
    }

    .header {
        background: none;
    }

    .header-inner {
        margin: 14px auto 0;
        padding: 0 16px;
    }

    .logo img {
        height: 36px;
        width: 36px;
    }

    .header-panel {
        gap: 6px;
        padding: 6px 8px;
        border-radius: 12px;
        min-height: 54px;
    }

    .nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin: 0;
        min-width: 220px;
        width: max-content;
        padding: 8px 14px 12px;
        background: rgba(5, 8, 14, 0.88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    }

    .header.is-open .nav {
        display: flex;
    }

    .nav a {
        width: 100%;
        padding: 12px 4px;
    }

    .header .btn--header {
        height: 42px;
        padding: 0 14px;
        font-size: 12px;
        border-radius: 8px;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        background-image: url("assets/hero-athlete-mobile.png");
        background-size: cover;
        background-position: right bottom;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
    }

    .hero::before {
        background: linear-gradient(
            180deg,
            rgba(5, 7, 10, 0.78) 0%,
            rgba(5, 7, 10, 0.42) 28%,
            rgba(5, 7, 10, 0.08) 48%,
            rgba(5, 7, 10, 0) 62%
        );
    }

    .hero-inner {
        width: calc(100% - 32px);
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: var(--header-h) 0 24px;
    }

    .hero-content {
        width: 100%;
        max-width: 420px;
        padding-bottom: 18px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 360px;
        height: 3.5rem;
    }

    .btn--lg {
        width: 100%;
        max-width: 360px;
    }

    .about {
        padding: 56px 0 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .advantages {
        padding: 16px 0 56px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cta {
        padding: 64px 0;
    }
}

@media (max-width: 480px) {
    .hero-inner,
    .container {
        width: calc(100% - 28px);
    }

    .header-inner {
        padding: 0 14px;
    }

    .logo img {
        height: 34px;
        width: 34px;
    }
}

@media (max-width: 390px) {
    .hero {
        background-position: 78% bottom;
    }
}

@media (max-width: 360px) {
    .hero-inner,
    .container {
        width: calc(100% - 24px);
    }

    .header-inner {
        margin-top: 12px;
        padding: 0 12px;
    }

    .hero {
        background-position: 82% bottom;
    }

    .header .btn--header {
        padding: 0 12px;
        letter-spacing: 0.04em;
    }
}

/* =========================================
   Reduced motion
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .btn:hover {
        transform: none;
    }
}
