/* =========================================================
   AirSky Logistics — Theme v2
   Modern logistics palette inspired by Maersk / DHL / K+N
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    /* Palette */
    --bg: #122845;
    --bg-2: #173258;
    --surface: #132a47;
    --surface-2: #1a375b;
    --surface-3: #21456f;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --accent: #ff8a00;          /* warm energetic orange */
    --accent-hover: #ffa633;
    --accent-soft: rgba(255, 138, 0, 0.12);
    --accent-2: #ffc93c;        /* amber */
    --cyan: #4fc3f7;

    --text: #eef3fb;
    --text-strong: #ffffff;
    --muted: #93a8c0;
    --muted-2: #6b8097;

    /* Layout */
    --nav-h: 72px;
    --container: 1280px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --trans: 0.25s var(--ease);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Декоративный фон */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1100px 600px at 85% -10%, rgba(255, 138, 0, 0.18), transparent 55%),
        radial-gradient(900px 600px at -5% 110%, rgba(79, 195, 247, 0.16), transparent 55%),
        radial-gradient(700px 500px at 50% 50%, rgba(255, 138, 0, 0.05), transparent 60%),
        linear-gradient(180deg, #0d1f37 0%, #142e51 50%, #0d1f37 100%);
    pointer-events: none;
    overflow: hidden;
}
/* Тонкая сетка-точки */
.bg-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    opacity: 0.7;
}
/* Силуэт карты мира + маршрутные линии */
.bg-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1.2'><circle cx='800' cy='450' r='420'/><circle cx='800' cy='450' r='320'/><circle cx='800' cy='450' r='220'/><path d='M200 600 Q500 200 800 350 T1400 250' stroke='rgba(255,138,0,0.22)' stroke-dasharray='6 8'/><path d='M150 400 Q600 700 1100 500 T1500 700' stroke='rgba(79,195,247,0.20)' stroke-dasharray='6 8'/><path d='M100 250 Q450 500 900 250 T1550 400' stroke='rgba(255,138,0,0.14)' stroke-dasharray='4 10'/><circle cx='200' cy='600' r='4' fill='rgba(255,138,0,0.7)'/><circle cx='1400' cy='250' r='4' fill='rgba(255,138,0,0.7)'/><circle cx='150' cy='400' r='4' fill='rgba(79,195,247,0.7)'/><circle cx='1500' cy='700' r='4' fill='rgba(79,195,247,0.7)'/><circle cx='800' cy='350' r='3' fill='rgba(255,255,255,0.5)'/><circle cx='1100' cy='500' r='3' fill='rgba(255,255,255,0.5)'/><circle cx='900' cy='250' r='3' fill='rgba(255,255,255,0.5)'/></svg>");
    background-repeat: no-repeat;
    background-position: center 30%;
    background-size: 1600px auto;
    opacity: 0.55;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
    animation: bg-drift 60s ease-in-out infinite alternate;
}
@keyframes bg-drift {
    0% { transform: translate(-1%, -1%) scale(1); }
    100% { transform: translate(2%, 1%) scale(1.05); }
}
@media (max-width: 768px) {
    .bg-grid::after { animation: none; opacity: 0.35; }
    .bg-grid::before { background-size: 24px 24px; opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
    .bg-grid::after { animation: none; }
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Типографика */
h1, h2, h3, h4 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-strong);
    letter-spacing: -0.015em;
    line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }

a { color: inherit; text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

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

/* Section spacing */
.section {
    padding: clamp(56px, 8vw, 96px) 0;
    position: relative;
}

/* Eyebrow / section title */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 28px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.section-header {
    max-width: 760px;
    margin-bottom: 48px;
}
.section-header p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-top: 12px;
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ Header / Nav ============ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    height: var(--nav-h);
    background: rgba(8, 19, 36, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background var(--trans);
}
.site-header.scrolled { background: rgba(6, 15, 28, 0.92); }

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}
.nav .logo {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
}
.nav .logo img { height: 44px; width: auto; }
.nav .logo-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-strong);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.nav .logo-text span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin-left: auto;
}
.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--trans);
    position: relative;
}
.nav-links a:hover {
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.05);
}
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--muted);
}
.nav-phone:hover { color: var(--text-strong); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    width: 40px; height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    align-items: center; justify-content: center;
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--trans);
    white-space: nowrap;
    line-height: 1;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b00 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 138, 0, 0.35);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(255, 138, 0, 0.5);
    color: #fff;
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-strong);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

.btn .arrow { transition: transform var(--trans); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ Footer ============ */
.site-footer {
    margin-top: 80px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
    border-top: 1px solid var(--border);
    padding: 60px 0 28px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}
.footer-top h4 {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.footer-brand .logo-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-strong);
    margin-bottom: 14px;
    display: block;
}
.footer-brand .logo-text span { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col p {
    color: var(--muted);
    font-size: 0.92rem;
    transition: color var(--trans);
}
.footer-col a:hover { color: var(--text-strong); }
.footer-col strong { color: var(--text); font-weight: 600; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted-2);
    font-size: 0.85rem;
}
.footer-requisites {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px dashed var(--border);
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.86rem;
}
.footer-requisites strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 0.9rem; }

/* ============ Modal ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 15, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
.modal {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp .3s var(--ease);
}
.modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted); cursor: pointer;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--trans);
}
.modal-close:hover { color: var(--text-strong); border-color: var(--border-strong); }

/* Forms */
.form { display: grid; gap: 14px; margin-top: 18px; }
.form label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.form input, .form textarea, .form select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--trans);
}
.form input:focus, .form textarea:focus, .form select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 138, 0, 0.04);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form textarea { min-height: 100px; resize: vertical; }

/* ============ Animations ============ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ Utility ============ */
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(255, 138, 0, 0.3);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

main { padding-top: var(--nav-h); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .nav-phone { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        background: rgba(8, 19, 36, 0.98);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: all var(--trans);
    }
    .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 12px 16px; border-radius: 8px; }
    .nav .btn-primary { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-requisites { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .container { padding: 0 18px; }
    .section { padding: 56px 0; }
}

/* ============ Mobile polish ============ */
@media (max-width: 768px) {
    /* Override inline nowrap that breaks small screens */
    h1[style*="nowrap"], p[style*="nowrap"], span[style*="nowrap"] {
        white-space: normal !important;
    }
    /* Hero badges stack nicely */
    .badge-row { flex-direction: column; align-items: flex-start; }
    .badge { font-size: 0.68rem; padding: 4px 10px; letter-spacing: 0.03em; }

    /* Buttons full-width row */
    .hero-actions, .btn-row { flex-direction: column; align-items: stretch; }
    .hero-actions .btn, .btn-row .btn { width: 100%; justify-content: center; }

    /* Page header tighter */
    .page-header { padding: 8px 0 16px; }

    /* Logo a touch smaller */
    .nav .logo img { height: 36px; }

    /* Modal padding fix */
    .modal { width: calc(100% - 24px); padding: 22px 18px; }
    .modal .form { display: block; }
}

@media (max-width: 600px) {
    h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
    h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }

    /* Footer requisites text wrap */
    .footer-requisites div strong { display: block; margin-bottom: 4px; }

    /* Cards padding */
    .service-card, .contact-card, .team-card, .usp { padding: 16px; }
    .contact-form-card { padding: 20px 18px; }

    /* Hero visual hide on very small if too cramped */
    .hero-visual .route { font-size: 0.8rem; }
}
