* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #E50914;
    --primary-red-hover: #b8070f;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --text-light-gray: #8a8a8a;
    --gradient-hero: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    --gradient-cta: linear-gradient(135deg, var(--primary-red) 0%, #ff1744 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Skip to main content link (accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-red);
    color: var(--text-white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
    border-radius: 0 0 5px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--text-white);
    outline-offset: 3px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
}

.logo .highlight-red {
    color: var(--primary-red);
}

.logo-icon {
    height: 1.7rem;
    margin-left: 8px;
}

.header-cta {
    background: var(--gradient-cta);
    color: var(--text-white);
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
    animation: slideInUp 1s ease-out 0.6s both;
}

.header-cta:focus, .cta-button:focus, .final-cta-button:focus {
    outline: 3px solid var(--primary-red);
    outline-offset: 3px;
}

.header-cta-icon {
    height: 1.1rem;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/image1.webp');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(229, 9, 20, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    bottom: 35px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-white) 0%, #f5f5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease-out;
    line-height: 1.2;
}

.hero-title .highlight-red {
    background: none;
    -webkit-text-fill-color: var(--primary-red);
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-gray);
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.4s both;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    min-width: 122px;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero-feature:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.hero-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-feature-text {
    font-weight: 500;
    font-size: 1rem;
}

.cta-button {
    background: var(--gradient-cta);
    color: var(--text-white);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
    animation: slideInUp 1s ease-out 0.6s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite 1s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.4);
}

/* Section Styles */
.section {
    padding: 5rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-cta);
    border-radius: 2px;
}

/* Problem Section */
.problem-section {
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
}

.problem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.problem-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 9, 20, 0.1);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-cta);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.problem-card:hover::before {
    transform: translateX(0);
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.1);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.problem-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

.problem-conclusion {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(229, 9, 20, 0.2);
}

/* Solution Section */
.solution-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/image1.webp');
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.solution-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, #252525 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(229, 9, 20, 0.2);
    border-color: var(--primary-red);
}

.solution-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.3));
}

.solution-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.solution-text {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Social Proof Section */
.social-proof-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0a0a 50%, var(--bg-dark) 100%);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.proof-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(229, 9, 20, 0.2);
    transition: all 0.3s ease;
}

.proof-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.15);
}

.proof-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.proof-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.proof-text {
    color: var(--text-gray);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-dark);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: -2px;
}

.faq-question:hover {
    background-color: rgba(229, 9, 20, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--primary-red);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Process Section */
.process-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/image2.webp');
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: var(--gradient-cta);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-text {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--bg-darker) 0%, #0a0a0a 50%, var(--bg-darker) 100%);
    position: relative;
    overflow: hidden;
    padding-bottom: 5rem;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.final-cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.final-cta-content > * {
    position: relative;
    z-index: 3;
}

.final-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.final-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.final-cta-button {
    background: var(--gradient-cta);
    color: var(--text-white);
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.4);
    z-index: 10;
}

.final-cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 60px rgba(229, 9, 20, 0.5);
}

.final-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite 1s;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animatedGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shine {
    from {
        left: -100%;
    }
    to {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure final CTA elements are always visible */
.final-cta .final-cta-button {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.final-cta .final-title,
.final-cta .final-subtitle {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height для мобильных браузеров */
        min-height: unset;
        padding-top: 70px;
        padding-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        bottom: 0;
        padding: 15px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-features {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-feature {
        min-width: 90px;
    }
    
    .hero-feature-icon {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-feature-text {
        font-size: 0.85rem;
    }

    .problem-cards {
        grid-template-columns: 1fr;
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .final-cta {
        padding-bottom: 4rem;
    }

    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }

    .final-cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh;
        height: 100dvh;
        min-height: unset;
        padding-top: 60px;
        padding-bottom: 15px;
    }

    .hero-content {
        bottom: 0;
        padding: 10px 15px;
    }

    .site-header {
        padding: 0.7rem 0;
    }

    .final-cta {
        padding-bottom: 3rem;
    }

    .final-subtitle {
        margin-bottom: 2rem;
    }

    .faq-question {
        font-size: 1.1rem;
        padding: 1.1rem;
    }
    
    .faq-answer p {
        padding: 0 1.2rem 1.2rem;
    }
    
    .hero-title {
        font-size: 1.7rem;
        margin-bottom: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .hero-features {
        margin-bottom: 3rem;
        gap: 2rem;
    }
    
    .hero-feature {
        min-width: 80px;
    }
    
    .hero-feature-icon {
        font-size: 1.8rem;
    }
    
    .hero-feature-text {
        font-size: 0.8rem;
    }
    
    .section-title, .final-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    .final-cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: 100vh;
        height: -webkit-fill-available;
        min-height: unset;
    }
    
    @media (max-width: 768px) {
        .hero {
            height: 100vh;
            height: -webkit-fill-available;
            padding-top: 65px;
        }
    }
    
    @media (max-width: 480px) {
        .hero {
            height: 100vh;
            height: -webkit-fill-available;
            padding-top: 55px;
        }
        
        .site-header {
            padding-top: max(0.7rem, env(safe-area-inset-top));
        }
    }
}

/* iPhone X, 11, 12, 13, 14 Pro specific (notch devices) */
@media only screen 
    and (min-device-width: 375px) 
    and (max-device-width: 428px)
    and (min-device-height: 812px)
    and (-webkit-device-pixel-ratio: 3) {
    .hero {
        height: 100vh;
        height: 100dvh;
        min-height: unset;
        padding-top: 65px;
        padding-bottom: 20px;
    }
    
    .hero-content {
        bottom: 0;
        padding: 10px 15px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .hero-features {
        margin-bottom: 3rem;
        gap: 2rem;
    }
    
    .cta-button {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* iPhone 12 Pro / 12 / 13 / 14 specific */
@media only screen 
    and (device-width: 390px) 
    and (device-height: 844px) {
    .hero {
        height: 100vh;
        height: 100dvh;
        min-height: unset;
        padding-top: 60px;
        padding-bottom: 15px;
    }
    
    .hero-content {
        bottom: 0;
        padding: 10px 15px;
    }
}

/* Mobile Navigation Optimization */
@media (max-width: 768px) {
    /* Скрываем "Главная" - логотип сам ведет на главную */
    .header-nav .nav-link:first-of-type {
        display: none;
    }
    
    /* Кнопка "Блог" - прозрачная с рамкой */
    .header-nav .nav-link {
        color: var(--text-white);
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.5rem 1rem;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .header-nav .nav-link::after {
        display: none;
    }
    
    .header-nav .nav-link:hover {
        border-color: var(--primary-red);
        background: rgba(229, 9, 20, 0.1);
        color: var(--text-white);
    }
    
    /* Telegram - круглая кнопка только с иконкой */
    .header-cta {
        min-width: 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        line-height: 0;
    }
    
    .header-cta-icon {
        height: 1.4rem;
        width: 1.4rem;
        margin: 0;
    }
    
    /* Уменьшаем gap между элементами */
    .header-nav {
        gap: 1rem;
    }
}

/* Small devices (extra safety) */
@media (max-width: 375px) {
    .hero {
        height: 100vh;
        height: 100dvh;
        min-height: unset;
        padding-top: 55px;
        padding-bottom: 15px;
    }
    
    .hero-content {
        bottom: 0;
        padding: 10px;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    /* Дополнительная оптимизация для очень маленьких экранов */
    .header-nav {
        gap: 0.7rem;
    }
    
    .header-nav .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

