/* Дополнения поверх legacy CSS: подвал и сетка */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*
 * Tailwind (app.css) задаёт .container как узкую сетку — ломает всю вёрстку Акади.
 * Восстанавливаем поведение как в оригинальном style.css для всех .container на сайте.
 */
body .container,
.acadi-site-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
}

.acadi-site-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-x: clip;
}

.acadi-site-wrap > .site-main {
    flex: 1 0 auto;
    min-width: 0;
}

/*
 * Шапка в style.css была position:fixed — контент приходилось отступать padding-top на обёртке,
 * а на страницах с поздним CSS (QIZ-N) получался «двойной» сдвиг и перекрытие.
 * Липкая шапка остаётся в потоке: блоки идут шапка → контент → подвал, без наслоения.
 */
.acadi-site-wrap > .header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 20 !important;
    width: 100% !important;
}

/* Главная: видео-герой визуально под шапкой (высота шапки ≈ высоте логотипа) */
.acadi-site-wrap:has(#home.titul) #home.titul {
    margin-top: -97px;
}

@media (max-width: 600px) {
    .acadi-site-wrap:has(#home.titul) #home.titul {
        margin-top: -69px;
    }
}

/* Логотип в шапке (PNG из папки Diplom вместо текстовых строк) */
.header .log {
    background: transparent;
    justify-content: flex-start !important;
    align-items: center;
    overflow: visible;
    box-sizing: border-box;
}

@media (min-width: 601px) {
    .header .log {
        padding-left: 1.75rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Прозрачность PNG: без своего фона, чтобы альфа-картинка легла на #f1eeee шапки */
.header .header-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 0;
    text-decoration: none;
    background: none;
    background-color: transparent;
}

/*
 * Если в PNG нет настоящей альфы, а светлый «фон» (белый/серый) — mix-blend-mode: darken
 * подбирает светлые пиксели к фону шапки #f1eeee, оранжевые буквы остаются яркими (не как multiply).
 * Рамка с тем же цветом, что шапка — смешивание не уезжает на контент под sticky.
 */
.header .header-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #f1eeee;
    line-height: 0;
}

/* Логотип: высота /1.5 от прежних 156px / 114px */
.header .header-logo-img {
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: none !important;
    background-color: transparent !important;
    border: 0;
    box-shadow: none;
    mix-blend-mode: darken;
}

@media (min-width: 601px) {
    .acadi-site-wrap > .header {
        min-height: 97px !important;
        height: auto !important;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
        padding-left: 0.5rem !important;
        box-sizing: border-box !important;
    }

    .header .header-logo-img {
        height: 85px !important;
        max-width: min(281px, 58vw) !important;
    }
}

@media (max-width: 600px) {
    .header .header-logo-img {
        height: 61px !important;
        max-width: min(92vw, 216px) !important;
    }

    .header .log {
        padding-left: 1.1rem !important;
        padding-right: 0.35rem !important;
    }
}

/* Аккаунт в шапке: иконка + выпадающее меню / форма входа */
.acadi-site-wrap .header {
    overflow: visible !important;
    z-index: 50 !important;
}

.header .iconsheader.header-lk-wrap {
    width: auto;
    min-width: 0;
    height: auto;
    flex-shrink: 0;
    overflow: visible;
}

.header-account {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    position: relative;
}

.header-account__badge {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e46a17;
    line-height: 1.1;
    text-align: center;
    max-width: 4.5rem;
}

.header-account--admin .header-account__badge {
    color: #c2410c;
}

.header-account--employee .header-account__badge {
    color: #2563eb;
}

.header-account__trigger-wrap {
    position: relative;
}

.header .header-lk-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #e46a17;
    color: #e46a17;
    background: rgba(255, 255, 255, 0.85);
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.header .header-lk-link--active,
.header-account.is-open .header-lk-link {
    background: #e46a17;
    color: #fff;
    border-color: #e46a17;
    box-shadow: 0 0 0 2px rgba(228, 106, 23, 0.2);
}

.header-account--admin .header-lk-link--active,
.header-account--admin.is-open .header-lk-link {
    background: #c2410c;
    border-color: #c2410c;
    box-shadow: 0 0 0 2px rgba(194, 65, 12, 0.22);
}

.header-account--employee .header-lk-link--active,
.header-account--employee.is-open .header-lk-link {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.header .header-lk-link:hover {
    background: #fff7ed;
    color: #c2410c;
    border-color: #c2410c;
}

.header-account.is-open .header-lk-link:hover,
.header .header-lk-link--active:hover {
    color: #fff;
}

.header-account--employee.is-open .header-lk-link:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.header .header-lk-icon {
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

.header-account__panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 120;
    width: min(18rem, calc(100vw - 1.5rem));
    padding: 0.85rem 0.95rem 0.95rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}

.header-account__panel[hidden] {
    display: none !important;
}

.header-account__panel-title {
    margin: 0 0 0.15rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}

.header-account__panel-sub {
    margin: 0 0 0.65rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
}

.header-account__menu {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.header-account__menu-link {
    display: block;
    width: 100%;
    padding: 0.5rem 0.55rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.header-account__menu-link:hover {
    background: #fff7ed;
    color: #c2410c;
}

.header-account__menu-link--danger {
    color: #b91c1c;
}

.header-account__menu-link--danger:hover {
    background: #fef2f2;
    color: #991b1b;
}

.header-account__menu-logout {
    margin: 0;
    padding: 0;
}

.header-account__panel .cabinet-form--compact .cabinet-field {
    margin-bottom: 0.65rem;
}

.header-account__panel .cabinet-form--compact .cabinet-actions {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.header-account__panel .auth-page-links {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

/* Пункты аккаунта в бургер-меню */
.menu__divider {
    height: 1px;
    margin: 0.35rem 0.75rem !important;
    padding: 0 !important;
    background: #444;
    border: 0;
    pointer-events: none;
}

.menu__account-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.35rem 0.5rem !important;
    height: auto !important;
    pointer-events: none;
}

.menu__account-role {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e46a17;
}

.menu__account-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f3f4f6;
}

.menu__account-logout {
    height: auto !important;
}

.menu__account-logout-btn {
    width: 100%;
    margin: 0;
    padding: 0.5rem;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: inherit;
    color: inherit;
    text-align: center;
    cursor: pointer;
}

.menu__account-logout-btn:hover {
    color: #e46a17;
}

@media (min-width: 701px) {
    .menu__divider,
    .menu__account-meta,
    .menu__account-link,
    .menu__account-logout {
        display: none !important;
    }
}

@media (max-width: 700px) {
    .header-account__badge {
        display: none;
    }
}

@media (max-width: 600px) {
    .header .header-lk-link {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
}

/* Preflight Tailwind сжимает video — возвращаем полноэкранный герой */
.titul {
    width: 100%;
    min-height: 45vh;
    line-height: 0;
    overflow: hidden;
}

video.vid {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto;
    min-height: 45vh;
    object-fit: cover;
    vertical-align: middle;
}

/* Скрыть оверлей браузера (PiP / отдельное окно) на герое без controls */
video.vid::-webkit-media-controls {
    display: none !important;
}

video.vid::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Подвал: только по высоте контента (в legacy было 30–40vh и 250×250 у соцблока) */
.acadi-site-wrap > .footer {
    height: auto !important;
    min-height: 0 !important;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.25rem 2rem;
    padding: 1.25rem 1rem 1.5rem;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
    flex-grow: 0;
}

.footer {
    height: auto;
    min-height: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1rem;
    max-width: 56rem;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-links .text__footer {
    margin: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .acadi-site-wrap .footer-links {
        gap: 0.35rem 0.65rem;
        padding: 0.75rem 0.5rem 1rem;
    }

    .acadi-site-wrap .footer-links .text__footer,
    .acadi-site-wrap .footer .text__footer {
        font-size: 0.8125rem !important;
        line-height: 1.45;
        padding: 0.35rem 0.15rem;
        min-height: 2.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .acadi-site-wrap .text__footer__head {
        font-size: 0.8125rem !important;
    }
}

.acadi-site-wrap .footer .socialseti__footer {
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.socialseti__footer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    min-width: 0;
    box-sizing: border-box;
}

/* В style.css у .img__footer стоит margin:10px при родителе 30×30 и overflow:hidden — иконки обрезаются */
.footer .icons__footer {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    margin: 0;
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
}

.footer .icons__footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.footer .img__footer {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    object-fit: contain;
    display: block;
    overflow: visible;
}

.footer .footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/*
 * В media_1000-1450.css у .iconsheader стоит 20×20px, а SVG в разметке 30×30 — иконки
 * (особенно ВК) вылезали за рамку и обрезались. Масштабируем SVG под контейнер.
 */
.header .header-social-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.footer .footer-social-svg {
    display: block;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.footer-social-link--telegram {
    color: #26a5e4;
}

.footer-social-link--vk {
    color: #0077ff;
}

.header .header-social-svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

.header-social-link--telegram {
    color: #26a5e4;
}

.header-social-link--vk {
    color: #0077ff;
}

/*
 * Шапка: в style.css у .socialseti стоит width:10% — на телефоне полоса сжималась до «точек».
 * Десктоп (601px+): иконки мессенджеров = 34×34 как .header-lk-link; отступы справа и между.
 * Мобильные (до 600px): отдельный блок ниже — 30px.
 */
.acadi-site-wrap .header .socialseti {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.35rem !important;
    padding-right: 0.35rem !important;
    box-sizing: border-box !important;
}

/* ЛК в конце ряда: доп. зазор от блока мессенджеров */
.acadi-site-wrap .header .socialseti .header-lk-wrap {
    margin-left: 0.65rem !important;
}

@media (min-width: 601px) {
    .acadi-site-wrap .header .socialseti {
        gap: 0.5rem !important;
        padding-right: 1.25rem !important;
        padding-left: 0.35rem !important;
    }

    .acadi-site-wrap .header .socialseti .header-lk-wrap {
        margin-left: 0.85rem !important;
    }

    /* Только Макс / TG / ВК — как кнопка входа 34×34 */
    .acadi-site-wrap .header .socialseti .iconsheader:not(.header-lk-wrap) {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 600px) {
    .acadi-site-wrap .header {
        flex-wrap: nowrap !important;
        min-height: 71px !important;
        height: auto !important;
        max-height: none !important;
        align-items: center !important;
        /* слева заметный inset — логотип не обрезается у края */
        padding: 0 0.75rem 0 1rem !important;
        box-sizing: border-box !important;
    }

    .acadi-site-wrap .header .log {
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    .acadi-site-wrap .header .nav__header {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .acadi-site-wrap .header .socialseti {
        flex-basis: auto !important;
        width: auto !important;
        flex: 0 0 auto !important;
        justify-content: flex-end !important;
        padding: 0 !important;
        margin: 0 !important;
        /* зазор между иконками — проще попасть пальцем, не цепляя соседнюю */
        gap: 0.5rem !important;
    }

    .acadi-site-wrap .header .socialseti .header-lk-wrap {
        margin-left: 0.7rem !important;
    }

    .acadi-site-wrap .header .socialseti .iconsheader {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 700px) {
    .footer {
        align-items: center;
    }

    .socialseti__footer {
        justify-content: center;
        min-width: 0;
        width: 100%;
    }
}

/* Личный кабинет: видно без npm run dev (не зависит от Tailwind в сборке) */
.cabinet-page {
    box-sizing: border-box;
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    min-height: 35vh;
    color: #1e293b;
}

.cabinet-page h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #0f172a;
}

.cabinet-page .cabinet-lead {
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.cabinet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.cabinet-actions--top {
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
}

.cabinet-page .btn-cabinet-primary {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ea580c;
    color: #fff !important;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cabinet-page .btn-cabinet-primary:hover {
    background: #c2410c;
    color: #fff !important;
}

.cabinet-page .btn-cabinet {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    border-radius: 0.5rem;
}

.cabinet-page .btn-cabinet:hover {
    background: #f8fafc;
    color: #334155 !important;
}

.cabinet-page .btn-logout {
    background: none;
    border: none;
    padding: 0;
    color: #64748b !important;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
}

.cabinet-page .btn-logout:hover {
    color: #0f172a !important;
}

.cabinet-page .cabinet-status {
    margin: 0 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.875rem;
}

.cabinet-form {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cabinet-form .cabinet-field {
    margin-bottom: 1rem;
}

.cabinet-form .cabinet-field:last-of-type {
    margin-bottom: 0;
}

.cabinet-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.cabinet-input,
.cabinet-textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
}

.cabinet-password-wrap {
    position: relative;
    width: 100%;
}

.cabinet-input--password {
    padding-right: 4.75rem;
}

.cabinet-password-toggle {
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 2.5rem;
    padding: 0.2rem 0.25rem;
    border: none;
    border-radius: 0.35rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font: inherit;
    line-height: 1.15;
    text-align: center;
}

.cabinet-password-toggle-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cabinet-password-toggle-icons {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cabinet-password-toggle-icons svg {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
}

/* Пароль скрыт — открытый глаз; пароль виден — глаз с перечёркиванием */
.cabinet-password-toggle:not(.is-password-visible) .cabinet-password-toggle-icon--eye-off,
.cabinet-password-toggle.is-password-visible .cabinet-password-toggle-icon--eye-open {
    display: none;
}

.cabinet-password-toggle:not(.is-password-visible) .cabinet-password-toggle-icon--eye-open,
.cabinet-password-toggle.is-password-visible .cabinet-password-toggle-icon--eye-off {
    display: block;
}

.cabinet-password-toggle-legend {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: inherit;
    white-space: nowrap;
}

.cabinet-password-toggle-legend--plain {
    display: none;
}

.cabinet-password-toggle.is-password-visible .cabinet-password-toggle-legend--masked {
    display: none;
}

.cabinet-password-toggle.is-password-visible .cabinet-password-toggle-legend--plain {
    display: block;
}

.cabinet-password-toggle:hover {
    color: #334155;
}

.cabinet-password-toggle:focus-visible {
    outline: 2px solid #e46a17;
    outline-offset: 2px;
}

@media (max-width: 380px) {
    .cabinet-input--password {
        padding-right: 3rem;
    }

    .cabinet-password-toggle-legend {
        display: none;
    }
}

.cabinet-textarea {
    resize: vertical;
    min-height: 6rem;
}

.cabinet-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cabinet-dates .cabinet-field {
    flex: 1 1 160px;
    margin-bottom: 0;
}

.cabinet-photo-preview {
    display: block;
    width: 7rem;
    height: 7rem;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.cabinet-error {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #dc2626;
}

.cabinet-hint {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}

.cabinet-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
}

.cabinet-checkbox input {
    margin-top: 0.15rem;
}

.cabinet-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cabinet-articles-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
}

.cabinet-articles-list__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.cabinet-articles-list__meta {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}

.cabinet-articles-list__status--live {
    color: #166534;
    font-weight: 600;
}

.cabinet-articles-list__status--draft {
    color: #b45309;
    font-weight: 600;
}

.cabinet-articles-list__excerpt {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #475569;
}

.cabinet-articles-list__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    flex-shrink: 0;
}

/* Вход / регистрация (тот же head и шапка, что на основном сайте) */
.auth-page .auth-page-links {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.875rem;
}

.auth-page .auth-page-links a {
    color: #2563eb !important;
    text-decoration: underline;
}

.auth-page .auth-page-links a:hover {
    color: #1d4ed8 !important;
}

.auth-page-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
}

.auth-page-remember input {
    margin: 0;
}

.auth-page .cabinet-lead.auth-page-lead {
    margin-bottom: 1.25rem;
}

.auth-page-verify-actions {
    align-items: flex-start;
}

.auth-page-verify-actions form {
    margin: 0;
}

/*
 * Слайдер дипломов: фиксированная область по aspect-ratio, слайды absolute — высота блока не меняется,
 * страница не «подпрыгивает» при смене картинок разного размера.
 */
.acadi-site-wrap .slideshow-container {
    position: relative !important;
    width: 100% !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    aspect-ratio: 4 / 3;
    min-height: 260px;
    min-width: 0;
    box-sizing: border-box;
}

.acadi-site-wrap .slideshow-container .mySlides {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    padding: 1rem 2.75rem 1.25rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.acadi-site-wrap .slideshow-container .mySlides .diplom_img_js,
.acadi-site-wrap .slideshow-container .mySlides img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(100% - 1.5rem) !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto !important;
}

.acadi-site-wrap .slideshow-container .numbertext {
    position: absolute !important;
    top: 0.35rem !important;
    left: 0.5rem !important;
    z-index: 2 !important;
}

.acadi-site-wrap .slideshow-container .prev,
.acadi-site-wrap .slideshow-container .next {
    z-index: 3 !important;
}

.acadi-site-wrap .slaider .dot_class {
    padding: 0.75rem 0.5rem 1.25rem !important;
}

@media (max-width: 600px) {
    .acadi-site-wrap .slideshow-container {
        aspect-ratio: 3 / 4;
        min-height: 220px;
    }

    .acadi-site-wrap .slideshow-container .mySlides {
        padding: 0.75rem 2rem 1rem !important;
    }
}

/* Специалисты: фото в фиксированной рамке + object-position из админки */
.acadi-site-wrap .img__staff__bloc .img_staf {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* /calc — встраиваемый калькулятор Домклик */
.acadi-site-wrap .container__calc {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.acadi-site-wrap .calc-embed {
    width: 100%;
    min-width: 0;
}

.acadi-site-wrap .calc-embed iframe {
    display: block;
    width: 100%;
    min-height: 900px;
    border: 0;
}

@media (max-width: 600px) {
    .acadi-site-wrap .calc-embed iframe {
        min-width: 480px;
        height: 1150px;
    }
}

@media (min-width: 601px) {
    .acadi-site-wrap .container__calc {
        padding: 1rem 1rem 2rem;
        overflow-x: visible;
    }
}

/*
 * Главная: «Калькулятор ипотеки» — без эффекта «нажатой» кнопки (уменьшение тени / серый фон).
 * Актуальный CTA: мягкая тень, лёгкий lift на hover, при active — только лёгкое затемнение без сдвига вниз.
 */
.page-home a.btn__calc.btn__service__calc {
    -webkit-tap-highlight-color: transparent;
    border-radius: 9999px;
    box-shadow:
        0 2px 8px rgba(228, 106, 23, 0.38),
        0 1px 2px rgba(0, 0, 0, 0.06);
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        opacity 0.15s ease,
        color 0.2s ease;
}

.page-home a.btn__calc.btn__service__calc:hover {
    background-color: #ec8538 !important;
    color: #fff !important;
    box-shadow:
        0 10px 28px rgba(228, 106, 23, 0.42),
        0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.page-home a.btn__calc.btn__service__calc:active {
    transform: translateY(0);
    box-shadow:
        0 3px 12px rgba(228, 106, 23, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.06);
    opacity: 0.94;
}

.page-home a.btn__calc.btn__service__calc:focus-visible {
    outline: 2px solid #c2410c;
    outline-offset: 3px;
}

.page-home a.btn__calc.btn__service__calc:hover .text__btn__calc,
.page-home a.btn__calc.btn__service__calc:active .text__btn__calc {
    color: inherit;
}

@media (prefers-reduced-motion: reduce) {
    .page-home a.btn__calc.btn__service__calc,
    .page-home a.btn__calc.btn__service__calc:hover,
    .page-home a.btn__calc.btn__service__calc:active {
        transform: none;
        transition-duration: 0.01ms;
    }
}

/* Главная: «Контакты» — современный строгий блок */
.acadi-site-wrap .contacts.contacts--modern {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
    background: #f8fafc;
}

.acadi-site-wrap .contacts.contacts--modern .contacts_container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__grid {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 1rem !important;
    width: 100%;
    align-items: stretch !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    justify-content: unset !important;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__card {
    margin: 0;
    padding: 1.35rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.acadi-site-wrap .contacts.contacts--modern .contacts__card-title {
    margin: 0 0 1.1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #e46a17;
    font-family: 'Roboto', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f172a;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__icon {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__icon svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
    max-width: 1.1rem;
    flex-shrink: 0;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__item-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__link {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__link:hover {
    color: #e46a17;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__meta,
.acadi-site-wrap .contacts.contacts--modern .contacts__note {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__note {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__schedule {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__schedule-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__schedule-row:last-of-type {
    border-bottom: none;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__schedule-row dt,
.acadi-site-wrap .contacts.contacts--modern .contacts__schedule-row dd {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__schedule-row dt {
    font-weight: 600;
    color: #334155;
    font-variant-numeric: tabular-nums;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__schedule-row dd {
    font-weight: 500;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.acadi-site-wrap .contacts.contacts--modern .contacts__schedule-row--off dd {
    color: #94a3b8;
    font-weight: 400;
}

@media (max-width: 900px) {
    .acadi-site-wrap .contacts.contacts--modern .contacts__grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    .acadi-site-wrap .contacts.contacts--modern .contacts__card {
        padding: 1.15rem 1.2rem;
    }
}

/* Главная: «Контакты» — legacy fallback для старой разметки */
@media (min-width: 768px) {
    .acadi-site-wrap .contacts:not(.contacts--modern) .contacts_container {
        width: 100%;
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        box-sizing: border-box;
    }

    .acadi-site-wrap .contacts:not(.contacts--modern) .contacts__content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 1rem 1.5rem !important;
        width: 100%;
    }

    .acadi-site-wrap .contacts:not(.contacts--modern) .contacts__adres,
    .acadi-site-wrap .contacts:not(.contacts--modern) .contacts__transport,
    .acadi-site-wrap .contacts:not(.contacts--modern) .contacts__time {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .acadi-site-wrap .contacts:not(.contacts--modern) .contacts__content {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/*
 * Строгая типографика: Inter (SIL OFL) + ровные цифры.
 */
:root {
    --acadi-font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.acadi-site-wrap {
    font-family: var(--acadi-font);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: 'lnum' 1, 'tnum' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.acadi-site-wrap *:not(code):not(pre):not(kbd):not(samp) {
    font-family: var(--acadi-font) !important;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: 'lnum' 1, 'tnum' 1;
}
