/* Единый слой пропорций сайта: размеры кнопок и полей, скругления. Подключается последним, разметку не меняет. */
:root {
    --ui-h: 46px;          /* высота кнопок и полей форм */
    --ui-h-sm: 38px;       /* компактные кнопки (шапка, таблицы) */
    --ui-r: 14px;          /* скругление полей */
    --ui-r-card: 20px;     /* скругление карточек и блоков */
    --radius: 20px;
}

/* ---- кнопки: один размер, одна линия шрифта ---- */
.btn { min-height: var(--ui-h); padding: 0 26px; font-size: 15px; font-weight: 600; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; }
.btn-outline { padding: 0 24px; }
.btn-block { display: flex; }

/* ---- шапка: «Записаться», «Личный кабинет», «Приложение» одной высоты ---- */
.header-actions { gap: 12px; }
.header-cta, .header-lk, .header-app {
    min-height: var(--ui-h-sm); height: var(--ui-h-sm); padding: 0 18px; font-size: 14px; font-weight: 600;
    border-radius: 999px; box-sizing: border-box; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.header-lk { border-width: 2px; }
.header-app { border-width: 2px; }
.header-cta { box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--color-primary) 80%, transparent); }
.header-phone { font-size: 15px; }
.nav-toggle { width: var(--ui-h-sm); height: var(--ui-h-sm); border-radius: 12px; padding: 0; align-items: center; justify-content: center; }
@media (max-width: 1179px) { .nav-toggle { display: inline-flex; } }
@media (min-width: 1180px) and (max-width: 1360px) {
    .header-cta, .header-lk, .header-app { padding: 0 13px; font-size: 13px; }
}

/* ---- поля форм: единая высота, округлые, стрелка у списков ---- */
.form-field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]),
.form-field select, .review-form-block form select, .review-form-block form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]) {
    min-height: var(--ui-h); border-radius: var(--ui-r); padding: 0 16px; font-size: 16px; box-sizing: border-box;
}
.form-field textarea, .review-form-block form textarea { border-radius: 16px; padding: 12px 16px; font-size: 16px; box-sizing: border-box; }
select, .form-field select, .review-form-block form select {
    min-height: 42px; border-radius: var(--ui-r); border: 1px solid var(--color-border); font: inherit; font-size: 15px; padding-left: 14px; color: var(--color-text, inherit);
    -webkit-appearance: none; appearance: none; padding-right: 40px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent); outline: 0; }

/* ---- карточки, таблицы, списки — мягче ---- */
.card, .price-calculator, .price-table { border-radius: var(--ui-r-card); }
.card img { border-radius: 14px; }
.doc-list li { border-radius: 14px; }
.badge-sm, .badge-installment { border-radius: 999px; }
.apply-section #apply-form { border-radius: 24px; }

/* ---- заметка о согласии под формами (контакты, отзывы) ---- */
.form-note { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--color-text-muted, #64748b); }
.form-note a { color: inherit; text-decoration: underline; }

/* кнопки внутри карточек чуть компактнее, но той же формы */
.card .btn, .person-card .btn { min-height: 40px; padding: 0 20px; font-size: 14px; }

/* ---- карусель фото автомобиля ---- */
.fleet-gal { position: relative; margin-bottom: 14px; border-radius: 16px; overflow: hidden; background: var(--color-bg-alt); }
.fleet-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fleet-gal__track::-webkit-scrollbar { display: none; }
.fleet-gal__track img { flex: 0 0 100%; width: 100%; margin: 0 !important; border-radius: 0 !important; scroll-snap-align: center; aspect-ratio: 4/3; object-fit: cover; }
.fleet-gal__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #0f172a; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; box-shadow: 0 2px 8px rgba(15,23,42,.25); }
.fleet-gal__btn--prev { left: 8px; } .fleet-gal__btn--next { right: 8px; }
.fleet-gal__btn:hover { background: #fff; }
.fleet-gal__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.fleet-gal__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 2px rgba(15,23,42,.4); }
.fleet-gal__dots i.is-on { background: #fff; width: 18px; border-radius: 99px; }

/* ======================================================================
   Спокойное оформление: меньше «шума», ровный ритм секций, светлая форма заявки.
   Только внешний вид — разметка и содержимое блоков не меняются.
   ====================================================================== */
.section { padding: 56px 0; }
@media (max-width: 768px) { .section { padding: 36px 0; } }
.section-header { margin-bottom: 28px; }
.section-header h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.01em; padding-bottom: 0; }
.section-header:not(.section-header--left):not(.section-header--with-media) h2::after,
.section-header--left h2::after, .section-header--with-media h2::after { display: none; }   /* без декоративной «чёрточки» под заголовком */
.section-header p { font-size: 16px; margin-top: 8px; }

/* первый экран: компактнее, без «выдвинутой» подложки под фото */
.hero { padding: 48px 0 56px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; }
.hero-media::before { display: none; }
.hero-media img { border-width: 0; box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .4); }

/* карточки: тише тени, без «подпрыгивания» */
.card { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.card:hover { transform: none; box-shadow: 0 10px 28px -18px rgba(15, 23, 42, .3); }
.card img, .person-card img { color: transparent; }                    /* нет картинки — не показываем alt-текст поверх рамки */
.hero-media img, .fleet-gal img { color: transparent; }
.card:hover img { transform: none; }
.person-card img { box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--color-border); }
#programs-preview .card { border-top-width: 3px; }

/* цифры и «что входит» — спокойнее */
.stat-value { font-size: 32px; }
.stats-grid > div, .check-list li { box-shadow: none; }
.review-card::before { display: none; }
.review-card { padding-top: 24px; }

/* форма заявки: светлая карточка на светлом фоне, поля в две колонки */
.apply-section { background: var(--color-bg-alt); color: var(--color-text); }
.apply-section .section-header h2 { color: var(--color-secondary); }
.apply-section .section-header p { color: var(--color-text-muted); }
.apply-grid { max-width: 760px; }
.apply-section #apply-form {
    padding: 28px 28px 24px; border-radius: 20px; border: 1px solid var(--color-border); background: #fff;
    box-shadow: 0 18px 40px -26px rgba(15, 23, 42, .35);
    display: grid; grid-template-columns: 1fr; gap: 0 18px;
}
@media (min-width: 700px) {
    .apply-section #apply-form { grid-template-columns: 1fr 1fr; }
    .apply-section #apply-form > * { grid-column: 1 / -1; }
    .apply-section #apply-form > .form-field:nth-of-type(-n+6) { grid-column: auto; }   /* ФИО, дата, телефон, e-mail, способ связи, категория */
}
.apply-section #apply-form .form-field { margin-bottom: 14px; }
.apply-section #apply-form .form-field input:not([type=radio]):not([type=checkbox]), .apply-section #apply-form .form-field select, .apply-section #apply-form .form-field textarea { border: 1px solid var(--color-border); background: #fff; }
.apply-section .form-error { color: #b42318; }
.apply-section .form-consent { color: var(--color-text-muted); }
.apply-section .form-honeypot { position: absolute; }
@media (max-width: 600px) { .apply-section #apply-form { padding: 20px 16px 18px; } }

/* кнопка карточки — на своей строке, а не рядом с меткой района */
.card > .btn, .card > a.btn { display: flex; width: fit-content; margin-top: 10px; }
.card > .badge-sm { display: inline-block; margin: 0 0 8px; }

/* рекламный баннер: тоньше, особенно на телефоне, чтобы не съедал первый экран */
.promo-banner { padding: 8px 0; }
.promo-banner .promo-banner-btn { min-height: 34px; padding: 0 16px; font-size: 13px; }
@media (max-width: 600px) {
    .promo-banner { font-size: 13px; padding: 7px 0; }
    .promo-banner-inner { gap: 6px 10px; padding-right: 30px; }
    .promo-banner-body { gap: 2px 10px; }
    .promo-banner-image { height: 34px; width: 34px; }
}

/* ---- отзывы: карточка одинаково выглядит с фото и без (у «без фото» — буква в кружке) ---- */
.review-card, .review-card.has-avatar { padding: 18px 20px 20px; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-card .review-avatar {
    position: static; flex: 0 0 auto; width: 44px; height: 44px; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; margin: 0;
    border: 0; box-shadow: none; background: var(--color-bg-alt);
}
.review-card .review-avatar--letter {
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
    color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 12%, #fff);
}
.review-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.review-who b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-who small { color: var(--color-text-muted); font-size: 12px; }
.review-card .review-stars { margin: 0; flex: 0 0 auto; font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.review-stars-off { color: var(--color-border); }
.review-card .review-text { margin: 0; font-size: 15px; line-height: 1.55; }

/* поле «приложить фото» в форме отзыва */
.review-photo-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.review-photo-preview { width: 56px; height: 56px; border-radius: 50%; background: var(--color-bg-alt) center / cover no-repeat; border: 1px dashed var(--color-border); flex: 0 0 auto; }
.review-photo-preview.has-img { border-style: solid; }
.review-photo-btn { min-height: 38px; cursor: pointer; }
.review-photo-clear { background: none; border: 0; color: var(--color-text-muted); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* ---- рекламный баннер: отдельная округлая плашка над шапкой, мягкий цвет (без картинки — она на странице предложения) ---- */
.promo-banner { background: transparent; color: var(--color-text); padding: 10px 0 0; font-size: 14px; }
.promo-banner-inner {
    justify-content: center; gap: 8px 16px; padding: 10px 44px 10px 20px; border-radius: 18px; min-height: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 14%, #fff), color-mix(in srgb, var(--color-primary) 8%, #fff));
    border: 1px solid color-mix(in srgb, var(--color-accent) 38%, #fff);
    box-shadow: 0 8px 22px -16px color-mix(in srgb, var(--color-accent) 70%, transparent);
}
.promo-banner-text { font-weight: 600; color: var(--color-secondary); }
.promo-banner-countdown { font-weight: 700; color: color-mix(in srgb, var(--color-accent) 70%, #7c2d12); background: color-mix(in srgb, var(--color-accent) 20%, #fff); padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.promo-banner .promo-banner-btn { border-radius: 999px; }
.promo-banner-close { right: 12px; width: 26px; height: 26px; border-radius: 50%; font-size: 18px; opacity: .55; display: flex; align-items: center; justify-content: center; }
.promo-banner-close:hover { opacity: 1; background: color-mix(in srgb, var(--color-accent) 22%, #fff); }
@media (max-width: 600px) {
    .promo-banner { padding: 8px 0 0; }
    .promo-banner-inner { border-radius: 16px; padding: 9px 38px 9px 14px; }
}

/* ---- Правила ПДД на сайте ---- */
.rules-search { display: flex; gap: 10px; margin: 14px 0 20px; max-width: 640px; } .rules-search input { flex: 1; min-height: var(--ui-h); border: 1px solid var(--color-border); border-radius: var(--ui-r); padding: 0 16px; font-size: 16px; }
.rules-groups { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rules-list { margin: 0; padding-left: 20px; line-height: 1.7; } .rules-list a { text-decoration: none; }
.rules-nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin: 18px 0; }
.pdd-rules { line-height: 1.6; overflow-wrap: anywhere; } .pdd-rules p { margin: 0 0 10px; } .pdd-rules hr { border: 0; border-top: 1px dashed rgba(15,23,42,.25); margin: 10px 0; }
.pdd-rules table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; } .pdd-rules td, .pdd-rules th { border: 1px solid rgba(15,23,42,.2); padding: 6px 8px; vertical-align: top; }
.pdd-figs { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; } .pdd-fig { margin: 0; text-align: center; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 6px; } .pdd-fig img { display: block; height: 96px; width: auto; max-width: 150px; object-fit: contain; } .pdd-fig figcaption { font-size: 12px; color: var(--color-text-muted); }

/* ссылки-действия в списке адресов — удобная зона нажатия на телефоне */
@media (max-width: 768px) {
    .shop-card__actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
    .shop-card__locate, .shop-card__more { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; }
}

/* ======================================================================
   Шапка на телефоне и планшете: всё помещается в экран (кнопка «Личный кабинет» — в меню, телефон — значком)
   ====================================================================== */
html, body { overflow-x: clip; }   /* страница никогда не шире экрана */
img, video, iframe, table { max-width: 100%; }
@media (max-width: 1179px) {
    .header-lk, .header-app, .header-dl { display: none !important; }   /* на узких экранах эти кнопки доступны в раскрывающемся меню */
    .site-header .container { gap: 12px; }
    .header-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
}
@media (max-width: 560px) {
    .header-phone {
        font-size: 0; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
        background: var(--color-bg-alt); border: 1px solid var(--color-border);
    }
    .header-phone::before {
        content: ""; width: 20px; height: 20px; background-color: var(--color-primary);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
    }
    .header-cta { padding: 0 14px; font-size: 14px; }
    .logo { font-size: 18px; }
}

/* ---- сворачиваемые карточки: инструкторы и отзывы (длинный текст не растягивает страницу; полностью — по клику) ---- */
.person-bio, .review-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
[data-collapsible].is-open .person-bio, [data-collapsible].is-open .review-text { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.person-card .person-bio { text-align: center; }
.collapse-hint { display: none; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--color-primary); user-select: none; }
.collapse-hint .ch-less { display: none; }
.collapse-hint .ch-more::after { content: " ▾"; } .collapse-hint .ch-less::after { content: " ▴"; }
[data-collapsible].is-clamped { cursor: pointer; }
[data-collapsible].is-clamped .collapse-hint { display: inline-block; }
[data-collapsible].is-open .collapse-hint .ch-more { display: none; } [data-collapsible].is-open .collapse-hint .ch-less { display: inline; }
[data-collapsible].is-clamped:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border)); }
[data-collapsible]:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
/* имя в свёрнутом отзыве обрезается, в развёрнутом — целиком */
.review-who b[data-clamp-name] { display: block; }
.review-card.is-open .review-who b { white-space: normal; overflow: visible; text-overflow: clip; }
.review-card.is-open .review-who { align-self: flex-start; }
.reviews-carousel { align-items: flex-start; }

/* ---- «Контакты»: слева реквизиты, карта и офисы, справа форма обратной связи ---- */
.contacts-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contacts-main { min-width: 0; }
.contacts-main .contact-list { max-width: none; }
.contacts-main .contacts-map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contacts-main .contacts-map iframe { display: block; width: 100%; }
.contacts-main .contacts-apply { margin-top: 22px; }
.contacts-main .branches-block { margin-top: 32px; }
.contacts-main .branches-block h2 { margin-top: 0; }
.contacts-side { position: sticky; top: 96px; min-width: 0; }
.contacts-side .feedback-block { margin: 0; padding: 24px; }
.contacts-side .feedback-block h2 { margin-top: 0; font-size: 22px; }
.contacts-side .form-field { margin-bottom: 14px; }
@media (max-width: 960px) {
    .contacts-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .contacts-side { position: static; }
}
.contacts-side .feedback-block { border: 1px solid var(--color-border); }

/* одиночные карточки (текст правил, результаты поиска, форма) — на всю ширину, ограничение 340px только для карточек в сетках */
.container > .card, .pdd-rules.card, .rules-groups .card, .contacts-side .card, .contacts-side .feedback-block { max-width: none; }

/* ---- меню в шапке: «Ещё ▾» вместо выхода за экран ---- */
.main-nav .nav-more.is-off { display: none !important; }
.main-nav .nav-more .sub-child a { padding-left: 22px; font-size: 13px; color: var(--color-text-muted); }
@media (min-width: 1180px) {
    .main-nav { min-width: 0; flex: 0 1 auto; }
    .main-nav ul { flex-wrap: nowrap; }
    .main-nav li.nav-hidden { display: none; }
    .main-nav .nav-more .sub { left: auto; right: -14px; }
}
@media (max-width: 1179px) {
    .main-nav .nav-more, .main-nav .nav-more .sub { display: contents; }
    .main-nav .nav-more > a, .main-nav .nav-more > .sub-toggle, .main-nav .nav-more [data-auto] { display: none !important; }
    .main-nav .nav-more .sub { padding: 0; opacity: 1; visibility: visible; transform: none; }
    .main-nav .nav-more .sub-child a { padding-left: 14px; }
}

/* ---- формы: воздух между подписями, переключателями, примечаниями и кнопками ---- */
.form-field > label:first-child { margin-bottom: 8px; }
.form-field .form-error { margin-top: 6px; }
.form-field .form-error:empty { margin: 0; }
.form-choice { display: flex !important; align-items: center; gap: 12px; min-height: 44px; margin: 0 0 4px; padding: 6px 12px; font-weight: 400 !important; border-radius: 12px; cursor: pointer; }
.form-choice:hover { background: color-mix(in srgb, var(--color-primary) 6%, transparent); }
.form-choice input { width: 20px !important; height: 20px; flex: 0 0 20px; margin: 0 !important; accent-color: var(--color-primary); }
.form-consent { gap: 12px; margin: 6px 0 4px; line-height: 1.5; }
.form-consent input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--color-primary); }
.form-note { margin: 16px 0 0; }
.form-note + .btn, .form-note + button, .form-note + .form-status, form .form-error + .btn { margin-top: 18px; }
form .btn[type=submit], form button[type=submit] { margin-top: 18px; }
.form-note + button[type=submit], .form-note + .btn[type=submit] { margin-top: 18px; }
.form-status { margin-top: 16px; }
.form-field + .form-field { margin-top: 0; }
.p-field label.p-checkbox, .form-field .p-checkbox { gap: 10px; }
.review-form-block form > * + * { margin-top: 0; }
.review-form-block form .form-field, .review-form-block form .p-field { margin-bottom: 18px; }
.review-form-block .btn + .btn, .btn + .btn { margin-left: 0; }
.hero-actions, .cta-actions { gap: 14px; }
.footer-app-links, .footer-dl { gap: 10px; }

/* ---- единый стиль с приложением: мягкие карточки, крупные скругления ---- */
.card { border-radius: 22px; border-color: #e3e9f2; box-shadow: 0 8px 28px -18px rgba(15, 23, 42, .35), 0 1px 2px rgba(15, 23, 42, .05); }
.site-footer { border-radius: 28px 28px 0 0; }

/* форма отзыва по центру страницы */
.review-form-block { text-align: center; }
.review-form-block form { margin-left: auto; margin-right: auto; text-align: left; }


/* ---- единая «объёмная» панель форм: заявка, обратная связь, отзыв, подарочная карта ---- */
.form-panel {
    position: relative; padding: 28px; border-radius: 22px; border: 1px solid var(--color-border); background: #fff; color: var(--color-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 22px 44px -28px rgba(15, 23, 42, .4), 0 0 0 6px rgba(15, 23, 42, .035);
}
@media (max-width: 600px) { .form-panel { padding: 20px 16px 18px; border-radius: 18px; } }

/* «Оставить отзыв»: светлая подложка и белая карточка с тенью — как у формы заявки */
.review-form-block { margin-top: 48px; padding: 30px 28px 34px; border-top: 0; border-radius: 28px; background: var(--color-bg-alt); }
.review-form-block h2 { margin: 0 0 18px; text-align: center; color: var(--color-secondary); }
.review-form-block > form { max-width: 560px !important; margin: 0 auto; padding: 26px 26px 22px; border-radius: 22px; border: 1px solid var(--color-border); background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 22px 44px -28px rgba(15, 23, 42, .4), 0 0 0 6px rgba(15, 23, 42, .035); }
.review-form-block .form-field input:not([type=checkbox]):not([type=file]), .review-form-block .form-field textarea { border: 1px solid var(--color-border); background: #fff; }
@media (max-width: 600px) { .review-form-block { padding: 20px 12px 24px; border-radius: 20px; } .review-form-block > form { padding: 20px 16px 18px; } }

/* «Контакты»: форма обратной связи — на один уровень с текстом слева (нижний край совпадает, «Отправить» не уходит вниз страницы) */
.contacts-side .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.contacts-side .feedback-block.form-panel { padding: 24px; }
@media (min-width: 961px) {
    .contacts-layout { align-items: stretch; }
    .contacts-side { position: static; display: flex; }
    .contacts-side .feedback-block { flex: 1; display: flex; flex-direction: column; box-sizing: border-box; }
    .contacts-side .feedback-block form { flex: 1; display: flex; flex-direction: column; max-width: none; }
    .contacts-side .form-field--grow { flex: 1; display: flex; flex-direction: column; }
    .contacts-side .form-field--grow textarea { flex: 1; min-height: 84px; resize: vertical; }
}
@media (max-width: 560px) { .contacts-side .form-row-2 { grid-template-columns: 1fr; } }

/* ---- карусель: портрет инструктора (того же размера и скругления, что одиночное фото) и широкая карусель на странице адреса ---- */
.fleet-gal--round { width: 140px; height: 140px; border-radius: 14px; margin: 0 auto 14px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px color-mix(in srgb, var(--color-primary) 35%, transparent); }
.fleet-gal--round .fleet-gal__track { height: 100%; }
.person-card .fleet-gal--round .fleet-gal__track img { width: 100%; height: 100%; aspect-ratio: 1; box-shadow: none; margin: 0 !important; border-radius: 0 !important; }
.fleet-gal--round .fleet-gal__btn { width: 26px; height: 26px; font-size: 18px; padding-bottom: 2px; opacity: 0; transition: opacity .2s; }
.fleet-gal--round .fleet-gal__btn--prev { left: 4px; } .fleet-gal--round .fleet-gal__btn--next { right: 4px; }
.fleet-gal--round:hover .fleet-gal__btn, .fleet-gal--round:focus-within .fleet-gal__btn { opacity: 1; }
@media (hover: none) { .fleet-gal--round .fleet-gal__btn { display: none; } }
.fleet-gal--round .fleet-gal__dots { bottom: 9px; gap: 4px; } .fleet-gal--round .fleet-gal__dots i { width: 5px; height: 5px; } .fleet-gal--round .fleet-gal__dots i.is-on { width: 12px; }
.fleet-gal--wide { border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 0; }
.fleet-gal--wide .fleet-gal__track img { aspect-ratio: 16 / 10; max-height: 360px; }
@media (max-width: 720px) { .fleet-gal--wide .fleet-gal__track img { max-height: 240px; } }

/* ---- фото и галереи внутри текста статей и страниц (вставляются в редакторе кнопками «Фото» и «Галерея») ---- */
.richtext-content figure.rt-fig { margin: 26px 0; }
.richtext-content figure.rt-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 0; cursor: zoom-in; }
.richtext-content figure.rt-fig figcaption { font-size: 14px; line-height: 1.4; color: var(--color-text-muted); text-align: center; margin-top: 8px; }
.richtext-content figure.rt-fig--center { width: 62%; margin-left: auto; margin-right: auto; }
.richtext-content figure.rt-fig--left { float: left; width: 44%; margin: 6px 26px 14px 0; }
.richtext-content figure.rt-fig--right { float: right; width: 44%; margin: 6px 0 14px 26px; }
.article-body figure.rt-fig--wide { width: min(980px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); }
.richtext-content .rt-gallery { margin: 26px 0; clear: both; }
.richtext-content .rt-gallery--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.richtext-content .rt-gallery--grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin: 0; cursor: zoom-in; display: block; }
.richtext-content .rt-gallery .fleet-gal { margin-bottom: 0; border-radius: var(--radius); }
.richtext-content .rt-gallery .fleet-gal__track img { aspect-ratio: 16 / 10; cursor: zoom-in; }
.richtext-content::after { content: ""; display: block; clear: both; }
@media (max-width: 720px) {
    .richtext-content figure.rt-fig--left, .richtext-content figure.rt-fig--right, .richtext-content figure.rt-fig--center { float: none; width: 100%; margin: 20px 0; }
}
.rt-lightbox { position: fixed; inset: 0; z-index: 10001; background: rgba(8,12,22,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.rt-lightbox[hidden] { display: none; }
.rt-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.rt-lightbox button { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.rt-lightbox button:hover, .rt-lightbox button:focus-visible { background: rgba(255,255,255,.32); outline: 2px solid #fff; }
.rt-lightbox [data-lb-close] { top: 16px; right: 16px; } .rt-lightbox [data-lb-prev] { left: 14px; top: 50%; margin-top: -22px; } .rt-lightbox [data-lb-next] { right: 14px; top: 50%; margin-top: -22px; }
body.story-open { overflow: hidden; }

/* ---- отзывы с Авито и Яндекса: пометка источника в карточке отзыва, ссылки под лентой ---- */
.review-src { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--color-border); font-size: 12.5px; color: var(--color-text-muted); }
.review-card .collapse-hint + .review-src, .review-card .review-text + .review-src { margin-top: 12px; }
.review-src__name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--color-text); }
.review-src__link { color: var(--color-primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
.review-src__link:hover { text-decoration: underline; }
.reviews-more-links { text-align: center; margin: 18px 0 0; color: var(--color-text-muted); }
.reviews-more-links a { color: var(--color-primary); font-weight: 600; margin-left: 8px; }
.reviews-under-widget { margin-top: 32px; }

/* ---- плашка cookie: на телефоне тонкая полоска в одну строку, не закрывает первый экран ---- */
.cookie-short { display: none; }
@media (max-width: 720px) {
    .cookie-banner { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
    .cookie-banner-inner { flex-wrap: nowrap; gap: 10px; }
    .cookie-banner-inner p { min-width: 0; font-size: 13px; line-height: 1.3; }
    .cookie-full { display: none; } .cookie-short { display: inline; }
    .cookie-banner .btn { min-height: 36px; padding: 0 16px; font-size: 14px; flex: 0 0 auto; }
}

/* ---- страница инструктора (включается в «Настройки сайта») ---- */
.person-link { color: inherit; text-decoration: none; } .person-link:hover { color: var(--color-primary); }
.person-more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14px; color: var(--color-primary); text-decoration: none; }
.person-more:hover { text-decoration: underline; }
.inst-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; margin-top: 8px; }
.inst-page__media .fleet-gal--wide .fleet-gal__track img, .inst-page__media > img.shop-photo { aspect-ratio: 4 / 5; max-height: 520px; width: 100%; object-fit: cover; }
.inst-page__noimg { aspect-ratio: 4 / 5; max-height: 420px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 22%, #fff), color-mix(in srgb, var(--color-accent) 24%, #fff)); display: flex; align-items: center; justify-content: center; font-size: 96px; font-weight: 800; color: var(--color-primary); }
.inst-page__info h1 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px); }
.inst-page__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.inst-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 99px; background: var(--color-bg-alt); font-size: 14px; font-weight: 600; }
.inst-chip--cat { background: color-mix(in srgb, var(--color-primary) 12%, #fff); color: var(--color-primary); }
.inst-page__bio h2, .inst-page__video h2, .inst-page__others h2 { font-size: 22px; margin: 0 0 10px; }
.inst-page__bio p { font-size: 17px; line-height: 1.7; margin: 0 0 22px; }
.inst-page__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.inst-page__video, .inst-page__others { margin-top: 44px; }
.inst-video { max-width: 760px; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.inst-video video { display: block; width: 100%; max-height: 560px; background: #000; }
.inst-others { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.inst-other { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; padding: 14px; border: 1px solid var(--color-border); border-radius: 16px; background: #fff; transition: transform .2s, box-shadow .2s; }
.inst-other:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.inst-other__img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.inst-other__img img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; } .inst-other__img i { font-style: normal; font-weight: 800; font-size: 26px; color: var(--color-primary); }
.inst-other small { color: var(--color-text-muted); }
@media (max-width: 820px) { .inst-page__grid { grid-template-columns: 1fr; gap: 22px; } .inst-page__media .fleet-gal--wide .fleet-gal__track img, .inst-page__media > img.shop-photo { aspect-ratio: 4 / 3; } }

/* ---- калькулятор рассрочки ---- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; max-width: 980px; margin: 0 auto; }
.calc__controls, .calc__result { background: #fff; border: 1px solid var(--color-border); border-radius: calc(var(--radius) + 2px); padding: 24px; box-shadow: var(--shadow); }
.calc__controls .form-field { margin-bottom: 18px; } .calc__controls .form-field:last-child { margin-bottom: 0; }
.calc__label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.calc__months { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__m { min-height: 42px; padding: 0 16px; border-radius: 99px; border: 2px solid var(--color-border); background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--color-text); transition: border-color .15s, background .15s, color .15s; }
.calc__m:hover { border-color: var(--color-primary); }
.calc__m.is-on { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.calc__big { display: flex; flex-direction: column; margin-bottom: 14px; } .calc__big small { color: var(--color-text-muted); font-size: 14px; }
.calc__big b { font-size: clamp(34px, 5vw, 46px); line-height: 1.1; color: var(--color-primary); }
.calc__rows { margin: 0 0 14px; } .calc__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--color-border); } .calc__rows div[hidden] { display: none; }
.calc__rows dt { color: var(--color-text-muted); } .calc__rows dd { margin: 0; font-weight: 700; }
.calc__schedule { list-style: none; margin: 0 0 16px; padding: 0; max-height: 230px; overflow-y: auto; border-radius: 12px; background: var(--color-bg-alt); }
.calc__schedule li { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; padding: 8px 14px; font-size: 14px; } .calc__schedule li + li { border-top: 1px solid var(--color-border); }
.calc__schedule i { font-style: normal; color: var(--color-text-muted); }
.calc__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; } .calc__more { font-weight: 600; font-size: 14px; color: var(--color-primary); text-decoration: none; }
.calc__note { margin: 14px 0 0; font-size: 12.5px; color: var(--color-text-muted); }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; gap: 16px; } .calc__controls, .calc__result { padding: 18px; } }

/* ---- мини-фото услуг (включается в «Настройки сайта») ---- */
.svc-thumb, .card img.svc-thumb { width: 56px !important; height: 56px !important; max-width: 56px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: var(--color-bg-alt); margin: 0 !important; aspect-ratio: 1 / 1 !important; box-shadow: 0 2px 8px -3px rgba(15,23,42,.25); }
.svc-title { display: flex; align-items: center; gap: 12px; } .svc-title a { min-width: 0; }
.svc-row { display: inline-flex; align-items: center; gap: 12px; } .svc-row .svc-thumb { width: 44px !important; height: 44px !important; max-width: 44px; border-radius: 10px; }

/* ---- кнопка «Рассрочка» на карточке программы, карточка «Дополнительные услуги», варианты рассрочки ---- */
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.btn-installment { background: color-mix(in srgb, var(--color-accent) 18%, #fff); color: var(--color-text); border: 2px solid var(--color-accent); flex-direction: column; gap: 0; line-height: 1.1; padding-top: 6px; padding-bottom: 6px; }
.btn-installment small { font-size: 11px; font-weight: 600; opacity: .75; }
.btn-installment:hover { background: var(--color-accent); color: #fff; }
.card--extras .extras-list { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.extras-list li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--color-border); } .extras-list li:last-child { border-bottom: 0; }
.extras-list b { white-space: nowrap; } .extras-list__more a { font-weight: 600; font-size: 13px; }
.extras-detail { display: grid; gap: 14px; margin-top: 20px; }
.extras-detail__item { padding: 16px 18px; border: 1px solid var(--color-border); border-radius: 16px; background: #fff; }
.extras-detail__item header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.extras-detail__item h3 { margin: 0; font-size: 18px; } .extras-detail__item p { margin: 8px 0 0; }
.inst-box { margin: 24px 0 8px; } .inst-box h2 { margin: 0 0 10px; }
.inst__options tr.is-current td { background: color-mix(in srgb, var(--color-primary) 8%, #fff); }

/* ---- «Доверие»: лицензия, сдача с первого раза, стаж, рейтинг (рядом с отзывами) ---- */
.trust-strip { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.trust-strip__in { display: flex; gap: 14px; align-items: center; height: 100%; padding: 16px 18px; border: 1px solid var(--color-border); border-radius: calc(var(--radius) - 2px); background: #fff; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
a.trust-strip__in:hover { border-color: var(--color-primary); text-decoration: none; }
.trust-strip__icon { font-size: 28px; line-height: 1; flex: 0 0 auto; }
.trust-strip__text b { display: block; font-size: 22px; line-height: 1.15; color: var(--color-primary); }
.trust-strip__text small { display: block; margin-top: 3px; color: var(--color-text-muted); font-size: 13px; line-height: 1.35; }
.trust-strip__item--license .trust-strip__text b { font-size: 18px; }

/* цена на карточке программы обучения: подпись и крупная сумма, внизу карточки над кнопками */
.program-price { margin: 10px 0 2px; font-size: 22px; font-weight: 800; line-height: 1.15; color: var(--color-primary); white-space: normal; }
.program-price small { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--color-text-muted, #64748b); }
.program-price--ask { font-size: 15px; font-weight: 700; color: var(--color-text-muted, #64748b); }
@media (max-width: 560px) { .program-price { font-size: 20px; } }

/* таблица вариантов рассрочки: подпись «по 2 платежа в месяц» в одну строку */
.inst__options td:first-child { min-width: 150px; }
.inst__options small { white-space: nowrap; }

/* ---- «Отзывы»: слева виджет Яндекса (560×800), справа форма отзыва (как «Контакты и связь»), карусель отзывов ниже по центру ---- */
.reviews-top { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 32px; align-items: stretch; margin-top: 8px; }
.reviews-top--solo { grid-template-columns: minmax(0, 640px); justify-content: center; }
.reviews-top__widget { margin: 0; padding: 0; border: 0; overflow: visible; display: flex; }
.reviews-top__widget .ymap { flex: 1; height: auto; min-height: 800px; max-width: 560px; margin: 0; border-radius: 8px; border: 1px solid #e6e6e6; background: #fff; }
.reviews-top__widget .ymap__attr, .reviews-top__widget .ymap__attr:nth-of-type(n) { top: auto; bottom: 8px; left: 0; width: 100%; box-sizing: border-box; padding: 0 16px; text-align: center; font: 10px/14px "YS Text", sans-serif; color: #b3b3b3; background: none; border-radius: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-height: 14px; }
.reviews-top__form { min-width: 0; display: flex; }
.reviews-top__form .review-form-panel { flex: 1; display: flex; flex-direction: column; box-sizing: border-box; margin: 0; padding: 24px; max-width: none; border-top: 1px solid var(--color-border); }
.reviews-top__form .review-form-panel h2 { margin: 0 0 6px; font-size: 22px; text-align: left; }
.reviews-top__form .review-form-panel > .muted { margin: 0 0 16px; }
.reviews-top__form form { flex: 1; display: flex; flex-direction: column; max-width: none; margin: 0; }
.reviews-top__form .form-field { margin-bottom: 14px; }
.reviews-top__form .form-field--grow { flex: 1; display: flex; flex-direction: column; }
.reviews-top__form .form-field--grow textarea { flex: 1; min-height: 120px; resize: vertical; }
.reviews-top__form .form-field input:not([type=checkbox]):not([type=file]), .reviews-top__form .form-field textarea { border: 1px solid var(--color-border); background: #fff; }
.reviews-below { margin-top: 44px; }
.reviews-below__title { margin: 0 0 18px; text-align: center; font-size: 26px; color: var(--color-secondary); }
.reviews-below .reviews-carousel-wrap { max-width: 1120px; margin: 0 auto; }
.reviews-below .reviews-carousel { align-items: stretch; }
.reviews-below .review-card { display: flex; flex-direction: column; }
.reviews-below .review-card .review-src { margin-top: auto; }
@media (max-width: 960px) {
    .reviews-top, .reviews-top--solo { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .reviews-top__form { order: -1; }
    .reviews-top__widget .ymap { max-width: none; }
}

/* ---- Ленты карточек: программы, филиалы и площадки, автопарк, инструкторы, статьи, блок «Карточки» ----
   Не переносятся на новую строку, а листаются по горизонтали (стрелки на компьютере, свайп на телефоне), как отзывы. */
html body .card-grid, html body .people-grid, html body .blog-grid, html body .cms-cards {
    --hs-w: 300px; --hs-gap: 24px;
    display: flex; flex-wrap: nowrap; gap: var(--hs-gap); overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity; scroll-padding: 0 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
    padding: 8px 4px 22px; margin: 0 -4px; align-items: stretch;
}
html body .people-grid { --hs-w: 250px; align-items: flex-start; }
html body .blog-grid { --hs-w: 320px; }
html body .cms-cards { --hs-gap: 22px; }
html body .card-grid > *, html body .people-grid > *, html body .blog-grid > * { flex: 0 0 var(--hs-w); width: var(--hs-w); max-width: none; box-sizing: border-box; scroll-snap-align: start; }
/* «Карточки»: по числу колонок, заданному в блоке (2/3/4) — все помещаются без прокрутки, лишние листаются */
html body .cms-cards > * { flex: 0 0 calc((100% - (var(--cms-cols, 3) - 1) * var(--hs-gap)) / var(--cms-cols, 3)); min-width: 220px; box-sizing: border-box; scroll-snap-align: start; }
html body .card-grid > .card, html body .people-grid > .card { max-width: none; }
.hscroll { position: relative; }
.hscroll__btn {
    position: absolute; top: calc(50% - 10px); transform: translateY(-50%); z-index: 4; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--color-border); background: #fff; color: var(--color-secondary); font-size: 20px; line-height: 1; cursor: pointer;
    box-shadow: 0 8px 22px -8px rgba(15, 23, 42, .45); display: none; align-items: center; justify-content: center; padding: 0;
}
.hscroll__btn--prev { left: -12px; } .hscroll__btn--next { right: -12px; }
.hscroll__btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.hscroll__btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
@media (min-width: 700px) { .hscroll.is-scrollable .hscroll__btn { display: flex; } }
@media (max-width: 768px) {
    html body .card-grid, html body .people-grid, html body .blog-grid, html body .cms-cards { --hs-w: min(78vw, 300px); --hs-gap: 16px; margin: 0 -20px; padding: 6px 20px 18px; scroll-padding: 0 20px; scroll-snap-type: x mandatory; }
    html body .people-grid { --hs-w: min(64vw, 250px); }
    html body .cms-cards > * { flex-basis: min(78vw, 300px); min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { html body .card-grid, html body .people-grid, html body .blog-grid, html body .cms-cards { scroll-behavior: auto; } }

/* ---- Рассрочка: варианты карточками (телефон и компьютер), график плитками на всю ширину — без пустых мест ---- */
.inst__opts { min-width: 0; }
.inst__opts .inst__h2 { margin: 0 0 14px; font-size: 24px; }
.inst .inst__grid { align-items: stretch; }
.inst .inst__card--main { display: flex; flex-direction: column; }
.inst__card--main .btn { margin-top: auto; }
.inst__card--main .inst__row--big { margin-bottom: 14px; }
.inst-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 0 0 6px; }
.inst-box .inst-opts { margin: 8px 0 18px; }
.inst-opt { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--color-border); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 6px 20px -14px rgba(15, 23, 42, .4); transition: border-color .15s, box-shadow .15s, transform .15s; }
.inst-opt:hover { border-color: var(--color-primary); transform: translateY(-2px); text-decoration: none; }
.inst-opt.is-current { border: 2px solid var(--color-primary); padding: 15px 17px; background: color-mix(in srgb, var(--color-primary) 6%, #fff); }
.inst-opt__term b { display: block; font-size: 20px; color: var(--color-secondary); }
.inst-opt__term small { display: block; margin-top: 2px; font-size: 13px; color: var(--color-text-muted); }
.inst-opt__rows { margin: 0; display: grid; gap: 6px; }
.inst-opt__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.inst-opt__rows dt { color: var(--color-text-muted); }
.inst-opt__rows dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.inst-opt__sum { color: var(--color-primary); font-size: 17px; }
.inst-opt__rows dd small { display: block; font-size: 12px; font-weight: 500; color: var(--color-text-muted); }
.inst-opt__cta { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--color-primary); }
.inst__sched-block { margin-top: 34px; scroll-margin-top: 90px; }
.inst__sched-block .inst__h2 { margin: 0 0 14px; font-size: 24px; }
.inst-sched { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; counter-reset: pay; }
.inst-sched__item { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--color-border); border-radius: 16px; background: #fff; box-shadow: 0 6px 20px -16px rgba(15, 23, 42, .4); }
.inst-sched__item.is-first { background: color-mix(in srgb, var(--color-accent) 12%, #fff); border-color: color-mix(in srgb, var(--color-accent) 55%, #fff); }
.inst-sched__what { font-size: 14px; font-weight: 600; color: var(--color-secondary); }
.inst-sched__when { font-size: 13px; color: var(--color-text-muted); }
.inst-sched__sum { margin-top: 6px; font-size: 21px; color: var(--color-primary); }
.inst-sched__total { margin: 14px 0 0; color: var(--color-text-muted); }
.inst__cond-wrap { margin-top: 30px; }
.inst__card--cond { max-width: none; }
@media (max-width: 760px) {
    .inst-opts { grid-template-columns: minmax(0, 1fr); }
    .inst-sched { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .inst-sched__item { padding: 12px 12px; }
    .inst-sched__sum { font-size: 18px; }
    .inst-opt__term b { font-size: 19px; }
}
