/* --- Сброс стилей и базовые настройки --- */
:root {
    --bg-color: #ffffff;
    --surface-color: #f4f6fa; /* Мягкий, современный оттенок для контраста блоков */
    --surface-card: #ffffff;
    --primary-color: #e94f37; /* Коралловый - основной акцент */
    --primary-hover-color: #d13d27;
    --secondary-color: #4f345a; /* Сливовый - для заголовков и темных блоков */
    --accent-color: #f8c630; /* Золотой - для иконок и выделений */
    --blue-color: #748cab; /* Пыльно-синий */
    --text-color: #24292f;
    --text-secondary-color: #57606a;
    --border-color: #e1e4ea;
    --card-shadow: 0 8px 24px rgba(79, 52, 90, 0.06);
    --card-shadow-hover: 0 16px 36px rgba(79, 52, 90, 0.12);
    --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Скроллбар --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--blue-color);
    border-radius: 10px;
}

/* --- Типографика --- */
h1, h2, h3 {
    color: var(--secondary-color);
    line-height: 1.1;
    font-weight: 800;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Уменьшили */
    margin-bottom: 1.5rem;
    text-align: center;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 3.5rem;
}

h2 span {
    color: var(--primary-color);
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary-color);
    margin-bottom: 1.5rem;
}

/* --- Компоненты --- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

/* --- Секции: чистый архитектурный ритм с четким контрастом --- */
#advantages {
    background: #eef2f6;
    border-top: 1px solid #dce4ec;
    border-bottom: 1px solid #dce4ec;
}

#services {
    background: #ffffff;
}

#process {
    background: #eef2f6;
    border-top: 1px solid #dce4ec;
    border-bottom: 1px solid #dce4ec;
}

#reviews {
    background: #ffffff;
    border-bottom: 1px solid #dce4ec;
}

#contact {
    background: #ffffff;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 79, 55, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 79, 55, 0.3);
    background-color: var(--primary-hover-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.nav__logo span {
    color: var(--primary-color);
}

.nav__links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__menu-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-switch {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.85rem;
}

.lang-switch:hover {
    background: var(--border-color);
}

/* --- Hero Section --- */
.hero {
    padding: 8rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
    min-height: 60vh;
    display: flex;
    justify-content: center; /* Центрирование контента */
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.hero__video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование элементов внутри */
}

.hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 auto 2.5rem; /* Центрирование через margin */
    color: var(--text-color);
    max-width: 600px;
    text-align: center;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- Advantage Cards: Minimalist Architectural Grid --- */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.advantage-card {
    background: #ffffff;
    padding: 2.4rem 2rem 2.2rem;
    border-radius: 20px;
    border: 1px solid #d8e0e9;
    box-shadow: 0 6px 24px rgba(79, 52, 90, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.advantage-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.8rem;
}

.advantage-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f4f8;
    border: 1px solid #e1e7ee;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.advantage-card__index {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(79, 52, 90, 0.38);
    font-family: 'JetBrains Mono', monospace, sans-serif;
    letter-spacing: 0.05em;
}

.advantage-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.advantage-card p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-secondary-color);
    margin-bottom: 0;
}

.advantage-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 52, 90, 0.22);
    box-shadow: 0 16px 36px rgba(79, 52, 90, 0.1);
}

.advantage-card:hover .advantage-card__icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.05);
}

.advantage-card:hover .advantage-card__index {
    color: var(--primary-color);
}

/* --- Service Cards: Architectural Pricing Deck --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 960px) {
    .services__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 2rem;
    }
}

.service-card {
    background: #f8fafc;
    padding: 2.8rem 2.2rem 2.4rem;
    border-radius: 22px;
    border: 1px solid #d8e0e9;
    box-shadow: 0 6px 24px rgba(79, 52, 90, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.service-card__badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(233, 79, 55, 0.25);
}

.service-card__price {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin: 0.8rem 0 1.2rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.service-card__price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary-color);
    margin-left: 4px;
}

.service-card__description {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-secondary-color);
    margin-bottom: 2.2rem;
    flex-grow: 1;
}

.service-card .btn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.2rem;
}

.service-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(79, 52, 90, 0.1);
    border-color: rgba(79, 52, 90, 0.22);
}

/* Featured / Accent Card (Центральный тариф в сливовом благородном стиле) */
.service-card--featured {
    background: #24182c;
    border-color: #24182c;
    color: #ffffff;
    box-shadow: 0 16px 45px rgba(36, 24, 44, 0.22);
    transform: translateY(-6px);
}

.service-card--featured h3 {
    color: #ffffff;
}

.service-card--featured .service-card__price {
    color: #ffffff;
}

.service-card--featured .service-card__price span {
    color: rgba(255, 255, 255, 0.65);
}

.service-card--featured .service-card__description {
    color: rgba(255, 255, 255, 0.8);
}

.service-card--featured:hover {
    background: #24182c;
    transform: translateY(-9px);
    box-shadow: 0 22px 50px rgba(36, 24, 44, 0.3);
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 2rem;
}

.portfolio-btn .arrow {
    transition: transform 0.2s ease;
}

.portfolio-btn:hover .arrow {
    transform: translateX(4px);
}

/* --- Process: Clean Linear Pipeline with Defined Cards --- */
.process__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    padding-top: 0.5rem;
}

.process-card {
    background: #ffffff;
    padding: 2.4rem 2rem 2.2rem;
    border-radius: 20px;
    border: 1px solid #d8e0e9;
    box-shadow: 0 6px 24px rgba(79, 52, 90, 0.06);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f4f8;
    border: 1px solid #e1e7ee;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace, sans-serif;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.process-card--2 .process-card__num {
    background: rgba(233, 79, 55, 0.08);
    border-color: rgba(233, 79, 55, 0.25);
    color: var(--primary-color);
}

.process-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.process-card p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-secondary-color);
    margin-bottom: 0;
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 52, 90, 0.22);
    box-shadow: 0 16px 36px rgba(79, 52, 90, 0.1);
}

.process-card:hover .process-card__num {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .process__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- CTA Banner: Minimalist Studio Frame --- */
.cta-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.cta {
    background: linear-gradient(145deg, #24182c 0%, #1a1220 100%);
    color: #fff;
    text-align: center;
    border-radius: 28px;
    padding: 4.5rem 3rem;
    box-shadow: 0 20px 50px rgba(36, 24, 44, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.cta h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.2rem;
}

.cta h2 span {
    color: var(--primary-color);
}

.cta p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.cta__action-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 0 auto;
}

.btn-cta {
    padding: 0.95rem 2.4rem;
    font-size: 1.05rem;
    box-shadow: 0 6px 20px rgba(233, 79, 55, 0.35);
}

.cta__socials {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.social-icon-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.social-icon-btn:hover {
    transform: translateY(-3px) scale(1.06);
}

.social-icon-btn--telegram:hover {
    background: #229ED9;
    border-color: #229ED9;
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.4);
    color: #fff;
}

.social-icon-btn--vk:hover {
    background: #0077FF;
    border-color: #0077FF;
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.4);
    color: #fff;
}

.social-icon-btn--email:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(233, 79, 55, 0.4);
    color: #fff;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(79, 52, 90, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--secondary-color);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal iframe {
    height: 80vh;
}

/* --- Reviews Section --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: #fff;
    padding: 2.2rem;
    border-radius: 20px;
    border: 1px solid rgba(79, 52, 90, 0.08);
    box-shadow: 0 4px 20px rgba(79, 52, 90, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.reveal-dynamic {
    opacity: 1 !important;
    visibility: visible !important;
}

.review-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 52, 90, 0.18);
    box-shadow: 0 14px 32px rgba(79, 52, 90, 0.07);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-color);
}

.review-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.review-info a {
    font-size: 0.85rem;
    color: var(--blue-color);
    text-decoration: none;
}

.review-content {
    font-style: italic;
    line-height: 1.6;
    color: var(--text-color);
}

/* --- Footer --- */
.footer {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-weight: 700;
    color: var(--secondary-color);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .nav__links {
        display: none; /* For simplicity, I'll keep it hidden or let the existing toggle handle it */
    }
    
    .hero__cta {
        flex-direction: column;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .cta {
        margin: 2rem 1rem;
        border-radius: 20px;
    }
}

@media (max-width: 600px) {
    .advantages__grid, .services__grid, .process__grid {
        grid-template-columns: 1fr;
    }
    .advantage-card, .service-card, .process-card {
        padding: 2rem 1.4rem;
    }
    .service-card__badge {
        font-size: 0.72rem;
        padding: 0.3rem 0.8rem;
    }
}

/* --- Mobile Menu Fixes --- */
.nav__toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle .bar {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .nav__links {
        display: flex;
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: auto;
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        transition: 0.4s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav__links.is-active {
        right: 0;
    }
}

/* --- Cookie Banner (Floating Card) --- */
.cookie-banner { position: fixed !important; bottom: 30px; right: 30px; width: 350px; background-color: #fff; color: #2d2d2d; padding: 1.5rem; z-index: 99999; display: none; box-shadow: 0 10px 40px rgba(0,0,0,0.2); border-radius: 16px; border: 1px solid #eee; }
.cookie-banner.is-active { display: block; animation: slideUp 0.5s ease forwards; }
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-content { display: flex; flex-direction: column; gap: 1rem; }
.cookie-content p { margin: 0; font-size: 0.9rem; line-height: 1.4; color: #555; }
.cookie-content .btn { width: 100%; text-align: center; padding: 0.6rem; font-size: 0.9rem; }
