/* ---- BASIC VARIABLES ---- */
:root {
    --bg-white: #ffffff;
    --bg-gray: #f9f9f7;
    --primary: #36471e;
    --accent: #acb487;
    --accent-light: #eef1e6;
    --text-gray: #666666;
    --border: #e0e0e0;
    --shadow-soft: 0 20px 60px rgba(54, 71, 30, 0.08);
    --font-main: 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
@media (min-width: 900px) { * { cursor: none; } }

html { scroll-behavior: smooth; }
body { background: var(--bg-white); color: var(--primary); font-family: var(--font-main); overflow-x: hidden; line-height: 1.6; }

/* ---- CURSOR ---- */
.cursor-dot, .cursor-circle { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 10000; display: none; }
@media (min-width: 900px) { .cursor-dot, .cursor-circle { display: block; } }
.cursor-dot { width: 6px; height: 6px; background: var(--primary); }
.cursor-circle { width: 30px; height: 30px; border: 1px solid rgba(54, 71, 30, 0.3); transition: width 0.3s, height 0.3s; }
body.hovering .cursor-circle { width: 50px; height: 50px; background: rgba(172, 180, 135, 0.2); border-color: transparent; }

/* ---- PRELOADER ---- */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; z-index: 20000; display: flex; justify-content: center; align-items: center; transition: 0.5s; }
.loader-logo { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 15px; }
.loader-logo span { color: var(--accent); }
.progress-bar { width: 150px; height: 3px; background: #eee; }
.progress { width: 0%; height: 100%; background: var(--primary); animation: load 1s ease forwards; }
@keyframes load { to { width: 100%; } }
body.loaded .preloader { opacity: 0; visibility: hidden; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-gray { background: var(--bg-gray); }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.1; }
.text-center { text-align: center; }

/* NAVBAR */
.navbar { position: fixed; top: 0; width: 100%; padding: 20px 0; z-index: 1000; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; color: var(--primary); }
.logo span { color: var(--accent); }
.nav-right-group { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 600; opacity: 0.7; transition: 0.3s; }
.nav-links a:hover { opacity: 1; }

.lang-switch { font-size: 13px; font-weight: 700; display: flex; gap: 5px; border: 1px solid var(--border); padding: 6px 12px; border-radius: 20px; cursor: pointer; }
.lang-switch span { opacity: 0.4; }
.lang-switch span.active { opacity: 1; color: var(--primary); }
.btn-nav { padding: 10px 24px; background: var(--primary); color: white; border-radius: 30px; font-weight: 600; font-size: 14px; transition: 0.3s; }
.btn-nav:hover { background: var(--accent); color: var(--primary); }
.menu-btn { display: none; font-size: 28px; cursor: pointer; color: var(--primary); }

/* MOBILE MENU */
.mobile-menu-overlay { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: white; z-index: 5000; transition: 0.4s ease-in-out; display: flex; flex-direction: column; }
.mobile-menu-overlay.active { right: 0; }
.mobile-menu-content { padding: 24px; height: 100%; display: flex; flex-direction: column; }
.mobile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; }
.close-menu { font-size: 32px; cursor: pointer; color: var(--primary); }
.mobile-links { display: flex; flex-direction: column; gap: 30px; align-items: center; }
.m-link { font-size: 24px; font-weight: 700; color: var(--primary); }
.m-link.highlight { color: var(--accent); }
.mobile-lang-switch { margin-top: auto; display: flex; justify-content: center; gap: 20px; font-size: 18px; font-weight: 700; padding-bottom: 40px; }
.m-lang { opacity: 0.4; cursor: pointer; }
.m-lang.active { opacity: 1; color: var(--primary); text-decoration: underline; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; overflow: hidden; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.label-caps { display: inline-block; padding: 6px 12px; background: var(--accent-light); color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; border-radius: 4px; margin-bottom: 24px; }
h1 { font-size: 4.5rem; margin-bottom: 24px; color: var(--primary); }
.hero-sub { font-size: 1.25rem; color: var(--text-gray); margin-bottom: 40px; }
.hero-btns { display: flex; align-items: center; gap: 20px; }
.btn-primary { position: relative; display: inline-flex; padding: 18px 36px; background: var(--primary); color: white; border-radius: 50px; font-weight: 700; overflow: hidden; transition: 0.3s; }
.btn-fill { position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: var(--accent); z-index: 0; transition: 0.4s ease; }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover .btn-fill { width: 100%; }
.btn-primary:hover { color: var(--primary); }
.btn-text { font-weight: 700; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.btn-text i { font-size: 24px; color: var(--accent); }

/* HERO CAROUSEL */
.hero-image { position: relative; display: flex; justify-content: center; perspective: 1000px; }
.phone-carousel {
    width: 100%; max-width: 380px; height: 750px; /* Фиксированная высота для стабильности */
    position: relative; z-index: 2; transform: rotate(-5deg);
}
.carousel-img {
    width: 100%; height: auto; position: absolute; top: 0; left: 0;
    opacity: 0; transition: opacity 1s ease-in-out;
    filter: drop-shadow(30px 40px 60px rgba(54, 71, 30, 0.15));
}
.carousel-img.active { opacity: 1; }

.circle-decor { position: absolute; border-radius: 50%; z-index: 1; opacity: 0.6; }
.c-1 { width: 400px; height: 400px; background: var(--accent-light); top: 10%; right: 10%; filter: blur(40px); }
.c-2 { width: 200px; height: 200px; background: #f0f7e6; bottom: 10%; left: 10%; filter: blur(30px); }

/* MARQUEE */
.marquee-section { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee-content { display: flex; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-content span { font-size: 3rem; font-weight: 800; color: rgba(54, 71, 30, 0.05); margin-right: 60px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* FEATURES */
.header-center { text-align: center; margin-bottom: 60px; }
.header-center h2 { font-size: 3rem; margin-bottom: 20px; }
.line { width: 60px; height: 4px; background: var(--accent); margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tilt-card { background: white; padding: 40px 30px; border-radius: 24px; box-shadow: var(--shadow-soft); transition: 0.2s; transform-style: preserve-3d; border: 1px solid transparent; }
.tilt-card:hover { border-color: var(--accent); }
.icon-wrap { width: 60px; height: 60px; background: var(--accent-light); color: var(--primary); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }

/* STEPS */
.steps-wrapper { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
.sticky-col { position: sticky; top: 150px; height: fit-content; }
.steps-text h2 { font-size: 3.5rem; margin-bottom: 20px; }
.step-row { display: flex; gap: 30px; padding: 40px; background: white; border-radius: 20px; margin-bottom: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); }
.step-number { font-size: 3rem; font-weight: 800; color: var(--accent); opacity: 0.3; line-height: 1; }

/* VIDEO GRID */
.video-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
.video-item {
    position: relative; padding-bottom: 56.25%; height: 0;
    border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-soft);
    background: #000;
}
.video-item iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

/* DOWNLOAD CARD */
.dl-card { background: var(--primary); color: white; border-radius: 40px; padding: 80px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; transform-style: preserve-3d; }
.dl-content { max-width: 500px; position: relative; z-index: 2; transform: translateZ(20px); }
.dl-content h2 { font-size: 3.5rem; margin-bottom: 20px; }
.dl-content p { font-size: 1.2rem; opacity: 0.8; margin-bottom: 40px; }
.store-group { display: flex; gap: 20px; }
.store-btn-white { background: white; color: var(--primary); padding: 14px 28px; border-radius: 12px; font-weight: 700; display: flex; gap: 10px; align-items: center; transition: 0.3s; }
.store-btn-white:hover { transform: translateY(-3px); }
.dl-visual { position: relative; z-index: 2; transform: translateZ(10px); }
.qr-white { width: 140px; height: 140px; background: white; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 60px; color: var(--primary); }
.card-circle { position: absolute; border-radius: 50%; opacity: 0.1; background: white; pointer-events: none; }
.cc-1 { width: 600px; height: 600px; top: -50%; right: -20%; }
.cc-2 { width: 300px; height: 300px; bottom: -50px; left: -50px; }

/* LEGAL BAR */
.legal-bar { padding: 40px 0 0 0; }
.legal-link { color: var(--text-gray); font-size: 13px; text-decoration: none; border-bottom: 1px solid transparent; transition: 0.3s; opacity: 0.6; }
.legal-link:hover { color: var(--primary); border-bottom-color: var(--primary); opacity: 1; }

/* FOOTER */
footer { padding: 40px 0; border-top: 1px solid var(--border); margin-top: 40px; font-size: 14px; color: var(--text-gray); }
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
.maker-link { color: var(--primary); font-weight: 700; border-bottom: 1px dashed var(--accent); }

/* ANIMATIONS */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.19, 1, 0.22, 1); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    h1 { font-size: 2.8rem; } h2 { font-size: 2.2rem; } .section { padding: 60px 0; }
    .desktop-only { display: none; } .menu-btn { display: block; } .nav-wrap { padding: 0 10px; }
    .hero { display: block; padding-top: 120px; height: auto; min-height: auto; text-align: center; }
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-image { order: -1; margin-bottom: 20px; }
    .phone-carousel { max-width: 280px; height: 550px; margin: 0 auto; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn-primary { width: 100%; justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .tilt-card { text-align: center; padding: 30px; }
    .icon-wrap { margin: 0 auto 20px auto; }
    .steps-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .sticky-col { position: static; text-align: center; margin-bottom: 20px; }
    .step-row { flex-direction: column; text-align: center; padding: 30px; }
    .video-grid { grid-template-columns: 1fr; } /* 1 видео в ряд на мобильном */
    .dl-card { flex-direction: column; padding: 40px 20px; text-align: center; border-radius: 24px; }
    .dl-content h2 { font-size: 2rem; }
    .dl-visual { display: none; }
    .store-group { flex-direction: column; width: 100%; }
    .store-btn-white { justify-content: center; width: 100%; }
    .footer-flex { flex-direction: column; gap: 20px; text-align: center; }
}

/* ---- LEGAL PAGES STYLES (TERMS) ---- */

.terms-section {
    padding-top: 140px; /* Отступ от навигации */
    padding-bottom: 80px;
    opacity: 0; /* Для анимации появления */
    transform: translateY(20px);
    transition: 0.8s ease;
}
.terms-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Узкий контейнер для комфортного чтения */
.terms-wrapper {
    max-width: 800px; 
    margin: 0 auto;
}

.terms-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.terms-header h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.update-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Типографика текста */
.legal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
}

.legal-text h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 50px;
    margin-bottom: 20px;
}

.legal-text p {
    margin-bottom: 20px;
}

.legal-contacts {
    list-style: none;
    margin-top: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

.legal-contacts li {
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
}

/* Навигация для страницы условий (статичная, без блюра) */
.navbar.static-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

/* Адаптив для текста */
@media (max-width: 768px) {
    .terms-header h1 { font-size: 2.2rem; }
    .legal-text { font-size: 1rem; }
    .terms-section { padding-top: 100px; }
}