/* ===== VezemZerno Template — Theme Styles ===== */

/* Manrope variable font (locally hosted, SIL Open Font License) */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope/manrope-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --vz-green: #2d8a4e;
    --vz-green-light: #3da566;
    --vz-green-dark: #1e6335;
    --vz-green-bg: #eaf5ee;
    --vz-gold: #c7902b;
    --vz-gold-light: #f0d78c;
    --vz-gold-bg: #fef9ed;
    --vz-warm: #e07b39;
    --vz-warm-light: #fceedf;
    --vz-blue: #1a73e8;
    --vz-text: #2d2d2d;
    --vz-text-secondary: #5f6368;
    --vz-text-muted: #80868b;
    --vz-border: #e0e0e0;
    --vz-border-light: #f0f0f0;
    --vz-bg: #ffffff;
    --vz-bg-alt: #f8f9fa;
    --vz-bg-warm: #fdfaf5;
    --vz-radius: 12px;
    --vz-radius-sm: 8px;
    --vz-radius-xs: 6px;
    --vz-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --vz-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --vz-shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --vz-font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --vz-transition: 0.2s ease;
}

/* ===== Site-wide soft background =====
   A calm, systemic frame painted directly on the body (no z-index tricks).
   Desktop layers the branded agro-logistics asset (soft topographic contours,
   dashed routes + waypoints, rolling-field motifs) UNDER a bright centre wash,
   so the reading column stays clean while only the corner motifs read through.
   background-attachment:fixed anchors it to the viewport → every screen gets the
   same soft frame; opaque surfaces (header, cards, tinted blocks, dark footer)
   cover it naturally. Mobile drops the asset for the light gradient veil below. */
:root {
    /* Gradient-only veil: the calm brand tint. Reused as the mobile background
       (cheap, no fixed-attachment repaint jank) and echoed on desktop. */
    --vz-site-veil:
        radial-gradient(circle at 12% 8%, rgba(47, 143, 80, 0.10), transparent 34%),
        radial-gradient(circle at 88% 16%, rgba(245, 180, 38, 0.10), transparent 30%),
        linear-gradient(180deg, #f5f9f2 0%, #ffffff 44%, #f6f9f4 100%);
    /* Desktop: bright centre wash + faint brand glows over the branded asset.
       The asset is intrinsically light, so the veil stays gentle — richer look,
       still fully readable. */
    --vz-site-bg:
        radial-gradient(ellipse 92% 74% at 50% 42%, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0) 72%),
        radial-gradient(circle at 12% 8%, rgba(47, 143, 80, 0.06), transparent 34%),
        radial-gradient(circle at 88% 16%, rgba(245, 180, 38, 0.06), transparent 30%),
        url("../images/backgrounds/site-soft-bg.png");
}

/* ===== Reset / Base (within .vz-page) ===== */
.vz-page {
    font-family: var(--vz-font);
    color: var(--vz-text);
    background-color: #f6f8f3;
    background-image: var(--vz-site-bg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}
.vz-page *, .vz-page *::before, .vz-page *::after { box-sizing: border-box; }
.vz-page a { color: var(--vz-green); text-decoration: none; transition: color var(--vz-transition); }
.vz-page a:hover { color: var(--vz-green-dark); }
.vz-page img { max-width: 100%; height: auto; }

/* Mobile: swap the fixed wide asset for the light gradient veil. Fixed-attachment
   backgrounds jank/repaint on touch scroll, and the 16:9 asset would over-crop to
   a thin strip on a portrait viewport — the veil keeps it calm and cheap, with no
   horizontal overflow. */
@media (max-width: 768px) {
    .vz-page {
        background-image: var(--vz-site-veil);
        background-attachment: scroll;
        background-size: auto;
    }
}

/* ===== Container ===== */
.vz-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.vz-container--narrow { max-width: 960px; }

/* ===== Header ===== */
.vz-header { background: var(--vz-bg); border-bottom: 1px solid var(--vz-border-light); position: sticky; top: 0; z-index: 100; }
.vz-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; min-height: 64px; }
.vz-header__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.vz-header__logo-img { display: block; width: auto; height: auto; max-width: 220px; max-height: 52px; }

.vz-header__nav { display: flex; align-items: center; gap: 4px; }
.vz-header__nav a { padding: 8px 14px; border-radius: var(--vz-radius-xs); color: var(--vz-text-secondary); font-size: 15px; font-weight: 500; line-height: 1.5; white-space: nowrap; transition: all var(--vz-transition); }
.vz-header__nav a:hover, .vz-header__nav a.active { background: var(--vz-green-bg); color: var(--vz-green); }

.vz-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 0; }
.vz-header__actions .vz-btn { white-space: nowrap; }
/* ===== Account dropdown (authenticated header) =====
   The long company name lives inside the panel (clamped), never in the top bar. */
.vz-account { position: relative; display: inline-flex; }
.vz-account__btn .vz-icon:last-child { transition: transform var(--vz-transition); }
.vz-account__btn[aria-expanded="true"] .vz-icon:last-child { transform: rotate(180deg); }
.vz-account__menu {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
    min-width: 236px; max-width: 288px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--vz-border);
    border-radius: var(--vz-radius-sm);
    box-shadow: 0 14px 34px rgba(31, 55, 38, 0.16);
}
.vz-account__menu a {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 10px;
    border-radius: var(--vz-radius-xs);
    color: var(--vz-text); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.vz-account__menu a:hover { background: var(--vz-green-bg); color: var(--vz-green-dark); }
.vz-account__id {
    flex-direction: column; align-items: flex-start; gap: 2px;
    margin-bottom: 4px; padding-bottom: 10px;
    border-bottom: 1px solid var(--vz-border-light); border-radius: 0;
}
.vz-account__id:hover { background: transparent; }
.vz-account__name {
    display: block; max-width: 256px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 15px; font-weight: 800; color: var(--vz-text);
}
.vz-account__sub { font-size: 12px; font-weight: 700; color: var(--vz-text-muted); }
.vz-account__logout {
    margin-top: 4px; padding-top: 11px;
    border-top: 1px solid var(--vz-border-light); border-radius: 0;
}
/* No-JS fallback: opening is driven by focus (button focus / tab). Once site-ui.js
   runs it stamps html.vz-js and takes over via click + the [hidden] attribute. */
html:not(.vz-js) .vz-account:focus-within .vz-account__menu[hidden] { display: block; }
.vz-btn { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--vz-radius-xs); font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all var(--vz-transition); text-align: center; white-space: nowrap; }
.vz-btn--primary { background: var(--vz-green); color: #fff; }
.vz-btn--primary:hover { background: var(--vz-green-dark); color: #fff; }
a.vz-btn--primary, a.vz-btn--primary:visited, a.vz-btn--primary:hover { color: #fff; }
.vz-btn--outline { background: transparent; color: var(--vz-green); border: 2px solid var(--vz-green); }
.vz-btn--outline:hover { background: var(--vz-green); color: #fff; }
a.vz-btn--outline:hover { color: #fff; }
.vz-btn--ghost { background: transparent; color: var(--vz-text-secondary); }
.vz-btn--ghost:hover { background: var(--vz-bg-alt); color: var(--vz-text); }
.vz-btn--lg { padding: 14px 28px; font-size: 16px; border-radius: var(--vz-radius-sm); }
.vz-btn--sm { padding: 6px 14px; font-size: 13px; }

.vz-header__mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--vz-text); }

/* ===== Hero ===== */
.vz-hero { background: #f6f8f4; padding: 18px 0 24px; text-align: left; overflow: hidden; }
.vz-hero__layout {
    position: relative;
    overflow: hidden;
    min-height: 456px;
    border: 1px solid rgba(45, 138, 78, 0.12);
    border-radius: var(--vz-radius);
    padding: 34px 36px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 10px 28px rgba(31, 55, 38, 0.08);
    isolation: isolate;
}
.vz-hero__layout::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.86) 39%, rgba(255,255,255,0.36) 62%, rgba(255,255,255,0.1) 100%),
        linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.82) 100%);
    pointer-events: none;
}
.vz-hero__content { position: relative; z-index: 2; max-width: 700px; min-width: 0; }
.vz-hero__title { font-size: 40px; font-weight: 800; color: var(--vz-text); margin: 0 0 8px; line-height: 1.14; letter-spacing: 0; }
.vz-hero__subtitle { font-size: 18px; color: var(--vz-text-secondary); margin: 0 0 16px; line-height: 1.45; max-width: 560px; }
.vz-hero__media { position: absolute; inset: 0; z-index: 0; min-width: 0; }
.vz-hero__media picture { display: block; width: 100%; height: 100%; }
.vz-hero__media .vz-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center bottom;
}

/* Mode Switcher */
.vz-mode-switch { display: inline-flex; background: rgba(255,255,255,0.9); border-radius: var(--vz-radius); padding: 4px; box-shadow: var(--vz-shadow-sm); margin-bottom: 18px; }
.vz-mode-switch__btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: var(--vz-radius-sm); border: none; background: transparent; color: var(--vz-text-secondary); font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--vz-transition); position: relative; }
.vz-mode-switch__btn.active { background: var(--vz-green); color: #fff; box-shadow: var(--vz-shadow-sm); }
.vz-mode-switch__btn:hover:not(.active) { color: var(--vz-text); background: var(--vz-bg-alt); }

/* Hero Actions */
.vz-hero__actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; margin-bottom: 0; }
.vz-hero-cta {
    width: min(100%, 292px);
    min-height: 72px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--vz-radius-sm);
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(45,138,78,0.38);
    color: var(--vz-green);
    box-shadow: 0 3px 10px rgba(31, 55, 38, 0.06);
}
.vz-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 55, 38, 0.11); }
.vz-hero-cta--gold { border-color: rgba(199,144,43,0.55); color: #b47a00; }
.vz-hero-cta__icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--vz-green-bg); }
.vz-hero-cta--gold .vz-hero-cta__icon { background: var(--vz-gold-bg); }
.vz-hero-cta strong { display: block; font-size: 16px; line-height: 1.25; color: currentColor; }
.vz-hero-cta small { display: block; margin-top: 3px; color: var(--vz-text-secondary); font-size: 12px; line-height: 1.25; }
.vz-hero-cta__arrow { justify-self: end; color: currentColor; font-size: 24px; line-height: 1; }

/* Search Block */
.vz-hero__search { position: relative; z-index: 2; width: 100%; margin-top: auto; background: rgba(255,255,255,0.94); border: 1px solid rgba(224,224,224,0.86); border-radius: var(--vz-radius-sm); padding: 13px 14px 10px; box-shadow: 0 8px 24px rgba(40, 50, 45, 0.12); }
.vz-hero__search-row { display: grid; grid-template-columns: repeat(2, minmax(145px, 1fr)) minmax(150px, 1fr) minmax(130px, 0.8fr) 108px; gap: 10px; align-items: end; }
.vz-hero__search-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vz-hero__search-field label { font-size: 11px; font-weight: 700; color: var(--vz-text-secondary); letter-spacing: 0; text-align: left; }
.vz-hero__search-field input, .vz-hero__search-field select { min-height: 38px; padding: 9px 12px; border: 1px solid var(--vz-border); border-radius: var(--vz-radius-xs); font-size: 13px; color: var(--vz-text); background: var(--vz-bg); transition: border var(--vz-transition); width: 100%; }
.vz-hero__search-field input:focus, .vz-hero__search-field select:focus { outline: none; border-color: var(--vz-green); box-shadow: 0 0 0 3px rgba(45,138,78,0.12); }
.vz-hero__search-field--button .vz-btn { width: 100%; min-height: 38px; justify-content: center; padding: 9px 16px; }

/* ===== Stats Bar ===== */
.vz-stats { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; color: var(--vz-text); font-size: 14px; }
.vz-stats__item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--vz-text-secondary); }
.vz-stats__item strong { color: var(--vz-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.vz-stats__item .vz-icon { color: var(--vz-text-muted); }

/* ===== Section ===== */
.vz-section { padding: 50px 0; }
.vz-section--alt { background: var(--vz-bg-alt); }
.vz-section__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.vz-section__title { font-size: 26px; font-weight: 700; color: var(--vz-text); margin: 0; }
.vz-section__link { font-size: 15px; font-weight: 500; color: var(--vz-green); }
.vz-section__link:hover { color: var(--vz-green-dark); }

/* ===== Request Cards (string/compact) ===== */
.vz-card-list { display: flex; flex-direction: column; gap: 8px; }
.vz-card { background: #fff; border: 1px solid var(--vz-border-light); border-radius: var(--vz-radius-sm); padding: 16px 20px; display: flex; align-items: center; gap: 16px; transition: all var(--vz-transition); cursor: pointer; flex-wrap: wrap; }
.vz-card:hover { border-color: var(--vz-green); box-shadow: var(--vz-shadow-sm); }
.vz-card__badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.vz-card__badge--auto { background: #e8f5e9; color: #2e7d32; }
.vz-card__badge--rail { background: #e3f2fd; color: #1565c0; }
.vz-card__route { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--vz-text); }
.vz-card__route span { color: var(--vz-text-muted); margin: 0 6px; }
.vz-card__cargo { font-size: 14px; color: var(--vz-text-secondary); white-space: nowrap; }
.vz-card__volume { font-size: 14px; font-weight: 600; color: var(--vz-text); white-space: nowrap; }
.vz-card__trucks { font-size: 14px; color: var(--vz-text-secondary); white-space: nowrap; }
.vz-card__rate { font-size: 14px; font-weight: 700; color: var(--vz-green); white-space: nowrap; }
.vz-card__date { font-size: 13px; color: var(--vz-text-muted); white-space: nowrap; }
.vz-card__arrow { color: var(--vz-text-muted); flex-shrink: 0; }

/* ===== Homepage Market Panels ===== */
.vz-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.vz-home-market { padding: 26px 0 18px; background: #fff; }
.vz-home-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.vz-home-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--vz-border);
    border-radius: var(--vz-radius-sm);
    overflow: hidden;
}
.vz-home-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 18px 12px; border-bottom: 1px solid var(--vz-border-light); }
.vz-home-panel__title { margin: 0 0 3px; color: var(--vz-text); font-size: 22px; font-weight: 800; line-height: 1.2; }
.vz-home-panel__link { font-size: 13px; font-weight: 700; color: var(--vz-green); }
.vz-home-panel .vz-mode-switch { margin: 0; flex-shrink: 0; }
.vz-home-panel .vz-mode-switch__btn { padding: 7px 10px; font-size: 12px; }
.vz-home-list { display: flex; flex-direction: column; flex: 1; }
.vz-home-row {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(116px, auto) auto;
    grid-template-areas:
        "icon main side action"
        "icon main time action";
    gap: 4px 12px;
    align-items: center;
    min-height: 86px;
    padding: 12px 14px;
    color: inherit;
    border-bottom: 1px solid var(--vz-border-light);
}
.vz-home-row:hover { background: #fbfdfb; color: inherit; }
.vz-home-row__icon { grid-area: icon; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--vz-green); }
.vz-home-row__icon--rail { color: #1565c0; }
.vz-home-row__main { grid-area: main; min-width: 0; }
.vz-home-row__main strong { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--vz-text); font-size: 14px; line-height: 1.3; }
.vz-home-row__main strong span { color: var(--vz-text-muted); }
.vz-home-row__main small,
.vz-home-row__side small,
.vz-home-row__time { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--vz-text-secondary); font-size: 12px; line-height: 1.35; }
.vz-home-row__side { grid-area: side; justify-self: end; min-width: 0; text-align: left; }
.vz-home-row__side strong { display: block; color: var(--vz-text); font-size: 14px; line-height: 1.3; white-space: nowrap; }
.vz-home-row__action { grid-area: action; justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-width: 78px; min-height: 30px; padding: 6px 10px; border: 1px solid rgba(45,138,78,0.5); border-radius: var(--vz-radius-xs); color: var(--vz-green); font-size: 12px; font-weight: 700; white-space: nowrap; }
.vz-home-row__time { grid-area: time; justify-self: end; white-space: nowrap; }
.vz-home-panel__footer { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 16px; color: var(--vz-green); font-size: 14px; font-weight: 800; border-top: 1px solid var(--vz-border-light); }
.vz-home-panel__footer:hover { background: var(--vz-green-bg); color: var(--vz-green-dark); }

/* ===== Empty State ===== */
.vz-empty { text-align: center; padding: 28px 20px; background: var(--vz-bg-alt); border-radius: var(--vz-radius-sm); border: 1px solid var(--vz-border-light); }
.vz-empty__title { font-size: 16px; font-weight: 700; color: var(--vz-text); margin: 0 0 6px; }
.vz-empty__text { font-size: 14px; color: var(--vz-text-secondary); margin: 0 0 14px; }

/* ===== How It Works ===== */
.vz-how { display: flex; gap: 24px; }
.vz-how__step { flex: 1; text-align: center; padding: 24px 16px; }
.vz-how__step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--vz-green-bg); color: var(--vz-green); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.vz-how__step h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--vz-text); }
.vz-how__step p { font-size: 14px; color: var(--vz-text-secondary); margin: 0; line-height: 1.6; }

/* ===== Advantages ===== */
.vz-advantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.vz-advantage { display: flex; gap: 14px; align-items: flex-start; }
.vz-advantage__icon { width: 44px; height: 44px; border-radius: var(--vz-radius-sm); background: var(--vz-green-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; }
.vz-advantage h4 { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--vz-text); }
.vz-advantage p { font-size: 13px; color: var(--vz-text-secondary); margin: 0; line-height: 1.5; }

/* ===== Trust Signals (компактная полоса) ===== */
.vz-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.vz-trust__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 26px 20px; background: #fff; border: 1px solid var(--vz-border-light); border-radius: var(--vz-radius-sm); }
.vz-trust__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--vz-green-bg); color: var(--vz-green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vz-trust__body { display: flex; flex-direction: column; gap: 6px; }
.vz-trust__item h4 { margin: 0; font-size: 15px; font-weight: 700; color: var(--vz-text); line-height: 1.3; }
.vz-trust__item p { margin: 0; font-size: 13px; color: var(--vz-text-secondary); line-height: 1.5; min-height: 2.9em; }

/* ===== Promo Block ===== */
.vz-promo { display: flex; align-items: center; gap: 24px; background: linear-gradient(135deg, var(--vz-green-bg), var(--vz-gold-bg)); border-radius: var(--vz-radius); padding: 32px; }
.vz-promo__content { flex: 1; }
.vz-promo__content h2 { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: var(--vz-text); }
.vz-promo__content p { font-size: 15px; color: var(--vz-text-secondary); margin: 0; }
.vz-promo__badge { display: inline-block; background: var(--vz-gold); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-left: 8px; vertical-align: middle; }

/* ===== Homepage — framed on the site background =====
   Drop the full-width section fills (hero band, white market band, alt trust
   band) so the systemic .vz-page background shows AROUND the blocks — the same
   framed look the /requests market page gets. The hero layout, market panels and
   trust items are self-contained cards, so a soft shadow lifts them off the bg. */
.vz-page--home .vz-hero { background: transparent; }
.vz-page--home .vz-home-market { background: transparent; }
.vz-page--home .vz-section--alt { background: transparent; }
.vz-page--home .vz-home-panel { box-shadow: 0 6px 20px rgba(31, 55, 38, 0.07); }
.vz-page--home .vz-trust__item { box-shadow: 0 4px 14px rgba(31, 55, 38, 0.06); }

/* ===== Footer ===== */
.vz-footer { background: #1a1a1a; color: #9e9e9e; padding: 48px 0 24px; font-size: 14px; }
.vz-footer__grid { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 32px; }
.vz-footer__col { flex: 1; min-width: 160px; }
.vz-footer__col--brand { flex: 2; min-width: 240px; }
.vz-footer a.vz-footer__brand { display: inline-flex; align-items: baseline; margin-bottom: 10px; padding: 0; font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: 0; color: #fff; text-decoration: none; }
.vz-footer a.vz-footer__brand:hover { color: #fff; }
.vz-footer__brand-green { color: #6fbd7e; }
.vz-footer__brand-gold { color: #e0ad32; }
.vz-footer__desc { font-size: 13px; line-height: 1.6; color: #888; max-width: 300px; }
.vz-footer h4 { font-size: 14px; font-weight: 700; color: #ddd; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.vz-footer a { display: block; color: #9e9e9e; padding: 4px 0; transition: color var(--vz-transition); }
.vz-footer a:hover { color: #fff; }
.vz-footer__text { color: #888; font-size: 13px; line-height: 1.6; max-width: 240px; }
.vz-footer__note { color: #666; font-size: 12px; line-height: 1.5; max-width: 260px; margin-top: 10px; }
.vz-footer__bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 12px; color: #666; }

/* ===== Error / 404 page — framed on the site background ===== */
.vz-error { padding: 56px 0 72px; }
.vz-error__card {
    max-width: 640px; margin: 0 auto; text-align: center;
    padding: 44px 40px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--vz-border-light);
    border-radius: var(--vz-radius);
    box-shadow: 0 12px 34px rgba(31, 55, 38, 0.10);
}
.vz-error__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 76px; height: 76px; margin-bottom: 14px;
    border-radius: 20px;
    background: var(--vz-green-bg); color: var(--vz-green);
}
.vz-error__code { font-size: 46px; font-weight: 850; line-height: 1; color: var(--vz-green); letter-spacing: 0.02em; }
.vz-error__title { margin: 10px 0 10px; font-size: 28px; font-weight: 800; color: var(--vz-text); }
.vz-error__lead { margin: 0 auto 8px; max-width: 520px; font-size: 17px; color: var(--vz-text); }
.vz-error__text { margin: 0 auto 26px; max-width: 520px; font-size: 15px; line-height: 1.6; color: var(--vz-text-secondary); }
.vz-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 22px; }
.vz-error__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--vz-border-light); }
.vz-error__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--vz-green-dark); font-size: 14px; font-weight: 700; }
.vz-error__links a:hover { color: var(--vz-green); }
@media (max-width: 480px) {
    .vz-error { padding: 32px 0 48px; }
    .vz-error__card { padding: 30px 20px; }
    .vz-error__title { font-size: 23px; }
    .vz-error__actions .vz-btn { width: 100%; justify-content: center; }
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
    .vz-header__actions .vz-btn--ghost { display: none; }
    .vz-header__actions .vz-account { display: none; }
    .vz-header__mobile-toggle { display: block; }
}

@media (max-width: 1024px) {
    .vz-hero__layout { min-height: 500px; padding: 30px 28px 22px; }
    .vz-hero__layout::before {
        background:
            linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.88) 46%, rgba(255,255,255,0.44) 72%, rgba(255,255,255,0.18) 100%),
            linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.86) 100%);
    }
    .vz-hero__title { font-size: 34px; max-width: 660px; }
    .vz-hero__subtitle { font-size: 16px; }
    .vz-hero__search-row { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1fr); }
    .vz-hero__search-field--button { grid-column: 3; }
    .vz-home-board { gap: 18px; }
    .vz-home-panel__header { flex-direction: column; }
    .vz-home-panel .vz-mode-switch { width: 100%; }
    .vz-home-panel .vz-mode-switch__btn { flex: 1; justify-content: center; }
    .vz-home-row {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        grid-template-areas:
            "icon main action"
            "icon side time";
        gap: 5px 10px;
        min-height: 98px;
    }
    .vz-home-row__side { justify-self: start; }
    .vz-card { padding: 12px 16px; gap: 10px; }
    .vz-trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .vz-header__nav { display: none; }
    .vz-header__actions .vz-btn--ghost { display: none; }
    .vz-header__mobile-toggle { display: block; }
    .vz-header__logo-img { max-width: 165px; max-height: 42px; }
    .vz-hero { padding: 14px 0 18px; }
    .vz-hero__layout { min-height: 0; padding: 24px 18px 18px; }
    .vz-hero__layout::before {
        background:
            linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 58%, rgba(255,255,255,0.72) 100%),
            linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.9) 100%);
    }
    .vz-hero__media .vz-hero__image { object-position: 54% bottom; }
    .vz-hero__title { font-size: 27px; }
    .vz-hero__subtitle { font-size: 14px; margin-bottom: 14px; max-width: 600px; }
    .vz-mode-switch { flex-direction: row; width: 100%; }
    .vz-mode-switch__btn { flex: 1; justify-content: center; padding: 8px 12px; font-size: 13px; }
    .vz-hero__actions { gap: 10px; }
    .vz-hero-cta { width: 100%; min-height: 64px; }
    .vz-hero__search { padding: 12px; width: 100%; }
    .vz-hero__search-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
    .vz-hero__search-field { min-width: auto; width: 100%; }
    .vz-hero__search .vz-btn { width: 100%; justify-content: center; }
    .vz-stats { gap: 8px 14px; justify-content: flex-start; font-size: 12px; }
    .vz-home-market { padding-top: 18px; }
    .vz-home-board { grid-template-columns: 1fr; }
    .vz-home-panel__header { padding: 16px 14px 11px; }
    .vz-home-panel__title { font-size: 20px; }
    .vz-home-row { min-height: 92px; padding: 11px 12px; }
    .vz-card { flex-direction: column; align-items: flex-start; gap: 6px; }
    .vz-card__route { font-size: 14px; }
    .vz-how { flex-direction: column; gap: 12px; }
    .vz-trust { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .vz-promo { flex-direction: column; text-align: center; }
    .vz-section { padding: 36px 0; }
    .vz-home-market { padding: 18px 0; }
    .vz-section__title { font-size: 22px; }
    .vz-footer__grid { gap: 24px; }
    .vz-footer { padding: 36px 0 22px; }
    .vz-footer__col { min-width: 210px; }
    .vz-footer a { padding: 7px 0; }
}

@media (max-width: 480px) {
    .vz-trust { grid-template-columns: 1fr; gap: 10px; }
    .vz-trust__item { flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 14px 16px; }
    .vz-trust__icon { width: 42px; height: 42px; }
    .vz-trust__item p { min-height: 0; }
    .vz-header__actions > .vz-btn { display: none; }
    .vz-hero > .vz-container > .vz-hero__layout .vz-mode-switch__btn[data-mode] { font-size: 0; gap: 5px; }
    .vz-hero > .vz-container > .vz-hero__layout .vz-mode-switch__btn[data-mode] .vz-icon { width: 16px; height: 16px; }
    .vz-hero > .vz-container > .vz-hero__layout .vz-mode-switch__btn[data-mode="auto"]::after { content: "Авто"; font-size: 13px; }
    .vz-hero > .vz-container > .vz-hero__layout .vz-mode-switch__btn[data-mode="rail"]::after { content: "ЖД"; font-size: 13px; }
}

@media (max-width: 390px) {
    .vz-header__logo-img { max-width: 140px; max-height: 36px; }
    .vz-header__actions > .vz-btn { display: none; }
    .vz-hero__layout { padding: 20px 14px 14px; }
    .vz-hero__title { font-size: 23px; }
    .vz-hero__actions { flex-direction: column; }
    .vz-hero-cta { grid-template-columns: 32px minmax(0, 1fr) 16px; padding: 12px; }
    .vz-hero-cta__icon { width: 32px; height: 32px; }
    .vz-hero-cta strong { font-size: 14px; }
    .vz-hero-cta small { font-size: 11px; }
    .vz-container { padding: 0 14px; }
    .vz-card { padding: 10px 14px; }
    .vz-stats { flex-direction: column; align-items: flex-start; }
    .vz-home-panel .vz-mode-switch__btn { padding: 7px 8px; }
    .vz-home-row {
        grid-template-columns: 28px minmax(0, 1fr);
        grid-template-areas:
            "icon main"
            "icon side"
            "icon action"
            "icon time";
        min-height: 0;
    }
    .vz-home-row__action { justify-self: start; min-width: 72px; }
    .vz-home-row__time { justify-self: start; }
    .vz-home-row__side strong { white-space: normal; }
    .vz-footer__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
    .vz-footer__col,
    .vz-footer__col--brand { min-width: 0; }
    .vz-footer a.vz-footer__brand { font-size: 21px; }
    .vz-footer__desc,
    .vz-footer__text,
    .vz-footer__note { max-width: none; }
    .vz-footer__bottom { text-align: left; line-height: 1.5; }
}

/* ===== Focus & Accessibility ===== */
.vz-page :focus-visible { outline: 2px solid var(--vz-green); outline-offset: 2px; border-radius: 2px; }

/* ===== Mobile Menu Overlay ===== */
.vz-mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: #fff; z-index: 99; padding: 20px; overflow-y: auto; }
.vz-mobile-menu.open { display: block; }
.vz-mobile-menu[aria-hidden="true"] { display: none; }
.vz-mobile-menu a { display: block; padding: 14px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--vz-border-light); color: var(--vz-text); }

/* ===== Icon System ===== */
.vz-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vz-icon--sm { width: 16px; height: 16px; }
.vz-icon--md { width: 20px; height: 20px; }
.vz-icon--lg { width: 24px; height: 24px; }
.vz-icon--xl { width: 28px; height: 28px; }

/* Typography refinements for Manrope */
.vz-hero__title { letter-spacing: 0; }
.vz-stats__value { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.vz-side-rate { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.vz-btn { font-weight: 600; }
.vz-card__rate, .vz-listing-card__rate { font-variant-numeric: tabular-nums; }

/* ===== Request List Item (vertical list — /requests) ===== */

/* --- Filter block --- */
.vz-filter-block {
    background: #fff; border: 1px solid var(--vz-border); border-radius: var(--vz-radius);
    padding: 14px 16px;
}
.vz-filter-block__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.vz-filter-block__select {
    height: 42px; padding: 0 36px 0 12px;
    border: 1px solid var(--vz-border); border-radius: 9px;
    background: #fff; font-family: "Manrope", sans-serif; font-size: 14px;
    color: var(--vz-text); min-width: 130px; cursor: pointer;
    appearance: auto;
}
.vz-filter-block__select:focus { outline: none; border-color: var(--vz-green); box-shadow: 0 0 0 2px rgba(45,138,78,0.12); }

/* --- Vertical request list --- */
.vz-request-list { display: flex; flex-direction: column; gap: 14px; }

/* --- Card: marketplace 3-zone grid ---
   [ left: route + meta ] [ specs grid ] [ right: rate + cta ] */
.vz-rq-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(210px, 1fr) minmax(150px, auto);
    grid-template-areas: "left specs right";
    gap: 20px 26px; align-items: start;
    background: #fff; border: 1px solid var(--vz-border); border-radius: 16px;
    padding: 22px 24px; text-decoration: none; color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.vz-rq-card:hover { border-color: var(--vz-green); box-shadow: 0 4px 16px rgba(31,45,34,0.08); text-decoration: none; color: inherit; }

/* --- Left zone --- */
.vz-rq-left { grid-area: left; min-width: 0; }
.vz-rq-badges { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.vz-rq-kind { font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--vz-text-muted); }
.vz-rq-route {
    font-size: 18px; font-weight: 700; color: var(--vz-text);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; line-height: 1.3;
}
.vz-rq-route__pt { min-width: 0; }
.vz-rq-route__sep { color: var(--vz-green); font-weight: 400; flex-shrink: 0; display: inline-flex; }
.vz-rq-route__sep .vz-icon { stroke: var(--vz-green); }
.vz-rq-date { font-size: 12.5px; color: var(--vz-text-muted); margin-top: 10px; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.vz-rq-date .vz-icon { vertical-align: -2px; }
.vz-rq-date__load { color: var(--vz-text-secondary); font-weight: 600; }

/* --- Specs zone: aligned label -> value grid --- */
.vz-rq-specs {
    grid-area: specs; min-width: 0;
    display: grid; grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 16px; align-content: start;
}
.vz-rq-spec__label { font-size: 13px; color: var(--vz-text-muted); line-height: 1.35; }
.vz-rq-spec__value { font-size: 13px; font-weight: 600; color: var(--vz-text); line-height: 1.35; }
.vz-rq-spec__value--hl { color: var(--vz-green); font-weight: 700; }

/* --- Right zone --- */
.vz-rq-right { grid-area: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.vz-rq-rate { font-size: 19px; font-weight: 800; color: var(--vz-text); white-space: nowrap; line-height: 1.2; font-variant-numeric: tabular-nums; }
.vz-rq-rate--empty { font-size: 15px; color: var(--vz-text-muted); font-weight: 600; }
.vz-rq-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border: 1.5px solid var(--vz-green); border-radius: 10px;
    font-size: 13px; font-weight: 700; color: var(--vz-green);
    transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.vz-rq-cta:hover { background: var(--vz-green); color: #fff; }
.vz-rq-cta:hover .vz-icon { stroke: #fff; }
.vz-rq-cta .vz-icon { stroke: var(--vz-green); flex-shrink: 0; }

/* --- Empty state --- */
.vz-empty-state { text-align: center; padding: 56px 20px; background: var(--vz-bg-alt); border-radius: var(--vz-radius); border: 2px dashed var(--vz-border); }
.vz-empty-state__icon { margin-bottom: 14px; color: var(--vz-text-muted); }
.vz-empty-state__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--vz-text); }
.vz-empty-state__text { font-size: 14px; color: var(--vz-text-secondary); margin-bottom: 18px; }

/* --- Counter bar --- */
.vz-listing-counter { font-size: 14px; font-weight: 600; color: var(--vz-text); padding: 8px 0; }
.vz-listing-counter span { color: var(--vz-text-muted); font-weight: 400; }

/* --- Responsive --- */
/* Tablet: 2 zones — route + price on top, specs full-width below */
@media (max-width: 1024px) {
    .vz-rq-card {
        grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
        grid-template-areas:
            "left  right"
            "specs specs";
        gap: 16px 20px;
    }
    .vz-rq-specs {
        grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
        column-gap: 26px;
        padding-top: 14px; border-top: 1px solid var(--vz-border-light);
    }
    .vz-rq-route { font-size: 16px; }
}
/* Mobile: single column — route, specs, then price + button bar */
@media (max-width: 768px) {
    .vz-filter-block__row { gap: 8px; }
    .vz-filter-block__select { flex: 1; min-width: 120px; height: 40px; font-size: 13px; }
    .vz-rq-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "specs"
            "right";
        gap: 14px; padding: 18px 16px;
    }
    .vz-rq-specs {
        grid-template-columns: max-content minmax(0, 1fr);
        gap: 7px 14px;
    }
    .vz-rq-right {
        flex-direction: row; align-items: center; justify-content: space-between;
        text-align: left; border-top: 1px solid var(--vz-border-light); padding-top: 14px;
    }
    .vz-rq-route { font-size: 15px; }
    .vz-rq-rate { font-size: 17px; }
    .vz-rq-cta { padding: 11px 22px; }
}
@media (max-width: 390px) {
    .vz-filter-block { padding: 10px 12px; }
    .vz-filter-block__select { width: 100%; min-width: auto; font-size: 13px; height: 40px; }
    .vz-rq-card { padding: 16px 14px; gap: 12px; }
    .vz-rq-route { font-size: 14px; }
    .vz-rq-rate { font-size: 16px; }
}
