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

html {
    height: 100%;
    background: #0f0c29;
}

body {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    overflow-x: clip;
    overscroll-behavior-y: none;
    position: relative;
}

/* === PAGE WRAPPER — clips horizontal overflow without breaking scroll === */
.page-wrapper {
    width: 100%;
    overflow-x: clip;
    position: relative;
}

/* === ANIMATIONS === */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(233, 69, 96, 0.3); }
    50% { box-shadow: 0 0 40px rgba(233, 69, 96, 0.6); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logoGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* === HEADER === */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.98) 0%, rgba(26, 22, 58, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
    box-shadow: 0 4px 30px rgba(233, 69, 96, 0.1);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

/* iOS Safari fix */
@supports (-webkit-touch-callout: none) {
    .custom-header {
        top: 0;
        padding-top: 0;
        height: 70px;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }

    .custom-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: env(safe-area-inset-top, 0px);
        background: linear-gradient(135deg, rgba(15, 12, 41, 0.98) 0%, rgba(26, 22, 58, 0.95) 100%);
        pointer-events: none;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    height: 70px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    padding: 6px 14px;
    background: rgba(233, 69, 96, 0.08);
    border-radius: 14px;
    border: 1px solid rgba(233, 69, 96, 0.15);
    transition: all 0.3s ease;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
}

.header-logo:hover {
    background: rgba(233, 69, 96, 0.15);
    border-color: rgba(233, 69, 96, 0.3);
    transform: translateY(-1px);
}

.header-logo img {
    height: 38px;
    filter: drop-shadow(0 0 8px rgba(233, 69, 96, 0.4));
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.header-logo:hover img {
    filter: drop-shadow(0 0 12px rgba(233, 69, 96, 0.7));
    transform: scale(1.03);
}

.header-logo span {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.6px;
    background: linear-gradient(135deg, #ff9f9f 0%, rgba(255, 158, 158, 0.95) 30%, #e94560 70%, #ff6b6b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradient 4s linear infinite;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-nav a {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    padding: 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.header-nav a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* nav-login и nav-download одинаковые — объединены */
.header-nav a.nav-login,
.header-nav a.nav-download {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.header-nav a.nav-login:hover,
.header-nav a.nav-download:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.header-nav a.nav-register {
    color: #fff;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

.header-nav a.nav-register:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(233, 69, 96, 0.45);
    background: linear-gradient(135deg, #df3f5a, #ff627a);
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite 2s;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    justify-items: center;
    position: relative;
    z-index: 1;
    animation: slideInUp 0.8s ease-out;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
    width: 100%;
    max-width: 500px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 span {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(15px, 2vw, 17px);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* === HERO STATS === */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 12px auto 0;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 600px;
    flex-wrap: nowrap;
}

.hero-stat-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-width: 0;
    position: relative;
}

.hero-stat-item h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-stat-item h3 i {
    font-size: 24px;
    color: #e94560;
    -webkit-text-fill-color: #e94560;
}

.hero-stat-item h3 i.fa-desktop { margin-right: 8px; }
.hero-stat-item h3 i.fa-tablet-alt { margin-left: 8px; margin-right: 8px; }
.hero-stat-item h3 i.fa-mobile-alt { margin-left: 8px; }

.hero-stat-item p {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    display: block;
    border: none;
}

.hero-image-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(40px);
    overflow: hidden;
}

/* === BUTTONS === */
.btn-hero {
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
    animation: glow 3s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* === STATS SECTION === */
.stats {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === FITNESS TYPES === */
.fitness-types {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

.type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    animation: slideInUp 0.6s ease-out both;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.type-card:nth-child(1) { animation-delay: 0.1s; }
.type-card:nth-child(2) { animation-delay: 0.2s; }
.type-card:nth-child(3) { animation-delay: 0.3s; }
.type-card:nth-child(4) { animation-delay: 0.4s; }
.type-card:nth-child(5) { animation-delay: 0.5s; }
.type-card:nth-child(6) { animation-delay: 0.6s; }

.type-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(233, 69, 96, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.type-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.type-icon.strength { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.type-icon.cardio   { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.type-icon.yoga     { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.type-icon.pilates  { background: rgba(34, 197, 94, 0.2);  color: #22c55e; }
.type-icon.stretch  { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.type-icon.home     { background: rgba(233, 69, 96, 0.2);  color: #e94560; }

.type-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    flex-shrink: 0;
}

.type-card p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.6;
    flex-grow: 1;
}

.type-tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    flex-shrink: 0;
    width: 100%;
}

.type-tag {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === FEATURES === */
.features {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s;
    animation: slideInUp 0.6s ease-out both;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
.feature-card:nth-child(7) { animation-delay: 0.7s; }
.feature-card:nth-child(8) { animation-delay: 0.8s; }
.feature-card:nth-child(9) { animation-delay: 0.9s; }

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(233, 69, 96, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.feature-icon.red    { background: rgba(239, 68, 68, 0.15);  color: #ef4444; }
.feature-icon.blue   { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.feature-icon.yellow { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.feature-icon.green  { background: rgba(34, 197, 94, 0.15);  color: #22c55e; }
.feature-icon.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.feature-icon.pink   { background: rgba(233, 69, 96, 0.15);  color: #e94560; }

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.7;
    flex-grow: 1;
}

/* === HOW IT WORKS === */
.how-it-works {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 50px;
}

.step {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s;
}

.step:hover {
    border-color: rgba(233, 69, 96, 0.3);
    transform: translateX(10px);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.7;
}

/* === BUTTON SHOWCASE === */
.button-showcase {
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.button-grid {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.action-btn-desc  { background: rgba(239, 68, 68, 0.2);  color: #ef4444; }
.action-btn-video { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.action-btn-replace { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }

.action-btn-desc:hover    { background: rgba(239, 68, 68, 0.35);  color: #fff; }
.action-btn-video:hover   { background: rgba(59, 130, 246, 0.35); color: #fff; }
.action-btn-replace:hover { background: rgba(251, 191, 36, 0.35); color: #fff; }

/* === CTA === */
.cta {
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 30px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.2) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.cta-box h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 35px;
    position: relative;
}

/* === FOOTER === */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img { height: 35px; }

.footer-logo span {
    font-size: 16px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover { color: #e94560; }

.footer-copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

/* === VIDEO SECTION === */
.video-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(15, 12, 41, 0) 0%, rgba(26, 22, 58, 0.5) 100%);
    border-top: 1px solid rgba(233, 69, 96, 0.1);
    border-bottom: 1px solid rgba(233, 69, 96, 0.1);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.video-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #e94560;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.video-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.2);
    box-shadow: 0 10px 40px rgba(233, 69, 96, 0.15);
}

.video-player {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.video-player video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 20px;
    background: #000;
    cursor: pointer;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(233, 69, 96, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto;
}

.video-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(233, 69, 96, 1);
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

.video-play-overlay i {
    font-size: 32px;
    color: #fff;
    margin-left: 4px;
}

.video-player.video-playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-player.video-paused .video-play-overlay {
    opacity: 1;
    pointer-events: auto;
}

.video-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.video-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.video-feature i {
    color: #e94560;
    font-size: 16px;
}

/* =============================================
   MEDIA QUERIES
   ============================================= */

/* Desktop 1200px+ */
@media (min-width: 1200px) {
    .header-content {
        max-width: 1200px;
        padding: 0 20px;
    }

    .hero-content {
        max-width: 1200px;
        gap: 80px;
    }

    .hero-image {
        max-width: 550px;
    }
}

/* Desktop 993px+ — скрыть декоративные шары, все карточки в 3 колонки */
@media (min-width: 993px) {
    .hero::before,
    .hero::after {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-card:nth-child(9) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
        align-self: stretch;
    }
}

/* Tablet 769px - 992px */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .hero-text { text-align: center; }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons { justify-content: center; }

    .hero-image {
        max-width: 400px;
        max-height: 400px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .feature-card:nth-child(9) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }
}

/* Mobile 768px и меньше */
@media (max-width: 768px) {
    .custom-header {
        height: 62px;
        padding-bottom: 5px;
    }

    .header-content { padding: 0 10px; }

    .header-logo {
        padding: 5px 10px;
        gap: 7px;
        flex-shrink: 1;
        min-width: 0;
    }

    .header-logo img { height: 30px; flex-shrink: 0; }
    .header-logo span { font-size: 14px; }

    .header-nav { gap: 6px; flex-shrink: 0; }

    .header-nav a {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 15px;
    }

    .hero {
        padding: 75px 15px 5px;
        min-height: 100vh;
        height: auto;
        overflow: visible;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 0;
        height: auto;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        max-width: 100%;
        padding: 0;
    }

    .hero-image-wrapper {
        order: 1;
        margin: 0 auto;
        padding: 0;
        flex-shrink: 0;
        width: 100%;
        max-width: 400px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-text {
        order: 2;
        text-align: center;
        margin: 0;
        padding: 15px 10px 10px;
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 8px;
        text-align: center;
    }

    .hero-description {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.5;
        text-align: center;
    }

    .hero-buttons {
        margin: 0;
        padding-bottom: 5px;
        justify-content: center;
    }

    .hero-buttons .btn-hero { min-height: 42px; }

    .btn-hero {
        padding: 11px 18px;
        font-size: 12px;
        gap: 6px;
    }

    .hero-image {
        max-width: 85%;
        max-height: 45vh;
        height: auto;
        width: auto;
        object-fit: contain;
        margin: 0 auto;
        display: block;
        border: none;
    }

    .hero-image-glow {
        width: 240px;
        height: 240px;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-stats {
        gap: 15px;
        padding: 15px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .hero-stat-item {
        flex: 1 1 0;
        min-width: 70px;
        max-width: 33%;
    }

    .hero-stat-item h3 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .hero-stat-item h3 i {
        font-size: 14px;
        margin: 0 2px;
    }

    .hero-stat-item h3 i.fa-desktop { margin-right: 2px; }
    .hero-stat-item h3 i.fa-tablet-alt { margin-left: 2px; margin-right: 2px; }
    .hero-stat-item h3 i.fa-mobile-alt { margin-left: 2px; }

    .hero-stat-item p { font-size: 7px; line-height: 1.2; }
    .hero-stat-item:not(:last-child)::after { display: none; }

    .stats { padding: 30px 15px; }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-item h3 { font-size: 24px; }
    .stat-item p { font-size: 9px; }

    .section-title h2 { font-size: 24px; }
    .section-title p { font-size: 13px; }

    .fitness-types { padding: 50px 12px; }

    .types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
    }

    .type-card {
        padding: 16px 12px;
        min-height: 280px;
    }

    .type-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .type-card h3 { font-size: 12px; margin-bottom: 8px; }
    .type-card p { font-size: 10px; line-height: 1.5; }

    .type-tags { gap: 6px; }

    .type-tag {
        padding: 5px 10px;
        font-size: 9px;
    }

    .features { padding: 50px 12px; }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
    }

    .feature-card {
        padding: 18px 12px;
        border-radius: 16px;
        min-height: 160px;
        height: auto;
    }

    .feature-card:nth-child(9) {
        grid-column: 1 / -1;
        max-width: 100%;
        margin: 0;
        min-height: auto;
        height: auto;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    .feature-card h3 {
        font-size: 12px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .feature-card p {
        font-size: 10px;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.55);
    }

    .how-it-works { padding: 50px 12px; }

    .steps {
        gap: 12px;
        margin-top: 25px;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 12px;
        gap: 10px;
    }

    .step:hover { transform: translateY(-3px); }

    .step-number {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .step-content h3 {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .step-content p { font-size: 10px; line-height: 1.4; }

    .button-showcase { padding: 40px 15px; }
    .button-grid { gap: 8px; }

    .action-btn {
        padding: 10px 14px;
        font-size: 11px;
    }

    .cta { padding: 50px 15px; }

    .cta-box {
        padding: 35px 20px;
        border-radius: 24px;
    }

    .cta-box h2 { font-size: 20px; }
    .cta-box p { font-size: 13px; margin-bottom: 25px; }

    .footer { padding: 30px 15px; }

    .footer-logo {
        gap: 8px;
        margin-bottom: 15px;
    }

    .footer-logo img { height: 28px; }
    .footer-logo span { font-size: 14px; }

    .footer-links {
        gap: 15px;
        margin-bottom: 15px;
    }

    .footer-links a { font-size: 12px; }
    .footer-copy { font-size: 11px; }

    .video-section { padding: 40px 15px; }
    .video-header h2 { font-size: 22px; }
    .video-header p { font-size: 12px; }

    .video-features {
        gap: 15px;
        flex-direction: column;
    }

    .video-feature { font-size: 12px; }

    #pwa-ios-modal > div,
    #pwa-manual-modal > div,
    #pwa-generic-modal > div {
        padding: 20px 16px;
        max-width: 320px;
    }

    #pwa-ios-modal h3,
    #pwa-manual-modal h3,
    #pwa-generic-modal h3 { font-size: 18px; }

    #pwa-ios-modal p,
    #pwa-manual-modal p,
    #pwa-generic-modal p { font-size: 12px; }

    #pwa-ios-modal button,
    #pwa-manual-modal button,
    #pwa-generic-modal button {
        padding: 12px 25px;
        font-size: 14px;
    }

    ::-webkit-scrollbar { width: 4px; }

    h1, h2, h3, p, span, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Mobile 375px и меньше */
@media (max-width: 375px) {
    .custom-header { height: 56px; padding-top: env(safe-area-inset-top); }

    .header-content { padding: 0 10px; max-width: 100%; }

    .header-logo { padding: 4px 8px; gap: 6px; }
    .header-logo img { height: 24px; }

    .header-logo span {
        font-size: 12px;
        letter-spacing: 0.3px;
        max-width: 80px;
        line-height: 1.2;
    }

    .header-nav { gap: 6px; }

    .header-nav a {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 14px;
        border-radius: 10px;
    }

    .hero {
        padding: 65px 12px 5px;
        min-height: 100vh;
        height: auto;
        overflow: visible;
    }

    .hero::before { width: 300px; height: 300px; top: -100px; right: -100px; }
    .hero::after { width: 200px; height: 200px; bottom: -50px; left: -50px; }

    .hero-content { gap: 0; padding: 0; max-width: 100%; width: 100%; }

    .hero-image-wrapper {
        order: 1;
        flex-shrink: 0;
        padding: 0;
        margin: 0 auto;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-image {
        max-width: 90%;
        max-height: 42vh;
        width: auto;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }

    .hero-image-glow {
        width: 180px;
        height: 180px;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-text {
        order: 2;
        text-align: center;
        padding: 10px 0 5px;
        margin: 0;
        width: 100%;
    }

    .hero h1 {
        font-size: 17px;
        line-height: 1.3;
        margin-bottom: 8px;
        word-wrap: break-word;
        hyphens: auto;
        text-align: center;
    }

    .hero-description {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 12px;
        word-wrap: break-word;
        text-align: center;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding-bottom: 5px;
        justify-content: center;
    }

    .btn-hero {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
        border-radius: 40px;
    }

    .btn-hero i { font-size: 11px; }

    .hero-stats {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .hero-stat-item {
        flex: 1 1 45%;
        max-width: 48%;
        min-width: 120px;
    }

    .hero-stat-item:nth-child(3) {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .hero-stat-item h3 { font-size: 20px; }
    .hero-stat-item h3 i { font-size: 14px; }
    .hero-stat-item h3 i.fa-desktop { margin-right: 4px; }
    .hero-stat-item h3 i.fa-tablet-alt { margin-left: 4px; margin-right: 4px; }
    .hero-stat-item h3 i.fa-mobile-alt { margin-left: 4px; }
    .hero-stat-item p { font-size: 8px; }

    .stats { padding: 30px 10px; }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-item h3 { font-size: 20px; }
    .stat-item p { font-size: 8px; letter-spacing: 0.5px; }

    .section-title {
        margin-bottom: 30px;
        padding: 0 5px;
    }

    .section-title h2 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
    .section-title p { font-size: 12px; line-height: 1.5; }

    .fitness-types { padding: 40px 10px; }

    .types-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }

    .type-card {
        padding: 18px 16px;
        border-radius: 14px;
        min-height: 280px;
    }

    .type-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .type-card h3 { font-size: 14px; margin-bottom: 8px; line-height: 1.3; }
    .type-card p { font-size: 11px; line-height: 1.5; }
    .type-tags { gap: 5px; }
    .type-tag { font-size: 9px; padding: 4px 10px; }

    .features { padding: 40px 10px; }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }

    .feature-card {
        padding: 20px 16px;
        border-radius: 14px;
        min-height: 160px;
    }

    .feature-card:nth-child(9) {
        grid-column: 1 / -1;
        max-width: 100%;
        margin: 0;
        padding: 20px;
        min-height: auto;
        height: auto;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .feature-card h3 { font-size: 14px; margin-bottom: 8px; line-height: 1.3; }
    .feature-card p { font-size: 11px; line-height: 1.5; }

    .how-it-works { padding: 40px 10px; }

    .steps { gap: 12px; margin-top: 25px; }

    .step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 16px 14px;
        gap: 12px;
        border-radius: 14px;
    }

    .step:hover { transform: translateX(5px); }

    .step-number {
        width: 34px;
        height: 34px;
        font-size: 14px;
        flex-shrink: 0;
        border-radius: 50%;
    }

    .step-content h3 { font-size: 13px; margin-bottom: 6px; line-height: 1.3; }
    .step-content p { font-size: 11px; line-height: 1.5; }

    .button-showcase { padding: 40px 10px; }
    .button-grid { gap: 8px; padding: 0; }

    .action-btn {
        padding: 10px 14px;
        font-size: 11px;
        border-radius: 10px;
    }

    .action-btn i { font-size: 10px; }
    .action-btn span { white-space: nowrap; }

    .cta { padding: 40px 10px; }

    .cta-box {
        padding: 30px 18px;
        border-radius: 20px;
    }

    .cta-box::before { width: 200px; height: 200px; top: -100px; right: -100px; }
    .cta-box h2 { font-size: 18px; line-height: 1.3; margin-bottom: 15px; }
    .cta-box p { font-size: 12px; line-height: 1.6; margin-bottom: 20px; }

    .footer { padding: 25px 10px; }

    .footer-logo { gap: 6px; margin-bottom: 12px; }
    .footer-logo img { height: 24px; }
    .footer-logo span { font-size: 13px; }

    .footer-links { gap: 12px; margin-bottom: 12px; }

    .footer-links a { font-size: 11px; padding: 0 5px; }
    .footer-copy { font-size: 10px; line-height: 1.5; }

    .video-section { padding: 30px 12px; }
    .video-header h2 { font-size: 18px; }
    .video-wrapper { border-radius: 15px; }
}

/* Mobile 320px и меньше */
@media (max-width: 320px) {
    .header-logo span { font-size: 11px; max-width: 70px; }
    .header-logo img { height: 22px; }

    .hero h1 { font-size: 16px; }
    .hero-description { font-size: 10px; }
    .hero-image { max-height: 38vh; }

    .btn-hero { padding: 9px 14px; font-size: 11px; }

    .section-title h2 { font-size: 18px; }

    .type-card h3,
    .feature-card h3 { font-size: 13px; }

    .type-card p,
    .feature-card p { font-size: 10px; }

    .types-grid { grid-template-columns: 1fr; gap: 10px; }
    .type-card { padding: 16px 14px; }

    .features-grid { grid-template-columns: 1fr; gap: 10px; }
    .feature-card { padding: 18px 14px; }

    .feature-card:nth-child(9) {
        grid-column: 1 / -1;
        max-width: 100%;
        padding: 18px;
    }

    .stat-item h3 i {
        font-size: 28px;
        margin: 0 4px;
        background: linear-gradient(135deg, #e94560, #ff6b6b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .stat-item h3 i.fa-desktop { color: #3b82f6; -webkit-text-fill-color: #3b82f6; }
    .stat-item h3 i.fa-tablet-alt { color: #a855f7; -webkit-text-fill-color: #a855f7; }
    .stat-item h3 i.fa-mobile-alt { color: #e94560; -webkit-text-fill-color: #e94560; }
}