/* ============================================================
   Ростов-Автоломбард.рф — современная тема
   ============================================================ */

:root {
    --color-bg: #ffffff;
    --color-bg-soft: #f5f7fa;
    --color-bg-muted: #eef1f5;
    --color-dark: #1a2332;
    --color-dark-soft: #243044;
    --color-text: #2d3748;
    --color-text-soft: #5a6b7d;
    --color-muted: #8b98a8;
    --color-line: #e2e8f0;

    --color-accent: #ff6b35;
    --color-accent-hover: #e85a28;
    --color-accent-soft: rgba(255, 107, 53, .1);
    --color-accent-glow: rgba(255, 107, 53, .35);

    --color-gold: #f4c430;

    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(26, 35, 50, .06);
    --shadow: 0 8px 24px rgba(26, 35, 50, .08);
    --shadow-lg: 0 16px 48px rgba(26, 35, 50, .12);
    --shadow-accent: 0 8px 24px rgba(255, 107, 53, .3);

    --font-display: 'Unbounded', 'Manrope', sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    --container: 1200px;
    --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ============ БАЗА ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--color-text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-dark);
    letter-spacing: -.01em;
}

h1, .h1 { font-size: 42px; line-height: 1.15; }
h2, .h2 { font-size: 32px; }
h3, .h3 { font-size: 22px; }
h4, .h4 { font-size: 18px; }
h5, .h5 { font-size: 16px; }
h6, .h6 { font-size: 14px; }

p { margin: 0 0 1rem; font-size: 16px; line-height: 1.7; color: var(--color-text-soft); }
.text-accent { color: var(--color-accent); }

@media (max-width: 991px) {
    h1, .h1 { font-size: 32px; }
    h2, .h2 { font-size: 26px; }
    h3, .h3 { font-size: 20px; }
}
@media (max-width: 767px) {
    h1, .h1 { font-size: 26px; }
    h2, .h2 { font-size: 22px; }
    h3, .h3 { font-size: 18px; }
    p { font-size: 15px; }
}

/* ============ КОНТЕЙНЕР И СЕКЦИИ ============ */
.container {
    width: 100%;
    max-width: var(--container);
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
}
@media (min-width: 768px) { .container { max-width: 740px; } }
@media (min-width: 992px) { .container { max-width: 980px; } }
@media (min-width: 1200px) { .container { max-width: 1200px; } }

section { padding: 60px 0; position: relative; }
@media (max-width: 767px) { section { padding: 30px 0; } }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}
.section-title { margin-bottom: 12px; }
.section-subtitle { font-size: 17px; color: var(--color-text-soft); margin: 0; }

/* ============ КНОПКИ ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: .01em;
}

.btn-primary {
    color: #fff;
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--color-accent-glow);
}

.btn-outline {
    color: var(--color-text);
    background: transparent;
    border-color: var(--color-line);
}
.btn-outline:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ============ HEADER ============ */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
}

.inner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.inner-brand { flex-shrink: 0; }
.inner-brand img { width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 15px; font-weight: 600; color: var(--color-text); }
.main-nav a:hover { color: var(--color-accent); }

.header-contacts { display: flex; align-items: center; gap: 12px; }

.header-phone {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--color-dark);
    white-space: nowrap;
}
.header-phone:hover { color: var(--color-accent); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft);
    cursor: pointer;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 1199px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
}
@media (max-width: 767px) {
    .header-phone { font-size: 15px; }
    .inner-brand img { height: 36px; }
}

/* ============ HERO ============ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-soft) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero { padding: 140px 0 80px; position: relative; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: .02em;
}

.hero-title { font-size: 46px; line-height: 1.1; margin-bottom: 20px; }
.hero-subtitle { font-size: 18px; color: var(--color-text-soft); margin-bottom: 32px; max-width: 520px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.hero-stat { padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; }
.hero-stat-icon { width: 40px; height: 40px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.hero-stat-icon img { max-height: 36px; width: auto; }
.hero-stat-value { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--color-dark); margin-bottom: 4px; }
.hero-stat-label { font-size: 12px; color: var(--color-muted); }

.hero-features { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-feature {
    padding: 8px 16px 8px 32px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-soft);
    position: relative;
}
.hero-feature::before {
    content: '✓';
    position: absolute;
    left: 12px;
    color: var(--color-accent);
    font-weight: 800;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-card { background: #fff; border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-lg); position: relative; }
.hero-card-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 24px; color: var(--color-dark); }

@media (max-width: 991px) {
    .hero { padding: 120px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 34px; }
    .hero-subtitle { font-size: 16px; }
    .hero-visual { order: -1; }
    .hero-card { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 767px) {
    .hero { padding: 100px 0 40px; }
    .hero-title { font-size: 28px; }
    .hero-stats { grid-template-columns: 1fr; gap: 12px; }
    .hero-stat { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px; }
    .hero-stat-icon { margin: 0; flex-shrink: 0; }
    .hero-actions .btn { width: 100%; }
    .hero-card { padding: 28px 24px; }
}

/* ============ ФОРМЫ ============ */
.form-group { margin-bottom: 18px; position: relative; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--color-text-soft); margin-bottom: 8px; }
.form-control {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-soft); }
.form-control::placeholder { color: var(--color-muted); }

.personal-data { font-size: 12px; line-height: 1.5; color: var(--color-muted); margin-bottom: 16px; }
.personal-data a { color: var(--color-accent); text-decoration: underline; }
.personal-data a:hover { text-decoration: none; }

.error { color: #e53e3e; font-size: 12px; }

/* ============ ПРОДУКТЫ ============ */
.section-products { background: var(--color-bg); }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.product-card {
    display: block;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: inherit;
}
.product-card-image {
    height: 180px;
    background: var(--color-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.product-card-image img { max-height: 140px; width: auto; object-fit: contain; transition: transform var(--transition); }
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-body { padding: 24px; }
.product-card-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 6px; color: var(--color-dark); }
.product-card-text { font-size: 14px; color: var(--color-text-soft); margin: 0; }

@media (max-width: 991px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } .product-card-image { height: 140px; } }

/* ============ КАЛЬКУЛЯТОР ============ */
.section-calculator { background: var(--color-bg-soft); }

.calculator-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.calculator-panel { display: flex; flex-direction: column; gap: 40px; }
.calc-field { display: flex; flex-direction: column; gap: 12px; }

.calc-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.calc-field-head h6 { margin: 0; font-family: var(--font-body); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-soft); }
.calc-field-value { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--color-accent); line-height: 1; white-space: nowrap; }
.calc-unit { font-size: 14px; font-weight: 500; color: var(--color-text-soft); margin-left: 4px; }

.calc-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 100px;
    background: var(--color-bg-muted);
    outline: none;
    cursor: pointer;
    margin: 8px 0;
    transition: background .15s;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--color-accent);
    box-shadow: 0 4px 12px rgba(255, 107, 53, .35);
    cursor: grab;
    transition: transform .15s, box-shadow .15s;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(255, 107, 53, .5); }
.calc-range::-webkit-slider-thumb:active { cursor: grabbing; }

.calc-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--color-accent);
    box-shadow: 0 4px 12px rgba(255, 107, 53, .35);
    cursor: grab;
}
.calc-range::-moz-range-thumb:hover { box-shadow: 0 6px 16px rgba(255, 107, 53, .5); }

.calc-range-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--color-muted); }

.calc-result { margin-top: auto; padding: 24px 28px; background: var(--color-bg-soft); border-radius: var(--radius); border: 2px dashed var(--color-accent-soft); }
.calc-result-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-soft); margin-bottom: 10px; }
.calc-result-value { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--color-dark); line-height: 1; }
.calc-result-currency { font-size: 22px; color: var(--color-text-soft); font-weight: 600; }
.calc-result-note { margin-top: 12px; font-size: 12px; color: var(--color-muted); line-height: 1.5; }

.calculator-form-panel { background: var(--color-bg-soft); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; }
.calculator-form-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 8px; color: var(--color-dark); }
.calculator-form-subtitle { font-size: 14px; color: var(--color-text-soft); margin: 0 0 24px; }
.calculator-form-panel .form-group label { color: var(--color-text); }
.calculator-form-panel .form-control { background: #fff; }
.calculator-form-panel .btn { margin-top: 8px; }

@media (max-width: 991px) {
    .calculator-grid { grid-template-columns: 1fr; padding: 32px; }
    .calc-result-value { font-size: 32px; }
}
@media (max-width: 767px) {
    .calculator-grid { padding: 24px 20px; gap: 20px; }
    .calculator-panel { gap: 28px; }
    .calculator-form-panel { padding: 24px 20px; }
    .calc-field-value { font-size: 20px; }
    .calc-result { padding: 20px; }
    .calc-result-value { font-size: 28px; }
    .calc-range::-webkit-slider-thumb { width: 24px; height: 24px; }
}

/* ============ КАК ПОЛУЧИТЬ ============ */
.section-how { background: var(--color-bg); }

.how-tabs { max-width: 1000px; margin: 0 auto; }

.tabs-nav { display: flex; gap: 8px; margin-bottom: 32px; border-bottom: 2px solid var(--color-line); flex-wrap: wrap; }
.tab-btn {
    padding: 16px 24px;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-muted);
    cursor: pointer;
    position: relative;
    transition: color var(--transition);
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }

.tabs-content .tab-pane { display: none; }
.tabs-content .tab-pane.active { display: block; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--color-bg-soft); border-radius: var(--radius); padding: 32px 28px; position: relative; transition: all var(--transition); }
.step-card:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-4px); }
.step-icon { width: 64px; height: 64px; background: #fff; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.step-icon img { max-height: 40px; width: auto; }
.step-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--color-dark); }
.step-text { font-size: 14px; color: var(--color-text-soft); }

.step-card-doc .step-title { font-size: 17px; }
.step-card-doc .step-text { line-height: 1.55; }

.list-ul li { position: relative; padding-left: 36px; margin-bottom: 18px; font-size: 16px; line-height: 1.6; color: var(--color-text); }
.list-ul li:before { content: ''; position: absolute; left: 0; top: 12px; width: 20px; height: 2px; background: var(--color-accent); border-radius: 1px; }

.inline-form-wrap { background: var(--color-bg-soft); border-radius: var(--radius); padding: 32px; }
.inline-form-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.inline-form-grid .form-group { margin-bottom: 0; }
.form-group-submit { min-width: 200px; }

@media (max-width: 991px) {
    .steps-grid { grid-template-columns: 1fr; }
    .inline-form-grid { grid-template-columns: 1fr; }
    .form-group-submit { min-width: auto; }
}
@media (max-width: 767px) {
    .tabs-nav { gap: 4px; }
    .tab-btn { padding: 12px 16px; font-size: 14px; }
    .step-card { padding: 24px 20px; }
    .inline-form-wrap { padding: 24px 20px; }
}

/* ============ INTERLAYER ============ */
.section-interlayer { padding: 40px 0; }

.interlayer-loan {
    position: relative;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
}
.interlayer-loan::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,53,.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.interlayer-grid { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.interlayer-loan-item { padding: 40px 32px; color: #fff; }
.interlayer-loan-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,.1); }

.interlayer-loan-item-number { font-family: var(--font-display); font-weight: 700; font-size: 36px; color: var(--color-accent); margin-bottom: 16px; line-height: 1; }
.interlayer-loan-item-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 10px; color: #fff; }
.interlayer-loan-item-text { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.7); }

@media (max-width: 991px) {
    .interlayer-grid { grid-template-columns: repeat(2, 1fr); }
    .interlayer-loan-item:nth-child(2) { border-right: none; }
    .interlayer-loan-item:nth-child(1), .interlayer-loan-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 560px) {
    .interlayer-grid { grid-template-columns: 1fr; }
    .interlayer-loan-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.1); padding: 28px 24px; }
    .interlayer-loan-item:last-child { border-bottom: none; }
}

/* ============ ПРЕИМУЩЕСТВА ============ */
.section-advantages { background: var(--color-bg); }

.advantages-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 48px; }

.advantage-card { background: var(--color-bg-soft); border-radius: var(--radius); padding: 28px 24px; transition: all var(--transition); }
.advantage-card:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-4px); }
.advantage-icon { width: 56px; height: 56px; background: #fff; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.advantage-icon img { max-height: 36px; width: auto; }
.advantage-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 6px; color: var(--color-dark); }
.advantage-text { font-size: 13px; line-height: 1.5; color: var(--color-text-soft); }

.center-cta { text-align: center; }

@media (max-width: 1199px) { .advantages-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) { .advantages-grid { grid-template-columns: 1fr; } }

/* ============ ТРЕБОВАНИЯ ============ */
.section-requirements { background: var(--color-bg-soft); }

.requirements-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }

.image-max-height {
    height: 100%;
    min-height: 360px;
    border-radius: var(--radius-lg);
    background-color: var(--color-bg-muted);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.tabs-nav-3 { margin-bottom: 24px; }
.tabs-content-3 .tab-pane { display: none; }
.tabs-content-3 .tab-pane.active { display: block; }
.tabs-content-3 .list-ul { margin-bottom: 24px; }

@media (max-width: 991px) {
    .requirements-grid { grid-template-columns: 1fr; gap: 32px; }
    .image-max-height { min-height: 240px; }
}

/* ============ ДОКУМЕНТЫ ============ */
.section-documents { background: var(--color-bg); }

.documents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.documents-content .trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.documents-legal { background: var(--color-bg-soft); border-radius: var(--radius-lg); padding: 40px; }

@media (max-width: 991px) {
    .documents-grid { grid-template-columns: 1fr; gap: 32px; }
    .documents-content .trust-grid { grid-template-columns: 1fr; }
    .documents-legal { padding: 32px 24px; }
}

/* ============ ОТЗЫВЫ ============ */
.section-reviews { background: var(--color-bg-soft); }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.review-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.review-stars { color: var(--color-gold); font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.review-text { font-size: 15px; line-height: 1.7; color: var(--color-text-soft); margin-bottom: 24px; flex-grow: 1; }
.review-person { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--color-line); }
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.review-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--color-dark); }

@media (max-width: 991px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.section-faq { background: var(--color-bg); }

.faq-list { max-width: 860px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] { border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-soft); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--color-dark);
    cursor: pointer;
    list-style: none;
    transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: transform var(--transition), background var(--transition);
}
.faq-item[open] summary::after { content: '−'; background: var(--color-accent); color: #fff; transform: rotate(180deg); }
.faq-item summary:hover { color: var(--color-accent); }
.faq-answer { padding: 0 28px 24px; font-size: 15px; line-height: 1.7; color: var(--color-text-soft); }

@media (max-width: 767px) {
    .faq-item summary { padding: 18px 20px; font-size: 15px; }
    .faq-answer { padding: 0 20px 20px; font-size: 14px; }
}

/* ============ КОНТАКТЫ ============ */
.section-map { background: var(--color-bg-soft); }

.contacts-card { max-width: 960px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); padding: 48px 40px; box-shadow: var(--shadow); }
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }

.contacts-block { padding: 0 24px; border-left: 2px solid var(--color-accent-soft); text-align: left; }
.contacts-block:first-child { padding-left: 0; border-left: none; }

.contacts-label { font-size: 13px; font-weight: 600; color: var(--color-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.contacts-value { font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--color-dark); font-weight: 600; }
.contacts-phone { display: inline-block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--color-accent); line-height: 1.2; }
.contacts-phone:hover { color: var(--color-accent-hover); }

.contacts-action { text-align: center; padding-top: 24px; border-top: 1px solid var(--color-line); }
.contacts-action .btn { min-width: 260px; }

@media (max-width: 991px) {
    .contacts-grid { grid-template-columns: 1fr; gap: 24px; }
    .contacts-block { padding: 0; border-left: none; }
    .contacts-block:not(:last-child) { padding-bottom: 20px; border-bottom: 1px solid var(--color-line); }
    .contacts-card { padding: 32px 24px; }
    .contacts-action .btn { width: 100%; min-width: auto; }
}

/* ============ FOOTER ============ */
.footer { background: var(--color-dark); color: rgba(255,255,255,.85); padding: 60px 0 40px; }
.footer a { color: rgba(255,255,255,.7); transition: color var(--transition), transform var(--transition); }
.footer a:hover { color: var(--color-accent); }

.footer-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-logo { display: inline-flex; align-items: center; justify-content: center; background: #fff; padding: 8px 16px; border-radius: var(--radius-sm); margin-bottom: 8px; }
.footer-logo img { width: auto; max-height: 48px; }

.footer-links { display: flex; justify-content: flex-end; }
.footer-col-wide { width: 100%; max-width: 480px; }
.footer-col-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 32px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid rgba(255,255,255,.1); }

.footer-li-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.footer-li li { margin-bottom: 0; }
.footer-li a { font-size: 15px; display: inline-block; }
.footer-li a:hover { transform: translateX(4px); }

.footer-bottom p { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.4); margin: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
    .footer-li-split { grid-template-columns: 1fr; gap: 14px; }
}

/* ============ МОДАЛКИ ============ */
.modal { position: fixed; inset: 0; z-index: 1050; display: none; overflow-y: auto; outline: 0; padding: 20px; }
.modal.show { display: flex; align-items: center; justify-content: center; }
.modal-dialog { position: relative; width: 100%; max-width: 480px; margin: auto; }
.modal-content { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 40px 32px 32px; box-shadow: var(--shadow-lg); }

.modal-header { margin-bottom: 24px; }
.modal-header h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 0; color: var(--color-dark); }

.modal .close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--color-bg-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition); z-index: 10; }
.modal .close::before { content: '×'; font-size: 24px; line-height: 1; color: var(--color-text-soft); }
.modal .close span { display: none; }
.modal .close:hover { background: var(--color-accent-soft); }
.modal .close:hover::before { color: var(--color-accent); }

.modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(26, 35, 50, .6); backdrop-filter: blur(4px); display: none; }
.modal-backdrop.show { display: block; }
body.modal-open { overflow: hidden; }

@media (max-width: 480px) {
    .modal-content { padding: 32px 24px 24px; }
    .modal-header h2 { font-size: 20px; }
}

/* ============ ОФФКАНВАС ============ */
.off-canvas-sidebar { position: fixed; top: 0; right: 0; width: 100%; max-width: 360px; height: 100%; z-index: 9999; transform: translateX(100%); transition: transform .3s ease-out; background: var(--color-dark); overflow-y: auto; }
body.off-canvas-open .off-canvas-sidebar { transform: translateX(0); }
body.off-canvas-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9998; backdrop-filter: blur(2px); }

.off-canvas-header { display: flex; justify-content: flex-end; padding: 20px; }
.off-canvas-close { width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.off-canvas-close:hover { background: var(--color-accent); }

.off-canvas-content { padding: 0 28px 40px; }
.off-canvas-li { margin-bottom: 32px; }
.off-canvas-li li { margin-bottom: 16px; }
.off-canvas-li a { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: #fff; }
.off-canvas-li a:hover { color: var(--color-accent); }

.off-canvas-phone { margin-bottom: 24px; }
.off-canvas-phone a { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; }
.off-canvas-phone a:hover { color: var(--color-accent); }

/* ============ КНОПКА НАВЕРХ ============ */
.gotopbtn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-accent);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.gotopbtn.visible { opacity: 1; visibility: visible; }
.gotopbtn:hover { background: var(--color-accent-hover); color: #fff; transform: translateY(-3px); }

@media (max-width: 767px) {
    .gotopbtn { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ============ ЭФИР ЗАЯВОК ============ */
.section-live-feed { background: var(--color-bg); position: relative; overflow: hidden; }
.section-live-feed::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: radial-gradient(circle, var(--color-accent-soft) 0%, transparent 60%); pointer-events: none; z-index: 0; }

.live-feed-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(26, 35, 50, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

.live-feed-header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 28px; background: rgba(255, 255, 255, 0.5); border-bottom: 1px solid rgba(0, 0, 0, 0.05); }

.live-dot { width: 10px; height: 10px; background: #e53e3e; border-radius: 50%; position: relative; box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); animation: pulse-red 1.5s infinite; }
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

.live-status { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--color-dark); letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }

.live-counter { margin-left: auto; font-size: 14px; color: var(--color-text-soft); background: rgba(255, 255, 255, 0.6); padding: 6px 14px; border-radius: 100px; border: 1px solid var(--color-line); }
.live-counter b { color: var(--color-accent); font-family: var(--font-display); font-size: 16px; }

.live-feed-list {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 28px 20px;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
}

.live-feed-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(26, 35, 50, 0.04);
    border: 1px solid transparent;
    animation: pop-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.live-feed-item.is-new { border-color: var(--color-accent-soft); box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15); transform: scale(1.02); }

@keyframes pop-in {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    70% { transform: translateY(-2px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.live-feed-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent-soft), #fff);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.live-feed-content { flex-grow: 1; }
.live-feed-title { font-size: 15px; font-weight: 600; color: var(--color-dark); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.live-feed-title b { color: var(--color-accent); font-family: var(--font-display); font-size: 16px; }

.live-feed-meta { display: flex; gap: 12px; font-size: 12px; color: var(--color-muted); font-weight: 500; }
.live-feed-meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.live-feed-footer { padding: 24px; background: rgba(255, 255, 255, 0.5); border-top: 1px solid rgba(0, 0, 0, 0.05); text-align: center; }

/* ============ СТРАНИЦА ПОЛИТИКИ ============ */
body:has(.privacy-card) {
    background: var(--color-bg-soft);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.privacy-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition);
}
.back-link:hover { color: var(--color-accent); }
.back-link span { font-size: 18px; line-height: 1; }

.privacy-main {
    flex-grow: 1;
    padding: 60px 0;
}

.privacy-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 60px 80px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.privacy-card h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 16px;
    line-height: 1.2;
}

.privacy-meta {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-line);
}

.privacy-content p {
    margin: 0 0 24px;
    color: var(--color-text-soft);
    font-size: 16px;
    line-height: 1.7;
}

.privacy-content ul {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.privacy-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--color-text-soft);
    font-size: 16px;
    line-height: 1.7;
}

.privacy-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.privacy-content a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
.privacy-content a:hover { text-decoration: underline; }
.privacy-content strong { font-weight: 700; color: var(--color-dark); }

@media (max-width: 768px) {
    .privacy-card { padding: 40px 24px; border-radius: var(--radius); }
    .privacy-card h1 { font-size: 26px; }
    .privacy-main { padding: 40px 0; }
}
@media (max-width: 480px) {
    .privacy-card { padding: 30px 20px; }
    .privacy-card h1 { font-size: 22px; }
}

/* ============ ВНУТРЕННИЕ СТРАНИЦЫ ============ */
.page-content {
    padding: 40px 0 60px;
}

/* Карточки документов */
.documents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.documents-content .trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.documents-legal {
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    padding: 40px;
}

@media (max-width: 991px) {
    .documents-grid { grid-template-columns: 1fr; gap: 32px; }
    .documents-content .trust-grid { grid-template-columns: 1fr; }
    .documents-legal { padding: 32px 24px; }
}

/* Кнопка "Подать заявку" в секции преимуществ */
.center-cta {
    text-align: center;
}

/* Подвал для внутренних страниц */
footer.footer {
    padding: 40px 0 20px;
}

/* ============ ЭФИР ЗАЯВОК (Адаптив) ============ */
@media (max-width: 767px) {
    .section-live-feed::before {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none;
    }
    
    .live-feed-wrap {
        border-radius: var(--radius);
        background: #fff; /* Отключаем полупрозрачность для производительности */
    }
    
    .live-feed-header {
        padding: 14px 20px;
        gap: 8px;
    }
    
    .live-status {
        font-size: 11px;
    }
    
    .live-counter {
        font-size: 12px;
        padding: 4px 10px;
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }
    .live-counter b {
        font-size: 14px;
    }

    .live-feed-list {
        padding: 0 16px 16px;
    }

    .live-feed-item {
        padding: 12px;
        gap: 12px;
        border-radius: var(--radius-sm);
    }

    .live-feed-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .live-feed-title {
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 6px;
    }
    .live-feed-title b {
        font-size: 15px;
    }

    .live-feed-meta {
        flex-wrap: wrap;
        gap: 6px 12px;
        font-size: 11px;
    }
    /* Скрываем иконку машины на мобильных, чтобы влезло */
    .live-feed-meta span:first-child {
        display: none; 
    }

    .live-feed-footer {
        padding: 16px;
    }
}