/* ============================================================
   Склад 3PL — основные стили
   ============================================================ */

:root {
    --navy:      #0c2d57;
    --navy-700:  #103a6e;
    --navy-50:   #eef3fa;
    --accent:    #f7901e;
    --accent-700:#d9760a;
    --text:      #1f2733;
    --muted:     #5d6b7e;
    --line:      #e3e8ef;
    --bg:        #ffffff;
    --bg-soft:   #f5f7fb;
    --radius:    14px;
    --shadow:    0 10px 30px rgba(12, 45, 87, .08);
    --container:  1180px;
    --ff: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--ff);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

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

a { color: var(--navy-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 21px; }

p { margin: 0 0 1em; }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-700); color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--ghost { background: var(--navy); color: #fff; }
.btn--ghost:hover { background: var(--navy-700); color: #fff; }

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
    background: var(--navy);
    color: #cdd9ec;
    font-size: 14px;
}
.topbar__inner {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.topbar__item { color: #cdd9ec; }
a.topbar__item:hover { color: #fff; }

/* ============================================================
   Header / Nav
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 14px rgba(12,45,87,.05);
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 78px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo__img { width: 50px; height: 50px; object-fit: contain; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { color: var(--navy); font-size: 20px; letter-spacing: .3px; }
.logo__text small { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
    display: block;
    padding: 12px 14px;
    color: var(--text);
    font-weight: 500;
    border-radius: 8px;
}
.nav__item:hover > .nav__link,
.nav__item.is-active > .nav__link { color: var(--navy); background: var(--navy-50); }
.caret { font-size: 10px; color: var(--muted); }

.subnav {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    list-style: none;
    margin: 0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .18s;
}
.nav__item.has-sub:hover .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
}
.subnav a:hover, .subnav a.is-active { background: var(--navy-50); color: var(--navy); }

.header__phone {
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
    white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    margin-left: auto;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    background: linear-gradient(115deg, var(--navy) 0%, var(--navy-700) 60%, #16498a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(247,144,30,.25), transparent 70%);
}
.hero__inner { padding: 80px 0; max-width: 760px; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p { color: #d6e0f0; font-size: 19px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__badge {
    display: inline-block;
    background: rgba(247,144,30,.18);
    color: #ffd29a;
    border: 1px solid rgba(247,144,30,.4);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section__head p { color: var(--muted); font-size: 18px; }
.section__head--left { margin-left: 0; text-align: left; }

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* ---------- Grid карточек ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy-50);
    border-radius: 12px;
    font-size: 26px;
    margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card--link { display: block; color: inherit; }
.card--link:hover h3 { color: var(--accent); }

/* ---------- Список преимуществ ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.feature { display: flex; gap: 14px; }
.feature__mark {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.feature h3 { font-size: 18px; margin: 4px 0 4px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Список с галочками ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--text); }
.checklist li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    width: 22px; height: 22px;
    background: var(--navy-50); color: var(--navy);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}

/* ---------- Статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 22px; }
.stat__num { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat__label { color: var(--muted); margin-top: 8px; }

/* ---------- Шаги процесса ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; position: relative;
}
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -18px; left: 22px;
    width: 40px; height: 40px;
    background: var(--navy); color: #fff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
}
.step h3 { font-size: 17px; margin: 14px 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Отзывы ---------- */
.review {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px;
}
.review__text { font-size: 17px; color: var(--text); font-style: italic; }
.review__author { display: flex; flex-direction: column; margin-top: 16px; }
.review__author strong { color: var(--navy); }
.review__author span { color: var(--muted); font-size: 14px; }

/* ---------- Контент-страница ---------- */
.page-hero {
    background: var(--navy);
    color: #fff;
    padding: 56px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #c9d6ea; margin: 0; font-size: 18px; }
.breadcrumbs { font-size: 14px; color: #93a8c6; margin-bottom: 16px; }
.breadcrumbs a { color: #c9d6ea; }
.breadcrumbs a:hover { color: #fff; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- CTA-блок ---------- */
.cta {
    background: linear-gradient(115deg, var(--navy), var(--navy-700));
    color: #fff;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #d6e0f0; max-width: 560px; margin: 0 auto 24px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ (аккордеон) ---------- */
.faq-group { margin-bottom: 36px; }
.faq-group > h2 { display: flex; align-items: center; gap: 10px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 600;
    color: var(--navy);
    display: flex; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 22px 18px; color: var(--muted); }

/* ---------- Вакансии ---------- */
.vacancy {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; display: grid; gap: 12px;
}
.vacancy__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.vacancy__salary { color: var(--accent); font-weight: 800; font-size: 22px; white-space: nowrap; }
.vacancy__meta { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { background: var(--navy-50); color: var(--navy); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card { display: grid; gap: 18px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row .ico { font-size: 22px; }
.contact-row b { display: block; color: var(--navy); }
.contact-row span, .contact-row a { color: var(--muted); }
.map-embed { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }

.contact-form { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-family: inherit; font-size: 15px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy-700); }
.contact-form .consent { font-size: 13px; color: var(--muted); display: flex; gap: 10px; }

/* ---------- Тарифы ---------- */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--navy); color: #fff; font-weight: 600; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: #0a2347; color: #b9c7dc; margin-top: 0; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding: 56px 20px 40px;
}
.logo--footer .logo__text strong { color: #fff; }
.footer__about { color: #91a3bf; font-size: 15px; margin-top: 14px; }
.footer__title { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer__menu, .footer__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__menu a, .footer__contacts a { color: #b9c7dc; }
.footer__menu a:hover, .footer__contacts a:hover { color: var(--accent); }
.footer__contacts li { color: #b9c7dc; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 18px 20px; font-size: 14px; color: #8497b3;
}
.footer__bottom-inner a { color: #8497b3; }
.footer__bottom-inner a:hover { color: #fff; }

/* ============================================================
   Утилиты
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 19px; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 980px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
    .topbar { display: none; }
    .nav-toggle { display: flex; }
    .header__phone { display: none; }

    .nav {
        position: fixed;
        top: 78px; left: 0; right: 0; bottom: 0;
        background: #fff;
        margin: 0;
        padding: 16px 20px 40px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .28s ease;
        box-shadow: var(--shadow);
    }
    .nav.is-open { transform: translateX(0); }
    .nav__list { flex-direction: column; gap: 2px; }
    .nav__link { font-size: 17px; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .subnav {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-radius: 0;
        padding: 0 0 8px 14px; min-width: 0;
    }
    .nav__item.has-sub .subnav { display: none; }
    .nav__item.has-sub.open .subnav { display: block; }
}

@media (max-width: 620px) {
    .grid--2, .grid--3, .grid--4,
    .features, .stats, .steps { grid-template-columns: 1fr; }
    .cta { padding: 32px 22px; }
    .hero__inner { padding: 56px 0; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 440px) {
    .footer__grid { grid-template-columns: 1fr; }
}
