/* =========================================
   Global Variables & Reset
========================================= */
:root {
    --primary-color: #ff4500;
    --primary-color-hover: #e03e00;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #ffffff;
    --bg-secondary: #f9f9f9;
    --border-color: #e5e5e5;
    --header-bg: rgba(255, 255, 255, 0.95);
    
    --container-width: 1000px;
    --transition: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Header (Navbar)
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 8px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #293883; /* Matching the dark blue */
    letter-spacing: -0.2px;
    margin-bottom: 0;
    line-height: 1.1;
}

.nav {
    display: flex;
    gap: 30px;
    margin: 0 auto;
}

.nav a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #384285;
    margin-bottom: 5px;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

/* =========================================
   Typography & Buttons
========================================= */
h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: var(--primary-color-hover);
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.2);
}

.hero-actions .btn {
    flex: 1;
    max-width: 330px;
    min-width: 260px;
    font-size: 1rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}
.header-actions .btn {
    padding: 6px 16px;
    font-size: 0.75rem;
    min-width: auto;
    max-width: none;
    flex: none;
    justify-content: center;
}
.header-actions svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
    color: #384285; /* dark blue to match screenshot */
    text-transform: uppercase;
}

/* =========================================
   Benefits Cards Grid 
========================================= */
.benefits-cards {
    padding: 60px 0;
    background-color: #f4f4f4; /* Continues gradient */
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.benefit-card {
    background: #ffffff;
    border: 2px solid #384285;
    border-radius: 20px;
    padding: 40px 20px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.benefit-card .card-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 2px solid #384285;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: #384285;
}
.benefit-card h3 {
    color: #ff0000;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.benefit-card .highlight {
    color: #384285;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.benefit-card .muted {
    color: #888888;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================
   Layout Sections
========================================= */
.anchor-offset {
    position: relative;
    top: -100px;
    visibility: hidden;
}

.hero {
    padding: 100px 0 60px 0;
    text-align: center;
    background: linear-gradient(to bottom, #fefefe, #f4f4f4);
}

.hero .subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: #384285;
    max-width: 900px;
    margin: 0 auto 50px auto;
    line-height: 1.5;
}
.hero .subtitle .highlight-red {
    color: #ff0000;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================
   Image Comparison Layout
========================================= */
.comparison-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.comparison-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.comp-header {
    background-color: #f14c11; /* Bright orange to match screenshot */
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    padding: 20px 10px;
    text-transform: none;
}
.comp-img {
    width: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 768px) {
    .comparison-row {
        flex-direction: column;
    }
}

.cta-mid {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    text-align: center;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-bottom {
    padding: 60px 0 100px;
    text-align: center;
    background-color: var(--bg-main);
}

/* Reviews Styling */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}
.review-item {
    display: flex;
    flex-direction: column;
}
.speech-bubble {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 30px;
    flex: 1;
}
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 40px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}
.speech-bubble p {
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}
.review-author-block {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0 20px;
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.author-details h4 {
    color: #384285;
    font-size: 1.3rem;
    margin-bottom: 5px;
}
.author-details p {
    color: #888888;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}
.play-link {
    display: inline-block;
}
.play-link svg {
    transition: transform 0.2s ease;
}
.play-link:hover svg {
    transform: scale(1.1);
}
.video-reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .reviews-grid, .video-reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* СМИ Links & Cards */
.smi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}
@media (min-width: 900px) {
    .smi-cards {
        grid-template-columns: repeat(3, 375px);
    }
}
.smi-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.smi-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.smi-announcement {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.smi-announcement:hover {
    transform: scale(1.02);
}
.smi-link-text {
    display: inline-block;
    color: #384285;
    text-decoration: underline;
    font-weight: 500;
    font-size: 1rem;
    margin-top: auto;
    padding-top: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px 0 0 0;
}
.smi-link-text:hover {
    color: var(--primary-color);
}

.countdown-timer .time-block {
    position: relative;
    padding: 0 20px;
}
.countdown-timer .time-block:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    height: 40px;
    width: 1px;
    background-color: rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
    .countdown-timer {
        gap: 20px !important;
    }
    .countdown-timer .time-block {
        padding: 0 10px;
    }
    .countdown-timer .time-block div:first-child {
        font-size: 2.5rem !important;
    }
    .countdown-timer .time-block:not(:last-child)::after {
        display: none;
    }
}

/* Footer */
.footer {
    background-color: #111;
    color: #fff;
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #aaa;
}

.footer p {
    margin: 0;
}

.credit {
    opacity: 0.5;
}

/* =========================================
   Animations
========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Popup Modal
========================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-modal {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease-out;
}

/* Specific styling for image popup */
.popup-modal.smi-popup-modal {
    background: transparent;
    padding: 0;
    max-width: 900px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
}
@media (max-width: 768px) {
    .popup-modal.smi-popup-modal {
        max-width: 100%;
        width: 100%;
        height: 95vh;
        margin: 10px;
        border-radius: 10px;
        overflow-y: scroll;
    }
    .popup-modal.smi-popup-modal .smi-mobile-cols {
        display: flex;
        flex-direction: column;
    }
}
.popup-modal.smi-popup-modal::-webkit-scrollbar {
    display: none;
}
.popup-modal.smi-popup-modal .popup-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.smi-mobile-cols {
    display: none;
    flex-direction: column;
}
.smi-mobile-cols img {
    width: 100%;
    display: block;
}

.popup-overlay.active .popup-modal {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.popup-close:hover {
    color: #333;
}

/* Form Styles */
.lead-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.lead-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.lead-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.lead-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

.form-messages {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-wrapper {
        position: fixed;
        top: 66px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: 0.4s ease-in-out;
        z-index: 99;
    }

    .mobile-menu-wrapper.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 30px;
        width: 100%;
    }

    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .hero {
        padding: 140px 0 60px 0;
    }

    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .final-cta h2 {
        font-size: 1.4rem !important;
    }

    .final-cta p {
        font-size: 1.1rem !important;
    }

    .text-review {
        padding: 25px;
        margin: 30px 0;
        border-radius: 15px;
        border-left: 3px solid var(--primary-color);
    }
    
    .review-layout, .text-review:nth-child(even) .review-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .quote p {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .smi-desktop-full {
        display: none;
    }
    .smi-mobile-cols {
        display: flex;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .popup-modal {
        margin: 20px;
        padding: 30px 20px;
    }
}
