/* GM Trans — site design system */

:root {
    --primary: #0f2744;
    --primary-light: #1a3d66;
    --primary-soft: #2d5a8a;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-soft: rgba(249, 115, 22, 0.12);
    --dark: #0b1628;
    --heading-color: var(--heading-custom, #0f2744);
    --text-color: var(--text-custom, #334155);
    --text-muted: #64748b;
    --surface: #ffffff;
    --surface-muted: #f1f5f9;
    --surface-elevated: #ffffff;
    --border: rgba(15, 39, 68, 0.08);
    --border-strong: rgba(15, 39, 68, 0.14);
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #64748b;
    --gray-800: #1e293b;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(15, 39, 68, 0.06), 0 1px 2px rgba(15, 39, 68, 0.04);
    --shadow: 0 4px 24px rgba(15, 39, 68, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 39, 68, 0.12);
    --shadow-accent: 0 8px 28px rgba(249, 115, 22, 0.28);
    --radius: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --header-h: 76px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family, 'Manrope', 'Segoe UI', system-ui, sans-serif);
    font-size: var(--font-size-base, 16px);
    color: var(--text-color);
    background: var(--gray-100);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 24px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    justify-self: start;
    min-width: 0;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    justify-self: center;
}

.site-header .nav-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    transition: color var(--transition), background var(--transition);
}

.site-header .nav-menu a:hover,
.site-header .nav-menu a:focus-visible {
    color: var(--accent);
    background: var(--accent-soft);
    outline: none;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    justify-self: end;
}

.header-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white) !important;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.header-phone-btn:hover,
.header-phone-btn:focus-visible {
    background: var(--primary-light);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    outline: none;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--surface-muted);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 1.15rem;
    color: var(--primary);
    cursor: pointer;
    transition: background var(--transition);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
    background: var(--gray-200);
    outline: none;
}

main {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--surface-muted);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 12px 20px;
    font-size: 0.92rem;
}

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1628 0%, var(--primary) 45%, var(--primary-soft) 100%);
    color: var(--white);
    padding: 72px 0 88px;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}

.hero-glow {
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, transparent 68%);
    top: -120px;
    right: -100px;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-badge i {
    color: var(--accent);
}

.hero h1 {
    color: var(--white);
    font-size: clamp(1.85rem, 5.5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 14ch;
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 520px;
}

.hero-stat {
    padding: 18px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-stat strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.hero-stat span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

.hero-visual {
    display: none;
    position: relative;
}

.hero-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    color: var(--gray-800);
}

.hero-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent), #fb923c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow-accent);
}

.hero-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.hero-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.hero-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-800);
}

.hero-card-list i {
    color: var(--accent);
    width: 18px;
    text-align: center;
}

/* ── Sections ── */
.section {
    padding: 96px 0;
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-header h1,
.section-header h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.section-header-accent::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: 20px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ── Order section ── */
.order-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(15, 39, 68, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(249, 115, 22, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%);
}

.order-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230f2744' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.order-section > .container {
    position: relative;
    z-index: 1;
}

.order-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.order-form-panel {
    order: 1;
}

.order-map-block {
    order: 2;
    flex: 1;
    min-width: 0;
}

.order-panel {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.order-form {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.order-form-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.order-form-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.order-map {
    min-height: 420px;
    height: 100%;
    background: var(--gray-100);
}

.order-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

.address-group {
    position: relative;
}

.address-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.address-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    transition: background var(--transition);
}

.suggestion-item:hover {
    background: var(--surface-muted);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 0.88rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--surface);
    color: var(--gray-800);
}

.form-group textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.45;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
    opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 4px rgba(26, 61, 102, 0.1);
}

.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.checkbox-group {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary-soft);
    font-weight: 600;
}

.checkbox-group.input-error {
    padding: 12px;
    border: 1.5px solid #ef4444;
    border-radius: var(--radius-sm);
    background: #fef2f2;
}

.order-error {
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.checkbox-group.input-error .checkbox-label {
    color: #b91c1c;
}

/* ── Cars section ── */
.section-cars {
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(249, 115, 22, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 100%, rgba(45, 90, 138, 0.35), transparent 50%),
        linear-gradient(180deg, var(--dark) 0%, #152238 100%);
    color: var(--white);
}

.section-cars .section-eyebrow {
    color: #fb923c;
}

.section-cars .section-header h1 {
    color: var(--white);
}

.section-cars .section-header p {
    color: rgba(255, 255, 255, 0.65);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Full-width car rows */
.cars-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.car-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.car-row::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), #fb923c);
    z-index: 3;
}

.car-row--right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.car-row--right .car-row__media {
    order: 2;
}

.car-row--right .car-row__content {
    order: 1;
}

.car-row--right::before {
    inset: 0 0 0 auto;
}

.car-row:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(249, 115, 22, 0.12);
}

.car-row__media {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 28px;
    background:
        radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.16), transparent 42%),
        linear-gradient(145deg, #edf2f7 0%, #e2e8f0 50%, #d7e0ea 100%);
    overflow: hidden;
}

.car-row__wind {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.car-row__wind-svg {
    position: absolute;
    inset: -8% -20%;
    width: 140%;
    height: 116%;
    opacity: 0.9;
    /* Перед машин слева — поток ветра всегда справа (сзади) */
    transform: none;
}

.wind-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 90 420;
    animation: windFlow 2.8s ease-in-out infinite;
}

.wind-path--1 {
    stroke: rgba(249, 115, 22, 0.55);
    stroke-width: 2.4;
    animation-duration: 2.4s;
    animation-delay: 0s;
}

.wind-path--2 {
    stroke: rgba(15, 39, 68, 0.28);
    stroke-width: 1.8;
    animation-duration: 3.1s;
    animation-delay: -0.7s;
    opacity: 0.85;
}

.wind-path--3 {
    stroke: rgba(249, 115, 22, 0.35);
    stroke-width: 2;
    animation-duration: 2.7s;
    animation-delay: -1.3s;
}

.car-row:hover .wind-path {
    animation-duration: 1.6s;
}

.car-row:hover .wind-path--1 {
    stroke: rgba(249, 115, 22, 0.75);
}

.car-row:hover .wind-path--2 {
    stroke: rgba(15, 39, 68, 0.4);
}

.car-row__image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(15, 39, 68, 0.2));
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    animation: carDrive 2.8s ease-in-out infinite;
}

.car-row:hover .car-row__image,
.car-row--right:hover .car-row__image {
    transform: scale(1.04) translateX(6px);
    animation-play-state: paused;
}

.car-row__fallback {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #e8eef5);
    color: var(--primary);
    font-size: 2.6rem;
    box-shadow: 0 16px 32px rgba(15, 39, 68, 0.14);
    animation: carDrive 2.8s ease-in-out infinite;
}

.car-row__chips {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.car-row__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 39, 68, 0.9);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.car-row__chip i {
    color: #fb923c;
}

.car-row__content {
    position: relative;
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.car-row__index {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 10px;
}

.car-row__content h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.car-row__desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 42ch;
}

.car-row__examples {
    margin-bottom: 24px;
}

.car-row__examples-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.car-examples {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.car-example {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #eef2f6;
    border: 1px solid rgba(15, 39, 68, 0.06);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s ease,
        border-color 0.25s ease;
    transition-delay: calc(0.12s + var(--i, 0) * 0.07s);
}

.car-example i {
    color: var(--accent);
    font-size: 0.72rem;
}

.car-row.is-visible .car-example,
.car-row.reveal.is-visible .car-example {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.car-row:hover .car-example {
    background: #fff7ed;
    border-color: rgba(249, 115, 22, 0.2);
}

.car-row .order-from-car-btn {
    align-self: flex-start;
    min-width: 220px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3);
}

.car-row .order-from-car-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.car-row:hover .order-from-car-btn::after {
    transform: translateX(120%);
}

@keyframes carDrive {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(3px) translateY(-2px); }
    50% { transform: translateX(0) translateY(1px); }
    75% { transform: translateX(-2px) translateY(-1px); }
}

@keyframes windFlow {
    0% {
        stroke-dashoffset: 0;
        opacity: 0.25;
    }
    35% {
        opacity: 0.95;
    }
    70% {
        opacity: 0.55;
    }
    100% {
        stroke-dashoffset: -510;
        opacity: 0.25;
    }
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary);
}

.card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.card-spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--surface-muted);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-spec i {
    color: var(--accent);
    font-size: 0.8rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.card-body .btn {
    margin-top: auto;
}

/* ── Advantages ── */
.section-advantages {
    background: var(--surface);
}

.advantage-card {
    text-align: left;
    padding: 28px;
    border-top: 3px solid transparent;
    transition: border-color var(--transition), transform var(--transition);
}

.advantage-card:hover {
    border-top-color: var(--accent);
    transform: translateY(-4px);
}

.advantage-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.advantage-card img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 18px;
}

.advantage-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.advantage-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ── About ── */
.section-about {
    background: var(--surface-muted);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

.about-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.02rem;
}

.contact-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 32px;
}

.contact-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--primary);
}

.contact-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item i {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item div {
    min-width: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--gray-800);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-soft);
}

/* ── Footer ── */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 280px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 8px;
}

.footer-contact a:hover {
    color: #fb923c;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ── Modal ── */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(11, 22, 40, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--surface);
    padding: 48px 40px 40px;
    border-radius: var(--radius);
    max-width: 440px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.35s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.modal-content h2 {
    color: #15803d;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--surface-muted);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

/* ── Privacy page ── */
.page-content {
    background: var(--surface);
    padding: 48px 0 80px;
}

.page-content .container-narrow {
    max-width: 760px;
}

.prose h1 {
    font-size: 2rem;
    margin-bottom: 32px;
}

.prose h2 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.prose p,
.prose li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}

.prose ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.prose a {
    color: var(--primary-soft);
    font-weight: 600;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
    transition-delay: calc(var(--reveal-delay, 0) * 80ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-4 { margin-top: 20px; }
.mb-4 { margin-bottom: 20px; }

/* ── Responsive ── */

/* Tablet and up */
@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .hero-visual {
        display: block;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Desktop order form side-by-side */
@media (min-width: 992px) {
    .order-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: stretch;
    }

    .order-form-panel {
        order: 0;
    }

    .order-map-block {
        order: 0;
        min-height: 100%;
    }

    .order-panel {
        height: 100%;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .container {
        padding: 0 32px;
    }

    .header-inner {
        padding: 0 32px;
    }
}

/* Mobile & small tablets */
@media (max-width: 991px) {
    .order-map,
    .order-map iframe {
        min-height: 260px;
    }
}

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

    .mobile-menu-btn {
        display: inline-flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        justify-self: stretch;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px 20px;
        background: var(--surface);
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border);
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        display: flex;
    }

    .site-header .nav-menu a {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
        color: var(--primary);
    }

    .site-header .nav-menu a:hover,
    .site-header .nav-menu a:focus-visible {
        color: var(--accent);
        background: var(--accent-soft);
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
        --radius: 16px;
    }

    .container {
        padding: 0 16px;
    }

    .header-inner {
        padding: 0 16px;
        column-gap: 10px;
    }

    .logo img {
        height: 38px;
    }

    .logo-text {
        font-size: 1rem;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .section {
        padding: 56px 0;
        scroll-margin-top: calc(var(--header-h) + 12px);
    }

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

    .section-header h1,
    .section-header h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section-header p {
        font-size: 0.98rem;
    }

    .header-phone-btn {
        padding: 0;
        width: 44px;
        height: 44px;
        justify-content: center;
        border-radius: var(--radius-sm);
    }

    .header-phone-btn span {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 40px 0 56px;
        min-height: auto;
    }

    .hero-glow,
    .hero-glow-2 {
        opacity: 0.6;
        transform: scale(0.7);
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 7px 14px;
        margin-bottom: 18px;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(1.75rem, 8vw, 2.4rem);
        margin-bottom: 16px;
    }

    .hero-lead {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: none;
    }

    .hero-stat {
        padding: 14px 16px;
    }

    /* Order */
    .order-form {
        padding: 20px 16px;
    }

    .order-form-title {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* prevents iOS zoom on focus */
        min-height: 48px;
    }

    .suggestion-item {
        padding: 14px 16px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .address-suggestions {
        max-height: min(220px, 40dvh);
    }

    /* Cards */
    .cards-grid {
        gap: 16px;
    }

    .card-body {
        padding: 20px;
    }

    .cars-list {
        gap: 18px;
    }

    .car-row,
    .car-row--right {
        grid-template-columns: 1fr;
    }

    .car-row--right .car-row__media,
    .car-row--right .car-row__content {
        order: initial;
    }

    .car-row__media {
        min-height: 220px;
        padding: 28px 20px 56px;
    }

    .car-row__image {
        height: 160px;
    }

    .car-row__content {
        padding: 24px 20px 22px;
    }

    .car-row__desc {
        max-width: none;
    }

    .car-row .order-from-car-btn {
        width: 100%;
        min-width: 0;
    }

    .advantage-card {
        padding: 22px 20px;
    }

    /* About */
    .about-content h2 {
        font-size: 1.45rem;
    }

    .contact-card {
        padding: 24px 20px;
    }

    .contact-item span,
    .contact-item a {
        word-break: break-word;
    }

    /* Footer */
    .site-footer {
        padding: 40px 0 calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .footer-grid {
        gap: 28px;
    }

    .footer-brand p {
        max-width: none;
    }

    /* Modal */
    .modal {
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        align-items: flex-end;
    }

    .modal-content {
        padding: 36px 24px 28px;
        border-radius: var(--radius) var(--radius) 0 0;
        max-height: 90dvh;
        overflow-y: auto;
    }

    /* Privacy */
    .page-content {
        padding: 32px 0 56px;
    }

    .prose h1 {
        font-size: 1.65rem;
    }

    /* Reduce motion on mobile for perf */
    .reveal {
        transform: translateY(16px);
    }
}

/* Small phones */
@media (max-width: 380px) {
    .hero-stat strong {
        font-size: 0.95rem;
    }

    .hero-stat span {
        font-size: 0.78rem;
    }

    .card-specs {
        flex-direction: column;
        align-items: stretch;
    }

    .card-spec {
        justify-content: center;
    }

    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 32px 0 40px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal {
        align-items: center;
    }

    .modal-content {
        border-radius: var(--radius);
    }
}

/* Touch devices: disable hover lift */
@media (hover: none) {
    .card:hover,
    .car-row:hover {
        transform: none;
    }

    .car-row:hover .car-row__image,
    .car-row--right:hover .car-row__image {
        transform: none;
        animation-play-state: running;
    }

    .car-row:hover .wind-path {
        animation-duration: 2.8s;
    }

    .btn-primary:hover,
    .btn-secondary:hover,
    .header-phone-btn:hover {
        transform: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn,
    .card,
    .car-row,
    .car-row__image,
    .car-row__fallback,
    .car-example,
    .site-header {
        transition: none;
        animation: none !important;
    }

    .car-row .order-from-car-btn::after,
    .car-row__wind {
        display: none;
    }

    .car-example {
        opacity: 1;
        transform: none;
    }

    .modal-content {
        animation: none;
    }
}

/* Длинные слова/ссылки из админки не ломают карточки */
body {
    overflow-wrap: break-word;
}
.card,
.car-row__content,
.advantage-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Плашки «Можно перевозить» — кнопки: заявка сразу с этой машиной и грузом */
.car-examples .car-example__btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.car-examples .car-example__btn:focus-visible {
    outline: 2px solid var(--accent, #f97316);
    outline-offset: 4px;
    border-radius: 999px;
}
.car-example:has(.car-example__btn:hover),
.car-example:has(.car-example__btn:focus-visible) {
    border-color: var(--accent, #f97316);
    background: #fff7ed;
}

/* Дополнительный телефон в шапке — мелкой строкой под основным; на узких экранах — только в подвале и контактах */
.header-phones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.header-phone-second {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.8;
}
.header-phone-second:hover,
.header-phone-second:focus-visible {
    opacity: 1;
    text-decoration: underline;
}
@media (max-width: 768px) {
    .header-phone-second {
        display: none;
    }
}

/* Типы груза в заявке — выпадающий список с мультивыбором и поиском */
.cargo-select__hint {
    font-weight: 500;
    opacity: 0.6;
    margin-left: 6px;
}
.cargo-select {
    position: relative;
}
.cargo-select__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--gray-800);
    font: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.cargo-select__toggle i {
    font-size: 0.75rem;
    color: var(--gray-600);
    transition: transform 0.2s;
}
.cargo-select.is-open .cargo-select__toggle,
.cargo-select__toggle:focus-visible {
    outline: none;
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 4px rgba(26, 61, 102, 0.1);
}
.cargo-select.is-open .cargo-select__toggle i {
    transform: rotate(180deg);
}
.cargo-select.input-error .cargo-select__toggle {
    border-color: #ef4444;
    background: #fef2f2;
}
.cargo-select__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cargo-select__value.is-placeholder {
    color: var(--gray-600);
}
.cargo-select__panel {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    padding: 8px;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    box-shadow: 0 18px 40px rgba(15, 39, 68, 0.16);
}
.cargo-select__panel[hidden] {
    display: none;
}
.form-group .cargo-select__search {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.cargo-select__list {
    max-height: 260px;
    overflow-y: auto;
}
.form-group .cargo-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px 10px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--gray-800);
    cursor: pointer;
}
.form-group .cargo-option[hidden],
.form-group .cargo-option.is-filtered {
    display: none;
}
.form-group .cargo-option:hover {
    background: #fff7ed;
}
.form-group .cargo-option input[type="checkbox"] {
    flex: none;
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}
.form-group .cargo-option:has(input:checked) {
    background: #fff7ed;
    color: var(--primary);
    font-weight: 600;
}
.cargo-select__empty {
    padding: 10px;
    color: var(--gray-600);
    font-size: 0.9rem;
}
.cargo-select__done {
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.cargo-select__done:hover {
    background: var(--accent-hover);
}
.form-group .cargo-option input[type="checkbox"]:focus {
    box-shadow: none;
}
.form-group .cargo-option input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
