/* === Базові змінні === */
:root {
    --color-primary: #0A2540;
    --color-primary-light: #1E5AA8;
    --color-accent: #FF7A1A;
    --color-accent-dark: #E5660D;
    --color-text: #1A2332;
    --color-text-muted: #5A6573;
    --color-bg: #FFFFFF;
    --color-bg-light: #F5F7FA;
    --color-border: #E2E8F0;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container-max: 1240px;
    --header-h: 80px;
    --topbar-h: 40px;

    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.10);
    --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Скидання === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, button { font-family: inherit; font-size: inherit; }

/* === Контейнер === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Кнопки === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 122, 26, 0.35);
}
.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 26, 0.5);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* === Топбар === */
.topbar {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.topbar-contacts { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}
.topbar-link:hover { color: var(--color-accent); }
.topbar-schedule { display: inline-flex; align-items: center; gap: 6px; }

/* === Шапка === */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* === Лого === */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.logo-img {
    height: 56px;
    width: auto;
    display: block;
    transition: transform var(--transition);
}
.logo:hover .logo-img { transform: scale(1.04); }

/* Лого на темному фоні - світла підкладка зберігає оригінальні кольори і читабельність */
.logo-img-inverted {
    background: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-tagline {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    padding-left: 14px;
    border-left: 2px solid var(--color-accent);
    line-height: 1.3;
    max-width: 110px;
}
.logo-footer .logo-tagline { color: rgba(255, 255, 255, 0.6); }

/* === Навігація === */
.nav { display: flex; gap: 32px; align-items: center; }
.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text);
    position: relative;
    padding: 8px 0;
    transition: color var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}
.nav-link:hover { color: var(--color-accent); }
.nav-link:hover::after { width: 100%; }

.header-cta { padding: 10px 20px; font-size: 14px; }

/* === Бургер === */
.burger {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 110;
}
.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* === Hero === */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h) - var(--topbar-h));
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    transform: scale(1.05);
}
.hero-slide.active {
    opacity: 1;
    animation: heroZoom 8s ease-out forwards;
}
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(10, 37, 64, 0.65) 60%, rgba(30, 90, 168, 0.55) 100%);
}
.hero-content {
    position: relative;
    z-index: 3;
    padding: 80px 24px;
    width: 100%;
}
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 122, 26, 0.15);
    border: 1px solid rgba(255, 122, 26, 0.4);
    color: #FFB47A;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    max-width: 850px;
}
.hero-title-accent {
    background: linear-gradient(90deg, #FF7A1A 0%, #FFB47A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-subtitle {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin-bottom: 40px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 800px;
    padding: 28px 32px;
    background: rgba(10, 37, 64, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}
.hero-stat-number {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 6px;
}
.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.hero-arrow:hover { background: var(--color-accent); border-color: var(--color-accent); }
.hero-arrow-left { left: 24px; }
.hero-arrow-right { right: 24px; }

.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all var(--transition);
    cursor: pointer;
}
.hero-dot.active {
    background: var(--color-accent);
    width: 32px;
    border-radius: 5px;
}

/* === Секції === */
.section {
    padding: 100px 0;
}
.section-light { background: var(--color-bg-light); }
.section-dark {
    background: var(--color-primary);
    color: #fff;
}
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.section-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 122, 26, 0.12);
    color: var(--color-accent);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
}
.section-head-light .section-eyebrow {
    background: rgba(255, 122, 26, 0.2);
}
.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.section-lead {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.section-head-light .section-lead { color: rgba(255, 255, 255, 0.8); }

/* === Про нас === */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-text p {
    font-size: 16px;
    margin-bottom: 18px;
    color: var(--color-text);
    line-height: 1.7;
}
.about-text strong { color: var(--color-primary); font-weight: 600; }
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.feature-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 122, 26, 0.12);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-primary);
}
.feature-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* === Послуги === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 28px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}
.service-card:hover {
    background: rgba(255, 122, 26, 0.08);
    border-color: var(--color-accent);
    transform: translateY(-6px);
}
.service-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}
.service-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* === Автопарк === */
.fleet-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.fleet-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/10;
}
.fleet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.spec-block {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
}
.spec-block:last-of-type { border-bottom: none; }
.spec-block h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}
.spec-list li {
    padding: 10px 0;
    font-size: 16px;
    color: var(--color-text);
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.spec-list li::before {
    content: '→';
    color: var(--color-accent);
    font-weight: 700;
    flex-shrink: 0;
}
.spec-brand {
    font-weight: 700;
    color: var(--color-primary);
    margin-right: 4px;
}

/* === Документи === */
.document-showcase {
    max-width: 700px;
    margin: 0 auto;
}
.document-card {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #fff;
    transition: all var(--transition);
}
.document-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.document-card img {
    width: 100%;
    height: auto;
    display: block;
}
.document-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity var(--transition);
    font-weight: 600;
}
.document-card:hover .document-overlay { opacity: 1; }

/* === Контакти === */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.contacts-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}
.contact-value {
    display: block;
    font-size: 16px;
    color: #fff;
    line-height: 1.5;
}
.contact-link {
    transition: color var(--transition);
}
.contact-link:hover { color: var(--color-accent); }
.contact-muted { color: rgba(255, 255, 255, 0.5) !important; font-size: 14px; }


/* === Форма === */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    color: var(--color-text);
    box-shadow: var(--shadow-lg);
}
.form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
}
.form-row { margin-bottom: 16px; }

/* Рядок з кодом країни + номер */
.form-row-phone {
    display: flex;
    gap: 8px;
}
.form-select-code {
    flex: 0 0 120px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235A6573' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
    font-weight: 600;
}
.form-input-phone {
    flex: 1;
    min-width: 0;
}

/* Підсвітка некоректного поля */
.form-input.has-error {
    border-color: #DC2626;
    background: #FEF2F2;
}
.form-input.has-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.form-field-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #DC2626;
    line-height: 1.4;
}
.form-field-error.visible {
    display: block;
}
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-light);
    color: var(--color-text);
    transition: all var(--transition);
    font-size: 15px;
    resize: vertical;
}
.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.15);
}
.form-input::placeholder { color: #94A3B8; }
.form-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
}

/* Кнопка - стан завантаження */
#formSubmit { position: relative; }
.form-btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
#formSubmit.is-loading .form-btn-text { visibility: hidden; }
#formSubmit.is-loading .form-btn-loader { display: block; }
#formSubmit:disabled { cursor: wait; opacity: 0.85; }

/* Повідомлення про статус */
.form-status {
    margin-top: 16px;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.form-status:not(:empty) { padding: 14px 16px; }
.form-status-success {
    background: #DEF7EC;
    color: #03543F;
    border: 1px solid #84E1BC;
}
.form-status-error {
    background: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid #F8B4B4;
}

/* === Мапа === */
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #fff;
    margin-top: 48px;
}
.map-wrapper iframe { display: block; filter: grayscale(0.2); }

/* === Підвал === */
.footer {
    background: #061627;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    max-width: 360px;
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}
.footer-col a, .footer-col span {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    font-size: 13px;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* === Адаптив === */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .fleet-showcase { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .header-cta { display: none; }
}

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

    .topbar { display: none; }
    .topbar-schedule { display: none; }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 8px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }
    .nav.active { right: 0; }
    .nav-link {
        color: #fff;
        font-size: 18px;
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-link::after { display: none; }

    .burger { display: flex; }

    .hero { min-height: 600px; padding: 60px 0; }
    .hero-content { padding: 40px 24px; }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 16px;
    }
    .hero-arrow { width: 40px; height: 40px; }
    .hero-arrow-left { left: 12px; }
    .hero-arrow-right { right: 12px; }

    .section { padding: 70px 0; }
    .section-head { margin-bottom: 40px; }

    .about-features { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }

    .contact-form { padding: 28px 24px; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-inner { justify-content: center; text-align: center; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}

@media (max-width: 768px) {
    .logo-img { height: 44px; }
    .logo-tagline { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .logo-img { height: 40px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stat-number { font-size: 24px; }
    .btn-lg { padding: 14px 24px; }
}

/* === Анімації появи === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
