:root {
    --bg-color: #EBE2D3; 
    --text-main: #3A2E2A; 
    --text-muted: #6B5B53; 
    --accent-green: #34C759; 
    --white: #ffffff;
    --card-border: rgba(255, 255, 255, 0.5);
    --border-radius: 28px;
    --shadow: 0 20px 50px rgba(58, 46, 42, 0.06);
    --shadow-hover: 0 30px 60px rgba(58, 46, 42, 0.12);
    
    --btn-warm-start: #FF9A44; 
    --btn-warm-end: #FF5E00;   
    --btn-warm-hover-start: #FF7B00; 
    --btn-warm-hover-end: #D94A00;
    --btn-shadow: rgba(255, 94, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   ФОНОВЫЕ ЭФФЕКТЫ
   ========================================= */
.bg-effects {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.sun-rays {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 120vw;
    height: 120vh;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 235, 180, 0.7) 0%, transparent 35%),
        conic-gradient(from 160deg at 80% 20%, 
            transparent 0deg, rgba(255, 225, 140, 0.4) 15deg, transparent 30deg, 
            rgba(255, 225, 140, 0.35) 45deg, transparent 60deg, 
            rgba(255, 225, 140, 0.4) 80deg, transparent 100deg,
            rgba(255, 225, 140, 0.3) 120deg, transparent 140deg
        );
    filter: blur(12px);
    animation: sunPulse 10s infinite alternate ease-in-out;
    transform-origin: top right;
}

@keyframes sunPulse {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.03); }
}

.bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

.shape-1 { background: #FFDCA8; width: 60vw; height: 60vw; top: -15%; left: -15%; }
.shape-2 { background: #E8D4C0; width: 50vw; height: 50vw; bottom: 5%; right: -10%; animation-delay: -5s; }
.shape-3 { background: #FDE2E2; width: 40vw; height: 40vw; top: 40%; left: 30%; animation-delay: -10s; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, 8%) scale(1.05); }
}

/* =========================================
   ПЕРИСТЫЙ ПАР
   ========================================= */
.steam-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.steam {
    position: absolute;
    bottom: -30%; 
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0) 70%);
    filter: blur(15px) url(#wavySteam); 
    opacity: 0;
    animation: 
        riseSteam 25s infinite ease-in-out,
        morphSteam 10s infinite alternate ease-in-out;
}

.steam-1 { left: 10%; width: 200px; height: 500px; animation-duration: 28s; animation-delay: 0s; }
.steam-2 { left: 25%; width: 300px; height: 700px; animation-duration: 32s; animation-delay: 4s; }
.steam-3 { left: 45%; width: 250px; height: 600px; animation-duration: 30s; animation-delay: 8s; }
.steam-4 { left: 60%; width: 280px; height: 650px; animation-duration: 29s; animation-delay: 2s; }
.steam-5 { left: 80%; width: 180px; height: 450px; animation-duration: 27s; animation-delay: 6s; }
.steam-6 { left: 90%; width: 220px; height: 550px; animation-duration: 31s; animation-delay: 12s; }

@keyframes riseSteam {
    0% { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
    10% { opacity: 0.8; }
    50% { transform: translateY(-50vh) translateX(-40px) scale(1.1); }
    80% { opacity: 0.4; }
    100% { transform: translateY(-120vh) translateX(40px) scale(1.3); opacity: 0; }
}

@keyframes morphSteam {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 70% 30% 40% 60% / 40% 50% 70% 30%; }
    75% { border-radius: 40% 70% 60% 30% / 60% 40% 50% 70%; }
    100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
}

/* =========================================
   ОСНОВНОЙ КОНТЕНТ
   ========================================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(235, 226, 211, 0.7);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: cover; /* Важно для круглых картинок, чтобы не было искажений */
    border-radius: 50%; /* Идеальный круг */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* Чуть более выраженная тень для объема */
    border: 2px solid rgba(255, 255, 255, 0.5); /* Тонкая светлая окантовка */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ТУМБЛЕР ЯЗЫКА */
.lang-switch {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--btn-warm-start) 0%, var(--btn-warm-end) 100%);
    border-radius: 50px; /* Уже есть, но можно сделать чуть больше */
    padding: 5px; /* Немного увеличим отступ для мягкости */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    box-shadow: 0 4px 20px rgba(255, 94, 0, 0.4);
}

.lang-option {
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50px; /* Делаем сами буквы RU/EN в виде таблеток */
    transition: all 0.3s ease;
    z-index: 1;
}

.lang-option.active {
    background: var(--white);
    color: var(--btn-warm-end);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* КНОПКА RuStore */
.btn-rustore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--btn-warm-start) 0%, var(--btn-warm-end) 100%);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px var(--btn-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative; 
    overflow: hidden;   
    animation: softGlow 4s infinite alternate;
}

/* Для иконок в кнопках, чтобы они смотрелись мягче */
.btn-rustore svg {
    border-radius: 50%;
    /* Если иконка векторная и с обводкой, делаем концы закругленными */
    stroke-linejoin: round;
    stroke-linecap: round;
}

/* Контейнер кнопки "Наверх" уже круглый, но добавим тень для иконки */
.scroll-top-btn svg {
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.btn-rustore::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; 
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease; 
    z-index: 1;
}

@keyframes softGlow {
    0% { box-shadow: 0 10px 25px var(--btn-shadow); }
    100% { box-shadow: 0 10px 35px rgba(255, 94, 0, 0.5); }
}

.btn-rustore:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 45px rgba(255, 94, 0, 0.6);
    background: linear-gradient(135deg, var(--btn-warm-hover-start) 0%, var(--btn-warm-hover-end) 100%);
    animation: none;
}

.btn-rustore:hover::before {
    left: 150%; 
}

.btn-rustore.large-btn {
    font-size: 1.3rem;
    padding: 18px 45px;
}

.hero-btn-main {
    padding: 20px 48px;
    font-size: 1.3rem;
    gap: 15px;
}

.hero-btn-main svg {
    width: 32px;
    height: 32px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 140px 5% 60px;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-main);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.img-container {
    background: rgba(255, 255, 255, 0.4);
    padding: 12px;
    border-radius: calc(var(--border-radius) + 10px);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    transition: box-shadow 0.5s ease;
    backdrop-filter: blur(8px);
}

.img-container:hover {
    box-shadow: var(--shadow-hover);
}

.hero-image img, .feature-img img {
    width: 100%;
    max-width: 380px;
    border-radius: var(--border-radius);
    display: block;
}

.floating-img {
    animation: float 7s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.floating-img:hover {
    transform: scale(1.02) translateY(-10px) !important;
    animation-play-state: paused;
}

.delay-1 { animation-delay: -1.75s; }
.delay-2 { animation-delay: -3.5s; }
.delay-3 { animation-delay: -5.25s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Features */
.features {
    padding: 60px 5%;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 100px;
    font-weight: 800;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 120px;
    gap: 60px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    max-width: 500px;
}

.feature-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.feature-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.feature-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 120px 5%;
    background: #F6F1EB;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -20px 40px rgba(58, 46, 42, 0.03);
    position: relative;
    z-index: 10;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* Footer */
footer {
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 80px 5% 30px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand p {
    color: #A89F9B;
    max-width: 300px;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 150px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.footer-links a {
    color: #A89F9B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--btn-warm-start); 
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #7A6B65;
    font-size: 0.9rem;
}

/* Анимации появления */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.visible, 
.reveal-left.visible, 
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* КНОПКА "НАВЕРХ" */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--btn-warm-start) 0%, var(--btn-warm-end) 100%);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px var(--btn-shadow);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, var(--btn-warm-hover-start) 0%, var(--btn-warm-hover-end) 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 94, 0, 0.5);
}

/* =========================================
   АДАПТИВ (Планшеты и Мобилки)
   ========================================= */

/* Планшеты и небольшие ноутбуки */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        margin-bottom: 80px;
    }

    .feature-text, .feature-img {
        order: unset;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand p {
        margin: 20px auto 0;
    }
    
    .navbar {
        padding: 15px 5%;
    }
    
    .nav-btn {
        display: none; 
    }
    
    .sun-rays {
        opacity: 0.6;
    }
    
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 4%;
    }

    .nav-right {
        gap: 10px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    .logo-img {
        width: 32px;
        height: 32px;
    }

    .hero {
        padding-top: 110px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .hero-btn-main {
        padding: 16px 32px;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
    }

    .feature-row, .feature-row.reverse {
        gap: 30px;
        margin-bottom: 70px;
    }

    .feature-text h3 {
        font-size: 1.8rem;
    }

    .feature-img {
        width: 100%;
    }

    .feature-img img {
        max-width: 100%;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 60px;
    }

    .footer-content {
        gap: 30px;
    }

    /* ПАР НА МОБИЛКАХ (Оставляем эффект, оптимизируем GPU) */
    .steam {
        will-change: transform, opacity, filter;
        filter: blur(12px) url(#wavySteam);
    }

    .sun-rays {
        opacity: 0.6;
    }
    
    .shape-1 { width: 80vw; height: 80vw; }
    .shape-2 { width: 70vw; height: 70vw; }
    .shape-3 { width: 60vw; height: 60vw; }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .lang-option {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* =========================================
   РЕКВИЗИТЫ В ПОДВАЛЕ
   ========================================= */
.footer-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #A89F9B;
    line-height: 1.8;
}

.footer-info p {
    margin-bottom: 5px;
}

.footer-info span {
    margin: 0 5px;
}

/* =========================================
   БАННЕР COOKIE
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0;
}

.cookie-content a {
    color: var(--btn-warm-end);
    text-decoration: underline;
    cursor: pointer;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, var(--btn-warm-start) 0%, var(--btn-warm-end) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px var(--btn-shadow);
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 0, 0.5);
}

.cookie-btn.necessary, .cookie-btn.reject {
    background: rgba(58, 46, 42, 0.05);
    color: var(--text-main);
}

.cookie-btn.necessary:hover, .cookie-btn.reject:hover {
    background: rgba(58, 46, 42, 0.1);
}

/* =========================================
   МОДАЛЬНОЕ ОКНО ДЛЯ ДОКУМЕНТОВ
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--btn-warm-end);
}

.modal-body {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}

.modal-body b {
    color: var(--btn-warm-end);
}

@media (max-width: 768px) {
    .cookie-banner {
        width: 95%;
        padding: 15px 20px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        width: 100%;
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
}