/* ============================================================
   Перевозка24 — дизайн-система бренда (mульти-город: Алматы + Астана)
   Своя палитра (НЕ бирюза almatytrans, НЕ жёлтый gruzovozi):
   тёмно-синий (доверие/логистика) + оранжевый (энергия/24ч CTA)
   ============================================================ */

:root {
    --p24-blue: #1c3d78;
    --p24-blue-dark: #12274f;
    --p24-blue-light: #2b539e;
    --p24-orange: #ff7a1a;
    --p24-orange-hover: #e86600;
    --p24-ink: #1a202c;
    --p24-muted: #5a6472;
    --p24-bg-soft: #f4f6fb;
    --p24-card-border: #e3e8f2;
    --p24-radius-lg: 18px;
    --p24-radius-md: 14px;
    --p24-radius-sm: 10px;
    --p24-shadow: 0 8px 28px rgba(28, 61, 120, 0.10);
    --p24-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--p24-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.p24-header {
    background: #fff;
    border-bottom: 1px solid var(--p24-card-border);
    position: sticky;
    top: 0;
    z-index: 500;
}
.p24-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}
.p24-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--p24-blue);
    white-space: nowrap;
}
.p24-logo__badge {
    background: var(--p24-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.p24-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.p24-nav a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--p24-ink);
    transition: color .15s;
}
.p24-nav a:hover { color: var(--p24-orange); }
.p24-city-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--p24-bg-soft);
    border-radius: 30px;
    padding: 4px;
}
.p24-city-switch a {
    padding: 7px 16px;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 700;
}
.p24-city-switch a.is-active {
    background: var(--p24-blue);
    color: #fff;
}
.p24-btn-call {
    background: var(--p24-orange);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 30px;
    white-space: nowrap;
    transition: background .15s, transform .15s;
}
.p24-btn-call:hover { background: var(--p24-orange-hover); transform: translateY(-1px); color: #fff; }
.p24-burger { display: none; }

/* ---------- Hero ---------- */
.p24-hero {
    background: linear-gradient(135deg, var(--p24-blue-dark) 0%, var(--p24-blue) 65%, var(--p24-blue-light) 100%);
    color: #fff;
    padding: 56px 0 64px;
}
.p24-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.p24-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}
.p24-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
}
.p24-hero h1 span { color: var(--p24-orange); }
.p24-hero p {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    margin: 0 0 26px;
}
.p24-hero__cities {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.p24-city-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: background .15s, border-color .15s;
}
.p24-city-pill:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); color: #fff; }
.p24-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.p24-btn-primary {
    background: var(--p24-orange);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 15px 26px;
    border-radius: 12px;
    transition: background .15s, transform .15s;
}
.p24-btn-primary:hover { background: var(--p24-orange-hover); transform: translateY(-2px); color: #fff; }
.p24-btn-ghost {
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 15px 26px;
    border-radius: 12px;
    transition: background .15s;
}
.p24-btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

.p24-hero__card {
    background: #fff;
    border-radius: var(--p24-radius-lg);
    padding: 26px;
    color: var(--p24-ink);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.p24-hero__card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.p24-hero__card p.sub { margin: 0 0 18px; font-size: 13.5px; color: var(--p24-muted); }
.p24-hero__card select,
.p24-hero__card input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--p24-card-border);
    border-radius: 10px;
    font-size: 14.5px;
    margin-bottom: 12px;
    font-family: inherit;
}
.p24-hero__card .p24-btn-primary { width: 100%; text-align: center; }

/* ---------- Section shell ---------- */
.p24-section { padding: 56px 0; }
.p24-section.is-soft { background: var(--p24-bg-soft); }
.p24-section__head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.p24-section__eyebrow {
    color: var(--p24-orange);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.p24-section__head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 12px; color: var(--p24-ink); }
.p24-section__head p { color: var(--p24-muted); font-size: 15.5px; line-height: 1.6; margin: 0; }

/* ---------- Service grid ---------- */
.p24-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.p24-card {
    background: #fff;
    border: 1px solid var(--p24-card-border);
    border-radius: var(--p24-radius-md);
    padding: 24px 20px;
    box-shadow: var(--p24-shadow);
    transition: transform .18s, box-shadow .18s;
}
.p24-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(28,61,120,.16); }
.p24-card__icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    background: rgba(28,61,120,.08);
    color: var(--p24-blue);
    border-radius: 12px;
    font-size: 20px;
    margin-bottom: 14px;
}
.p24-card h3 { font-size: 16.5px; font-weight: 800; margin: 0 0 8px; }
.p24-card p { font-size: 13.5px; color: var(--p24-muted); line-height: 1.5; margin: 0 0 12px; }
.p24-card a.p24-card__link { font-size: 13.5px; font-weight: 700; color: var(--p24-orange); }

/* ---------- City hub blocks ---------- */
.p24-city-hero {
    background: var(--p24-blue-dark);
    color: #fff;
    padding: 44px 0;
}
.p24-breadcrumbs { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.p24-breadcrumbs a { color: rgba(255,255,255,.85); }
.p24-breadcrumbs a:hover { color: #fff; }

.p24-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 22px; }
.p24-stat b { display: block; font-size: 24px; font-weight: 800; color: var(--p24-orange); }
.p24-stat span { font-size: 13px; color: rgba(255,255,255,.8); }

/* ---------- Aggregator / carriers teaser ---------- */
.p24-agg {
    background: #fff;
    border: 1px solid var(--p24-card-border);
    border-radius: var(--p24-radius-lg);
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    box-shadow: var(--p24-shadow);
}
.p24-agg h3 { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.p24-agg p { color: var(--p24-muted); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.p24-agg-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,122,26,.1); color: var(--p24-orange-hover);
    font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 20px; margin-bottom: 14px;
}
.p24-rating-list { display: flex; flex-direction: column; gap: 12px; }
.p24-rating-row {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--p24-bg-soft); border-radius: 10px; padding: 12px 16px;
}
.p24-rating-row b { font-size: 14px; }
.p24-rating-row .stars { color: var(--p24-orange); font-weight: 700; font-size: 13.5px; }

/* ---------- Как это работает (аггрегатор) ---------- */
.p24-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: p24step; }
.p24-step { position: relative; padding: 28px 22px 22px; background: #fff; border: 1px solid var(--p24-card-border); border-radius: var(--p24-radius-md); box-shadow: var(--p24-shadow); }
.p24-step::before {
    counter-increment: p24step;
    content: counter(p24step);
    position: absolute; top: -16px; left: 22px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--p24-orange); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.p24-step h3 { margin: 8px 0 8px; font-size: 16.5px; font-weight: 800; }
.p24-step p { margin: 0; font-size: 13.5px; color: var(--p24-muted); line-height: 1.55; }

/* ---------- Trust strip ---------- */
.p24-trust-strip { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.p24-trust-strip .item { text-align: center; }
.p24-trust-strip .item b { display: block; font-size: 26px; font-weight: 800; color: var(--p24-blue); }
.p24-trust-strip .item span { font-size: 13px; color: var(--p24-muted); }

/* ---------- Marketplace: карточка сравнения предложений ---------- */
.p24-compare {
    background: #fff;
    border: 1px solid var(--p24-card-border);
    border-radius: var(--p24-radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    transition: box-shadow .15s, transform .15s;
}
.p24-compare:hover { box-shadow: var(--p24-shadow); transform: translateY(-1px); }
.p24-compare__main { display: flex; align-items: center; gap: 14px; }
.p24-compare__avatar {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(28,61,120,.08); color: var(--p24-blue);
    display: grid; place-items: center; font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.p24-compare__name { font-weight: 800; font-size: 15px; margin: 0 0 2px; }
.p24-compare__meta { font-size: 12.5px; color: var(--p24-muted); }
.p24-compare__rating { font-size: 13px; font-weight: 700; color: var(--p24-orange); white-space: nowrap; }
.p24-compare__price { font-weight: 800; font-size: 15px; color: var(--p24-blue); white-space: nowrap; }
.p24-compare__cta {
    background: var(--p24-bg-soft); color: var(--p24-blue);
    font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 20px; white-space: nowrap;
    transition: background .15s;
}
.p24-compare__cta:hover { background: var(--p24-orange); color: #fff; }
.p24-compare.is-empty { border-style: dashed; color: var(--p24-muted); font-size: 13.5px; justify-content: center; text-align: center; }

.p24-category-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.p24-category-tabs a {
    padding: 9px 18px; border-radius: 30px; font-size: 13.5px; font-weight: 700;
    background: var(--p24-bg-soft); color: var(--p24-ink);
}
.p24-category-tabs a.is-active { background: var(--p24-blue); color: #fff; }
.p24-category-tabs span {
    padding: 9px 18px; border-radius: 30px; font-size: 13.5px; font-weight: 700;
    background: var(--p24-bg-soft); color: var(--p24-ink);
}

/* ---------- Footer ---------- */
.p24-footer { background: var(--p24-blue-dark); color: rgba(255,255,255,.85); padding: 48px 0 24px; }
.p24-footer__grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.p24-footer h4 { color: #fff; font-size: 14px; font-weight: 800; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .5px; }
.p24-footer ul li { margin-bottom: 9px; }
.p24-footer a { font-size: 13.5px; color: rgba(255,255,255,.75); }
.p24-footer a:hover { color: #fff; }
.p24-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 20px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 13px; color: rgba(255,255,255,.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .p24-nav { display: none; }
    .p24-burger { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--p24-bg-soft); }
    .p24-hero__grid { grid-template-columns: 1fr; }
    .p24-hero__card { order: -1; }
    .p24-grid { grid-template-columns: repeat(2, 1fr); }
    .p24-agg { grid-template-columns: 1fr; }
    .p24-footer__grid { grid-template-columns: 1fr 1fr; }
    .p24-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .p24-grid { grid-template-columns: 1fr; }
    .p24-footer__grid { grid-template-columns: 1fr; }
    .p24-hero__cities { flex-direction: column; }
    .p24-hero__ctas { flex-direction: column; }
    .p24-hero__ctas a { text-align: center; }
    .container { padding: 0 16px; }
    .p24-compare { flex-direction: column; align-items: flex-start; }
    .p24-compare__cta { width: 100%; text-align: center; }
    .p24-trust-strip { gap: 18px; }
    .p24-logo { font-size: 16px; }
    .p24-btn-call { font-size: 12.5px; padding: 9px 12px; white-space: normal; }
}
