/* ==================== ШРИФТЫ ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300..700&family=Manrope:wght@400;500;600;700&family=Zilla+Slab:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Светлая тема */
    --primary: #C26B4A;
    --primary-dark: #8B4A33;
    --dark-bg: #0F1A1F;
    --dark-surface: #1A2A2F;
    --light-bg: #F8F7F4;
    --light-surface: #FFFFFF;
    --text-dark: #1E2A2F;
    --text-light: #E8EDF0;
    --accent-light: #B9A394;
    --border-light: #E2DFD9;
    --border-dark: #3E4E54;
    --success: #3C7A6B;
    --error: #C4554A;

    --card-bg: var(--light-surface);
    --hero-bg: linear-gradient(125deg, #f5f0ea 0%, #ede7df 70%, #e4ddd4 100%);

    --font-sans: 'Inter', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
    --font-serif: 'Zilla Slab', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;

    --section-padding: 80px 0;
    --card-padding: 2rem;
    --border-radius-card: 28px;
    --transition-default: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    transition: background-color 0.4s ease, color 0.3s ease;
    font-weight: 400;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
    --card-bg: #1f3530;
    --hero-bg: linear-gradient(125deg, var(--dark-bg) 0%, #1A2A2F 70%, #2C3E44 100%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==================== HEADER ==================== */
header {
    background: rgba(248, 247, 244, 0.96);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: background 0.3s ease, border-bottom-color 0.3s ease;
}

body.dark header {
    background: rgba(15, 26, 31, 0.97);
    border-bottom-color: var(--border-dark);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 0;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 8px 18px;
    border-radius: 14px;
    transition: var(--transition-default);
    margin-right: auto;
    position: relative;
    white-space: nowrap;
}

.logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 6px rgba(194, 107, 74, 0.3));
}

.logo span {
    color: var(--primary);
    background: none;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s;
}

.logo:hover::after {
    opacity: 1;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    position: relative;
    transition: color 0.25s;
    font-size: 1rem;
}

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

nav a:hover::after {
    width: 100%;
}
nav a:hover {
    color: var(--primary);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 16px;
    transition: background 0.2s;
    z-index: 1200;
}

.burger:hover {
    background: rgba(194, 107, 74, 0.12);
}

.burger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: currentColor;
    border-radius: 4px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    width: 28px;
}
.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    width: 28px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--light-surface);
    backdrop-filter: blur(32px);
    padding: 7rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
    z-index: 1150;
    border-left: 1px solid var(--border-light);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

body.dark .mobile-menu {
    background: var(--dark-surface);
    border-left-color: var(--border-dark);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    text-decoration: none;
    color: inherit;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.25s;
}

.mobile-menu a:hover {
    color: var(--primary);
    padding-left: 12px;
    border-bottom-color: var(--primary);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 26, 31, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1120;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    color: inherit;
}

.theme-toggle:hover {
    background: rgba(194, 107, 74, 0.15);
    transform: rotate(15deg);
}

/* ==================== HERO ==================== */
.hero {
    background: var(--hero-bg);
    color: white;
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.6s ease;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.4rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: background 0.3s ease, text-shadow 0.3s ease;
}

.hero h1 .nowrap {
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    opacity: 0.92;
    color: var(--text-light);
    transition: color 0.3s ease;
}

body:not(.dark) .hero h1 {
    background: linear-gradient(135deg, #2c3e50, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}
body:not(.dark) .hero-subtitle {
    color: #2c3e50;
}

/* ==================== ОБЩИЕ КОМПОНЕНТЫ ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(194, 107, 74, 0.25);
}

.btn-primary:hover {
    background: #b85c3e;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(194, 107, 74, 0.35);
}

.section {
    padding: var(--section-padding);
}

.bg-secondary {
    background-color: var(--light-surface);
    transition: background-color 0.3s ease;
}
body.dark .bg-secondary {
    background-color: var(--dark-surface);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2.8rem;
    color: #5c6e64;
    transition: color 0.3s ease;
}
body.dark .section-subtitle {
    color: #b0c0b8;
}

.grid-2, .grid-3 {
    display: grid;
    gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.service-card, .profile-card, .fact-card, .price-card, .offer-card {
    background: var(--card-bg);
    padding: var(--card-padding);
    border-radius: var(--border-radius-card);
    transition: background 0.4s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

body.dark .service-card,
body.dark .profile-card,
body.dark .fact-card,
body.dark .price-card,
body.dark .offer-card {
    border-color: #3c5a52;
}

.service-card:hover, .fact-card:hover, .price-card:hover, .offer-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 35px rgba(194, 107, 74, 0.12);
}

.service-card i, .profile-card i {
    font-size: 2.7rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.service-card h3, .fact-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0 1rem;
}
.stat-item {
    text-align: center;
    background: rgba(194, 107, 74, 0.08);
    padding: 1.5rem 1.8rem;
    border-radius: 32px;
    flex: 1;
    min-width: 140px;
    transition: transform 0.2s;
}
body.dark .stat-item {
    background: #1f3530;
}
.stat-item:hover {
    transform: scale(1.02);
}
.stat-number {
    font-family: var(--font-mono);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: none;
}
.stat-label {
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ========== КАРУСЕЛЬ ЦЕН ========== */
.pricing-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.25rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pricing-carousel::-webkit-scrollbar {
    display: none;
}

.price-card {
    flex: 0 0 85%;
    max-width: 320px;
    scroll-snap-align: center;
}

.price-card .icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}
.price-card h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}
.price-card .desc {
    font-size: 0.95rem;
    color: #5c6e64;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}
body.dark .price-card .desc {
    color: #b0c0b8;
}
.price-card .price {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

@media (min-width: 769px) {
    .pricing-carousel {
        display: grid;
        gap: 2rem;
        overflow: visible;
        scroll-snap-type: none;
        padding: 0;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .price-card {
        flex: 1 1 auto;
        max-width: none;
        scroll-snap-align: none;
    }
}

/* ========== БЕГУЩАЯ СТРОКА ========== */
.marquee {
    overflow: hidden;
    background: var(--light-surface);
    padding: 1rem 0;
    border-radius: 70px;
    margin: 2rem 0;
    transition: background 0.3s ease;
}
body.dark .marquee {
    background: #1f3530;
}
.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: scrollMarquee 22s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(194, 107, 74, 0.1);
    padding: 8px 22px;
    border-radius: 60px;
    transition: background 0.3s ease;
}
body.dark .marquee-item {
    background: #2c4a42;
}
.marquee-item i {
    font-size: 1.8rem;
    color: var(--primary);
}
.marquee-item span {
    font-size: 1rem;
    font-weight: 500;
}
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== КОНТАКТЫ ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info-block {
    padding: 0;
}
.contact-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.phone-link {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
    transition: 0.2s;
}
.phone-link:hover {
    color: #b85c3e;
    transform: translateX(5px);
}
.telegram-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #229ED9;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}
.telegram-link a:hover {
    background: #1a7ab3;
    transform: scale(1.02);
}
.contact-form {
    background: var(--light-surface);
    padding: 2.2rem;
    border-radius: 32px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
    transition: background 0.3s ease;
}
body.dark .contact-form {
    background: #1f3530;
}
.form-group {
    margin-bottom: 1.3rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid var(--border-light);
    border-radius: 24px;
    font-size: 1rem;
    transition: 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(194, 107, 74, 0.2);
}
body.dark .form-group input {
    background: #2c4a42;
    border-color: #3c5a52;
    color: white;
}
.checkbox-group {
    margin: 1.5rem 0;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
}
.checkbox-label input {
    position: absolute;
    opacity: 0;
}
.checkbox-label .custom-checkbox {
    width: 20px;
    height: 20px;
    background: var(--light-surface);
    border: 2px solid var(--border-light);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
body.dark .checkbox-label .custom-checkbox {
    background: #2c4a42;
}
.checkbox-label input:checked + .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}
.checkbox-label input:checked + .custom-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: white;
}
.offer-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
}
.offer-link:hover {
    color: #b85c3e;
}

#form-message {
    margin-top: 1.2rem;
    padding: 12px;
    border-radius: 24px;
    text-align: center;
}
.success { background: var(--success); color: white; }
.error { background: var(--error); color: white; }

/* ========== ФУТЕР ========== */
footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-dark);
}
footer a {
    color: var(--accent-light);
    text-decoration: none;
}
footer p {
    font-weight: 400;
    line-height: 1.6;
}

/* ========== КНОПКА "НАВЕРХ" ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(194, 107, 74, 0.4);
    transition: all 0.3s ease;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: #b85c3e;
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 8px 24px rgba(194, 107, 74, 0.5);
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1100px) {
    .hero h1 { font-size: 2.9rem; }
}
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.2rem; }
}
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .header-flex {
        padding: 0.8rem 0;
    }
    .logo {
        font-size: 1.4rem;
        padding: 4px 10px;
    }
    nav ul {
        display: none;
    }
    .burger {
        display: flex;
    }
    .hero {
        padding: 80px 0 60px;
        height: 90vh;
        min-height: 500px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.9rem;
    }
    .grid-2, .grid-3, .contact-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 55px 0;
    }
    .stats-grid {
        gap: 1rem;
    }
    .marquee-item i {
        font-size: 1.4rem;
    }
    .marquee-item span {
        font-size: 0.85rem;
    }
    .phone-link {
        font-size: 1.4rem;
    }
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}
@media (max-width: 550px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}
@media (max-width: 450px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero h1 .nowrap {
        white-space: normal;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .header-flex {
        padding: 0.7rem 0;
    }
    .logo {
        font-size: 1.3rem;
        padding: 2px 8px;
    }
    .burger {
        width: 44px;
        height: 44px;
    }
    .mobile-menu {
        width: 270px;
        right: -280px;
    }
    .btn {
        padding: 11px 28px;
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .stat-number {
        font-size: 2rem;
    }
}

/* ==================== АНИМАЦИЯ ПОЯВЛЕНИЯ ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ========== COOKIE БАННЕР ========== */
/* ========== КУКИ-БАННЕР ========== */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 560px;
    background: var(--light-surface);
    padding: 24px 28px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
    z-index: 1300;
    transition: background 0.3s ease, border-color 0.3s ease;
}
body.dark #cookie-banner {
    background: var(--dark-surface);
    border-color: var(--border-dark);
}
#cookie-banner p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text-dark);
}
body.dark #cookie-banner p {
    color: var(--text-light);
}
#cookie-banner a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}
#cookie-banner a:hover {
    color: var(--accent-light);
}
body.dark #cookie-banner a {
    color: var(--accent-light);
}
body.dark #cookie-banner a:hover {
    color: var(--primary);
}
#cookie-banner .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
#cookie-banner .btn-primary:hover {
    background: #b85c3e;
    transform: translateY(-2px);
}
body.dark #cookie-banner .btn-primary {
    background: var(--primary);
}
body.dark #cookie-banner .btn-primary:hover {
    background: #b85c3e;
}
@media (max-width: 480px) {
    #cookie-banner {
        bottom: 16px;
        width: calc(100% - 32px);
        padding: 20px;
        left: 16px;
        transform: none;
    }
    #cookie-banner p {
        font-size: 0.9rem;
    }
}

/* Ссылки в чекбоксах */
.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s;
}
.checkbox-label a:hover {
    color: var(--accent-light);
}
body.dark .checkbox-label a {
    color: var(--accent-light);
}
body.dark .checkbox-label a:hover {
    color: var(--primary);
}

/* Ссылки на страницах оферты и политики */
.offer-card a,
.privacy-card a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s;
}
.offer-card a:hover,
.privacy-card a:hover {
    color: var(--accent-light);
}
body.dark .offer-card a,
body.dark .privacy-card a {
    color: var(--accent-light);
}
body.dark .offer-card a:hover,
body.dark .privacy-card a:hover {
    color: var(--primary);
}

