/*
    Стиль для лендинга эвакуатора:
    - фон: дорога bg.jpg (fixed)
    - фиксированная шапка
    - блоки пошире
    - мягкое затемнение для читаемости
    - аккуратные тени под блоками
*/

:root {
    --bg-card: #ffffff;
    --accent: #ea580c;
    --accent-soft: #fee2c5;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-soft: #e5e7eb;
    --radius: 12px;
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.18);
    --max-width: 1140px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: url('bg.jpg') center center / cover no-repeat fixed;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 0;
}

/* затемняющая «вуаль» над дорогой для читаемости */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
    pointer-events: none;
}

.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== HEADER ===== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffffdd;
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
}
.logo-mark img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}


.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    font-size: 15px;
    font-weight: 600;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.header-phone {
    text-align: right;
    font-size: 13px;
}

.header-phone-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.header-phone-number {
    font-size: 18px;
    font-weight: 600;
}

.header-phone-number a {
    text-decoration: none;
}

/* отступ, чтобы контент не заезжал под шапку */

main {
    flex: 1;
    padding-top: 74px;
}

/* ===== ГЛОБАЛЬНЫЕ СЕКЦИИ / КАРТОЧКИ ===== */

.section {
    padding: 24px 0;
}

.section-header {
    margin-bottom: 12px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* все основные блоки-«карточки» */

.hero-card,
.card,
.pricing-block,
.pricing-result,
.review-card,
.contacts-card,
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    padding: 16px 14px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-soft);
}

/* мягкая тень на асфальте под блоками */

.hero-card::before,
.card::before,
.pricing-block::before,
.pricing-result::before,
.review-card::before,
.contacts-card::before,
.form-card::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 78%;
    height: 24px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.32) 0, rgba(0, 0, 0, 0) 60%);
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
}

/* ===== HERO ===== */

.hero {
    padding: 32px 0 24px;
}

.hero-card {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
    gap: 20px;
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-title {
    font-size: clamp(24px, 3.3vw, 30px);
    font-weight: 700;
    line-height: 1.25;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.hero-badge {
    font-size: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: #f9fafb;
    color: var(--text-muted);
}

.hero-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
    text-decoration: none;
}

.btn-main span:last-child {
    margin-left: 6px;
}

.btn-main:hover {
    text-decoration: none;
    filter: brightness(1.03);
}

.btn-main_form {
    margin-top: 4px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: #ffffff;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: #f9fafb;
    text-decoration: none;
}

.hero-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.hero-side {
    display: flex;
    align-items: stretch;
}

.hero-panel {
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid var(--border-soft);
    padding: 14px 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-panel-title {
    font-size: 13px;
    font-weight: 600;
}

.hero-panel-list {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 18px;
}

.hero-panel-list li {
    margin-bottom: 4px;
}

.hero-panel-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== УСЛУГИ ===== */

.section-services {
    padding-top: 10px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.card-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-meta {
    font-size: 12px;
}

.card-meta span {
    font-weight: 600;
}

/* ===== ЦЕНЫ + КАЛЬКУЛЯТОР ===== */

.section-pricing {
    padding-top: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
    gap: 16px;
    align-items: stretch;
}

.pricing-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pricing-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.calc-group {
    margin-bottom: 12px;
}

.calc-label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

/* слайдер расстояния */

#calc-distance {
    width: 100%;
    appearance: none;
    height: 4px;
    border-radius: 999px;
    background: #e5e7eb;
    outline: none;
}

#calc-distance::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
    cursor: pointer;
}

#calc-distance::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
    cursor: pointer;
}

.calc-distance-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 4px;
    gap: 8px;
}

.calc-distance-value {
    font-size: 13px;
    font-weight: 600;
}

.calc-distance-hint {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

/* тип авто */

.calc-type-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.calc-type-btn {
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: #ffffff;
    cursor: pointer;
    color: var(--text-main);
}

.calc-type-btn_active {
    border-color: var(--accent);
    background: #fef3c7;
}

/* результат */

.pricing-right {
    display: flex;
    align-items: stretch;
}

.pricing-result {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-result-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.price-result-main {
    font-size: 24px;
    font-weight: 700;
}

.price-result-breakdown {
    font-size: 13px;
    color: var(--text-muted);
}

.price-result-note {
    font-size: 12px;
    color: var(--text-muted);
}

.price-result-note strong a {
    text-decoration: none;
}

.pricing-bottom-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== ОТЗЫВЫ ===== */

.section-reviews {
    padding-top: 16px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 4px;
}

.review-author {
    font-size: 13px;
    font-weight: 600;
}

.review-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.review-stars {
    font-size: 13px;
}

.review-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== КОНТАКТЫ + ФОРМА ===== */

.section-contacts {
    padding-top: 16px;
    padding-bottom: 20px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
    gap: 16px;
}

.contacts-row {
    margin-bottom: 10px;
}

.contacts-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contacts-value {
    font-size: 15px;
    font-weight: 600;
}

.contacts-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* форма */

.form-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 8px;
}

.form-label {
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
}

.form-input,
.form-textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    padding: 7px 9px;
    font-size: 13px;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: 1px solid var(--accent);
    border-color: var(--accent);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-alert {
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
    margin-bottom: 8px;
}

.form-alert-success {
    background: #ecfdf3;
    border: 1px solid #22c55e;
    color: #166534;
}

.form-alert-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.form-footer-text {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */

footer {
    padding: 12px 0 14px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-soft);
    background: #ffffffdd;
    backdrop-filter: blur(6px);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contacts-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-phone {
        text-align: left;
    }

    .cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .reviews-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card {
        padding: 14px 12px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 20px 0;
    }

    main {
        padding-top: 78px;
    }
}
