/* --- RESET & VARIABLES --- */
:root {
    --bg-base: #F9F9FB;
    --bg-white: #FFFFFF;
    --bg-grey: #F0F2F5;
    --text-main: #2B2B2B;
    --text-muted: #5A6066;
    --accent-blue: #104C64;
    --accent-blue-hover: #0C394A;
    --accent-gold: #C87941;
    --accent-gold-hover: #B06836;
    --border-color: #E2E5E9;
    
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }
.lead { font-size: 1.125rem; color: var(--text-muted); }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.875rem; color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.pt-0 { padding-top: 0 !important; }

/* --- LAYOUT --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.light-grey { background-color: var(--bg-grey); }
.dark-accent { background-color: var(--accent-blue); color: var(--bg-white); }
.dark-accent h2, .dark-accent h3 { color: var(--bg-white); }
.dark-accent p { color: rgba(255,255,255,0.8); }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-white);
}
.btn-primary:hover {
    background-color: var(--accent-gold-hover);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
.btn-outline:hover {
    background-color: var(--accent-blue);
    color: var(--bg-white);
}

.btn-large {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}
.w-100 { width: 100%; }

.cta-pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(200, 121, 65, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(200, 121, 65, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 121, 65, 0); }
}

/* --- HEADER & NAV --- */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo { display: flex; flex-direction: column; }
.logo-name { font-size: 1.25rem; font-weight: 800; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 1px;}
.logo-desc { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase;}

.desktop-nav { display: flex; gap: 2rem; }
.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active { color: var(--accent-gold); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; width: 0; height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-fast);
}
.nav-link.active::after { width: 100%; }

.phone-link {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-decoration: none;
}

/* Burger Menu */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 200;
}
.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
    position: absolute;
    transition: var(--transition-fast);
}
.burger-menu span:nth-child(1) { top: 0; }
.burger-menu span:nth-child(2) { top: 9px; }
.burger-menu span:nth-child(3) { top: 18px; }

.burger-menu.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.burger-menu.open span:nth-child(2) { opacity: 0; }
.burger-menu.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-white);
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; }
.mobile-link { font-size: 1.5rem; text-decoration: none; color: var(--accent-blue); font-weight: 600; }

/* --- SPA PAGE LOGIC --- */
.page {
    display: none;
    opacity: 0;
    animation: fadeInPage 0.4s forwards;
}
.page.active { display: block; }
@keyframes fadeInPage {
    to { opacity: 1; }
}

/* --- HOME PAGE SECTIONS --- */
.hero-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-grey) 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}
.hero-section::before {
    content: ''; position: absolute; top: -50px; right: -50px; width: 300px; height: 300px;
    border: 2px solid rgba(16, 76, 100, 0.05); border-radius: 50%;
}
.hero-content { max-width: 800px; }
.hero-benefits {
    list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 2rem 0;
}
.hero-benefits li {
    display: flex; align-items: center; gap: 0.5rem; font-weight: 500; color: var(--accent-blue);
}
.icon { width: 20px; height: 20px; color: var(--accent-gold); }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.secondary-text { font-size: 0.9rem; color: var(--text-muted); max-width: 400px; }

.text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.features-list { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item strong { display: block; font-size: 1.125rem; color: var(--accent-blue); margin-bottom: 0.25rem;}

.price-list-editorial {
    display: flex; flex-direction: column;
    border-top: 1px solid var(--border-color);
}
.price-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 0; border-bottom: 1px solid var(--border-color);
}
.service-name { font-weight: 600; font-size: 1.125rem; }
.service-price { font-weight: 700; color: var(--accent-gold); }

.process-timeline {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem;
    margin-top: 3rem;
}
.process-step { position: relative; }
.step-num {
    width: 40px; height: 40px; background-color: var(--accent-gold); color: white;
    display: flex; align-items: center; justify-content: center; font-weight: 700; border-radius: 50%;
    margin-bottom: 1rem;
}

.factors-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 2rem;
}
.factor { background: var(--bg-white); padding: 1.5rem; border-left: 4px solid var(--accent-blue); box-shadow: 0 2px 10px rgba(0,0,0,0.03); }

.dual-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.border-left { border-left: 1px solid var(--border-color); padding-left: 3rem; }

.cta-box {
    background-color: var(--bg-white);
    padding: 4rem; text-align: center; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent-gold);
}
.cta-note { display: block; margin-top: 1rem; font-size: 0.875rem; color: var(--text-muted); }

/* --- SERVICES PAGE --- */
.page-header { background-color: var(--bg-grey); padding: 4rem 0 2rem; border-bottom: 1px solid var(--border-color); }
.service-editorial {
    display: flex; gap: 3rem; padding: 4rem 0; border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}
.service-editorial.alt-layout { flex-direction: row-reverse; }
.service-info { flex: 1; }
.service-action { width: 250px; text-align: right; }
.price-tag { display: inline-block; background-color: var(--accent-gold); color: white; padding: 0.25rem 0.75rem; border-radius: 4px; font-weight: bold; margin-bottom: 1rem; }
.warning { padding: 1rem; background-color: rgba(200, 121, 65, 0.1); border-left: 3px solid var(--accent-gold); }

.service-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.service-card { background: var(--bg-white); padding: 2.5rem; border: 1px solid var(--border-color); }
.service-card.dark { background: var(--accent-blue); color: white; border: none; }
.service-card.dark h3 { color: white; }

.clean-list { list-style: none; margin-top: 1rem; }
.clean-list li { margin-bottom: 1rem; padding-left: 1.5rem; position: relative; }
.clean-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-gold); font-weight: bold; }

/* --- ABOUT PAGE --- */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
.fact-box {
    background: var(--bg-white); padding: 2rem; margin-bottom: 1rem;
    border-top: 3px solid var(--accent-blue); text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.fact-num { display: block; font-size: 2.5rem; font-weight: 800; color: var(--accent-gold); }

/* --- CONTACTS PAGE --- */
.contacts-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.giant-phone { display: block; font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; color: var(--accent-blue); text-decoration: none; margin: 2rem 0; }
.contact-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.badge { background: var(--bg-grey); padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.875rem; font-weight: 600; color: var(--accent-blue); }
.guide-list { list-style: none; }
.guide-list li { padding: 1rem; background: var(--bg-white); margin-bottom: 0.5rem; border-left: 3px solid var(--accent-gold); }

/* --- FOOTER & MOBILE CTA --- */
.site-footer { background-color: var(--text-main); color: var(--bg-grey); padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 2rem; margin-bottom: 1.5rem; }
.site-footer .logo-name { color: var(--bg-white); }
.footer-phone { color: var(--accent-gold); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.footer-bottom { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

.mobile-sticky-cta {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--bg-white); padding: 10px 15px; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 90;
}

/* --- ANIMATIONS & PRELOADER --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-white); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.loader-spinner {
    width: 50px; height: 50px; border: 4px solid var(--bg-grey);
    border-top: 4px solid var(--accent-blue); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.fade-element {
    opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-element.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .text-grid, .dual-content, .about-grid, .contacts-wrapper, .service-editorial { grid-template-columns: 1fr; gap: 2rem; flex-direction: column; }
    .border-left { border-left: none; padding-left: 0; }
    .service-editorial.alt-layout { flex-direction: column; }
    .service-action { width: 100%; text-align: left; margin-top: 1rem; }
}

@media (max-width: 768px) {
    .desktop-nav, .header-contact { display: none; }
    .burger-menu { display: block; }
    .hero-section { padding: 4rem 0; }
    .service-grid-2 { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-col.text-right { text-align: center; }
    .mobile-sticky-cta { display: block; }
    body { padding-bottom: 70px; } /* Space for sticky CTA */
    .cta-box { padding: 2rem 1.5rem; }
}
