:root {
    /* Цветовая палитра: Темный финтех + Неон */
    --c-bg: #f4f4f5; 
    --c-dark: #09090b; 
    --c-dark-soft: #18181b;
    --c-text: #09090b; 
    --c-text-light: #fafafa;
    --c-muted: #71717a; 
    --c-line: #e4e4e7;
    
    --c-accent: #d946ef; /* Яркий пурпурный/фуксия */
    --c-accent-hover: #c026d3;
    --c-green: #10b981;
    
    --radius-sm: 8px; 
    --radius: 16px; 
    --radius-pill: 999px;
    
    --font-title: 'Unbounded', sans-serif;
    --font-text: 'Plus Jakarta Sans', sans-serif;
    --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-text);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-title); margin: 0 0 20px; line-height: 1.1; font-weight: 700; text-transform: uppercase; }
h1 { font-size: clamp(32px, 5vw, 64px); letter-spacing: -1px; }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.5px; }
h3 { font-size: 20px; }
p { margin: 0 0 20px; font-size: 16px; }
a { color: inherit; text-decoration: none; transition: 0.3s ease; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* Кнопки-таблетки */
.btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    padding: 16px 32px; border-radius: var(--radius-pill); border: 2px solid transparent; 
    font-family: var(--font-text); font-weight: 700; font-size: 15px; cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary { background: var(--c-accent); color: #fff; box-shadow: 0 8px 24px rgba(217,70,239,0.3); }
.btn-primary:hover { background: var(--c-accent-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(217,70,239,0.4); }
.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-line); }
.btn-outline:hover { border-color: var(--c-text); }
.btn-dark { background: var(--c-dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-lg { padding: 20px 40px; font-size: 16px; }

/* Шапка (светлая, но с темными акцентами) */
.site-header { 
    position: sticky; top: 0; z-index: 100; background: rgba(244,244,245,0.8); 
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--c-line);
}
.header-main { display: flex; align-items: center; justify-content: space-between; height: 90px; gap: 24px; }
.logo img { height: 36px; width: auto; filter: brightness(0.1); }

.site-nav { display: flex; gap: 32px; }
.site-nav a { font-weight: 600; font-size: 15px; color: var(--c-muted); }
.site-nav a:hover { color: var(--c-dark); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.city-chip { 
    display: flex; align-items: center; gap: 8px; padding: 10px 16px; 
    border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--c-line); 
    font-weight: 600; font-size: 14px; cursor: pointer; 
}
.header-phone { display: none; }
.header-actions .btn { padding: 12px 24px; font-size: 14px; }

/* ГЛАВНЫЙ ЭКРАН (Темный блок) */
.hero-wrapper { padding: 40px 24px; }
.hero { 
    background: var(--c-dark); border-radius: 32px; padding: 80px 60px; 
    color: var(--c-text-light); position: relative; overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(9,9,11,0.3);
}
/* Свечение на фоне */
.hero::before { 
    content: ""; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; 
    background: radial-gradient(circle, rgba(217,70,239,0.2) 0%, transparent 70%); pointer-events: none; 
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 span { color: var(--c-accent); }
.hero-desc { font-size: 18px; color: #a1a1aa; margin-bottom: 40px; max-width: 480px; }

.hero-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.hero-feature { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: #fff; }
.hero-feature svg { color: var(--c-accent); flex: 0 0 auto; }

/* Калькулятор в темном блоке */
.calc-box {
    background: rgba(255,255,255,0.03); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 40px;
}
.calc-box h3 { color: #fff; margin-bottom: 32px; font-size: 24px; }
.calc-field { margin-bottom: 32px; }
.calc-field label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calc-field label span { font-size: 14px; color: #a1a1aa; text-transform: uppercase; letter-spacing: 1px; }
.calc-field .val { font-family: var(--font-title); font-size: 28px; font-weight: 700; color: #fff; }
.range { width: 100%; -webkit-appearance: none; height: 6px; border-radius: 3px; background: #3f3f46; outline: none; }
.range::-webkit-slider-thumb { 
    -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; 
    background: var(--c-accent); cursor: pointer; border: 4px solid #18181b; 
    box-shadow: 0 0 0 2px var(--c-accent); transition: 0.2s;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-inputs { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
.calc-inputs input {
    width: 100%; padding: 16px 20px; border-radius: 12px; border: 1px solid #3f3f46;
    background: #18181b; color: #fff; font-family: var(--font-text); font-size: 16px; outline: none;
}
.calc-inputs input:focus { border-color: var(--c-accent); }
.calc-result { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.calc-result .label { font-size: 15px; color: #a1a1aa; }
.calc-result .amount { font-family: var(--font-title); font-size: 32px; font-weight: 700; color: #fff; }
.calc-box .btn-primary { width: 100%; }
.calc-box .personal-data { font-size: 12px; color: #71717a; text-align: center; margin-top: 20px; }
.calc-box .personal-data a { color: #a1a1aa; text-decoration: underline; }

/* Транспорт (Горизонтальные баннеры) */
.section-header { text-align: center; margin-bottom: 60px; }
.products-list { display: grid; gap: 24px; }

.product-banner {
    display: flex; 
    align-items: stretch; 
    background: #fff; 
    border-radius: var(--radius);
    border: 1px solid var(--c-line); 
    transition: 0.3s; 
    min-height: 240px;
    padding: 12px; /* Добавили отступы от краёв баннера */
}

.product-banner:hover { 
    border-color: var(--c-accent); 
    transform: translateX(10px); 
}

.product-banner-img { 
    width: 300px;
    border-radius: var(--radius-sm); /* Скруглили саму картинку */
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    flex-shrink: 0; 
}

.product-banner-content { 
    padding: 20px 32px; /* Немного уменьшили внутренние отступы текста */
    width: calc(100% - 350px); /* Указали точную ширину */
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.product-banner-content h3 { 
    font-size: 28px; 
    margin-bottom: 12px; 
}

.product-banner-content p { 
    color: var(--c-muted); 
    margin-bottom: 24px; 
    font-size: 16px; 
}

.product-banner-content .btn { 
    align-self: flex-start; 
}

/* Преимущества (Строгая сетка с толстыми линиями) */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.adv { background: #fff; padding: 48px; display: flex; flex-direction: column; gap: 24px; }
.adv-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--c-bg); display: grid; place-items: center; color: var(--c-accent); }
.adv h3 { font-size: 22px; margin: 0; }
.adv p { margin: 0; color: var(--c-muted); font-size: 15px; }

/* CTA */
.cta-band { 
    background: var(--c-accent); border-radius: 32px; padding: 80px 40px; 
    display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; max-width: 800px; }
.cta-band p { font-size: 18px; margin-bottom: 40px; opacity: 0.9; }
.cta-phone { font-family: var(--font-title); font-size: 40px; font-weight: 700; display: block; margin-bottom: 24px; color: #fff; }
.cta-band .btn { background: #fff; color: var(--c-text); }

/* Футер */
.site-footer { background: var(--c-dark); color: #a1a1aa; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { height: 32px; margin-bottom: 24px; filter: brightness(0) invert(1); }
.footer-title { color: #fff; font-family: var(--font-title); font-size: 16px; margin-bottom: 24px; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-bottom { border-top: 1px solid #27272a; padding-top: 32px; font-size: 13px; color: #52525b; text-align: center; }

/* Модальные окна */
.modal { position: fixed; inset: 0; z-index: 1050; display: none; background: rgba(9,9,11,0.8); backdrop-filter: blur(8px); }
.modal.show { display: flex; align-items: center; justify-content: center; }
.modal-dialog { width: 100%; max-width: 440px; margin: 20px; }
.modal-content { background: #fff; border-radius: 24px; padding: 48px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); position: relative; }
.modal-header { margin-bottom: 32px; text-align: center; }
.modal-header h2 { font-size: 24px; margin-bottom: 8px; }
.close { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--c-bg); border: none; font-size: 20px; color: var(--c-muted); cursor: pointer; display: grid; place-items: center; }
.close:hover { background: var(--c-line); color: var(--c-text); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.form-control { width: 100%; padding: 16px 20px; border-radius: 12px; border: 2px solid var(--c-bg); background: var(--c-bg); font-family: var(--font-text); font-size: 16px; transition: 0.2s; }
.form-control:focus { outline: none; background: #fff; border-color: var(--c-accent); }

/* Адаптив */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero { padding: 40px 24px; }
    .site-nav { display: none; }
    .product-banner { flex-direction: column; min-height: auto; }
    .product-banner-img { width: 100%; height: 220px; }
    .product-banner-content { width: 100%; padding: 24px; }
    .adv-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .header-actions .btn-outline { display: none; }
}
@media (max-width: 640px) {
    .calc-box { padding: 24px; }
    .calc-field .val { font-size: 24px; }
    .header-actions .btn-primary { display: none; }
    .cta-phone { font-size: 28px; }
}