/* ================================================== */
/* ===== ПЕРЕМЕННЫЕ ===== */
/* ================================================== */

:root {
    --color-primary: #2278c9;
    --color-accent: #F0B34B;
    --color-text: #1A1A1A;
    --color-bg: #ffffff;
    --color-light: #f9f7f5;
    --color-border: #eae7e3;
    --color-gray: #2c2c2c;

    --font-family-base: 'Inter', sans-serif;
    --font-family-logo: 'Montserrat', sans-serif;

    --font-size-h1: 4.5rem;
    --font-size-h2: 3.5rem;
    --font-size-h3: 2rem;
    --font-size-body: 1.6rem;
    --font-size-small: 1.2rem;

    --block-padding: 30px 0 60px 0;
    --block-padding-mobile: 30px 0 40px 0;

    --content-max-width: 2000px;
}

/* ================================================== */
/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
/* ================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    background: var(--color-bg);
    color: var(--color-text);
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4%;
}

/* ================================================== */
/* ===== РАЗДЕЛИТЕЛЬ ===== */
/* ================================================== */

.divider {
    width: 33.333%;
    height: 3px;
    background: var(--color-accent);
    margin: 30px auto;
    border-radius: 2px;
}

/* ================================================== */
/* ===== ХЕДЕР ===== */
/* ================================================== */

/* якоря (#intro и т.д.) не прячутся под фиксированную шапку */
html {
    scroll-padding-top: 190px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-bg);
    border-bottom: 1px solid #e0dcd7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

/* шапка уехала при скролле вниз (класс вешает header.js) */
.header--hidden {
    transform: translateY(-100%);
}

/* ---------- верхняя строка: логотип + контакты + бургер ---------- */

.header__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 4%;
}


.logo-block {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-svg {
    width: 100px;
    height: 60px;
    flex-shrink: 0;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-family: var(--font-family-logo);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: -0.3px;
}

.logo-text__main,
.logo-text__sub {
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--color-primary);
    white-space: nowrap;
}

/* бывший hr.divider — больше не конфликтует с разделителем секций */
.logo-text__divider {
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    margin: 2px 0 3px 0;
    flex-shrink: 0;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: clamp(24px, 2.5vw, 60px);
    flex-shrink: 0;
}

.header__work-time {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-primary);
    white-space: nowrap;
}

.header__phones {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.3;
    color: #000;
}

.header__phones a {
    color: #000;
    text-decoration: none;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.header__phones a:hover {
    color: var(--color-primary);
}

.btn-callback {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.5rem;
    font-family: var(--font-family-base);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn-callback:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    transform: scale(1.02);
}

/* ---------- бургер (по умолчанию скрыт) ---------- */

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: #000;
    border-radius: 3px;
    transition: all 0.25s ease;
}

.burger.active span:nth-child(1) {
    transform: translate(6px, 6px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translate(6px, -6px) rotate(-45deg);
}


/* ---------- меню: строка на десктопе ---------- */

.main-nav {
    background: var(--color-bg);
    border-top: 1px solid #e0dcd7;
}

/* контакты внутри панели: видны только на планшете/мобиле */
.main-nav__contacts {
    display: none;
}

.menu__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    flex-shrink: 0;
}

.menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 10px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease;
}

.menu-link__top,
.menu-link__bottom {
    font-family: var(--font-family-base);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0.1px;
    color: #000;
    white-space: nowrap;
}

.menu-item.active .menu-link__top,
.menu-item.active .menu-link__bottom {
    font-weight: 700;
}

.menu-link:hover {
    border-bottom-color: var(--color-accent);
}
/* активный пункт — не ссылка: без hover-подчёркивания */
.menu-item.active .menu-link:hover {
    border-bottom-color: transparent;
}

/* страховка: на 1400–1599 пунктам тесно — чуть ужимаем,
   чтобы точно не переносились на вторую строку */
@media (min-width: 1400px) and (max-width: 1599px) {
    .menu__list {
        gap: 12px 16px;
    }

    .menu-link {
        padding: 8px 8px;
    }

    .menu-link__top,
    .menu-link__bottom {
        font-size: 1.4rem;
    }
}

/* ---------- планшет: меню выпадает под шапкой ---------- */

/* ---------- режим бургера ----------
   Включается при ширине < 1400px ИЛИ когда меню не влезает
   в одну строку (класс .header--burger вешает header.js) */

.header--burger .burger {
    display: flex;
}

.header--burger .header__contacts {
    gap: 16px;
}

/* время работы переезжает в панель */
.header--burger .header__contacts .header__work-time {
    display: none;
}

.header--burger .header__phones {
    font-size: 1rem;
}

.header--burger .btn-callback {
    font-size: 1rem;
    padding: 6px 14px;
}

/* панель: закрыта — нулевая высота и скрыта от фокуса */
.header--burger .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    border-top: none;
    box-shadow: none;
    transition: max-height 0.35s ease, visibility 0.35s ease;
}

.header--burger.menu-open .main-nav {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    visibility: visible;
    border-bottom: 1px solid #e0dcd7;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.header--burger .menu__list {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}

/* «Профориентация подростков» — одной строкой */
.header--burger .menu-link {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    text-align: left;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.header--burger .menu__list .menu-item:last-child .menu-link {
    border-bottom: none;
}

.header--burger .menu-link:hover {
    border-bottom-color: var(--color-accent);
}

.header--burger .menu-link__top {
    font-size: 1.3rem;
}

.header--burger .menu-link__bottom {
    font-size: 1.1rem;
}

/* отступ для якорей под фактическую высоту шапки (класс ставит JS) */
html.burger-mode {
    scroll-padding-top: 110px;
}

@media (max-width: 767px) {
    html.burger-mode {
        scroll-padding-top: 90px;
    }
}

/* ---------- 1023 и меньше: контакты прячем в панель ---------- */
/* (логотип 25px + контакты + бургер вместе не помещаются) */

@media (max-width: 1023px) {

    .header__contacts {
        display: none;
    }

    .main-nav__contacts {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 0 24px;
        border-top: 1px solid var(--color-border);
    }

    /* в панели места много — возвращаем крупный шрифт */
    .main-nav__contacts .header__phones {
        font-size: 1.3rem;
    }

    .main-nav__contacts .btn-callback {
        font-size: 1.3rem;
        padding: 8px 20px;
    }
}

/* ---------- мобильный: уменьшаем логотип ---------- */

@media (max-width: 767px) {


    .header__top-inner {
        padding: 8px 4%;
    }

    .logo-svg {
        width: 70px;
        height: 46px;
    }

    .logo-block {
        gap: 10px;
    }

    .logo-text__main,
    .logo-text__sub {
        font-size: 14px;
        letter-spacing: -0.1px;
    }

    .logo-text__divider {
        margin: 1px 0 2px 0;
    }
}

@media (max-width: 480px) {

    .burger {
        gap: 4px;
    }

    .burger span {
        width: 22px;
        height: 2px;
    }

    .logo-svg {
        width: 56px;
        height: 38px;
    }

    .logo-block {
        gap: 8px;
    }

    .logo-text__main,
    .logo-text__sub {
        font-size: 12px;
        letter-spacing: -0.05px;
    }
}

/* ---------- состояние «меню открыто» ---------- */

body.menu-open {
    overflow: hidden;
    /* блокируем скролл страницы */
}

body.menu-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 31, 31, 0.45);
    z-index: 999;
    /* ниже хедера (1000), выше контента */
}

/* навигация с клавиатуры */
.burger:focus-visible,
.menu-link:focus-visible,
.btn-callback:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ================================================== */
/* ===== HERO ===== */
/* ================================================== */

.hero {
    padding: 80px 4% clamp(20px, 4vw, 60px) 4%;
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero__content {
    flex: 0 1 50%;
    max-width: 650px;
}

.hero__overline {
    font-size: 1.2rem;
    font-weight: 400;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    white-space: nowrap;
}

.hero__title {
    font-size: clamp(4.5rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.hero__title .line {
    display: block;
    white-space: nowrap;
}

.hero__description {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 32px;
}

.hero__highlight {
    font-weight: 600;
    color: var(--color-text);
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    padding: 16px 36px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: #5a8fbf;
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    transform: scale(1.02);
}

.hero__image {
    flex: 0 1 40%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 24px;
    display: block;
}

.hero__buttons--mobile {
    display: none;
}

/* ===== АДАПТИВ HERO ===== */

@media (max-width: 1800px) {
    .hero__container {
        gap: 40px;
    }

    .hero__content {
        flex: 0 1 55%;
        max-width: 550px;
    }
}

@media (max-width: 1650px) {
    .hero__title {
        font-size: 3.8rem;
    }

    .hero__description {
        font-size: 1.6rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 1.2rem;
        padding: 14px 28px;
    }
}

@media (max-width: 1500px) {
    .hero__title {
        font-size: 3.2rem;
    }

    .hero__description {
        font-size: 1.4rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 1rem;
        padding: 12px 24px;
    }
}

/* фикс: контент hero не прячется под фиксированный двухэтажный хедер */
@media (min-width: 1400px) {
    .hero {
        padding-top: 200px;
    }
}

@media (max-width: 1400px) {
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero__container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .hero__content {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .hero__title {
        font-size: 3.8rem;
        text-align: center;
    }

    .hero__title .line {
        white-space: normal;
    }

    .hero__description {
        font-size: 1.6rem;
        max-width: 700px;
        margin: 0 auto 32px auto;
        text-align: center;
    }

    .hero__image {
        flex: 1 1 auto;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero__image img {
        max-height: 400px;
        object-fit: cover;
    }

    .hero__buttons--desktop {
        display: none;
    }

    .hero__buttons--mobile {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 4% 40px 4%;
        min-height: auto;
    }

    .hero__container {
        gap: 30px;
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero__title {
        font-size: 2.6rem;
        text-align: center;
    }

    .hero__description {
        font-size: 1.2rem;
        margin-bottom: 24px;
        text-align: center;
    }

    .hero__image {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 0 0 auto;
    }

    .hero__image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 280px;
        object-fit: contain;
        border-radius: 16px;
    }

    .hero__buttons--mobile {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        text-align: center;
        font-size: 1.1rem;
        padding: 14px 20px;
        box-sizing: border-box;
    }

    .hero__overline {
        white-space: normal;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__description {
        font-size: 1rem;
    }
}

@media (min-width: 2000px) {
    .hero__image {
        max-width: 750px !important;
    }

    .hero__image img {
        max-height: 650px !important;
    }
}

/* ================================================== */
/* ===== БЛОКИ (СТАНДАРТИЗИРОВАННЫЕ) ===== */
/* ================================================== */

.intro-block,
.programs,
.callback,
.about-profession,
.why-important,
.trust,
.help,
.blog,
.events {
    padding: var(--block-padding);
    background: var(--color-bg);
}

/* ================================================== */
/* ===== БЛОК: ДАВАЙТЕ ПОЗНАКОМИМСЯ! ===== */
/* ================================================== */

.intro-block__title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    text-align: center;
    margin-top: clamp(40px, 8vw, 140px);
    color: var(--color-text);
    margin-bottom: 48px;
}

.intro-block__founder {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 60px;
    padding: 0 4%;
}

.intro-block__founder-content {
    flex: 1 1 55%;
}

.intro-block__founder-text {
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: var(--color-gray);
    margin-bottom: 28px;
}

.intro-block__founder-btn {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 14px 36px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.intro-block__founder-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

.intro-block__founder-image {
    flex: 0 1 35%;
    max-width: 450px;
}

.intro-block__founder-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

.intro-block__subtitle {
    font-size: var(--font-size-body);
    text-align: center;
    color: #4a4a4a;
    max-width: 800px;
    margin: 0 auto 48px auto;
    line-height: 1.6;
}

.intro-block__grid {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 4%;
}

.intro-block__card {
    flex: 1 1 320px;
    max-width: 380px;
    background: var(--color-light);
    border-radius: 24px;
    padding: 40px 28px 34px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 4px 16px rgba(26, 59, 92, 0.12);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.intro-block__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 59, 92, 0.2);
    border-color: var(--color-primary);
}

.intro-block__card-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    background: #e0dcd7;
}

.intro-block__card-label {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
}

.intro-block__hint {
    font-size: 1.3rem;
    text-align: center;
    color: var(--color-primary);
    margin-top: 40px;
    font-weight: 500;
}

/* ===== АДАПТИВ INTRO-BLOCK ===== */

@media (max-width: 1024px) {
    .intro-block__founder {
        flex-direction: column;
        gap: 40px;
        text-align: left;
    }

    .intro-block__founder-content {
        flex: 1 1 auto;
        width: 100%;
    }

    .intro-block__founder-image {
        flex: 1 1 auto;
        max-width: 320px;
        margin: 0 auto;
    }

    .intro-block__grid {
        gap: 30px;
    }

    .intro-block__card {
        flex: 1 1 280px;
        max-width: 340px;
    }
}

@media (max-width: 768px) {
    .intro-block__title {
        font-size: var(--font-size-h2);
        margin-bottom: 32px;
    }

    .intro-block__founder {
        gap: 30px;
    }

    .intro-block__founder-text {
        font-size: 1.3rem;
    }

    .intro-block__founder-btn {
        font-size: 1.2rem;
        padding: 12px 28px;
    }

    .intro-block__subtitle {
        padding: 0 4%;
        font-size: 1.3rem;
        margin-bottom: 32px;
    }

    .intro-block__grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .intro-block__card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        padding: 32px 24px;
    }

    .intro-block__card-image {
        width: 80px;
        height: 80px;
    }

    .intro-block__card-label {
        font-size: 1.2rem;
    }

    .intro-block__hint {
        font-size: 1.1rem;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .intro-block__title {
        font-size: 2.8rem;
    }

    .intro-block__founder-text {
        font-size: 1.1rem;
    }

    .intro-block__subtitle {
        font-size: 1.1rem;
    }

    .intro-block__founder-image {
        max-width: 220px;
    }
}

/* ================================================== */
/* ===== БЛОК: НАШИ ПРОГРАММЫ ===== */
/* ================================================== */
/* Разделён на две зоны:
   1. ВИТРИНА (главная) — крупный масштаб;
   2. ПРАЙС (#services, страница «Услуги и цены») — компактный.
   Правила #services идут ПОСЛЕ базовых и переопределяют их. */

/* ---------- 1. ВИТРИНА (главная) ---------- */

.programs__title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 48px;
}

/* крупные карточки (профориентации) */
.programs__grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 0 auto 60px;
    padding: 0 4%;
    max-width: 1800px;
}

.programs__card-main {
    display: flex;
    flex-direction: column;
    background: var(--color-light);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 880px;
}

.programs__grid-main>.programs__card-main {
    margin: 0 auto;
    /* центрирование внутри колонки */
}

.programs__card-main:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.programs__card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.programs__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.programs__card-content {
    padding: 28px 30px 30px;
}

.programs__card-title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.programs__card-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--color-gray);
    margin-bottom: 16px;
}

.programs__card-price {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.programs__card-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: transform 0.2s ease;
    display: inline-block;
}

.programs__card-main:hover .programs__card-link {
    transform: translateX(6px);
}

/* мелкие карточки (программы) */
.programs__grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3+3 */
    gap: 30px;
    padding: 0 4%;
    max-width: 1380px;
    /* общая ось по центру (с таблицей и карточками цен) */
    margin: 0 auto;
}

.programs__card-small {
    display: flex;
    flex-direction: column;
    background: var(--color-light);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.programs__card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.programs__card-image-small {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.programs__card-title-small {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    padding: 16px 20px 0 20px;
    margin: 0;
}

.programs__card-text-small {
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--color-gray);
    padding: 8px 20px 0 20px;
    flex: 1;
}

.programs__card-price-small {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    padding: 8px 20px 0;
}

.programs__card-link-small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    padding: 12px 20px 20px 20px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.programs__card-small:hover .programs__card-link-small {
    transform: translateX(6px);
}

/* ---------- 2. ПРАЙС (#services, «Услуги и цены») ---------- */
/* компактный масштаб: карточки плотнее, фото горизонтальнее */

/* крупные (профориентации): горизонтальная компоновка */
#services .programs__grid-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1380px;
    /* одна ось с мелкой сеткой */
    margin: 0 auto 48px;
    /* низ: воздух до мелкой сетки */
    padding: 0;
}

#services .programs__card-main {
    max-width: none;
    /* сетка сама задаёт ширину */
    flex-direction: row;
    /* фото слева, текст справа */
    margin: 0;
}

#services .programs__card-image {
    flex: 0 0 42%;
    /* фото — 42% ширины карточки */
    aspect-ratio: auto;
    /* сброс 4/3 от витрины */
}

#services .programs__card-image img {
    height: 100%;
    min-height: 300px;
    /* солиднее по высоте */
    object-fit: cover;
}

#services .programs__card-content {
    padding: 24px 28px;
}

#services .programs__card-title {
    font-size: 1.8rem;
    /* заметно старше мелких (1.3rem) */
    margin-bottom: 10px;
}

#services .programs__card-text {
    font-size: 1.35rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

#services .programs__card-price {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

/* мелкие (программы): компакт */
#services .programs__grid-small {
    gap: 24px;
    max-width: 1380px;
    margin: 48px auto 0;
    /* верх: воздух после крупных */
}

#services .programs__card-image-small {
    aspect-ratio: 16 / 9;
    /* ниже — горизонтальнее */
}

#services .programs__card-title-small {
    font-size: 1.3rem;
    padding: 14px 18px 0;
}

#services .programs__card-text-small {
    font-size: 1.15rem;
    line-height: 1.5;
    padding: 6px 18px 0;
}

#services .programs__card-price-small {
    font-size: 1.25rem;
    padding: 0 18px;
    margin: 0;
}

#services .programs__card-link-small {
    font-size: 0.95rem;
    padding: 10px 18px 16px;
}

/* ---------- 3. АДАПТИВ (обе зоны) ---------- */

/* горизонтальная карточка живёт только там, где широкая */
@media (max-width: 1070px) {
    #services .programs__card-main {
        flex-direction: column;
    }

    #services .programs__card-image {
        flex: 0 0 auto;
        aspect-ratio: 16 / 9;
    }

    #services .programs__card-image img {
        min-height: 0;
        /* вертикальной фото высоту задаёт aspect-ratio */
        height: auto;
    }
}

@media (max-width: 1024px) {

    /* витрина */
    .programs__grid-main {
        gap: 30px;
        padding: 0 2%;
    }

    .programs__grid-small {
        grid-template-columns: repeat(2, 1fr);
        /* 2+2+2 */
        gap: 24px;
        padding: 0 2%;
    }

    /* прайс: общая ось обеих сеток на планшете */
    #services .programs__grid-main,
    #services .programs__grid-small {
        max-width: 1100px;
    }
}

@media (max-width: 768px) {

    /* витрина */
    .programs__title {
        font-size: var(--font-size-h2);
        margin-bottom: 32px;
    }

    .programs__grid-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 4%;
    }

    .programs__grid-small {
        grid-template-columns: 1fr;
        /* столбик */
        gap: 20px;
        padding: 0 4%;
        max-width: 100%;
    }

    .programs__card-small {
        max-width: 420px;
        width: 100%;
        justify-self: center;
    }

    .programs__card-title {
        font-size: 1.6rem;
    }

    .programs__card-text {
        font-size: 1.1rem;
    }

    /* прайс: столбики по центру */
    #services .programs__grid-main,
    #services .programs__grid-small {
        grid-template-columns: 1fr;
        max-width: 420px;
        gap: 16px;
    }

    #services .programs__grid-small {
        margin-top: 32px;
        /* воздух меньше мобильного, но жив */
    }

    #services .programs__card-main {
        flex-direction: column;
        /* мобайл: обратно вертикально */
    }

    #services .programs__card-image {
        flex: 0 0 auto;
        aspect-ratio: 16 / 9;
    }

    #services .programs__card-image img {
        min-height: 0;
    }

    #services .programs__card-title {
        font-size: 1.5rem;
    }

    #services .programs__card-text {
        font-size: 1.2rem;
    }

    #services .programs__card-price {
        font-size: 1.5rem;
    }

    #services .programs__card-title-small {
        font-size: 1.2rem;
    }

    #services .programs__card-text-small {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {

    .programs__title {
        font-size: 2.8rem;
    }

    .programs__card-title {
        font-size: 1.4rem;
    }

    .programs__card-text {
        font-size: 1rem;
    }

    .programs__card-title-small {
        font-size: 1.1rem;
    }

    .programs__card-text-small {
        font-size: 1rem;
    }
}

/* ================================================== */
/* ===== БЛОК: УЗНАЙТЕ ПОДРОБНОСТИ ===== */
/* ================================================== */

.callback__title {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 16px;
}

.callback__subtitle {
    font-size: 1.4rem;
    text-align: center;
    color: #4a4a4a;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.callback__form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.callback__fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.callback__input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-family: var(--font-family-base);
    border: 2px solid #d0d0d0;
    border-radius: 12px;
    background: #eaf2f9;
    transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.callback__input::placeholder {
    color: #777;
    opacity: 0.7;
}

.callback__input:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    background: #dce8f2;
}

.callback__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(111, 168, 220, 0.25);
    transform: translateY(-2px);
    background: var(--color-bg);
}

.callback__field--hidden {
    display: none;
}

.callback__checkbox {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.checkbox-text a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

.checkbox-text a:hover {
    text-decoration: none;
}

.callback__submit {
    width: 100%;
    padding: 18px;
    font-size: 1.4rem;
    font-weight: 700;
    border: none;
    border-radius: 40px;
    background: var(--color-primary);
    color: var(--color-bg);
    cursor: pointer;
    transition: all 0.25s ease;
}

.callback__submit:hover {
    background: #5a8fbf;
    transform: scale(1.02);
}

/* ===== АДАПТИВ CALLBACK ===== */

@media (max-width: 768px) {
    .callback {
        padding: 40px 4%;
    }

    .callback__title {
        font-size: 3rem;
    }

    .callback__subtitle {
        font-size: 1.2rem;
    }

    .callback__input {
        font-size: 1rem;
        padding: 14px 16px;
    }

    .callback__submit {
        font-size: 1.2rem;
        padding: 16px;
    }

    .checkbox-label {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .callback__title {
        font-size: 2.4rem;
    }

    .callback__subtitle {
        font-size: 1rem;
    }

    .callback__input {
        font-size: 0.95rem;
        padding: 12px 14px;
    }
}

/* ================================================== */
/* ===== БЛОК: ЧТО ТАКОЕ ПРОФОРИЕНТАЦИЯ? ===== */
/* ================================================== */

.about-profession__title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 40px;
}

.about-profession__content {
    max-width: 100%;
    margin: 0 auto;
}

.about-profession__text {
    font-size: var(--font-size-body);
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--color-gray);
    text-align: left;
}

.about-profession__subtitle {
    font-size: var(--font-size-body);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
    text-align: left;
}

.about-profession__list {
    margin-bottom: 24px;
    /* было padding-left: 24px + list-style: disc */
}

.about-profession__list li {
    font-size: var(--font-size-body);
    line-height: 1.8;
}

.about-profession__list li strong {
    color: var(--color-text);
}

.about-profession__footer {
    font-size: var(--font-size-body);
    line-height: 1.7;
    margin-bottom: 28px;
    color: var(--color-gray);
    text-align: left;
}

.about-profession__link {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, transform 0.2s ease;
    text-align: left;
}

.about-profession__link:hover {
    border-bottom-color: var(--color-primary);
    transform: translateX(4px);
}

/* ===== АДАПТИВ ABOUT-PROFESSION ===== */

@media (max-width: 768px) {
    .about-profession__title {
        font-size: var(--font-size-h2);
        margin-bottom: 32px;
    }

    .about-profession__text {
        font-size: 1.3rem;
    }

    .about-profession__subtitle {
        font-size: 1.3rem;
    }

    .about-profession__list {
        font-size: 1.2rem;
        padding-left: 18px;
    }

    .about-profession__list li {
        font-size: 1.3rem;
    }

    .about-profession__footer {
        font-size: 1.3rem;
    }

    .about-profession__link {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .about-profession__title {
        font-size: 2.2rem;
    }

    .about-profession__text {
        font-size: 1.1rem;
    }

    .about-profession__subtitle {
        font-size: 1.1rem;
    }

    .about-profession__list {
        font-size: 1rem;
    }

    .about-profession__footer {
        font-size: 1.1rem;
    }

    .about-profession__link {
        font-size: 1rem;
    }
}

/* ================================================== */
/* ===== БЛОК: ПОЧЕМУ ВАЖНА ПРОФОРИЕНТАЦИЯ? ===== */
/* ================================================== */

.why-important__title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 12px;
}

.why-important__subtitle {
    font-size: var(--font-size-body);
    text-align: center;
    color: #4a4a4a;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.why-important__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
}

.why-important__item {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.why-important__item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-image: url('../images/main/Vector_4.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
}

.why-important__text,
.why-important__source {
    position: relative;
    z-index: 1;
}

.why-important__text {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--color-gray);
    margin-bottom: 12px;
}

.why-important__text strong {
    color: var(--color-primary);
}

.why-important__source {
    font-size: 1.1rem;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.why-important__source:hover {
    border-bottom-color: var(--color-primary);
}

/* ===== АДАПТИВ WHY-IMPORTANT ===== */

@media (max-width: 1400px) {
    .why-important__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .why-important__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .why-important__title {
        font-size: var(--font-size-h2);
    }

    .why-important__subtitle {
        font-size: 1.3rem;
        margin-bottom: 32px;
    }

    .why-important__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .why-important__item {
        padding: 22px 24px;
    }

    .why-important__text {
        font-size: 1.2rem;
    }

    .why-important__source {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .why-important__title {
        font-size: 2.8rem;
    }

    .why-important__subtitle {
        font-size: 1.1rem;
    }

    .why-important__text {
        font-size: 1rem;
    }

    .why-important__source {
        font-size: 0.95rem;
    }
}

/* ================================================== */
/* ===== БЛОК: ПОЧЕМУ НАМ ДОВЕРЯЮТ ===== */
/* ================================================== */

.trust__title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 48px;
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
}

.trust__item {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.trust__item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-image: url('../images/main/Vector_2.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

.trust__item-title,
.trust__item-text {
    position: relative;
    z-index: 1;
}

.trust__item-title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.trust__item-text {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--color-gray);
}

/* ===== АДАПТИВ TRUST ===== */

@media (max-width: 1400px) {
    .trust__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .trust__title {
        font-size: var(--font-size-h2);
        margin-bottom: 32px;
    }

    .trust__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .trust__item {
        padding: 22px 24px;
    }

    .trust__item-title {
        font-size: 1.8rem;
    }

    .trust__item-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .trust__title {
        font-size: 2.8rem;
    }

    .trust__item-title {
        font-size: 1.5rem;
    }

    .trust__item-text {
        font-size: 1rem;
    }
}

/* ================================================== */
/* ===== БЛОК: ПОМОЖЕМ РАЗОБРАТЬСЯ ===== */
/* ================================================== */

.help__title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 12px;
}

.help__subtitle {
    font-size: var(--font-size-body);
    text-align: center;
    color: #4a4a4a;
    margin-bottom: 48px;
}

.help__grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.help__card {
    flex: 1 1 320px;
    max-width: 380px;
    background: var(--color-light);
    border-radius: 24px;
    padding: 40px 24px 34px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 4px 16px rgba(26, 59, 92, 0.12);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.help__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 59, 92, 0.2);
    border-color: var(--color-primary);
}

.help__question {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
}

.help__hint {
    margin-top: 40px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-primary);
    text-align: center;
    letter-spacing: 0.3px;
}

/* ===== АДАПТИВ HELP ===== */

@media (max-width: 768px) {
    .help__title {
        font-size: var(--font-size-h2);
    }

    .help__subtitle {
        font-size: 1.3rem;
        margin-bottom: 32px;
    }

    .help__grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .help__card {
        width: 100%;
        max-width: 420px;
        min-height: 120px;
        padding: 28px 20px;
    }

    .help__question {
        font-size: 1.3rem;
    }

    .help__hint {
        font-size: 1rem;
        margin-top: 28px;
    }
}

@media (max-width: 480px) {
    .help__title {
        font-size: 2.8rem;
    }

    .help__subtitle {
        font-size: 1.1rem;
    }

    .help__card {
        min-height: 0;
        padding: 20px 16px;
    }

    .help__question {
        font-size: 1.1rem;
    }
}

/* ================================================== */
/* ===== БЛОК: БЛОГ ===== */
/* ================================================== */

.blog__title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 48px;
}

.blog__slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.blog__slider {
    overflow: hidden;
    flex: 1;
}

.blog__track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
}

.blog__card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 260px;
    background: var(--color-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    /* ← было: height: 420px — карточка растёт при длинном заголовке */
    text-decoration: none;
    /* ← добавили: обёртка-ссылка без подчёркивания */
    color: inherit;
    /* ← добавили: наследуем цвет, а не браузерно-синий */
}

.blog__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

a.blog__card:hover .blog__card-link {
    transform: translateX(6px);
}

.blog__card-content {
    padding: 20px 24px 0 24px;
    flex: 0 0 auto;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.blog__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    line-height: 1.4;
}

.blog__card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #e0dcd7;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    flex: 1 0 auto;
    /* ← добавили: картинка занимает остаток, но поддаётся при длинном заголовке */
    min-height: 0;
    /* ← добавили: разрешаем сжиматься ниже контента */
}

.blog__card-link {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    padding: 12px 24px 20px 24px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.blog__card-link:hover {
    transform: translateX(6px);
}

.blog__arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.blog__arrow:hover {
    transform: scale(1.1);
}

.blog__arrow svg {
    display: block;
}

.blog__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.blog__footer {
    text-align: center;
    margin-top: 48px;
}

.blog__all-link {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, transform 0.2s ease;
}

.blog__all-link:hover {
    border-bottom-color: var(--color-primary);
    transform: translateX(4px);
}

/* ===== АДАПТИВ БЛОГ ===== */

@media (max-width: 1024px) {
    .blog__card {
        flex: 0 0 calc(50% - 15px);
        height: 380px;
    }
}

@media (max-width: 768px) {
    .blog {
        padding: 40px 0;
    }

    .blog__title {
        font-size: var(--font-size-h2);
        margin-bottom: 32px;
    }

    .blog__slider-wrapper {
        gap: 12px;
    }

    .blog__card {
        flex: 0 0 calc(100% - 0px);
        height: 360px;
    }

    .blog__arrow svg {
        width: 28px;
        height: 28px;
    }

    .blog__arrow {
        padding: 4px;
    }

    .blog__footer {
        margin-top: 32px;
    }

    .blog__all-link {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .blog__title {
        font-size: 2.8rem;
    }

    .blog__card {
        height: 340px;
    }

    .blog__card-title {
        font-size: 1.1rem;
    }

    .blog__arrow svg {
        width: 24px;
        height: 24px;
    }
}

/* ================================================== */
/* ===== БЛОК: СОБЫТИЯ ===== */
/* ================================================== */

.events__title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 48px;
}

.events__list {
    max-width: 900px;
    margin: 0 auto;
}

.events__item {
    display: flex;
    align-items: baseline;
    gap: 30px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s ease, padding-left 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    border-radius: 8px;
    padding-left: 0;
}

.events__item:hover {
    background: #f4f9fc;
    padding-left: 16px;
    transform: translateX(4px);
}

.events__item:last-child {
    border-bottom: none;
}

.events__date {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    min-width: 120px;
}

.events__text {
    font-size: 1.3rem;
    color: var(--color-text);
    line-height: 1.4;
}

.events__footer {
    text-align: center;
    margin-top: 48px;
}

.events__all-link {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, transform 0.2s ease;
}

.events__all-link:hover {
    border-bottom-color: var(--color-primary);
    transform: translateX(4px);
}

/* ===== АДАПТИВ СОБЫТИЯ ===== */

@media (max-width: 768px) {
    .events {
        padding: 40px 0;
    }

    .events__title {
        font-size: var(--font-size-h2);
        margin-bottom: 32px;
    }

    .events__item {
        flex-direction: column;
        gap: 6px;
        padding: 16px 0;
    }

    .events__date {
        font-size: 1rem;
        min-width: auto;
    }

    .events__text {
        font-size: 1.1rem;
    }

    .events__footer {
        margin-top: 32px;
    }

    .events__all-link {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .events__title {
        font-size: 2.8rem;
    }

    .events__date {
        font-size: 0.95rem;
    }

    .events__text {
        font-size: 1rem;
    }
}

/* ================================================== */
/* ===== МОДАЛКА «ЗАКАЗАТЬ ЗВОНОК» ===== */
/* ================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    /* выше хедера (1000) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(31, 31, 31, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--color-bg);
    border-radius: 24px;
    padding: 40px 36px 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal {
    transform: none;
}

/* ---------- крестик ---------- */

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--color-light);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.modal__close:hover {
    background: #ecebe8;
    transform: rotate(90deg);
}

.modal__close::before,
.modal__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-text);
}

.modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- содержимое ---------- */

.modal__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal__subtitle {
    font-size: 1.3rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 28px;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* honeypot: скрыт с экрана, но technically «видим» для ботов */
.modal__field--hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.modal__checkbox {
    display: flex;
    flex-direction: column;
}

/* ---------- ошибки валидации ---------- */

.callback__input.is-invalid {
    border-color: #e05a5a;
    background: #fdf1f1;
}

.modal__error {
    display: none;
    font-size: 1.1rem;
    color: #e05a5a;
    margin-top: 6px;
}

.modal__error.is-visible {
    display: block;
}

/* ---------- кнопка ---------- */

.modal__submit {
    width: 100%;
    padding: 16px;
    font-family: var(--font-family-base);
    font-size: 1.4rem;
    font-weight: 700;
    border: none;
    border-radius: 40px;
    background: var(--color-primary);
    color: var(--color-bg);
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal__submit:hover {
    background: #5a8fbf;
    transform: scale(1.02);
}

.modal__submit:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* ---------- экран успеха ---------- */

.modal__success {
    text-align: center;
    padding: 10px 0 6px;
}

.modal__success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e6f2e8;
    color: #3d8b4f;
    font-size: 3rem;
    font-weight: 700;
    line-height: 72px;
}

.modal__success-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.modal__success-text {
    font-size: 1.3rem;
    color: #4a4a4a;
    margin-bottom: 24px;
}

.modal__success-close {
    font-size: 1.3rem;
    padding: 12px 32px;
}

body.modal-open {
    overflow: hidden;
}

/* ---------- адаптив ---------- */

@media (max-width: 480px) {
    .modal {
        padding: 28px 20px 24px;
        border-radius: 20px;
    }

    .modal__title {
        font-size: 1.8rem;
    }

    .modal__subtitle {
        font-size: 1.1rem;
        margin-bottom: 22px;
    }

    .modal__success-icon {
        width: 60px;
        height: 60px;
        font-size: 2.4rem;
        line-height: 60px;
    }
}

/* фокус с клавиатуры */
.modal__close:focus-visible,
.modal__submit:focus-visible,
.modal__success-close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ================================================== */
/* ===== СТРАНИЦА УСЛУГИ: ПРОФОРИЕНТАЦИЯ ПОДРОСТКОВ ===== */
/* ================================================== */

/* ---------- герой внутренней страницы ---------- */

.page-hero {
    padding: 130px 4% 30px;
}

@media (min-width: 1400px) {
    .page-hero {
        padding-top: 210px;
    }

    /* если JS включил режим бургера на широком экране */
    html.burger-mode .page-hero {
        padding-top: 130px;
    }
}

.page-hero__title {
    font-size: clamp(2.2rem, 3.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    text-align: center;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* ---------- оглавление ---------- */

.toc {
    padding: 20px 0 50px;
}

.toc__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    /* ← добавили: пара по центру */
    gap: 60px;
}

.toc__image {
    flex: 0 1 500px;
}

.toc__image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

.toc__nav {
    flex: 0 1 auto;
    /* ← было 1 1 auto: колонка не растягивается */
    max-width: 640px;
    /* ← страховка от слишком длинных строк */
    min-width: 0;
}

.toc__heading {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 18px;
}

.toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}

.toc__item {
    counter-increment: toc;
}

.toc__link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 7px 0;
    font-size: 1.4rem;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc__link::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 30px;
}

.toc__link:hover {
    color: var(--color-primary);
}

/* ---------- каркас текстовых секций ---------- */

.text-section {
    padding: var(--block-padding);
}

.section-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 36px;
}

.section-lead {
    font-size: var(--font-size-body);
    text-align: center;
    color: var(--color-primary);
    max-width: 800px;
    margin: 0 auto 40px;
}

.text-section__content {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.text-section__text {
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: var(--color-gray);
    margin-bottom: 24px;
}

.text-section__text:last-child {
    margin-bottom: 0;
}

/* заголовки переиспользуемых блоков — под масштаб контентной страницы */
@media (min-width: 769px) {

    #ask-bot .help__title,
    #blog .blog__title,
    #signup-1 .callback__title,
    #signup-2 .callback__title {
        font-size: var(--font-size-h2);
    }
}

/* ---------- списки ---------- */

.point-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.point-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    font-size: 1.5rem;
    line-height: 1.65;
    color: var(--color-gray);
}

.point-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--color-accent);
    transform: rotate(45deg);
}

.point-list li:last-child {
    margin-bottom: 0;
}

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 14px;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--color-gray);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e6f2e8;
    color: #3d8b4f;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-list li:last-child {
    margin-bottom: 0;
}

/* ---------- как мы работаем ---------- */

.how__inner {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* ← добавили: пара по центру */
    gap: 60px;
}

.how__image {
    flex: 0 1 500px;
    min-width: 420px;
}

.how__image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

.how__content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 900px;
    /* ← добавили: читаемая длина строк */
}

.how__lead {
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: var(--color-gray);
    margin-bottom: 24px;
}

.how__steps {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    counter-reset: step;
}

.how__steps li {
    counter-increment: step;
    position: relative;
    padding: 4px 0 4px 58px;
    margin-bottom: 12px;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--color-gray);
}

.how__steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-bg);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how__steps li:last-child {
    margin-bottom: 0;
}

.how__summary {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.how__report {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, transform 0.2s ease;
}

.how__report:hover {
    border-bottom-color: var(--color-primary);
    transform: translateX(4px);
}

/* ---------- что мы исследуем (стилистика «Почему важна профориентация») ---------- */

.explore__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1380px;
    /* карточки ~440px, не растягиваются */
    margin: 0 auto;
}

.explore__card {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    min-height: 220px;
    /* карточка не выглядит плоской, подложке есть где жить */
    background: transparent;
    border: none;
    box-shadow: none;
}

.explore__card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* ровно по габаритам карточки — ничего не обрезается */
    background-image: url('../images/proforientaciya-shkolnikov/Vector_5.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* SVG всегда вписан целиком */
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

.explore__card-title {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.explore__card-text {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    line-height: 1.65;
    color: var(--color-gray);
}

/* ----- адаптив ----- */

@media (max-width: 1399px) {
    .explore__grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 940px;
    }
}

@media (max-width: 768px) {
    .explore__grid {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .explore__card {
        padding: 22px 24px;
        min-height: 190px;
    }

    .explore__card-title {
        font-size: 1.6rem;
    }

    .explore__card-text {
        font-size: 1.25rem;
    }
}

/* ---------- блоки по классам ---------- */

.grades__item {
    max-width: var(--content-max-width);
    margin: 0 auto 28px;
    padding: 6px 0 6px 28px;
    border-left: 4px solid var(--color-accent);
}

.grades__item:last-child {
    margin-bottom: 0;
}

.grades__title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.grades__text {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--color-gray);
}

/* ---------- что вы получите ---------- */

.results__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.results__card {
    flex: 1 1 420px;
    max-width: 560px;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 32px 34px;
}

.results__card-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 22px;
}

/* ---------- стоимость ---------- */

.price__card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 40px 44px;
}

.price__value {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
}

.price__caption {
    font-size: 1.4rem;
    color: #4a4a4a;
    text-align: center;
    margin: 8px 0 28px;
}

/* две цены: онлайн / очно */
.price__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 620px;
    margin: 0 auto;
}

.price__option {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 26px 20px 30px;
}

.price__option-label {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    text-align: center;
    margin-bottom: 8px;
}

.price__option .price__value {
    font-size: 3rem;
    white-space: nowrap;
}

.price__btn {
    display: block;
    margin: 36px auto 0;
    max-width: 420px;
    text-align: center;
    font-size: 1.4rem;
    /* ← добавили: как у остальных CTA сайта */
    padding: 14px 36px;
}

/* ---------- FAQ (нативный аккордеон details/summary) ---------- */

.faq__list {
    max-width: 900px;
    margin: 0 auto;
}

.faq__item {
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    margin-bottom: 16px;
}

.faq__item:last-child {
    margin-bottom: 0;
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 28px;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    user-select: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__icon {
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.faq__icon::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 2px;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--color-primary);
    border-right: 2px solid var(--color-primary);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.faq__item[open] .faq__icon::before {
    transform: rotate(135deg);
}

.faq__answer {
    padding: 0 28px 24px;
}

.faq__answer p {
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--color-gray);
}

/* ---------- формы записи: ошибки и успех ---------- */

.field--hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.signup__error {
    display: none;
    font-size: 1.1rem;
    color: #e05a5a;
    margin-top: 6px;
}

.signup__error.is-visible {
    display: block;
}

.signup__success {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px;
    background: #e6f2e8;
    border-radius: 20px;
}


/* важно: display:flex перебивает [hidden], возвращаем скрытие */
.signup__success[hidden] {
    display: none;
}

.signup__success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #3d8b4f;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 56px;
    text-align: center;
}

.signup__success-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2f6b3d;
    text-align: center;
}

/* display в наших правилах перебивает атрибут hidden — возвращаем его силой */
.callback__form[hidden],
.modal__form[hidden],
.modal__subtitle[hidden],
.signup__success[hidden],
.modal__success[hidden] {
    display: none;
}

/* ---------- фокус с клавиатуры ---------- */

.toc__link:focus-visible,
.faq__question:focus-visible,
.how__report:focus-visible,
.price__btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ---------- адаптив ---------- */

@media (max-width: 1400px) {
    .explore__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .toc__inner {
        flex-direction: column;
        gap: 36px;
    }

    .toc__image {
        flex: 0 0 auto;
        max-width: 460px;
        width: 100%;
    }

    .how__inner {
        flex-direction: column;
        gap: 36px;
    }

    .how__image {
        flex: 0 0 auto;
        max-width: 460px;
        width: 100%;
        min-width: 0;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding-top: 105px;
    }

    .page-hero__title {
        font-size: 2.2rem;
    }

    .toc__link {
        font-size: 1.2rem;
        padding: 6px 0;
    }

    .section-title {
        font-size: 2.6rem;
    }

    .section-lead {
        font-size: 1.3rem;
    }

    .text-section__text,
    .how__lead,
    .how__summary {
        font-size: 1.3rem;
    }

    .how__steps li {
        font-size: 1.3rem;
        padding-left: 52px;
    }

    .how__steps li::before {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .point-list li {
        font-size: 1.3rem;
    }

    .explore__card-text {
        font-size: 1.2rem;
    }

    .grades__title {
        font-size: 1.6rem;
    }

    .grades__text {
        font-size: 1.3rem;
    }

    .results__card {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 26px 24px;
    }

    .check-list li {
        font-size: 1.25rem;
    }

    .price__card {
        padding: 30px 24px;
    }

    .price__value {
        font-size: 2.8rem;
    }

    .price__options {
        gap: 12px;
    }

    .price__option {
        padding: 20px 10px 24px;
    }

    .price__option .price__value {
        font-size: 2.2rem;
    }

    .faq__question {
        font-size: 1.3rem;
        padding: 18px 20px;
    }

    .faq__answer {
        padding: 0 20px 20px;
    }

    .faq__answer p {
        font-size: 1.2rem;
    }

    .explore__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .explore__card {
        padding: 22px 24px;
    }

    .price__btn {
        font-size: 1.2rem;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.2rem;
    }

    .page-hero__title {
        font-size: 2rem;
    }

    .toc__image {
        max-width: 280px;
    }

    .price__options {
        grid-template-columns: 1fr;
    }

    .price__option {
        padding: 20px 20px 24px;
    }

    .price__option .price__value {
        font-size: 2.8rem;
    }
}

/* ================================================== */
/* ===== СТРАНИЦА: ПРОФОРИЕНТАЦИЯ ПОДРОСТКОВ ===== */
/* ================================================== */

/* заметка для родителей под H1 (плашка с акцентной иконкой) */
.page-hero__note {
    max-width: 900px;
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    background: rgba(240, 179, 75, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: 16px;
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--color-gray);
    text-align: left;
}

.page-hero__note-text {
    flex: 1;
    min-width: 0;
}


.page-hero__note svg {
    flex-shrink: 0;
}

.page-hero__note a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 3px;
}

.page-hero__note a:hover {
    text-decoration: none;
}

/* «Что ты получишь»: одна широкая карточка */
.results__card--wide {
    flex: 1 1 640px;
    max-width: 880px;
}

/* жирные «лиды» в списке с галочками */
.check-list li strong {
    color: var(--color-primary);
}

/* секция «Что дальше?» */
.inline-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.inline-link:hover {
    text-decoration: none;
}

.next-btn {
    display: inline-block;
    margin-top: 24px;
    font-size: 1.3rem;
    padding: 12px 28px;
}

@media (max-width: 768px) {
    .page-hero__note {
        font-size: 1.1rem;
        padding: 12px 16px;
        gap: 10px;
    }

    .page-hero__note svg {
        width: 22px;
        height: 22px;
    }

    .next-btn {
        font-size: 1.1rem;
    }
}

/* ================================================== */
/* ===== СТРАНИЦА: О НАС ===== */
/* ================================================== */

/* квадратные фото со скруглением (маски внутри картинок сохранены) */
.about__portrait {
    flex: 0 1 400px;
    min-width: 240px;
    /* ↓ с 320: запас на сжатие больше */
}

.about__portrait img {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    /* квадрат — но мягко */
    object-fit: cover;
    border-radius: 1px;
    display: block;
}

.about__portrait--couple {
    flex: 0 1 500px;
    min-width: 300px;
}

.about__portrait--couple img {
    max-width: 440px;
    /* и aspect-ratio, без height */
}

/* фото Логиновой — меньше, с подписью */
.about__portrait--small {
    flex: 0 1 260px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.about__portrait--small img {
    width: 240px;
    height: 240px;
    border-radius: 20px;
}

.about__portrait-caption {
    font-size: 1.15rem;
    font-style: italic;
    color: #6b6b6b;
    text-align: center;
    line-height: 1.5;
}

/* имена — по центру */
.about__person-name {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 28px;
}

/* «Честно об отзывах» — без изменений */
.about__notice {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 36px;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 24px;
}

.about__notice p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--color-gray);
    margin-bottom: 18px;
}

.about__notice p:last-child {
    margin-bottom: 0;
}

/* ---- адаптив ---- */

@media (max-width: 1500px) and (min-width: 1025px) {
    .about__portrait {
        flex: 0 1 320px;
        /* компактнее на узких десктопах */
    }

    .about__portrait--couple {
        flex: 0 1 380px;
    }

    .about__portrait img {
        max-width: 320px;
    }

    .about__portrait--couple img {
        max-width: 380px;
    }
}

@media (max-width: 1024px) {

    .about__portrait,
    .about__portrait--small {
        flex: 0 0 auto;
        max-width: 360px;
        width: 100%;
        min-width: 0;
        margin: 0 auto;
    }

    .about__portrait img {
        width: 300px;
        height: 300px;
    }

    .about__portrait--couple img {
        width: 360px;
        height: 360px;
    }

    .about__portrait--small img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .about__person-name {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .about__portrait img {
        width: 260px;
        height: 260px;
    }

    .about__portrait--couple img {
        width: 300px;
        height: 300px;
    }

    .about__portrait--small img {
        width: 190px;
        height: 190px;
    }

    .about__portrait-caption {
        font-size: 1.05rem;
    }

    .about__notice {
        padding: 24px 20px;
    }

    .about__notice p {
        font-size: 1.3rem;
    }
}

/* ================================================== */
/* ===== ФУТЕР ===== */
/* ================================================== */

.footer {
    background: #2c2c2c;
    color: #e8e8e8;
    margin-top: 60px;
    /* воздух после последней секции */
    padding: 50px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

/* ---------- блок бренда ---------- */

.footer__logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.footer__logo-img {
    width: 56px;
    height: auto;
    flex-shrink: 0;
    /* если лого тёмное и пропадёт на тёмном фоне —
       раскомментируй фильтр-инверсию или подложи светлую версию SVG:
       filter: invert(1) brightness(1.4); */
}

.footer__logo-text {
    font-family: var(--font-family-logo);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
}

.footer__tagline {
    margin-top: 18px;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #b9b9b9;
    max-width: 280px;
}

/* ---------- заголовки блоков ---------- */

.footer__heading {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8f8f8f;
    margin-bottom: 18px;
}

/* ---------- меню ---------- */

.footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__menu li {
    margin-bottom: 10px;
}

.footer__menu a {
    font-size: 1.3rem;
    color: #e8e8e8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__menu a:hover {
    color: var(--color-primary);
}

/* текущая страница — не ссылка, приглушённая */
.footer__menu-current {
    font-size: 1.3rem;
    /* ← добавили: как у ссылок */
    color: #8f8f8f;
    cursor: default;
}

/* ---------- контакты ---------- */

.footer__phone {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer__phone:hover {
    color: var(--color-primary);
}

.footer__time {
    font-size: 1.2rem;
    color: #b9b9b9;
    margin: 8px 0 16px;
}

.footer__address {
    font-size: 1.2rem;
    color: #b9b9b9;
    line-height: 1.5;
    font-style: normal;
}

.footer__map-link {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #e8e8e8;
    border: 1px solid #4a4a4a;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer__social-link:hover {
    color: #2c2c2c;
    border-color: var(--color-primary);
    background: var(--color-primary);
}

/* ---------- нижняя строка ---------- */

.footer__bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #3f3f3f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__copy {
    font-size: 1.1rem;
    color: #8f8f8f;
}

.footer__legal a {
    font-size: 1.1rem;
    color: #b9b9b9;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 24px;
    transition: color 0.2s ease;
}

.footer__legal a:first-child {
    margin-left: 0;
}

.footer__legal a:hover {
    color: var(--color-primary);
}

/* ---------- адаптив ---------- */

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__brand {
        grid-column: 1 / -1;
        /* бренд — на всю строку сверху */
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 36px 0 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__tagline {
        max-width: 100%;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__legal a {
        margin-left: 0;
        margin-right: 24px;
        display: inline-block;
    }
}

/* фокус с клавиатуры */
.footer a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ================================================== */
/* ===== СТРАНИЦА: УСЛУГИ И ЦЕНЫ ===== */
/* ================================================== */
/* Внимание: цены карточек (.programs__card-price,
   .programs__card-price-small) живут в блоке
   «НАШИ ПРОГРАММЫ» — здесь только таблица. */

/* ---------- таблица цен ---------- */

.price-table-wrapper {
    max-width: 1380px;
    /* одна ось с сетками карточек (#services) */
    margin: 0 auto;
    overflow-x: auto;
    /* страховка: на узких — скролл */
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.35rem;
}

.price-table th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 16px 20px;
    white-space: nowrap;
}

.price-table th:first-child {
    border-radius: 12px 0 0 0;
}

.price-table th:last-child {
    border-radius: 0 12px 0 0;
}

.price-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-gray);
    vertical-align: top;
}

.price-table tbody tr:nth-child(even) {
    background: var(--color-light);
}

.price-table tbody tr:hover {
    background: #f0f6fb;
}

.price-table td a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.price-table td a:hover {
    text-decoration: underline;
}

.price-table__price {
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.price-table__note {
    max-width: 1380px;
    /* та же ось */
    margin: 24px auto 0;
    font-size: 1.2rem;
    color: #6b6b6b;
    line-height: 1.6;
}

/* ---------- мобильная таблица: строки → карточки ---------- */

@media (max-width: 1024px) {

    .price-table-wrapper,
    .price-table__note {
        max-width: 1100px;
        /* ось планшета, как у сеток #services */
    }
}

@media (max-width: 768px) {

    .price-table-wrapper,
    .price-table__note {
        max-width: 420px;
        /* мобильная ось, как у карточек */
    }

    .price-table thead {
        display: none;
        /* шапку убрали */
    }

    .price-table,
    .price-table tbody,
    .price-table tr,
    .price-table td {
        display: block;
        width: 100%;
    }

    .price-table tr {
        background: var(--color-light) !important;
        border: 1px solid var(--color-border);
        border-radius: 16px;
        padding: 8px 16px;
        margin-bottom: 16px;
    }

    /* подписи полей из data-label */
    .price-table td {
        border: none;
        padding: 8px 0;
    }

    .price-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 1rem;
        color: #8a8a8a;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }

    .price-table__price {
        font-size: 1.6rem;
    }
}

/* цитата в эмоциональной плашке (страницы программ) */
.about__notice-quote {
    font-style: italic;
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--color-primary);
}

.page-hero__lead {
    margin: 20px 4% 0;
    /* боковые — как контентные секции */
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--color-gray);
    text-align: left;
}

.page-hero__title--split .page-hero__title-main {
    display: block;
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    /* название — крупно */
    line-height: 1.15;
}

.page-hero__title--split .page-hero__title-sub {
    display: block;
    font-size: clamp(1.4rem, 2vw, 2rem);
    /* подзаголовок — скромнее */
    font-weight: 500;
    line-height: 1.3;
    margin-top: 8px;
}

/* «Формат программы»: подблоки ниже пары с фото — той же ширины,
   что how__content (текст в колонке ~900px) */
.format__rest {
    max-width: 900px;
    margin: 28px auto 0;
}

/* ================================================== */
/* ===== СПИСКИ PRO/CONTRA (страницы программ) ===== */
/* ================================================== */

/* ================================================== */
/* ===== СПИСКИ PRO/CONTRA (страницы программ) ===== */
/* ================================================== */

.plus-list,
.cross-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plus-list li,
.cross-list li {
    position: relative;
    padding-left: 44px;
    margin-bottom: 14px;
    font-size: 1.5rem;
    line-height: 1.65;
    color: var(--color-gray);
}

/* иконка через SVG-фон: кружок + знак одним изображением */
.plus-list li::before,
.cross-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 28px;
    height: 28px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* зелёный кружок с белым плюсом */
.plus-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%233d8b4f'/%3E%3Cpath d='M14 8v12M8 14h12' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* красный кружок с белым крестом */
.cross-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23c0453e'/%3E%3Cpath d='M9.5 9.5l9 9M18.5 9.5l-9 9' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ================================================== */
/* ===== СТРАНИЦА: КОНТАКТЫ ===== */
/* ================================================== */

.contact-card {
    text-align: center;
}

.contact-card__phone {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.25s ease, transform 0.2s ease;
}

.contact-card__phone:hover {
    color: var(--color-primary);
    transform: scale(1.06);
}

.contact-card__phone:active {
    transform: scale(0.98);
    /* отклик на нажатие */
}

.contact-card__time {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.contact-card__hint {
    font-size: 1.2rem;
    color: #6b6b6b;
    line-height: 1.6;
}

.contact-card__hint a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-card__hint a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .contact-card__phone {
        font-size: 1.5rem;
    }

    .contact-card__time {
        font-size: 1.6rem;
    }
}

/* кнопки мессенджеров */
.contact-card__messenger {
    display: block;
    padding: 14px 20px;
    margin-bottom: 12px;
    border-radius: 40px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: 2px solid;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.contact-card__messenger:last-child {
    margin-bottom: 0;
}

.contact-card__messenger:hover {
    transform: scale(1.02);
}

/* MAX — фирменный сине-фиолетовый */
.contact-card__messenger--max {
    color: #5B4BC4;
    border-color: #5B4BC4;
    background: transparent;
}

.contact-card__messenger--max:hover {
    background: #5B4BC4;
    color: #fff;
}

/* Telegram — небесно-голубой */
.contact-card__messenger--telegram {
    color: #2AABEE;
    border-color: #2AABEE;
    background: transparent;
}

.contact-card__messenger--telegram:hover {
    background: #2AABEE;
    color: #fff;
}

/* ВКонтакте — синий */
.contact-card__messenger--vk {
    color: #0077FF;
    border-color: #0077FF;
    background: transparent;
}

.contact-card__messenger--vk:hover {
    background: #0077FF;
    color: #fff;
}

@media (max-width: 768px) {
    .contact-card__messenger {
        font-size: 1.25rem;
        padding: 12px 16px;
    }
}

/* мессенджеры в футере: столбик со своим заголовком */
.footer__messengers {
    margin: 10px 0 16px;
}

.footer__messengers-heading {
    font-size: 1.1rem;
    color: #8f8f8f;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.footer__messengers a {
    display: block;
    font-size: 1.3rem;
    color: #e8e8e8;
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.footer__messengers a:last-child {
    margin-bottom: 0;
}

.footer__messengers a:hover {
    color: var(--color-primary);
}

/* ================================================== */
/* ===== БОТ-НАВИГАТОР ===== */
/* ================================================== */

/* иконка-пузырь */
.bot__bubble {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    box-shadow: 0 6px 20px rgba(26, 59, 92, 0.25);
    cursor: pointer;
    z-index: 950;
    opacity: 0;
    transform: translateY(20px);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease, box-shadow 0.25s ease;
}

.bot__bubble.is-visible {
    opacity: 1;
    transform: none;
}

.bot__bubble.is-hidden {
    display: none;
}

.bot__bubble img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bot__bubble:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 12px rgba(4, 57, 110, 0.4);
}

.bot__bubble:hover img {
    animation: bot-wave 0.8s ease-in-out;
}

.bot__bubble:active {
    transform: translateY(-2px) scale(0.96);
}

@keyframes bot-wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-8deg);
    }

    75% {
        transform: rotate(8deg);
    }
}

/* окно */
.bot__window {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 400px;
    max-width: calc(100vw - 32px);
    height: auto;
    max-height: calc(100vh - 240px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    z-index: 960;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
}

.bot__window.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* шапка */
.bot__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--color-primary);
    color: #fff;
    flex-shrink: 0;
}

.bot__header-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.bot__close {
    position: relative;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.2s ease;
}

.bot__close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.bot__close::before,
.bot__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.bot__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.bot__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* лента сообщений */
.bot__body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 260px;
}

.bot__msg {
    max-width: 88%;
    padding: 12px 16px;
    border-radius: 16px 16px 16px 4px;
    background: var(--color-light);
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--color-text);
}

.bot__msg--user {
    align-self: flex-end;
    background: #e3eef8;
    border-radius: 16px 16px 4px 16px;
    font-weight: 600;
    font-size: 1.15rem;
}

/* блок "Чем поможет" */
.bot__help {
    border-left: 3px solid var(--color-accent);
    padding: 10px 14px;
    background: rgba(240, 179, 75, 0.08);
    border-radius: 0 12px 12px 0;
}

.bot__help-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 6px;
}

.bot__help-text {
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--color-gray);
}

/* кнопки-варианты */
.bot__btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.bot__btn {
    padding: 10px 14px;
    border-radius: 24px;
    border: 1.5px solid var(--color-primary);
    background: #fff;
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: var(--font-family-base);
}

.bot__btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.bot__btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.bot__btn--primary:hover {
    background: #5a8fbf;
}


.bot__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}


.bot__input {
    width: 100%;
    padding: 10px 14px;
    font-size: 1.1rem;
    font-family: var(--font-family-base);
    border: 1.5px solid #d0d0d0;
    border-radius: 10px;
    outline: none;
}

.bot__input:focus {
    border-color: var(--color-primary);
}

.bot__agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 1rem;
    color: var(--color-gray);
    cursor: pointer;
    line-height: 1.4;
}

.bot__agree input {
    margin-top: 2px;
    accent-color: var(--color-primary);
}

.bot__submit {
    padding: 12px;
    font-size: 1.2rem;
    border: none;
    border-radius: 24px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family-base);
}

.bot__submit:hover {
    background: #5a8fbf;
}

.bot__submit:disabled {
    opacity: 0.6;
}

/* когда бот открыт — прятать пузырь (класс is-hidden выше) */

@media (max-width: 768px) {
    .bot__bubble {
        width: 56px;
        height: 56px;
        right: 16px;
        bottom: 16px;
    }

    .bot__window {
        right: 8px;
        left: 8px;
        width: auto;
        bottom: 8px;
        max-height: calc(100vh - 140px);
    }
}

/* ================================================== */
/* ===== СТРАНИЦА 404 ===== */
/* ================================================== */

.notfound__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 210px 20px 40px;
}

/* крупные цифры */
.notfound__code {
    font-size: clamp(6rem, 14vw, 11rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    user-select: none;
}

/* ноль-лупа */
.notfound__zero {
    position: relative;
    display: inline-block;
}

.notfound__zero::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.18em;
    height: 0.18em;
    border-radius: 50%;
    background: var(--color-accent);
    transform: translate(100%, 80%);
}

.notfound__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.notfound__text {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--color-gray);
    max-width: 620px;
    margin: 0 auto 36px;
}

.notfound__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.notfound__btn {
    font-size: 1.2rem;
    padding: 14px 28px;
}

@media (max-width: 1024px) {
    .notfound__inner {
        padding-top: 130px;
        /* хедер ниже — как у услуг на планшете */
    }
}

@media (max-width: 768px) {
    .notfound__inner {
        padding-top: 105px;
        /* мобильный хедер */
    }
}

@media (max-width: 480px) {
    .notfound__links {
        flex-direction: column;
        align-items: stretch;
    }

    .notfound__btn {
        width: 100%;
        text-align: center;
    }
}

/* ================================================== */
/* ===== БЛОГ: СПИСОК И СТРАНИЦА СТАТЬИ ===== */
/* ================================================== */

/* табы категорий */
.blog-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.blog-tabs__tab {
    padding: 10px 26px;
    border-radius: 30px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-tabs__tab:hover,
.blog-tabs__tab.is-active {
    background: var(--color-primary);
    color: #fff;
}

/* сетка статей */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1380px;
    margin: 0 auto;
}

.blog-item {
    display: flex;
    flex-direction: column;
    background: var(--color-light);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.blog-item__image {
    aspect-ratio: 16 / 9;
    background: #e0dcd7;
    overflow: hidden;
}

.blog-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-item__content {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.blog-item__cat {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}



.blog-item__teaser {
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--color-gray);
    flex: 1;
}

.blog-item__more {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: transform 0.2s ease;
    display: inline-block;
}

/* таблицы внутри статей — компактнее прайса */
.article-content .price-table {
    font-size: 1.2rem;
    margin: 28px 0;
}

.article-content .price-table td {
    padding: 12px 14px;
}

.article-content .price-table th {
    padding: 12px 14px;
}

.blog-item:hover .blog-item__more {
    transform: translateX(4px);
}

/* ---------- страница статьи ---------- */

.article-cover {
    max-width: 900px;
    margin: 0 auto 28px;
    border-radius: 20px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    display: block;
}

.article-teaser {
    max-width: 900px;
    margin: 0 auto 28px;
    font-size: 1.7rem;
    line-height: 1.6;
    color: var(--color-gray);
    font-style: italic;
}

/* оглавление статьи — переиспользуем toc с внутренней страницы */
#article .toc__nav {
    max-width: 900px;
    margin: 0 auto 36px;
    padding: 22px 28px;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

#article .toc__list {
    columns: 1;
}

/* текст статьи: единая типографика */
.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-content p {
    font-size: var(--font-size-body);
    line-height: 1.75;
    color: var(--color-gray);
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 40px 0 20px;
    scroll-margin-top: 190px;
    /* якоря не прячутся под хедер */
}

.article-content strong {
    color: var(--color-text);
}

.article-content em {
    color: var(--color-gray);
}

.article-content a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- адаптив ---------- */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .article-teaser {
        font-size: 1.4rem;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .article-content p {
        font-size: 1.3rem;
    }
}

/* диалоги-истории внутри статей */
.article-content .article-dialog {
    max-width: 840px;
    margin: 24px 0;
    padding: 18px 24px;
    background: var(--color-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 14px 14px 0;
}

.article-content .article-dialog p {
    font-size: 1.4rem;
    line-height: 1.65;
    color: var(--color-gray);
    margin-bottom: 12px;
}

.article-content .article-dialog p:last-child {
    margin-bottom: 0;
}

/* ================================================== */
/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
/* ================================================== */

.breadcrumbs {
    max-width: var(--content-max-width, 2000px);
    margin: 0 0 18px 0;
    /* ← низ: воздух до H1; верх не нужен — hero уже дал */
    font-size: 1.15rem;
    color: #8a8a8a;
    line-height: 1.4;
}

.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs__sep {
    margin: 0 10px;
    color: #c8c8c8;
}

.breadcrumbs__current {
    color: #8a8a8a;
}

@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 1rem;
        padding-top: 14px;
    }

    .breadcrumbs__sep {
        margin: 0 7px;
    }
}

/* ================================================== */
/* ===== АТЛАС ПРОФЕССИЙ ===== */
/* ================================================== */

.atlas-search {
    max-width: 600px;
    margin: 24px auto 0;
}

.atlas-search__input {
    width: 100%;
    padding: 14px 22px;
    font-size: 1.2rem;
    font-family: var(--font-family-base);
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    outline: none;
    transition: box-shadow 0.25s ease;
}

.atlas-search__input:focus {
    box-shadow: 0 4px 20px rgba(111, 168, 220, 0.25);
}

.atlas-search__input::placeholder {
    color: #999;
}

.atlas-empty {
    text-align: center;
    font-size: 1.3rem;
    color: #8a8a8a;
    padding: 40px 0;
}

/* текст категории — с воздухом до сетки */
.atlas-category-text {
    margin-bottom: 40px;
}

/* карточка категории — ниже карточки профессии,
   teaser крупнее читается */
.atlas-card .blog-item__teaser {
    font-size: 1.2rem;
}

/* кнопка «Смотреть профессии» на странице категории — по центру */

.atlas-hero-btn {
    display: block;
    max-width: 400px;
    margin: 24px auto 0;
    text-align: center;
    white-space: nowrap;
    /* ← текст строго одной строкой */
}

.atlas-hero-btn__arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.atlas-hero-btn:hover .atlas-hero-btn__arrow {
    transform: translateX(4px);
}

/* ================================================== */
/* ===== СТРАНИЦА ПРОФЕССИИ (единая ось 900px) ===== */
/* ================================================== */

/* обложка после hero */
.atlas-p__cover {
    max-width: 900px;
    margin: 0 auto 36px;
    border-radius: 20px;
    overflow: hidden;
}

.atlas-p__cover img {
    width: 100%;
    display: block;
}

/* заголовки разделов — общая ось */
.atlas-p__heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: left;
}

/* контент разделов — общая ось */
.atlas-p__content {
    max-width: 900px;
    margin: 0 auto 32px;
}

.atlas-p__content p {
    font-size: var(--font-size-body);
    line-height: 1.75;
    color: var(--color-gray);
    margin-bottom: 24px;
}

.atlas-p__content p:last-child {
    margin-bottom: 0;
}

.atlas-p__content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 28px 0 14px;
}

.atlas-p__content strong {
    color: var(--color-text);
}

.atlas-p__content a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* списки наследуют point-list/plus-list/cross-list —
   они глобальные, внутри колонки работают как есть */

.atlas-p__salary {
    max-width: 900px;
    /* ← в общую ось, не 620 */
    margin: 0 auto 40px;
    background: var(--color-light);
    /* лёгкая плашка, без рамки */
    border-radius: 16px;
    padding: 24px 28px;
}

.atlas-p__salary-row {
    font-size: 1.35rem;
    color: var(--color-gray);
    margin-bottom: 8px;
    line-height: 1.55;
}

.atlas-p__salary-row strong {
    color: var(--color-text);
    font-weight: 600;
    /* ← мягче, чем 700 */
}

.atlas-p__salary-note {
    font-size: 1.1rem;
    color: #8a8a8a;
    margin: 12px 0 4px;
    line-height: 1.5;
}

.atlas-p__salary-date {
    font-size: 1rem;
    color: #8a8a8a;
    margin-top: 4px;
}

/* смежные профессии */
.atlas-p__related {
    max-width: 1380px;
    margin: 0 auto;
}

/* мобильная типографика */
@media (max-width: 768px) {
    .atlas-p__heading {
        font-size: 1.7rem;
        margin-bottom: 14px;
    }

    .atlas-p__content p {
        font-size: 1.3rem;
    }

    .atlas-p__salary {
        padding: 22px 20px;
    }

    .atlas-p__salary-row {
        font-size: 1.2rem;
    }
}

/* выпадающие подсказки поиска по профессиям */
.atlas-hints {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}


.atlas-hints__list {
    position: absolute;
    top: 100%;
    /* ← было 6px: список начинается НИЖЕ поля */
    margin-top: 6px;
    /* зазор от поля */
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--color-primary);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 50;
    overflow: hidden;
}

.atlas-hints__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    font-size: 1.25rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s ease;
}

.atlas-hints__item:hover {
    background: var(--color-light);
}

.atlas-hints__cat {
    font-size: 1rem;
    color: #8a8a8a;
    white-space: nowrap;
    margin-left: 12px;
}

/* ================================================== */
/* ===== НОВОСТИ: ЛЕНТА ===== */
/* ================================================== */

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item__date {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.news-item__title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
    margin: 0 0 12px;
}

.news-item__text {
    font-size: 1.45rem;
    line-height: 1.7;
    color: var(--color-gray);
}

.news-item__link {
    display: inline-block;
    margin-top: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, transform 0.2s ease;
}

.news-item__link:hover {
    border-bottom-color: var(--color-primary);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .news-item__title {
        font-size: 1.5rem;
    }

    .news-item__text {
        font-size: 1.25rem;
    }
}

a.events__item {
    text-decoration: none;
    color: inherit;
}

.news-item {
    scroll-margin-top: 200px;
    /* якорь приземляется под фиксированный хедер */
}

/* ================================================== */
/* ===== СТРЕЛКА «НАВЕРХ» ===== */
/* ================================================== */

.scroll-top {
    position: fixed;
    right: 33px;
    bottom: 104px;
    /* над ботом */
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: var(--color-bg);
    color: var(--color-primary);
    cursor: pointer;
    z-index: 940;
    /* ниже бота (950) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.scroll-top:hover {
    background: var(--color-primary);
    color: #fff;
}

@media (max-width: 768px) {
    .scroll-top {
        right: 23px;
        bottom: 92px;
        /* мобайльный бот 56px + зазор */
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 768px) {

    /* H2-заголовки секций — единый масштаб */
    .intro-block__title,
    .programs__title,
    .why-important__title,
    .trust__title,
    .help__title,
    .blog__title,
    .events__title,
    .callback__title,
    .about-profession__title,
    .section-title {
        font-size: 2.2rem;
        /* читаемо, не громоздко */
    }
}

@media (max-width: 480px) {

    .intro-block__title,
    .programs__title,
    .why-important__title,
    .trust__title,
    .help__title,
    .blog__title,
    .events__title,
    .callback__title,
    .about-profession__title,
    .section-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .help__card {
        flex: 0 0 auto;
        /* ← снимать flex-basis 320px (высоту в колонке!) */
        min-height: 0;
        padding: 28px 20px;
    }
}