/* Virazh signage: white surfaces, graphite lettering and a petrol-blue accent.
   Legacy token aliases keep the existing static components compatible. */
:root {
    --brand-blue: #006c92;
    --brand-blue-dark: #005273;
    --brand-graphite: #303b42;
    --brand-ink: #202c34;
    --brand-muted: #596c76;
    --brand-mist: #f2f6f8;
    --brand-line: #d8e3e8;
    --Text-black: var(--brand-ink);
    --Text-dark-gray: var(--brand-graphite);
    --Text-gray: var(--brand-muted);
    --Text-blue: var(--brand-blue);
    --Text-red: var(--brand-blue-dark);
    --Text-orange: var(--brand-blue);
    --color-red-10: var(--brand-blue-dark);
    --color-light-orange: #b5d3df;
    --color-shadow: #eaf3f7;
    --color-green: #e5f1f5;
    --Stroke-light-gray: var(--brand-line);
    --Stroke-light-gray-2: var(--brand-line);
    --Background-light-gray-2: var(--brand-mist);
    --Background-light-gray: #e4edf1;
    --overlay-bg: rgb(20 39 50 / 48%);
}

body {
    font-family: 'Onest', sans-serif;
    background: #fff;
    color: var(--brand-ink);
    -webkit-font-smoothing: antialiased;
}

::selection { background: #c5e5f0; color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 4px; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
[id] { scroll-margin-top: 88px; }
h1, .h1 { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.08; letter-spacing: -0.045em; }
h2, .h2 { font-size: clamp(26px, 2.65vw, 38px); line-height: 1.13; letter-spacing: -0.035em; }
.text-m { line-height: 1.45; }
.text-s { line-height: 1.4; }
.page-section { margin-top: 80px; }

.logo-wrapper.brand-logo { color: var(--brand-graphite); width: 174px; align-items: flex-start; }
.brand-logo__caption { font-size: 10px; letter-spacing: 0.38em; }
.brand-logo__name { font-size: 40px; letter-spacing: -0.065em; }
.brand-logo__name span { color: var(--brand-blue); }
header .width-container { max-width: 1320px; }
header .header-container { gap: 22px; }
header .header__contacts { gap: 16px; }
header .header-nav-list .header-nav__btn { padding: 10px 16px; }
header .header__contacts-number { font-size: 22px; }
header .header__contacts-btn { padding-left: 18px; padding-right: 18px; }
header.customBoxShadow {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    box-shadow: 0 2px 16px rgb(26 54 69 / 4%);
}
.header-nav__btn { white-space: normal; }
.header-city { width: 154px; }
.header-city__btn { width: 100%; justify-content: space-between; border: 0; background: transparent; }
.header-city:hover .header-city__btn { background-color: var(--brand-mist); }
.header-city:hover .header-city__name { color: var(--brand-graphite); }
.header-city:hover svg path { stroke: var(--brand-muted); fill: none; }
.header-city-mobile-text { font-size: 12px; }
.city-list__wrapper { width: 100%; min-width: 0; }
.city-list { width: 100%; min-width: 0; }
.header-dropdown-catalog { z-index: 40; }
@media (min-width: 992px) {
    header:has([data-catalog-btn]:hover) .header-dropdown-catalog,
    header:has([data-catalog-btn]:focus-visible) .header-dropdown-catalog,
    .header-dropdown-catalog:hover {
        display: block;
    }
}
.header-nav-list__dropdown {
    padding-top: 16px;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.header-dropdown {
    min-width: 360px;
    padding: 28px 42px 30px;
    max-height: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 26px rgb(29 63 79 / 12%);
}
.header-dropdown li + li { margin-top: 12px; }
.header-dropdown__link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    color: var(--brand-graphite);
    line-height: 1.35;
    transition: color 200ms;
}
.header-dropdown__link:hover { color: var(--brand-blue); }
.catalog-route { display: flex; align-items: center; gap: 16px; }
.catalog-route > span:first-child { min-width: 0; }
.route-status { color: var(--brand-muted); font-size: 10px; line-height: 1.35; font-weight: 400; flex-shrink: 0; }
.header-dropdown-catalog__item .h5 { font-size: 13px; line-height: 1.4; letter-spacing: 0; }

@media (min-width: 993px) {
    .header-dropdown-catalog__content {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 244px));
        justify-content: center;
        align-items: start;
        gap: 32px;
    }
    .header-dropdown-catalog__item {
        max-width: none;
        min-width: 0;
    }
    .header-dropdown-catalog__list .catalog-route {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        min-width: 0;
        height: auto;
        min-height: 0;
        padding: 10px 0;
        line-height: 1.2;
    }
    .header-dropdown-catalog__list .catalog-route > span {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.2;
    }
}

@media (max-width: 992px) {
    .header-dropdown-catalog__list .catalog-route {
        justify-content: space-between;
    }
}

.btn-custom { min-height: 44px; height: auto; padding-top: 11px; padding-bottom: 11px; white-space: normal; line-height: 1.3; }
.redFillBtn { border-color: var(--brand-blue); box-shadow: 0 5px 14px rgb(0 108 146 / 10%); }
.redBtn { background: #fff; }
.redBtn svg path { fill: var(--brand-blue); }
svg [fill="#204BB3" i], svg [fill="#CF2906" i], svg [fill="#F84C28" i] { fill: var(--brand-blue); }
.grayBtn { color: var(--brand-graphite); background: #e9f0f3; }
.fix-menu__max {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #17191c;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease;
}
.fix-menu__max:hover,
.fix-menu__max:focus-visible {
    color: #fff;
    background: #24282d;
    transform: translateY(-1px);
}
.fix-menu__max svg { display: block; }
.fix-menu { max-width: calc(100vw - 24px); }
.borderRadius-12 { border-radius: 14px; }
.customBoxShadow { box-shadow: 0 7px 24px rgb(29 63 79 / 7%); }

.home-top {
    position: relative;
    margin-top: 20px;
    padding-top: 64px;
    padding-bottom: 28px;
    border-radius: 20px;
    background-color: #fff;
    background-image: url('/assets/images/banners/home-tope-bg.webp');
    background-repeat: no-repeat;
    background-position: top;
}
.home-top::before { content: ''; position: absolute; top: 0; left: 40px; width: 82px; height: 4px; background: var(--brand-blue); transform: skewX(-28deg); }
.page-top__content { max-width: 675px; gap: 24px; }
.page-top__btn { padding-inline: 28px; }
.our-advantages__item { border-color: var(--brand-line); }
.additional-advantages { margin-top: 80px; }
.additional-advantages__card { border: 1px solid var(--brand-line); background: rgb(255 255 255 / 96%); }
.reasons__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin-left: 0; padding: 0; gap: 16px; overflow: visible; }
.reason-card { padding: 20px; box-shadow: none; border: 1px solid var(--brand-line); }
.categories-card { border: 1px solid var(--brand-line); background: #fff; }
.error-page__image img { height: auto; }
.sample-avatar { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100%; min-height: 64px; background: var(--brand-mist); color: #8aa6b3; overflow: hidden; border-radius: inherit; }
.sample-avatar svg { width: 76%; height: 85%; max-height: 180px; }
.generated-instructor-avatar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    min-height: 86px;
    padding: 12px;
    overflow: hidden;
    color: var(--brand-blue-dark);
    background:
        radial-gradient(circle at 72% 18%, rgb(255 255 255 / 70%) 0 10px, transparent 11px),
        linear-gradient(135deg, #dbeaf0, #f7fbfc 58%, #b8d4de);
    border-radius: inherit;
}
.generated-instructor-avatar::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: .55;
}
.generated-instructor-avatar::after {
    content: '';
    position: absolute;
    right: -22px;
    bottom: -24px;
    width: 72px;
    height: 72px;
    background: var(--brand-blue);
    border-radius: 50%;
    opacity: .14;
}
.generated-instructor-avatar__mark {
    position: relative;
    z-index: 1;
    width: fit-content;
    padding: 5px 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    background: var(--brand-blue);
    border-radius: 999px;
}
.generated-instructor-avatar__line {
    position: relative;
    z-index: 1;
    width: 72%;
    height: 4px;
    margin-top: 10px;
    background: currentColor;
    border-radius: 999px;
    opacity: .32;
}
.generated-instructor-avatar__caption {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.2;
    color: var(--brand-muted);
}
.instructor-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.branches-container {
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(48px, 7vw, 112px);
}
.branches-map-col {
    gap: 12px;
}
.available-addresses__list li {
    align-items: center;
    min-height: 88px;
}
.available-addresses-title {
    min-width: 0;
}
.available-addresses-title .h5,
.available-addresses-title .text-s {
    overflow-wrap: anywhere;
}
.map-wrapper {
    height: 366px;
    background: #f7f7f7;
    border-color: #e0e5e8;
}
.map-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    color: #8b989f;
    background:
        linear-gradient(90deg, rgb(255 255 255 / 0) 0 39px, rgb(48 59 66 / 4%) 40px, rgb(255 255 255 / 0) 41px),
        linear-gradient(0deg, rgb(255 255 255 / 0) 0 39px, rgb(48 59 66 / 4%) 40px, rgb(255 255 255 / 0) 41px),
        #f7f7f7;
    background-size: 40px 40px;
    border-radius: inherit;
}
.map-placeholder span {
    padding: 10px 14px;
    color: #798991;
    font-size: 13px;
    line-height: 1.4;
    background: rgb(255 255 255 / 82%);
    border: 1px solid #e3e8eb;
    border-radius: 999px;
}
.location-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; min-height: 420px; height: 100%; padding: clamp(24px, 4vw, 56px); background: linear-gradient(135deg, #edf5f8, #fff); border: 1px solid var(--brand-line); border-radius: inherit; }
.location-card h3 { max-width: 420px; }
.consultation-banner {
    box-shadow: none;
}
.consultation-banner__bottom {
    align-items: center;
    justify-content: space-between;
}
.consultation-banner__btn {
    padding-inline: 28px;
    white-space: nowrap;
}
.template-media-image { display: block; width: 100%; height: 100%; object-fit: contain; background: white; }
.vehicle-card__image img { object-fit: contain; }
.custom-container-2-slider:has(.virazh-vehicle-card) {
    border-radius: 0;
    background: #f4f7f8;
}
.custom-container-2-slider:has(.virazh-vehicle-card) h2 {
    max-width: 760px;
}
.custom-container-2-slider:has(.virazh-vehicle-card) .section-content {
    gap: 12px;
}
.trainingPark__attention-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    border: 1px solid var(--brand-blue);
    border-radius: 50%;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.virazh-vehicle-card {
    align-items: stretch;
}
.virazh-vehicle-card .vehicle-card__info {
    min-height: 520px;
    padding: 36px 32px 24px;
    background: linear-gradient(145deg, var(--brand-blue), #1686a8);
    color: #fff;
    box-shadow: 0 12px 30px rgb(24 93 117 / 16%);
}
.virazh-vehicle-card .vehicle-card__header {
    gap: 28px;
}
.virazh-vehicle-card .vehicle-card__header h3 {
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.virazh-vehicle-card .vehicle-card__specs {
    gap: 10px;
    font-size: 17px;
    font-weight: 500;
}
.virazh-vehicle-card .vehicle-card__footer {
    align-items: flex-end;
    gap: 28px;
}
.machine-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid rgb(255 255 255 / 70%);
}
.virazh-vehicle-card .machine-details span {
    color: rgb(255 255 255 / 78%);
    font-size: 13px;
}
.virazh-vehicle-card .machine-details strong {
    margin-top: 4px;
    color: #fff;
    font-size: 20px;
    line-height: 1.18;
}
.virazh-vehicle-card .vehicle-card__details {
    max-width: 470px;
    gap: 20px;
}
.virazh-vehicle-card .vehicle-card__details p {
    max-width: 430px;
    color: #fff;
    font-weight: 500;
}
.virazh-vehicle-card .vehicle-card__badge {
    align-self: flex-end;
    width: 150px;
    min-width: 150px;
    height: 144px;
    padding: 14px;
    border-radius: 12px;
    background: #26343b;
    box-shadow: 0 12px 24px rgb(0 0 0 / 18%);
}
.virazh-vehicle-card .vehicle-card-badge__img {
    position: relative;
    width: 72px;
    height: 72px;
    margin: -48px auto 0;
    border: 2px solid rgb(255 255 255 / 82%);
    border-radius: 50%;
    background-color: var(--brand-blue);
    background-image: url('../images/icons/figma/category-motorbike.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 42px 42px;
    box-shadow: 0 10px 18px rgb(0 0 0 / 20%);
}
.virazh-vehicle-card .vehicle-card-badge__img::before {
    display: none;
}
.virazh-vehicle-card .vehicle-card__badge .btn-custom {
    width: 100%;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 14px;
}
.virazh-vehicle-card .vehicle-card__image {
    min-height: 520px;
    padding: 34px;
    background: #fff;
    box-shadow: 0 10px 24px rgb(28 50 60 / 8%);
}
.virazh-vehicle-card .vehicle-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.reviews-card__rating { min-height: 24px; }
.reviews-card__content-bottom h5 {
    color: var(--brand-blue-dark);
    font-weight: 600;
}
.review-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-graphite);
}
.review-rating__star {
    color: var(--brand-blue);
    font-size: 17px;
    line-height: 1;
}
.reviews-creator__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.promotions-payments__card {
    position: relative;
    overflow: hidden;
    background-color: var(--brand-mist);
    border: 1px solid var(--brand-line);
    background-image: none;
}
.promotions-payments__card h4,
.promotions-payments__card-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
}
.fixPrice-card { background-color: var(--brand-blue-dark); }
.categories-card__tag { color: var(--brand-blue); background: #fff; box-shadow: 0 3px 14px rgb(29 63 79 / 10%); }
.categories-card__price, .tariffs-price { color: var(--brand-blue); font-weight: 600; }
.training-step__subtitle a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.virazh-content-card { border-top: 3px solid var(--brand-blue); background: var(--brand-mist); }
.virazh-content-card a { color: var(--brand-blue-dark); }
.dos-school__form, .category-form { border: 1px solid var(--brand-line); box-shadow: 0 12px 32px rgb(29 63 79 / 7%); }
.category-top__content > div, .dos-school__content { min-width: 0; }
.dos-school {
    gap: 64px;
    justify-content: stretch;
    align-items: stretch;
}
.dos-school__content {
    position: relative;
    flex: 1 1 auto;
    max-width: none;
    padding: clamp(24px, 3vw, 36px);
    border-radius: 18px;
    background:
        radial-gradient(circle at 95% 8%, rgb(0 108 146 / 10%) 0 92px, transparent 93px),
        linear-gradient(145deg, rgb(255 255 255 / 66%), rgb(255 255 255 / 18%));
}
.dos-school__form {
    flex: 0 1 440px;
    max-width: 440px;
}
.dos-school__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 36px;
    width: 78px;
    height: 4px;
    background: var(--brand-blue);
    transform: skewX(-28deg);
}
.dos-school__title {
    margin-top: 0;
}
.virazh-about {
    gap: 22px;
}
.virazh-about__lead {
    max-width: 640px;
    color: var(--brand-muted);
    font-size: 17px;
    line-height: 1.65;
}
.virazh-about__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.virazh-about__card {
    min-width: 0;
    min-height: 118px;
    padding: 18px;
    border: 1px solid var(--brand-line);
    border-radius: 14px;
    background: rgb(255 255 255 / 78%);
    box-shadow: 0 10px 24px rgb(29 63 79 / 5%);
}
.virazh-about__value {
    display: block;
    margin-bottom: 12px;
    color: var(--brand-blue);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.055em;
}
.virazh-about__route {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    color: var(--brand-ink);
    border: 1px solid var(--brand-line);
    border-radius: 14px;
    background: #fff;
}
.virazh-about__pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    color: #fff;
    background: var(--brand-blue);
    border-radius: 50%;
}
.virazh-about__route-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}
.virazh-about__route-copy strong {
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.virazh-about__actions {
    gap: 18px;
    flex-wrap: wrap;
}
.virazh-about__phone {
    color: var(--brand-blue-dark);
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}
.faq-section { max-width: none; align-items: stretch; }
.faq-section h2,
.faq-section .your-question-btn { align-self: center; }
.faq-item { border-color: var(--brand-line); }
.faq-question { white-space: normal; text-align: left; gap: 20px; }
.faq-question__icon { flex-shrink: 0; }
.faq-item.open .faq-question { color: var(--brand-blue); }
.any-questions-section {
    padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 32px);
    background: #fff;
    border: 1px solid var(--brand-line);
    box-shadow: 0 10px 26px rgb(29 63 79 / 9%);
}
.any-questions__top h4 { font-size: 22px; line-height: 1.2; }
.any-questions__contacts { gap: 20px; }
.any-questions__contact {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 88px;
    background: #f6f7f8;
    border-color: var(--brand-line);
}
.any-questions__contact-icon {
    color: #fff;
    background: var(--brand-blue);
}
.any-questions__label { min-width: 0; gap: 4px; }
.questions-contact__type {
    color: var(--brand-blue-dark);
    font-weight: 600;
    overflow-wrap: anywhere;
}
[data-demo-notice] { font-size: 12px; line-height: 1.5; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--brand-line); }
[data-demo-notice] a { color: var(--brand-blue); }
.form-agreement__link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.popup .dos-school__form { border-top: 4px solid var(--brand-blue); }
.popup-overlay.active {
    background: rgb(20 39 50 / 48%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    filter: none;
}
.popup,
.popup *,
.popup .dos-school__form,
.popup-content,
.popup-result__content {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    filter: none;
    opacity: 1;
}
.popup-close { border-radius: 8px; background: var(--brand-mist); }
footer { background: #fff; }
.footer-main { padding-top: 40px; }
.footer-bottom__list { gap: 12px 24px; flex-wrap: wrap; max-width: 580px; }
.footer-bottom__list li { min-width: 0; }
.footer-bottom { gap: 24px; padding-block: 24px; }
.footer-contacts-phone { white-space: nowrap; }

/* Keep the short category-registration headings on one line in every form
   popup, while leaving longer consultation headings free to wrap naturally. */
.popup-title--category {
    white-space: nowrap;
    font-size: 30px;
    letter-spacing: -0.035em;
}

/* The feature text has different intrinsic widths, so let it fill the
   remaining card space and keep both illustrations on the same right edge. */
.feature-content {
    flex: 1 1 0;
    min-width: 0;
}

.feature-image {
    flex: 0 0 144px;
}

/* Figma icon parity: keep the original inline markup as a fallback in the
   content, but render the exact vector assets from the approved design. */
.home-top .our-advantages__icon,
.category-top__section .our-advantages__icon,
.home-top .additional-advantages-card__icon,
.reasons__grid .reason-card .icon-wrapper,
.feature .feature-icon,
.accident-analytics .accident-analytic__card .icon-wrapper,
.reason-choose-us .accident-analytic__card .icon-wrapper,
.training-step__icon,
.any-questions__contact-icon,
.available-addresses__icon {
    position: relative;
}

.home-top .our-advantages__icon svg,
.category-top__section .our-advantages__icon svg,
.home-top .additional-advantages-card__icon svg,
.reasons__grid .reason-card .icon-wrapper svg,
.feature .feature-icon svg,
.accident-analytics .accident-analytic__card .icon-wrapper svg,
.reason-choose-us .accident-analytic__card .icon-wrapper svg,
.training-step__icon svg,
.any-questions__contact-icon svg,
.available-addresses__icon svg {
    display: none !important;
}

.home-top .our-advantages__icon::after,
.category-top__section .our-advantages__icon::after,
.home-top .additional-advantages-card__icon::after,
.reasons__grid .reason-card .icon-wrapper::after,
.feature .feature-icon::after,
.accident-analytics .accident-analytic__card .icon-wrapper::after,
.reason-choose-us .accident-analytic__card .icon-wrapper::after,
.training-step__icon::after,
.any-questions__contact-icon::after,
.available-addresses__icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Home hero: id, car, location. */
.home-top .our-advantages__item:nth-child(1) .our-advantages__icon::after { width: 15px; height: 15px; flex-basis: 15px; background-image: url('../images/icons/figma/hero-id.svg'); }
.home-top .our-advantages__item:nth-child(2) .our-advantages__icon::after { width: 15px; height: 15px; flex-basis: 15px; background-image: url('../images/icons/figma/hero-car.svg'); }
.home-top .our-advantages__item:nth-child(3) .our-advantages__icon::after { width: 15px; height: 15px; flex-basis: 15px; background-image: url('../images/icons/figma/hero-map-pin.svg'); }

.home-top .additional-advantages__card:nth-child(1) .additional-advantages-card__icon::after { background-image: url('../images/icons/figma/hero-motorbike.svg'); }
.home-top .additional-advantages__card:nth-child(2) .additional-advantages-card__icon::after { background-image: url('../images/icons/figma/hero-car-2.svg'); }
.home-top .additional-advantages__card:nth-child(3) .additional-advantages-card__icon::after { background-image: url('../images/icons/figma/hero-truck.svg'); }
.home-top .additional-advantages__card:nth-child(4) .additional-advantages-card__icon::after { width: 19px; height: 19px; flex-basis: 19px; background-image: url('../images/icons/figma/hero-phone.svg'); }

/* Category and course hero: school + the page-specific transport + price/type. */
.category-top__section .our-advantages__icon::after { width: 15px; height: 15px; flex-basis: 15px; }
.category-top__section[style*="category-top-a.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon::after,
.category-top__section[style*="category-top-b.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon::after,
.category-top__section[style*="category-top-c.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon::after,
.category-top__section[style*="category-top-d.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon::after,
.category-top__section[style*="category-BtoC.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon::after,
.category-top__section[style*="category-BtoD.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon::after,
.category-top__section[style*="category-top-c-tractor.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon::after,
.category-top__section[style*="category-top-c-loader.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon::after,
.category-top__section[style*="category-top-tractor-driver.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon::after { background-image: url('../images/icons/figma/category-school.svg'); }
.category-top__section[style*="category-top-a.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon::after { background-image: url('../images/icons/figma/category-motorbike.svg'); }
.category-top__section[style*="category-top-b.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon::after { background-image: url('../images/icons/figma/category-car.svg'); }
.category-top__section[style*="category-top-c.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon::after { background-image: url('../images/icons/figma/category-truck.svg'); }
.category-top__section[style*="category-top-d.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon::after,
.category-top__section[style*="category-BtoD.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon::after { background-image: url('../images/icons/figma/category-bus.svg'); }
.category-top__section[style*="category-BtoC.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon::after { background-image: url('../images/icons/figma/category-truck.svg'); }
.category-top__section[style*="category-top-c-tractor.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon::after { background-image: url('../images/icons/figma/category-backhoe.svg'); }
.category-top__section[style*="category-top-c-loader.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon::after { background-image: url('../images/icons/figma/category-forklift.svg'); }
.category-top__section[style*="category-top-tractor-driver.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon::after { background-image: url('../images/icons/figma/category-tractor.svg'); }
.category-top__section[style*="category-top-a.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon::after,
.category-top__section[style*="category-top-b.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon::after,
.category-top__section[style*="category-top-c.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon::after { background-image: url('../images/icons/figma/category-ruble.svg'); }
.category-top__section[style*="category-top-d.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon::after,
.category-top__section[style*="category-BtoC.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon::after,
.category-top__section[style*="category-BtoD.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon::after,
.category-top__section[style*="category-top-c-tractor.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon::after,
.category-top__section[style*="category-top-c-loader.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon::after,
.category-top__section[style*="category-top-tractor-driver.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon::after { background-image: url('../images/icons/figma/category-book.svg'); }

/* Shared «Почему Вираж» cards. */
.reasons__grid .reason-card:nth-child(1) .icon-wrapper::after { background-image: url('../images/icons/figma/why-category.svg'); }
.reasons__grid .reason-card:nth-child(2) .icon-wrapper::after { background-image: url('../images/icons/figma/why-motorbike.svg'); }
.reasons__grid .reason-card:nth-child(3) .icon-wrapper::after { background-image: url('../images/icons/figma/why-car.svg'); }
.reasons__grid .reason-card:nth-child(4) .icon-wrapper::after { background-image: url('../images/icons/figma/why-truck.svg'); }
.reasons__grid .reason-card:nth-child(5) .icon-wrapper::after { background-image: url('../images/icons/figma/why-map-pin.svg'); }
.reasons__grid .reason-card:nth-child(6) .icon-wrapper::after { background-image: url('../images/icons/figma/why-car.svg'); }
.reasons__grid .reason-card:nth-child(7) .icon-wrapper::after { background-image: url('../images/icons/figma/why-phone.svg'); }
.reasons__grid .reason-card:nth-child(8) .icon-wrapper::after { background-image: url('../images/icons/figma/why-clock.svg'); }

/* Fleet cards. */
.feature:nth-child(1) .feature-icon::after { background-image: url('../images/icons/figma/feature-steering-wheel.svg'); }
.feature:nth-child(2) .feature-icon::after { background-image: url('../images/icons/figma/why-car.svg'); }

/* Accident analytics cards. */
.accident-analytics .accident-analytic__card:nth-child(1) .icon-wrapper::after { background-image: url('../images/icons/figma/analytics-eye.svg'); }
.accident-analytics .accident-analytic__card:nth-child(2) .icon-wrapper::after { background-image: url('../images/icons/figma/analytics-gauge.svg'); }
.accident-analytics .accident-analytic__card:nth-child(3) .icon-wrapper::after { background-image: url('../images/icons/figma/analytics-corner.svg'); }
.accident-analytics .accident-analytic__card:nth-child(4) .icon-wrapper::after { background-image: url('../images/icons/figma/analytics-cone.svg'); }
.accident-analytics .accident-analytic__card:nth-child(5) .icon-wrapper::after { background-image: url('../images/icons/figma/analytics-road-sign.svg'); }
.accident-analytics .accident-analytic__card:nth-child(6) .icon-wrapper::after { background-image: url('../images/icons/figma/analytics-rain.svg'); }

/* Category D extra choice cards. */
.reason-choose-us .accident-analytic__card:nth-child(1) .icon-wrapper::after { background-image: url('../images/icons/figma/choose-clipboard-list.svg'); }
.reason-choose-us .accident-analytic__card:nth-child(2) .icon-wrapper::after { background-image: url('../images/icons/figma/choose-file-check.svg'); }
.reason-choose-us .accident-analytic__card:nth-child(3) .icon-wrapper::after { background-image: url('../images/icons/figma/choose-bus.svg'); }
.reason-choose-us .accident-analytic__card:nth-child(4) .icon-wrapper::after { background-image: url('../images/icons/figma/choose-shield-check.svg'); }

/* Training steps and contacts. */
.training-step:nth-child(1) .training-step__icon::after { background-image: url('../images/icons/figma/training-category.svg'); }
.training-step:nth-child(2) .training-step__icon::after { background-image: url('../images/icons/figma/training-message.svg'); }
.training-step:nth-child(3) .training-step__icon::after { background-image: url('../images/icons/figma/training-file-text.svg'); }
.training-step:nth-child(4) .training-step__icon::after { background-image: url('../images/icons/figma/training-frame.svg'); }
.any-questions__contacts .any-questions__contact:nth-child(1) .any-questions__contact-icon::after { background-image: url('../images/icons/figma/contact-phone.svg'); }
.any-questions__contacts .any-questions__contact:nth-child(2) .any-questions__contact-icon::after { background-image: url('../images/icons/figma/contact-mail.svg'); }
.any-questions__contacts .any-questions__contact:nth-child(3) .any-questions__contact-icon::after { background-image: url('../images/icons/figma/contact-map-pin.svg'); }
.available-addresses__icon::after { width: 22px; height: 22px; flex-basis: 22px; background-image: url('../images/icons/figma/why-map-pin.svg'); }
.category-top__proposal:not(.reference-exercises-proposal) .general-info__important-icon img { content: url('../images/icons/figma/category-map-pin.svg'); }

/* Render the approved vectors on the icon shell itself. The old inline SVGs
   remain in the markup for accessibility/fallback, but the shell is the
   element that owns the visible colored square in the original layout. */
.home-top .our-advantages__icon::after,
.category-top__section .our-advantages__icon::after,
.home-top .additional-advantages-card__icon::after,
.reasons__grid .reason-card .icon-wrapper::after,
.feature .feature-icon::after,
.accident-analytics .accident-analytic__card .icon-wrapper::after,
.reason-choose-us .accident-analytic__card .icon-wrapper::after,
.training-step__icon::after,
.any-questions__contact-icon::after,
.available-addresses__icon::after { display: none; }

.home-top .our-advantages__icon,
.category-top__section .our-advantages__icon,
.home-top .additional-advantages-card__icon,
.reasons__grid .reason-card .icon-wrapper,
.feature .feature-icon,
.accident-analytics .accident-analytic__card .icon-wrapper,
.reason-choose-us .accident-analytic__card .icon-wrapper,
.training-step__icon,
.any-questions__contact-icon,
.available-addresses__icon {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.home-top .our-advantages__item:nth-child(1) .our-advantages__icon { background-image: url('../images/icons/figma/hero-id.svg'); }
.home-top .our-advantages__item:nth-child(2) .our-advantages__icon { background-image: url('../images/icons/figma/hero-car.svg'); }
.home-top .our-advantages__item:nth-child(3) .our-advantages__icon { background-image: url('../images/icons/figma/hero-map-pin.svg'); }
.home-top .additional-advantages__card:nth-child(1) .additional-advantages-card__icon { background-image: url('../images/icons/figma/hero-motorbike.svg'); }
.home-top .additional-advantages__card:nth-child(2) .additional-advantages-card__icon { background-image: url('../images/icons/figma/hero-car-2.svg'); }
.home-top .additional-advantages__card:nth-child(3) .additional-advantages-card__icon { background-image: url('../images/icons/figma/hero-truck.svg'); }
.home-top .additional-advantages__card:nth-child(4) .additional-advantages-card__icon { background-image: url('../images/icons/figma/hero-phone.svg'); }

.category-top__section[style*="category-top-a.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon,
.category-top__section[style*="category-top-b.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon,
.category-top__section[style*="category-top-c.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon,
.category-top__section[style*="category-top-d.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon,
.category-top__section[style*="category-BtoC.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon,
.category-top__section[style*="category-BtoD.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon,
.category-top__section[style*="category-top-c-tractor.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon,
.category-top__section[style*="category-top-c-loader.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon,
.category-top__section[style*="category-top-tractor-driver.webp"] .our-advantages__item:nth-child(1) .our-advantages__icon { background-image: url('../images/icons/figma/category-school.svg'); }
.category-top__section[style*="category-top-a.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon { background-image: url('../images/icons/figma/category-motorbike.svg'); }
.category-top__section[style*="category-top-b.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon { background-image: url('../images/icons/figma/category-car.svg'); }
.category-top__section[style*="category-top-c.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon { background-image: url('../images/icons/figma/category-truck.svg'); }
.category-top__section[style*="category-top-d.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon,
.category-top__section[style*="category-BtoD.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon { background-image: url('../images/icons/figma/category-bus.svg'); }
.category-top__section[style*="category-BtoC.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon { background-image: url('../images/icons/figma/category-truck.svg'); }
.category-top__section[style*="category-top-c-tractor.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon { background-image: url('../images/icons/figma/category-backhoe.svg'); }
.category-top__section[style*="category-top-c-loader.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon { background-image: url('../images/icons/figma/category-forklift.svg'); }
.category-top__section[style*="category-top-tractor-driver.webp"] .our-advantages__item:nth-child(2) .our-advantages__icon { background-image: url('../images/icons/figma/category-tractor.svg'); }
.category-top__section[style*="category-top-a.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon,
.category-top__section[style*="category-top-b.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon,
.category-top__section[style*="category-top-c.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon { background-image: url('../images/icons/figma/category-ruble.svg'); }
.category-top__section[style*="category-top-d.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon,
.category-top__section[style*="category-BtoC.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon,
.category-top__section[style*="category-BtoD.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon,
.category-top__section[style*="category-top-c-tractor.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon,
.category-top__section[style*="category-top-c-loader.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon,
.category-top__section[style*="category-top-tractor-driver.webp"] .our-advantages__item:nth-child(3) .our-advantages__icon { background-image: url('../images/icons/figma/category-book.svg'); }

.reasons__grid .reason-card:nth-child(1) .icon-wrapper { background-image: url('../images/icons/figma/why-category.svg'); }
.reasons__grid .reason-card:nth-child(2) .icon-wrapper { background-image: url('../images/icons/figma/why-motorbike.svg'); }
.reasons__grid .reason-card:nth-child(3) .icon-wrapper { background-image: url('../images/icons/figma/why-car.svg'); }
.reasons__grid .reason-card:nth-child(4) .icon-wrapper { background-image: url('../images/icons/figma/why-truck.svg'); }
.reasons__grid .reason-card:nth-child(5) .icon-wrapper { background-image: url('../images/icons/figma/why-map-pin.svg'); }
.reasons__grid .reason-card:nth-child(6) .icon-wrapper { background-image: url('../images/icons/figma/why-car.svg'); }
.reasons__grid .reason-card:nth-child(7) .icon-wrapper { background-image: url('../images/icons/figma/why-phone.svg'); }
.reasons__grid .reason-card:nth-child(8) .icon-wrapper { background-image: url('../images/icons/figma/why-clock.svg'); }
.feature:nth-child(1) .feature-icon { background-image: url('../images/icons/figma/feature-steering-wheel.svg'); }
.feature:nth-child(2) .feature-icon { background-image: url('../images/icons/figma/why-car.svg'); }
.accident-analytics .accident-analytic__card:nth-child(1) .icon-wrapper { background-image: url('../images/icons/figma/analytics-eye.svg'); }
.accident-analytics .accident-analytic__card:nth-child(2) .icon-wrapper { background-image: url('../images/icons/figma/analytics-gauge.svg'); }
.accident-analytics .accident-analytic__card:nth-child(3) .icon-wrapper { background-image: url('../images/icons/figma/analytics-corner.svg'); }
.accident-analytics .accident-analytic__card:nth-child(4) .icon-wrapper { background-image: url('../images/icons/figma/analytics-cone.svg'); }
.accident-analytics .accident-analytic__card:nth-child(5) .icon-wrapper { background-image: url('../images/icons/figma/analytics-road-sign.svg'); }
.accident-analytics .accident-analytic__card:nth-child(6) .icon-wrapper { background-image: url('../images/icons/figma/analytics-rain.svg'); }
.reason-choose-us .accident-analytic__card:nth-child(1) .icon-wrapper { background-image: url('../images/icons/figma/choose-clipboard-list.svg'); }
.reason-choose-us .accident-analytic__card:nth-child(2) .icon-wrapper { background-image: url('../images/icons/figma/choose-file-check.svg'); }
.reason-choose-us .accident-analytic__card:nth-child(3) .icon-wrapper { background-image: url('../images/icons/figma/choose-bus.svg'); }
.reason-choose-us .accident-analytic__card:nth-child(4) .icon-wrapper { background-image: url('../images/icons/figma/choose-shield-check.svg'); }
.training-step:nth-child(1) .training-step__icon { background-image: url('../images/icons/figma/training-category.svg'); }
.training-step:nth-child(2) .training-step__icon { background-image: url('../images/icons/figma/training-message.svg'); }
.training-step:nth-child(3) .training-step__icon { background-image: url('../images/icons/figma/training-file-text.svg'); }
.training-step:nth-child(4) .training-step__icon { background-image: url('../images/icons/figma/training-frame.svg'); }
.any-questions__contacts .any-questions__contact:nth-child(1) .any-questions__contact-icon { background-image: url('../images/icons/figma/contact-phone.svg'); }
.any-questions__contacts .any-questions__contact:nth-child(2) .any-questions__contact-icon { background-image: url('../images/icons/figma/contact-mail.svg'); }
.any-questions__contacts .any-questions__contact:nth-child(3) .any-questions__contact-icon { background-image: url('../images/icons/figma/contact-map-pin.svg'); }
.available-addresses__icon { background-image: url('../images/icons/figma/why-map-pin.svg'); }

/* Keep the header dropdown above page content and inside the viewport. */
header,
header .width-container,
header .header-container,
header .header__menu,
header .header-nav,
header .header-nav-list,
.header-nav-list__item,
.header-dropdown__wrapper { overflow: visible; }
.header-nav-list__dropdown { z-index: 1000; overflow: visible; }
.header-dropdown { overflow: visible; }

@media (min-width: 992px) {
    .header-dropdown__wrapper > .header-nav-list__dropdown.header-dropdown__list {
        display: block;
        max-height: none;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    }
    .header-dropdown__wrapper:hover > .header-nav-list__dropdown.header-dropdown__list,
    .header-dropdown__wrapper:focus-within > .header-nav-list__dropdown.header-dropdown__list,
    .header-dropdown__wrapper > .header-nav-list__dropdown.header-dropdown__list.active {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .header-dropdown__wrapper > .header-nav-list__dropdown .header-dropdown {
        max-height: none;
        overflow: visible;
    }
}

/* The placeholders use the same shell and a shared editorial template. */
.sitemap-editable-main {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    min-width: 0;
}

.services-editable-main {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    min-width: 0;
}

.approach-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.approach-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.header-dropdown-catalog__list .catalog-route {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-dropdown-catalog__list .catalog-route::before {
    content: '';
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background-color: var(--brand-blue);
    background-image: none;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}

.header-dropdown-catalog__list .catalog-route[href*="category-a"]::before { -webkit-mask-image: url('../images/icons/figma/why-motorbike.svg'); mask-image: url('../images/icons/figma/why-motorbike.svg'); }
.header-dropdown-catalog__list .catalog-route[href*="category-b"]::before { -webkit-mask-image: url('../images/icons/figma/why-car.svg'); mask-image: url('../images/icons/figma/why-car.svg'); }
.header-dropdown-catalog__list .catalog-route[href*="category-c"]::before { -webkit-mask-image: url('../images/icons/figma/why-truck.svg'); mask-image: url('../images/icons/figma/why-truck.svg'); }
.header-dropdown-catalog__list .catalog-route[href*="category-d"]::before { -webkit-mask-image: url('../images/icons/figma/choose-bus.svg'); mask-image: url('../images/icons/figma/choose-bus.svg'); }
.header-dropdown-catalog__list .catalog-route[href*="category-btoc"]::before,
.header-dropdown-catalog__list .catalog-route[href*="category-btod"]::before { -webkit-mask-image: url('../images/icons/figma/choose-clipboard-list.svg'); mask-image: url('../images/icons/figma/choose-clipboard-list.svg'); }
.header-dropdown-catalog__list .catalog-route[href*="category-c-tractor"]::before { -webkit-mask-image: url('../images/icons/figma/choose-file-check.svg'); mask-image: url('../images/icons/figma/choose-file-check.svg'); }
.header-dropdown-catalog__list .catalog-route[href*="course-loader"]::before { -webkit-mask-image: url('../images/icons/figma/choose-shield-check.svg'); mask-image: url('../images/icons/figma/choose-shield-check.svg'); }
.header-dropdown-catalog__list .catalog-route[href*="course-tractor-driver"]::before { -webkit-mask-image: url('../images/icons/figma/why-truck.svg'); mask-image: url('../images/icons/figma/why-truck.svg'); }
.header-dropdown-catalog__list .catalog-route[href*="trial-driving"]::before { -webkit-mask-image: url('../images/icons/figma/feature-steering-wheel.svg'); mask-image: url('../images/icons/figma/feature-steering-wheel.svg'); }
.header-dropdown-catalog__list .catalog-route[href*="driving-skills"]::before { -webkit-mask-image: url('../images/icons/figma/why-car.svg'); mask-image: url('../images/icons/figma/why-car.svg'); }
.header-dropdown-catalog__list .catalog-route[href*="driving-highway"]::before { -webkit-mask-image: url('../images/icons/figma/analytics-road-sign.svg'); mask-image: url('../images/icons/figma/analytics-road-sign.svg'); }
.header-dropdown-catalog__list .catalog-route[href*="winter-driving"]::before { -webkit-mask-image: url('../images/icons/figma/analytics-rain.svg'); mask-image: url('../images/icons/figma/analytics-rain.svg'); }

.editorial-page { padding-top: 16px; }
.editorial-page .breadcrumbs { flex-wrap: wrap; gap: 8px; }
.editorial-heading { max-width: 940px; margin: 44px 0 48px; }
.brand-eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.19em; line-height: 1.5; color: var(--brand-blue); margin-bottom: 16px; }
.editorial-heading h1 { max-width: 900px; }
.editorial-intro { max-width: 690px; margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--brand-muted); }
.editorial-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 80px; align-items: start; }
.editorial-layout > div { min-width: 0; }
.editorial-notice { display: flex; align-items: flex-start; gap: 12px; color: var(--brand-blue-dark); background: #eaf3f7; border-left: 3px solid var(--brand-blue); border-radius: 0 8px 8px 0; padding: 18px 22px; line-height: 1.5; }
.status-dot { width: 7px; height: 7px; min-width: 7px; border-radius: 50%; background: var(--brand-blue); margin-top: 8px; }
.editorial-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--brand-line); }
.editorial-section h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 20px; }
.editorial-section p { max-width: 760px; line-height: 1.65; color: var(--brand-muted); }
.editorial-back { display: inline-flex; gap: 24px; align-items: center; margin-top: 36px; color: var(--brand-blue); font-weight: 500; padding: 12px 0; }
.editorial-contact { position: relative; padding: 32px; border-radius: 16px; overflow: hidden; background: linear-gradient(145deg, #364a55, #22343e); color: #fff; }
.editorial-contact::before { content: ''; position: absolute; top: 0; right: 24px; width: 56px; height: 4px; background: #58b9d8; transform: skewX(-30deg); }
.editorial-contact .brand-eyebrow { color: #a5d3e2; }
.editorial-contact h2 { font-size: 28px; margin-bottom: 16px; }
.editorial-contact > p { line-height: 1.6; font-size: 14px; color: #d5e1e7; }
.editorial-contact a { display: block; color: #fff; overflow-wrap: anywhere; }
.editorial-phone { margin-top: 28px; margin-bottom: 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.editorial-contact__address { border-top: 1px solid rgb(255 255 255 / 20%); margin-top: 28px; padding-top: 24px; color: #d5e1e7; font-size: 13px; line-height: 1.6; }
.editorial-contact__address p + p { margin-top: 12px; }
.course-summaries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.course-summary { display: grid; align-content: start; gap: 24px; min-width: 0; padding: 28px; border: 1px solid var(--brand-line); border-radius: 14px; background: linear-gradient(135deg, #fff 65%, #f1f7fa); }
.course-summary__letter { font-size: 72px; font-weight: 600; font-style: italic; letter-spacing: -0.07em; line-height: 1; color: var(--brand-blue); }
.course-summary h3 { font-size: 24px; margin-bottom: 8px; }
.course-summary strong { font-size: 28px; font-weight: 500; color: var(--brand-blue); }
.route-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin-top: 24px; }
.route-link { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; padding: 20px 0; border-bottom: 1px solid var(--brand-line); font-size: 16px; line-height: 1.5; }
.route-link .route-status { font-size: 11px; }
.page-registry { border-top: 2px solid var(--brand-graphite); }
.page-registry__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 200px; gap: 20px; padding: 20px 0; align-items: baseline; border-bottom: 1px solid var(--brand-line); }
.page-registry__number { color: var(--brand-blue); font-size: 13px; }
.page-registry__row a { font-size: 18px; line-height: 1.5; }
.page-registry__status { color: var(--brand-muted); font-size: 12px; line-height: 1.5; }
.page-registry,
.page-registry__row,
.page-registry__row > * { min-width: 0; max-width: 100%; }
.popup-demo-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.popup-demo-actions button { width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden],
.is-hidden-until-approved {
    display: none !important;
}

@media (hover: hover) and (pointer: fine) {
    .route-link:hover, .page-registry__row a:hover { color: var(--brand-blue); }
    .reasons__grid .reason-card:hover {
        border-color: var(--brand-blue);
        background-color: #fff;
        box-shadow: none;
    }
    .reasons__grid .reason-card:hover .icon-wrapper {
        background-color: var(--Background-light-gray-2);
    }
    .editorial-contact a:hover { color: #b0e2f2; }
}

@media (max-width: 1220px) {
    .editorial-layout { gap: 40px; }
    .brand-logo__name { font-size: 34px; }
    .brand-logo__caption { font-size: 9px; }
    .reasons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-contacts { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
    .sitemap-editable-main { padding-left: 16px; padding-right: 16px; }
    .services-editable-main { padding-left: 16px; padding-right: 16px; }
    .home-top { background-image: linear-gradient(135deg, #fff, #fff); margin-top: 0; padding-top: 38px; border-radius: 0; }
    .home-top::before { left: 16px; }
    .home-top__mobile-banner { background-size: contain; background-position: center; margin-block: 4px 16px; }
    .top__mobile-banner { background-size: contain; background-position: center; }
    .page-top__content { max-width: 100%; }
    .additional-advantages { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
    .additional-advantages__card { padding: 16px; }
    .editorial-layout { grid-template-columns: minmax(0, 1fr); }
    .editorial-contact { max-width: none; }
    .header-nav-list__dropdown { padding-top: 4px; box-shadow: none; border-radius: 0; }
    .header-dropdown { min-width: 0; padding: 0; }
    .header-dropdown li + li { margin-top: 0; }
    .header-dropdown__link { padding: 12px 0; }
    .header-dropdown-catalog__item { max-width: none; }
    .catalog-route { width: 100%; }
    .header-nav .header-dropdown .header-nav__btn { flex-wrap: wrap; justify-content: flex-start; gap: 8px 16px; }
    .header-nav .header-dropdown .header-nav__btn:after { margin-left: auto; }
    .dos-school { gap: 32px; }
    .footer-bottom__list { justify-content: center; }
    .editorial-heading { margin: 32px 0; }
    .virazh-about__grid { grid-template-columns: minmax(0, 1fr); }
    .page-registry { width: 100%; }
    .page-registry__row { grid-template-columns: 36px minmax(0, 1fr); gap: 6px 16px; }
    .page-registry__row a { overflow-wrap: anywhere; }
    .page-registry__status { grid-column: 2; }
}

@media (min-width: 993px) and (max-width: 1100px) {
    header .header-container { gap: 12px; }
    header .header__menu { gap: 8px; }
    header .header-nav-list { gap: 0; }
    header .header-nav-list .header-nav__btn { padding-left: 8px; padding-right: 8px; font-size: 14px; }
    header .header__contacts { gap: 8px; }
    header .header__contacts-number { display: none; }
    header .header__contacts-btn { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 767px) {
    .sitemap-editable-main { padding-left: 16px; padding-right: 16px; }
    .page-section { margin-top: 48px; }
    .logo-wrapper.brand-logo { min-height: 40px; }
    .brand-logo__name { font-size: 32px; }
    .brand-logo__caption { font-size: 8px; }
    .footer-logo__wrapper .brand-logo { align-items: center; }
    .reason-card { padding: 16px; }
    .reasons__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .our-advantages { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
    .categories-card { padding: 18px; }
    .categories-card__bottom { gap: 12px; flex-wrap: wrap; }
    .editorial-page { padding-top: 4px; }
    .editorial-intro { font-size: 16px; margin-top: 18px; }
    .editorial-layout { gap: 32px; }
    .editorial-heading h1 { overflow-wrap: anywhere; }
    .editorial-notice { padding: 16px; font-size: 14px; }
    .editorial-contact { padding: 24px; }
    .editorial-section { margin-top: 28px; padding-top: 24px; }
    .editorial-section p { font-size: 15px; }
    .course-summaries, .route-list { grid-template-columns: minmax(0, 1fr); }
    .course-summary { grid-template-columns: 64px minmax(0, 1fr); padding: 22px; gap: 20px; }
    .course-summary__letter { font-size: 60px; }
    .course-summary strong, .course-summary a { grid-column: 1 / -1; }
    .course-summary h3 { font-size: 22px; }
    .route-link { gap: 12px; font-size: 15px; }
    .route-link .route-status { max-width: 72px; text-align: right; }
    .page-registry__row { grid-template-columns: 28px minmax(0, 1fr); gap: 6px 12px; padding: 16px 0; }
    .page-registry__row a { font-size: 16px; }
    .page-registry__status { grid-column: 2; }
    .popup-demo-actions { flex-direction: column; }
    .popup-demo-actions button { width: 100%; }
    .footer-bottom__list { flex-direction: column; align-items: center; text-align: center; }
    .footer-content { display: flex; }
    .dos-school__content { padding: 24px 18px; }
    .virazh-about { gap: 16px; }
    .virazh-about__lead { font-size: 15px; }
    .virazh-about__card { min-height: 0; padding: 16px; }
    .virazh-about__route { align-items: flex-start; padding: 16px; }
    .virazh-about__pin { width: 40px; min-width: 40px; height: 40px; }
    .virazh-about__actions { align-items: stretch; flex-direction: column; gap: 12px; }
    .virazh-about__actions .btn-custom { width: 100%; }
    .virazh-about__phone { text-align: center; }
    .virazh-vehicle-card .vehicle-card__info,
    .virazh-vehicle-card .vehicle-card__image {
        min-height: 360px;
    }
    .virazh-vehicle-card .vehicle-card__info {
        padding: 28px 22px 22px;
    }
    .virazh-vehicle-card .vehicle-card__footer {
        align-items: stretch;
        gap: 22px;
    }
    .virazh-vehicle-card .vehicle-card__badge {
        width: 100%;
        min-width: 0;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    .virazh-vehicle-card .vehicle-card-badge__img {
        width: 64px;
        min-width: 64px;
        height: 64px;
        margin: 0;
    }
    .machine-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .reference-card-grid--two,
    .reference-card-grid--three,
    .reference-card-grid--four {
        grid-template-columns: minmax(0, 1fr);
    }
    .reference-card {
        min-height: 0;
        padding: 20px;
    }
    .reference-road__panel {
        grid-template-columns: minmax(0, 1fr);
    }
    .reference-road__panel .btn-custom {
        width: 100%;
    }
    .reference-exercises__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .reference-exercises__list li {
        min-height: 104px;
    }
    .reference-person-card,
    .reference-review-card {
        grid-template-columns: minmax(0, 1fr);
    }
    .reference-review-card img {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        height: 220px;
        justify-self: stretch;
    }
}

/* Footer spacing and fixed contact bar follow the approved DOSAAF reference. */
@media (min-width: 768px) {
    .footer-bottom {
        display: grid;
        grid-template-columns: minmax(180px, 1fr) minmax(245px, 1.25fr) minmax(230px, 1.15fr) minmax(230px, 1.15fr) auto;
        align-items: center;
        column-gap: 28px;
    }
    .footer-bottom__list { display: contents; }
    .footer-bottom__list li { min-width: 0; }
    .footer-bottom__list a,
    .footer-bottom__list span { overflow-wrap: anywhere; }
    .footer-developer-link { justify-self: end; }
}

.fix-menu.borderRadius-12 {
    padding: 4px;
    gap: 4px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 4px rgb(0 0 0 / 8%);
}
.fix-menu > .btn-custom {
    min-height: 40px;
    padding: 9px 16px;
    line-height: 1.2;
}
.fix-menu__max {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    color: #0a0b0b;
    background: transparent;
    border-radius: 8px;
    transition: background-color 180ms ease;
}
.fix-menu__max:hover,
.fix-menu__max:focus-visible {
    color: #0a0b0b;
    background: #f1f1f1;
    transform: none;
}
.fix-menu__max svg { width: 24px; height: 24px; display: block; }

@media (max-width: 767px) {
    .footer-bottom { display: flex; flex-direction: column; gap: 20px; }
    .footer-bottom__list { display: flex; flex-direction: column; align-items: center; gap: 20px; }
    .footer-bottom__list li { text-align: center; }
    .fix-menu > .btn-custom { min-width: 0; flex: 1 1 0; padding-left: 12px; padding-right: 12px; }
    .fix-menu__max { width: 40px; height: 40px; flex-basis: 40px; }
}

@media (prefers-reduced-motion: no-preference) {
    .editorial-heading, .page-top__content { animation: brand-enter 500ms ease-out both; }
    @keyframes brand-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}
.footer-developer-link {
    color: inherit;
    text-decoration: none;
}
.footer-developer-link svg {
    display: block;
}

.reference-section-head {
    max-width: 860px;
    margin-bottom: 28px;
}
.reference-section-head h2 {
    margin: 0;
}
.reference-pricing + .width-container {
    margin-top: 80px;
}
.reference-card-grid {
    display: grid;
    gap: 20px;
}
.reference-card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.reference-card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.reference-card-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.reference-card {
    min-width: 0;
    min-height: 160px;
    padding: 26px;
    border: 1px solid #d4e3ea;
    border-radius: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}
.reference-card h3 {
    margin: 0;
    font-size: clamp(20px, 1.7vw, 24px);
}
.reference-card p {
    margin: 0;
    line-height: 1.55;
}
.reference-card strong {
    display: block;
    color: var(--brand-blue);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    letter-spacing: -0.04em;
}
.reference-card__num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f3f7;
    color: var(--brand-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.reference-card--accent {
    background: linear-gradient(145deg, #e8f3f7, #fff);
}
.reference-card--muted {
    background: #f6fafc;
}
.reference-link {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    color: var(--brand-blue);
    font-weight: 600;
}
.reference-documents .reference-link {
    margin-top: 24px;
}
.reference-road__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: clamp(28px, 4vw, 48px);
    background: linear-gradient(135deg, #21333d, #116d8d);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.reference-road__panel::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgb(255 255 255 / 11%);
}
.reference-road__panel .brand-eyebrow,
.reference-road__panel .text-m {
    color: #d8edf4;
}
.reference-road__panel h2,
.reference-road__panel p {
    max-width: 740px;
    margin: 0;
}
.reference-road__panel p {
    margin-top: 16px;
    line-height: 1.65;
}
.reference-road__panel .btn-custom {
    position: relative;
    z-index: 1;
    width: auto;
    white-space: nowrap;
}
.reference-exercises__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.reference-exercises__list li {
    min-height: 118px;
    padding: 18px;
    border: 1px solid #d4e3ea;
    border-radius: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    color: var(--brand-blue-dark);
    font-weight: 600;
}
.reference-exercises__list span {
    color: var(--brand-blue);
    font-size: 13px;
    letter-spacing: 0.1em;
}
.reference-person-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    justify-content: start;
}
.reference-person-card img,
.reference-review-card img {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    object-fit: cover;
    background: #edf4f7;
}
.reference-review-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    align-items: start;
}
.reference-review-card .review-rating,
.reference-review-card .h4,
.reference-review-card > div {
    grid-column: 1;
}
.reference-review-card img {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 160px;
    height: 160px;
    justify-self: end;
}

footer.page-section { gap: 0; }
.footer-main { padding-block: 44px 48px; }
.footer-sitemap { display: block; margin-top: 16px; }
.footer-bottom-container { background: #f5f5f5; }
.footer-bottom { min-height: 100px; }
.cookie-banner {
    position: fixed;
    bottom: 88px;
    left: 24px;
    z-index: 90;
    width: min(360px, calc(100% - 48px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    color: #202e36;
    border: 1px solid #d5e2e8;
    border-radius: 12px;
    box-shadow: 0 8px 32px #20323c26;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.45; }
.cookie-banner a { color: #176f91; text-decoration: underline; }
.cookie-banner button {
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .footer-main { padding-block: 32px; }
    .footer-logo__wrapper { flex-direction: column; align-items: center; }
    .cookie-banner { left: 12px; bottom: 84px; width: calc(100% - 24px); padding: 16px; gap: 12px; }
}

/* DOSAAF-style compact exercises proposal */
.reference-exercises--compact {
    padding-top: 32px;
    padding-bottom: 32px;
}
.reference-exercises--compact .reference-exercises-proposal {
    margin-top: 0;
}
.reference-exercises--compact .btn-custom {
    width: auto;
    min-width: 220px;
    white-space: nowrap;
}

/* Fill the 56px icon shell on every information card. */
.general-info__important-icon {
    position: relative;
    overflow: hidden;
}

.general-info__important-icon img {
    display: block;
    position: absolute;
    inset: 0;
    content: normal !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: fill !important;
    border-radius: 4px;
}

/* Give the medical sidebar card a little more air before its title. */
.sidebar-card__medical {
    padding-top: 28px;
}

.sidebar-card__medical h4 {
    margin-bottom: 10px;
}

/* The medical hero has shorter copy than the other category pages. Keep the
   side image from stretching the whole card and leaving a large empty area. */
.medical-examination-page .top-aside__image {
    height: 135px;
}

/* Use the same clean vector check for medical-page checklists. */
.restrictions__list li::before,
.general-info-checklist li::before {
    content: '';
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background: url('../images/icons/check-mark-transparent.svg') center / contain no-repeat;
}

/* Keep the pricing cards visually compact instead of pushing descriptions to
   the opposite edge of the shared card height. */
.reference-pricing .reference-card {
    justify-content: flex-start;
}

/* Price section headings follow the same left edge as the section content. */
#prices.tariffs-block > h2 {
    align-self: flex-start;
    width: 100%;
    text-align: left;
}

/* Do not show the old stock banner with a watermark on the tractor course. */
.category-top--tractor-driver {
    background-color: #f3f8fa;
    background-image: linear-gradient(135deg, #f3f8fa 0%, #ffffff 62%, #e8f3f7 100%),
        url('../images/icons/figma/category-tractor.svg') !important;
    background-position: center, right 68px center;
    background-repeat: no-repeat;
    background-size: cover, 270px;
}

.category-top--tractor-driver .top__mobile-banner {
    background-image: url('../images/icons/figma/category-tractor.svg') !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 180px;
}

.category-top--tractor-driver .our-advantages__item:nth-child(1) .our-advantages__icon {
    background-image: url('../images/icons/figma/category-school.svg');
}

.category-top--tractor-driver .our-advantages__item:nth-child(2) .our-advantages__icon {
    background-image: url('../images/icons/figma/category-tractor.svg');
}

.category-top--tractor-driver .our-advantages__item:nth-child(3) .our-advantages__icon {
    background-image: url('../images/icons/figma/category-book.svg');
}

/* Location pins are compact controls, not full-bleed information-card icons. */
.category-top-proposal .general-info__important-icon {
    overflow: visible;
}

.category-top-proposal .general-info__important-icon img {
    position: static;
    inset: auto;
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    border-radius: 0;
}

/* Use the whole content width for the course price card. */
.course-tractor-driver-page #prices .tariffs {
    width: 100%;
    justify-content: stretch;
}

.course-tractor-driver-page #prices .tariffs-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.25fr) auto auto;
    align-items: center;
    gap: 24px;
}

.course-tractor-driver-page #prices .tariffs-card h3,
.course-tractor-driver-page #prices .tariffs-card p,
.course-tractor-driver-page #prices .tariffs-card a {
    margin: 0;
}

.course-tractor-driver-page #prices .tariffs-card .btn-custom {
    white-space: nowrap;
}

.course-tractor-driver-page .reference-pricing .reference-card {
    min-height: 0;
    gap: 14px;
}

.course-tractor-driver-page .reference-pricing .reference-card--accent h3 {
    color: var(--brand-blue);
}

/* The legacy masonry hook is not needed here: the program cards should grow
   with their lists instead of keeping a short fixed row and overflowing. */
.training-program {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.training-program .training-program__card {
    min-width: 0;
    height: auto;
    align-self: stretch;
}

.training-program .training-program__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto !important;
    margin: 0;
}

.training-program .training-program__list .training-program-list__item {
    width: auto;
    margin: 0;
}

@media (max-width: 900px) {
    .course-tractor-driver-page #prices .tariffs-card {
        display: flex;
        align-items: stretch;
    }

    .training-program {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .reference-exercises--compact {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .reference-exercises--compact .btn-custom {
        width: 100%;
        min-width: 0;
    }
}

/* Keep reference cards stacked on narrow screens after the base grid rules. */
@media (max-width: 767px) {
    .breadcrumbs {
        flex-wrap: wrap;
        white-space: normal;
        overflow: visible;
        row-gap: 6px;
    }
    .breadcrumbs > li {
        min-width: 0;
        max-width: 100%;
    }
    .breadcrumbs > li:last-child {
        overflow-wrap: anywhere;
    }
    .sidebar-contacts__list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .sidebar-contacts__item {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    .reference-pricing + .width-container {
        margin-top: 48px;
    }
    .fix-menu { width: calc(100vw - 24px); }
    .fix-menu > .btn-custom { min-width: 0; flex: 1 1 0; padding-left: 12px; padding-right: 12px; }
    .fix-menu__max { width: 40px; height: 40px; flex-basis: 40px; }
    .reference-card-grid--two,
    .reference-card-grid--three,
    .reference-card-grid--four {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The footer grid has five fixed minimum columns on desktop. At tablet
   widths it must switch to a real flex stack, otherwise the developer link
   becomes the horizontal overflow that shifts/crops the page. */
@media (max-width: 1100px) {
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .footer-bottom__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-width: 100%;
    }
    .footer-bottom__list li { text-align: center; }
    .footer-developer-link { align-self: center; justify-self: auto; }
}

/* Make the category A price card use the same full-width horizontal layout
   as the approved course price card. Keep the price and payment note visible
   as separate columns. */
@media (min-width: 901px) {
    #prices .tariffs {
        width: 100%;
        justify-content: stretch;
    }

    #prices .tariffs-card {
        width: 100%;
        max-width: none;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(160px, 1fr) minmax(210px, 1.25fr) max-content minmax(180px, 1fr) auto max-content;
        align-items: center;
        gap: 24px;
    }

    #prices .tariffs-card h3,
    #prices .tariffs-card p,
    #prices .tariffs-card a {
        margin: 0;
    }

    #prices .tariffs-card .btn-custom {
        width: auto;
        white-space: nowrap;
    }

    #prices .tariffs-card .tariffs-price {
        white-space: nowrap;
    }

    #prices .tariffs-card a {
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    #prices .tariffs-card {
        width: 100%;
        min-width: 0;
    }
}

/* Remove the old dark vehicle-badge shell. The category icon should read as
   one clean circular mark beside the action, without the legacy black block
   showing behind it. */
.virazh-vehicle-card .vehicle-card__badge {
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.virazh-vehicle-card .vehicle-card-badge__img {
    margin: 0 auto;
}

@media (max-width: 900px) {
    .virazh-vehicle-card .vehicle-card__badge {
        height: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
}
