:root {
    --blue: #2C5F7C;
    --blue-dark: #1E4A63;
    --blue-deeper: #163A4F;
    --sage: #6B8E7B;
    --ochre: #C4956A;
    --ivory: #F5F0EB;
    --ivory-dark: #EDE5DC;
    --graphite: #4A4A4A;
    --graphite-light: #7A7A7A;
    --white: #FDFAF7;
    --font-logo: 'Noto Serif', Georgia, serif;
    --font-heading: 'Golos Text', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', 'Golos Text', system-ui, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 32px rgba(30, 74, 99, 0.10);
    --shadow-sm: 0 4px 14px rgba(30, 74, 99, 0.08);
}

* { box-sizing: border-box; }

html {
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--graphite);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
}

a { color: var(--blue); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ============ Header ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 250, 247, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 95, 124, 0.10);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand-name { font-family: var(--font-logo); font-weight: 700; font-size: 1.2rem; color: var(--blue-dark); }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--graphite); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--blue); }
.header-right { display: flex; align-items: center; gap: 14px; }
.header-phone { color: var(--blue-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.status { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--graphite-light); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* ============ Hero ============ */
.hero {
    background: linear-gradient(140deg, var(--blue-deeper) 0%, var(--blue-dark) 45%, var(--blue) 100%);
    color: #fff;
    padding: 60px 0 48px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.08;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.hero-lead { font-size: 1.08rem; opacity: 0.92; margin: 0 0 26px; max-width: 540px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-primary { background: #fff; color: var(--blue-dark); }
.btn-outline { border: 2px solid rgba(255, 255, 255, 0.5); color: #fff; background: transparent; }
.btn-messenger {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.14);
    color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.btn-messenger svg { width: 20px; height: 20px; }
.btn-messenger.max { background: #5B21B6; }
.btn-messenger.vk { background: #0077FF; }
.hero-info { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.hero-info b { display: block; font-size: 1.05rem; }
.hero-info span { font-size: 0.8rem; opacity: 0.75; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; filter: grayscale(100%); transition: filter 0.6s ease, transform 0.6s ease; }
.hero-media:hover img { filter: grayscale(0%); transform: scale(1.02); }

/* ============ Trust strip ============ */
.trust { padding: 28px 0; border-bottom: 1px solid rgba(44, 95, 124, 0.08); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.trust-item svg { width: 34px; height: 34px; color: var(--blue); flex-shrink: 0; }
.trust-item b { display: block; color: var(--blue-dark); font-family: var(--font-heading); }
.trust-item span { font-size: 0.82rem; color: var(--graphite-light); }

/* ============ Sections ============ */
.section { padding: 60px 0; }
.section-alt { background: var(--ivory); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-title { font-family: var(--font-heading); font-size: 1.9rem; color: var(--blue-dark); margin: 0 0 10px; }
.section-sub { color: var(--graphite-light); margin: 0; }
.deco { color: var(--ochre); }

/* ============ Calculator ============ */
.calc-card { background: #fff; border: 1px solid rgba(44, 95, 124, 0.10); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
.calc-label { font-weight: 700; color: var(--blue-dark); margin-bottom: 12px; }
.weight-display { text-align: center; font-family: var(--font-heading); font-size: 2rem; color: var(--blue-dark); margin-bottom: 8px; }
.weight-slider { width: 100%; accent-color: var(--blue); }
.weight-markers { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--graphite-light); margin-top: 6px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.type-cards { display: grid; gap: 12px; }
.type-card {
    display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid rgba(44, 95, 124, 0.12);
    border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s ease; background: #fff;
}
.type-card:hover { border-color: var(--blue); }
.type-card.selected { border-color: var(--blue); background: rgba(44, 95, 124, 0.05); }
.type-radio { width: 20px; height: 20px; border: 2px solid rgba(44, 95, 124, 0.3); border-radius: 50%; flex-shrink: 0; position: relative; }
.type-card.selected .type-radio { border-color: var(--blue); }
.type-card.selected .type-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); }
.type-name { font-weight: 700; color: var(--blue-dark); }
.type-hint { font-size: 0.78rem; color: var(--graphite-light); }
.type-price { margin-left: auto; font-family: var(--font-heading); font-weight: 700; color: var(--ochre); font-size: 1.05rem; white-space: nowrap; }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.extra-item {
    display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(44, 95, 124, 0.14);
    border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s ease; background: #fff;
}
.extra-item.checked { border-color: var(--blue); background: rgba(44, 95, 124, 0.05); }
.extras-section.disabled { opacity: 0.4; pointer-events: none; }
.extra-checkbox { width: 18px; height: 18px; border: 2px solid rgba(44, 95, 124, 0.3); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.extra-item.checked .extra-checkbox { background: var(--blue); border-color: var(--blue); }
.extra-name { font-weight: 600; color: var(--blue-dark); font-size: 0.85rem; }
.extra-price { margin-left: auto; font-weight: 700; color: var(--ochre); font-size: 0.85rem; white-space: nowrap; }
.extra-eye { width: 16px; height: 16px; color: var(--graphite-light); opacity: 0.4; cursor: pointer; flex-shrink: 0; }
.extra-eye:hover { opacity: 1; color: var(--blue); }
.extra-preview { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease; }
.extra-preview.open { max-height: 300px; opacity: 1; margin-top: 12px; }
.extra-preview-inner { display: flex; gap: 14px; border: 1px solid rgba(44, 95, 124, 0.12); border-radius: var(--radius-sm); padding: 14px; background: var(--ivory); position: relative; }
.extra-preview-img { width: 110px; height: 110px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: #fff; }
.extra-preview-img img { width: 100%; height: 100%; object-fit: contain; }
.extra-preview-name { font-weight: 700; color: var(--blue-dark); margin-bottom: 4px; }
.extra-preview-desc { font-size: 0.82rem; color: var(--graphite); margin-bottom: 8px; }
.extra-preview-price { font-weight: 700; color: var(--ochre); }
.extra-preview-close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 1px solid rgba(44, 95, 124, 0.2); border-radius: 50%; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--graphite); }
.calc-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 18px; background: var(--blue-dark); color: #fff; border-radius: var(--radius-sm); flex-wrap: wrap; }
.calc-total-amount { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; }
.calc-total-amount span { font-size: 1rem; }
.calc-total-breakdown { font-size: 0.8rem; opacity: 0.8; }
.price-toggle { display: block; margin: 18px auto 0; background: none; border: none; color: var(--blue); cursor: pointer; font-weight: 600; }
.price-table-wrap { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.price-table-wrap.open { max-height: 600px; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.price-table th, .price-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid rgba(44, 95, 124, 0.08); }
.price-table th { background: rgba(44, 95, 124, 0.06); color: var(--blue-dark); font-family: var(--font-heading); }

/* ============ Steps ============ */
.steps-toggle { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.steps-toggle button {
    padding: 12px 22px; border-radius: 999px; border: 2px solid rgba(44, 95, 124, 0.2);
    background: #fff; color: var(--graphite); font-weight: 600; cursor: pointer; font-size: 0.9rem;
}
.steps-toggle button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { background: #fff; border: 1px solid rgba(44, 95, 124, 0.10); border-radius: var(--radius); padding: 22px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); }
.step-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: rgba(44, 95, 124, 0.14); line-height: 1; }
.step-title { font-family: var(--font-heading); font-weight: 700; color: var(--blue-dark); }
.step-desc { font-size: 0.82rem; color: var(--graphite); }
.step-badge { margin-top: auto; font-size: 0.72rem; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.step-detail { font-size: 0.78rem; color: var(--graphite-light); border-top: 1px solid rgba(44, 95, 124, 0.08); padding-top: 8px; }

/* ============ Footer ============ */
.site-footer { background: var(--blue-deeper); color: #d7e3ea; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-title { color: #fff; font-family: var(--font-heading); margin: 0 0 12px; font-size: 1rem; }
.footer a { color: #d7e3ea; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-phone { color: #fff; font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.footer-msg { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-msg a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.footer-msg a svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: rgba(215, 227, 234, 0.7); }

/* Mobile fixed call bar */
.mobile-call { display: none; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .calc-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .site-nav { display: none; }
    .status { display: none; }
    .site-header .container { padding-right: 12px; }
}
@media (max-width: 560px) {
    .trust-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .extras-grid { grid-template-columns: 1fr; }
    .hero { padding: 40px 0 32px; }
    .section { padding: 40px 0; }
    .mobile-call {
        display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
        background: var(--blue); color: #fff; border-radius: 999px; padding: 14px;
        align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600;
        box-shadow: var(--shadow);
    }
    .mobile-call svg { width: 20px; height: 20px; }
    body { padding-bottom: 80px; }
}
