html, body {
    overflow: visible !important; /* Принудительно разрешить прокрутку */
    transform: none !important;    /* Принудительно убрать transform */
    filter: none !important;
    perspective: none !important;
    backdrop-filter: none !important;
    contain: none !important;
}

body {
    min-height: 100vh; /* Убедимся, что body всегда занимает минимум всю высоту viewport */
    display: flex; /* Если body - flex-контейнер, это может повлиять */
    flex-direction: column; /* Если body - flex-контейнер, то его дочерние элементы будут выстроены в столбец */
    /* ... (остальные стили body) ... */
}

.header {
    background: var(--dark-gradient-start);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

    position: sticky; /* Должно быть sticky */
    top: 0;           /* Должно быть 0 */

    z-index: 1000;    /* Убедиться, что он выше другого контента */
    width: 100%;      /* Занимает всю ширину, чтобы не было сюрпризов */
    left: 0;          /* Тоже для надежности */
    /* Дополнительно: background-attachment: scroll; если вдруг */
}

/* Убедитесь, что для main нет никаких flex-свойств, которые могут конфликтовать */
main {
    flex-grow: 1; /* Если body - flex-контейнер, main должен растягиваться */
}

:root {
    --primary-color: #FFD700; /* Золотисто-желтый */
    --secondary-color: #333333; /* Темно-серый */
    --background-dark: #1a1a1a; /* Очень темный фон */
    --text-light: #f0f0f0;
    --text-dark: #333333;
    --gradient-start: #FFD700; /* Золото */
    --gradient-end: #FFBF00;   /* Более темное золото */
    --dark-gradient-start: #333333;
    --dark-gradient-end: #1a1a1a;
    --card-background: #282828;
    --border-radius-lg: 10px;
    --border-radius-md: 5px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--background-dark);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gradient-end);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    color: var(--text-light);
}

h1 { font-size: 3.2em; font-weight: 700; }
h2 { font-size: 2.5em; font-weight: 600; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.8em; font-weight: 600; }
p { margin-bottom: 1em; }

.section-padding {
    padding: 80px 0;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 1.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    gap: 10px;
}

.btn img {
    height: 24px;
    width: 24px;
    vertical-align: middle;
}

.primary-btn {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: var(--secondary-color);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

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

.secondary-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Header */
.header {
    background: var(--dark-gradient-start);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

    /* 🔥 КЛЮЧЕВЫЕ СВОЙСТВА ДЛЯ STICKY 🔥 */
    position: sticky; /* Должно быть sticky */
    top: 0;           /* Должно быть 0 */

    z-index: 1000;    /* Убедиться, что он выше другого контента */
    width: 100%;      /* Занимает всю ширину, чтобы не было сюрпризов */
    left: 0;          /* Тоже для надежности */
}

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

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color); /* Основной цвет логотипа */
    position: relative; /* Сохраняем для возможных псевдоэлементов */
    padding: 5px 0; /* Сохраняем паддинг для выравнивания */
}

/* Стиль для логотипа, который всегда ярко подсвечен, но БЕЗ подчеркивания */
.brand-logo {
    color: var(--primary-color) !important; /* Убедимся, что цвет всегда яркий */
    font-weight: 700 !important;
}

/* Убираем подчеркивание для brand-logo */
.brand-logo::after {
    content: none !important; /* Полностью убираем подчеркивание */
}

/* Убираем подчеркивание при наведении на brand-logo, если оно вдруг появится */
.brand-logo:hover::after {
    width: 0 !important;
}

/* Обычные ссылки в навигации */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1em;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* ACTIVE NAVIGATION LINK (для обычных ссылок) */
.nav-links li a.active-nav {
    color: var(--primary-color);
    font-weight: 700;
}
.nav-links li a.active-nav::after {
    width: 100%;
}


.nav-toggle {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: var(--background-dark);
    padding: 100px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    text-align: left;
    padding-bottom: 80px;
}

.hero-text {
    max-width: 50%;
}

.hero-text h1 {
    font-size: 3.8em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text .subtitle {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.app-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.app-badge-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.app-badge-link:hover {
    transform: translateY(-3px);
}

.app-badge {
    height: 60px;
    width: auto;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius-md);
}


.hero-image {
    max-width: 40%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transform: rotate(5deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down a {
    color: var(--primary-color);
    font-size: 1em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary-color);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}


/* Features Section */
.features-section {
    background: linear-gradient(135deg, var(--dark-gradient-start), var(--dark-gradient-end));
    color: var(--text-light);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: var(--secondary-color);
    text-align: center;
    padding: 60px 0;
}

.cta-banner h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 2.8em;
}

.cta-banner p {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .app-badges {
    justify-content: center;
}


/* Testimonials Section */
.testimonials-section {
    background: var(--background-dark);
    color: var(--text-light);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    font-style: italic;
    position: relative;
}

.testimonial-item p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
    text-align: right;
    margin-top: 15px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-col p, .footer-col ul {
    color: rgba(255, 255, 255, 0.7);
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col .social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    /* Иконки соцсетей здесь */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Content Pages (Privacy, Terms, About, Contact) */
.content-page {
    background: linear-gradient(135deg, var(--dark-gradient-start), var(--dark-gradient-end));
    padding-top: 120px;
    min-height: calc(100vh - 100px);
}

.content-page h2 {
    font-size: 3em;
    text-align: left;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.content-page h3 {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.content-page h4 {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.content-page p {
    font-size: 1.1em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.content-page ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.75);
}
.content-page ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-bottom: 50px;
    }

    .hero-text {
        max-width: 100%;
    }
    .hero-text h1 {
        font-size: 3em;
    }

    .hero-image {
        max-width: 70%;
        margin-top: 40px;
    }

    .app-badges {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }
    .footer-col ul {
        text-align: center;
        margin-top: 10px;
    }
    .content-page h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; margin-bottom: 30px; }
    .section-padding { padding: 60px 0; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--dark-gradient-start);
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }
    .nav-toggle {
        display: block;
    }
    .app-badges {
        justify-content: center;
    }
    .hero-text h1 {
        font-size: 2.8em;
    }
    .hero-image {
        max-width: 90%;
    }
    .content-page h2 {
        font-size: 2.2em;
    }
    .content-page h3 {
        font-size: 1.8em;
    }
    .content-page h4 {
        font-size: 1.3em;
    }
    .content-page p, .content-page ul li {
        font-size: 1em;
    }
    .app-badge {
        height: 50px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    .app-badges {
        flex-direction: column;
        gap: 10px;
    }
    .hero-text .subtitle { font-size: 1.1em; }
    .content-page h2 {
        font-size: 1.8em;
    }
    .content-page h3 {
        font-size: 1.5em;
    }
}