/* --- Variables --- */
:root {
    --bg-color: #0a0a0a;
    --bg-secondary: #111111;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-gold: #d4af37;
    --accent-gold-light: #f2d06b;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default; /* Custom cursor handles visuals */
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

.text-gold { color: var(--accent-gold); }
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--accent-gold);
    color: #000;
}
.btn--primary:hover {
    background: var(--accent-gold-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn--outline {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}
.btn--outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-main);
}

.btn--small { padding: 8px 20px; font-size: 0.8rem; }
.btn--large { padding: 18px 40px; font-size: 1rem; }
.full-width { width: 100%; }

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 12px;
    transition: var(--transition);
}

.card--glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-muted);
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.header__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; }

.nav__list { display: flex; gap: 30px; }
.nav__link { font-size: 0.9rem; font-weight: 500; position: relative; }
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { font-weight: 600; font-size: 0.9rem; }

.burger { display: none; flex-direction: column; gap: 6px; width: 30px; }
.burger span { height: 2px; background: #fff; width: 100%; }

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero__bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero__content { max-width: 600px; }
.hero__badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.hero__subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }
.hero__buttons { display: flex; gap: 20px; margin-bottom: 50px; }

.hero__trust { display: flex; gap: 40px; border-top: 1px solid var(--glass-border); padding-top: 30px; }
.trust-item { display: flex; flex-direction: column; }
.trust-num { font-size: 1.5rem; font-weight: 700; color: var(--accent-gold); }
.trust-text { font-size: 0.8rem; color: var(--text-muted); }

.hero__image-wrapper { position: relative; }
.hero__frame {
    position: relative;
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 4px;
}
.hero__img {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
    filter: grayscale(20%) contrast(110%);
}
.hero__frame-glow {
    position: absolute;
    inset: 0;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
    z-index: -1;
}

/* --- Services --- */
.service-icon { font-size: 2.5rem; margin-bottom: 20px; color: var(--accent-gold); }
.service-card p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Calculator --- */
.calculator-section { padding: 40px 0; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.calc-group label { display: block; margin-bottom: 10px; font-size: 0.9rem; color: var(--text-muted); }
.calc-group select {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 4px;
    outline: none;
}
.calc-result {
    text-align: center;
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.calc-res-title { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 5px; }
.calc-res-value { font-size: 1.2rem; font-weight: 700; color: var(--accent-gold); }

/* --- Process --- */
.process-steps { display: flex; flex-direction: column; gap: 30px; }
.step {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-left: 2px solid var(--glass-border);
    transition: var(--transition);
}
.step:hover { border-left-color: var(--accent-gold); background: var(--glass-bg); }
.step__num { font-size: 2rem; font-weight: 700; color: rgba(255,255,255,0.1); line-height: 1; }
.step__content h3 { margin-bottom: 5px; font-size: 1.2rem; }
.step__content p { font-size: 0.9rem; color: var(--text-muted); }

/* --- Tariffs --- */
.tabs-controls { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tab-btn {
    padding: 10px 30px;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 30px;
    transition: var(--transition);
}
.tab-btn.active { background: var(--accent-gold); color: #000; border-color: var(--accent-gold); }
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }

.tariff-card { display: flex; flex-direction: column; position: relative; }
.tariff-card--featured { border-color: var(--accent-gold); transform: scale(1.05); z-index: 2; }
.tariff-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: #000;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    text-transform: uppercase;
}
.tariff-head { text-align: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--glass-border); }
.tariff-head .price { font-size: 1.8rem; font-weight: 700; color: #fff; margin-top: 10px; }
.tariff-head .price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.tariff-card .check-list { margin-bottom: 30px; flex-grow: 1; }
.tariff-desc { text-align: center; color: var(--accent-gold); margin-bottom: 15px; font-size: 0.9rem; }

/* --- Cases & Reviews --- */
.case-stat { font-size: 2.5rem; font-weight: 700; color: var(--accent-gold); margin-bottom: 10px; }
.review-text { font-style: italic; margin-bottom: 20px; color: #ccc; }
.review-author strong { display: block; color: #fff; }
.review-author span { font-size: 0.8rem; color: var(--text-muted); }

/* --- FAQ --- */
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--glass-border); margin-bottom: 10px; }
.faq-item summary {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
}
.faq-item summary::after { content: '+'; position: absolute; right: 0; color: var(--accent-gold); }
.faq-item[open] summary::after { content: '-'; }
.faq-content { padding-bottom: 20px; color: var(--text-muted); font-size: 0.95rem; }

/* --- Contacts --- */
.contacts-wrapper { text-align: center; max-width: 700px; margin: 0 auto; }
.contacts-subtitle { color: var(--text-muted); margin-bottom: 40px; }
.contacts-info { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.contact-item span { color: var(--accent-gold); font-size: 0.9rem; display: block; margin-bottom: 5px; }
.contact-item a, .contact-item p { font-size: 1.2rem; font-weight: 600; }
.contacts-actions { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.copy-message { color: var(--accent-gold); font-size: 0.8rem; margin-top: 10px; opacity: 0; transition: 0.3s; }
.copy-message.visible { opacity: 1; }

/* --- Footer --- */
.footer { padding: 40px 0; border-top: 1px solid var(--glass-border); font-size: 0.9rem; color: var(--text-muted); }
.footer__container { display: flex; justify-content: space-between; align-items: center; }

/* --- Animations & Effects --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.fade-in, .fade-in-up, .fade-in-left, .fade-in-right { opacity: 0; transition: 0.8s ease-out; }
.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }

.visible { opacity: 1; transform: translate(0); }

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* Cursor */
.cursor-light {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    display: none;
}

/* Snow Canvas */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gold);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 90;
}
.scroll-top.active { opacity: 1; pointer-events: auto; }

/* --- Media Queries --- */
@media (min-width: 1025px) {
    .cursor-light { display: block; }
}

@media (max-width: 1024px) {
    .hero__container { flex-direction: column; text-align: center; }
    .hero__buttons { justify-content: center; }
    .hero__trust { justify-content: center; }
    .hero__img { width: 100%; max-width: 400px; height: auto; }
    .tariff-card--featured { transform: none; }
}

@media (max-width: 768px) {
    .nav { display: none; } /* Simplified for this demo, usually needs mobile menu JS */
    .burger { display: flex; }
    .header__actions { display: none; } /* Hide on mobile header to save space */
    h1 { font-size: 2rem; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .process-steps { gap: 15px; }
    .step { flex-direction: column; gap: 10px; }
    .footer__container { flex-direction: column; gap: 20px; text-align: center; }
}