/* ============================================
   STYLE.CSS — НЕКРИТИЧЕСКИЕ СТИЛИ
   Косметика hero, кнопки, блоки услуг, футер.
   Layout и адаптив hero — в CRITICAL.CSS.
   ============================================ */

/* ============================================
   HERO — КОСМЕТИКА
   Только цвета, тени, hover.
   Размеры, отступы, layout — в CRITICAL.CSS.
   ============================================ */





/* ============================================
   КНОПКИ
   ============================================ */

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 16px 44px;
    border-radius: 60px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(232, 168, 124, 0.35);
    font-size: 1.05rem;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(232, 168, 124, 0.45);
}

.btn-detail {
    display: inline-block;
    background: var(--primary);
    color: var(--text-dark);
    padding: 12px 34px;
    border-radius: 60px;
    font-weight: 600;
    border: 1px solid rgba(232, 168, 124, 0.2);
    transition: var(--transition);
    box-shadow: 0 6px 16px rgba(232, 168, 124, 0.25);
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-detail .arrow-right {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    vertical-align: middle;
    transition: var(--transition);
}

.btn-detail .arrow-right::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.btn-detail:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(232, 168, 124, 0.4);
}

.btn-detail:hover .arrow-right {
    transform: translateX(6px);
}

/* ============================================
   БЛОКИ УСЛУГ
   ============================================ */

.blocks-section {
    padding: 20px 0 60px;
}

.block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 20px 20px 0;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s;
}

.block.visible {
    opacity: 1;
    transform: translateY(0);
}

.block:hover {
    box-shadow: 0 30px 50px -18px rgba(74, 59, 50, 0.2);
}

.block-image {
    flex: 1 1 40%;
    min-height: 300px;
    min-width: 200px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.block-image .image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
}

.block-content {
    flex: 1 1 50%;
    padding: 10px 20px;
}

.block-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.block-content p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Шахматка */
.block:nth-child(even) .block-image   { order: 1; }
.block:nth-child(even) .block-content { order: 0; }

/* ============================================
   ПОДВАЛ
   ============================================ */

footer {
    background: #2D2420;
    color: #f0e3db;
    padding: 50px 0 30px;
    border-radius: 60px 60px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: #fff;
    font-weight: 600;
}

.footer-col h4 .leaf-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.footer-col h4 .leaf-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--primary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.footer-col p,
.footer-col a {
    color: #cbb6ab;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
    font-size: 0.98rem;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-col .contact-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.footer-col .contact-icon.phone-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--primary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.footer-col .contact-icon.email-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--primary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.footer-col .contact-icon.pin-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--primary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

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

.footer-social a {
    background: rgba(255, 255, 255, 0.06);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    color: #cbb6ab;
    font-size: 0;
    transition: var(--transition);
    position: relative;
}

.footer-social a .social-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.footer-social a .social-icon.instagram::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.footer-social a .social-icon.telegram::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.5 4.5L2.5 10.5L9.5 14.5L13.5 21.5L21.5 4.5Z'/%3E%3Cpath d='M9.5 14.5L17.5 8.5'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.5 4.5L2.5 10.5L9.5 14.5L13.5 21.5L21.5 4.5Z'/%3E%3Cpath d='M9.5 14.5L17.5 8.5'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.footer-social a .social-icon.whatsapp::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-4px);
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: #a28d7e;
    letter-spacing: 0.3px;
}

.footer-copy .heart-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 4px;
    vertical-align: middle;
}

.footer-copy .heart-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor' stroke='none'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor' stroke='none'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

/* ============================================
   АДАПТИВ (только блоки услуг и футер)
   Hero-адаптив — в CRITICAL.CSS
   ============================================ */

/* ── Планшет (≤ 992px) ── */
@media (max-width: 992px) {
    .block {
        flex-direction: column;
        padding: 0 0 20px 0;
    }

    .block-image {
        width: 100%;
        min-height: 250px;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .block-content {
        padding: 20px 30px 30px;
    }

    .block:nth-child(even) .block-image   { order: 0; }
    .block:nth-child(even) .block-content { order: 1; }
}

/* ── Мобильный (≤ 768px) ── */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }
}

/* ── Маленький мобильный (≤ 480px) ── */
@media (max-width: 480px) {
    .btn-primary {
        padding: 14px 30px;
        font-size: 0.95rem;
        width: 100%;
    }

    .block-content h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   ВНУТРЕННИЕ СТРАНИЦЫ (services, about, contacts,
   cbt, preschool, elementary, teenagers, family)

   Общий набор блоков, чтобы страницы выглядели
   как одна семья: тот же тёплый фон, те же
   радиусы, та же типографика.
   ============================================ */

/* ── Верхний блок страницы: h1 + вводный абзац ── */
.page-hero {
    background: linear-gradient(145deg, #FFF8F2, #FDF0E9);
    padding: 48px 0 46px;
    border-radius: 0 0 var(--hero-bottom-radius, 60px) var(--hero-bottom-radius, 60px);
    margin-bottom: var(--hero-margin-bottom, 40px);
}

.page-hero h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin-bottom: 18px;
    max-width: 900px;
}

.page-hero__lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.75;
    color: var(--text-light);
    max-width: 820px;
}

/* Хлебные крошки — тихая навигация, без шума.
   Самодостаточны: ничего не наследуют от меню в шапке (в critical.css
   его правила сужены до header nav, иначе на мобильных крошки
   превращались в белую карточку с вертикальным списком). */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-light);
}

.breadcrumbs a,
.breadcrumbs span {
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    white-space: normal;
    padding: 0;
    min-width: 0;
}

.breadcrumbs a {
    color: var(--text-light);
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.breadcrumbs a:hover {
    color: var(--accent);
    border-bottom-color: rgba(232, 168, 124, 0.55);
}

/* Разделитель «·» — легче основного текста */
.breadcrumbs span[aria-hidden] {
    color: var(--primary);
    font-size: 0.9em;
    line-height: 1;
    user-select: none;
}

/* Текущая страница — не ссылка, чуть плотнее по цвету */
.breadcrumbs [aria-current="page"] {
    color: var(--text-dark);
    font-weight: 600;
}

/* ── Мобильные: одна аккуратная строка ── */
@media (max-width: 768px) {
    .breadcrumbs {
        gap: 3px 6px;
        margin-bottom: 12px;
        font-size: 0.76rem;
        letter-spacing: 0.1px;
    }

    /* Длинная последняя крошка не выдавливает строку за экран */
    .breadcrumbs span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .breadcrumbs {
        font-size: 0.72rem;
    }
}

/* ── Секции страницы ── */
.page-section {
    padding: 0 0 56px;
}

.page-section--soft {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 38px 34px;
    margin-bottom: 56px;
}

.page-section__title {
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-section__lead {
    color: var(--text-light);
    line-height: 1.75;
    font-size: 1.02rem;
    max-width: 820px;
    margin-bottom: 22px;
}

/* ── Абзацы ── */
.prose p {
    color: var(--text-light);
    line-height: 1.75;
    font-size: 1.02rem;
    max-width: 820px;
    margin-bottom: 16px;
}

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

.prose strong { color: var(--text-dark); font-weight: 600; }

/* ── Список «Что решаем» с галочками ── */
.check-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px 32px;
    max-width: 900px;
}

.check-list li {
    position: relative;
    padding-left: 34px;
    color: var(--text-dark);
    line-height: 1.6;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

/* ── Нумерованные шаги «Как проходит запись» ── */
.steps {
    counter-reset: step;
    display: grid;
    gap: 14px;
    max-width: 760px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 52px;
    color: var(--text-light);
    line-height: 1.65;
    min-height: 36px;
}

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

/* ── Карточки направлений ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 26px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(247, 197, 168, 0.18);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -18px rgba(74, 59, 50, 0.22);
    border-color: rgba(232, 168, 124, 0.4);
}

.service-card__age {
    display: inline-block;
    align-self: flex-start;
    background: var(--secondary);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 5px 14px;
    border-radius: 60px;
    margin-bottom: 16px;
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-card__text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.98rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* ── Контакты ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(247, 197, 168, 0.18);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 168, 124, 0.4);
}

.contact-card__label {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.contact-card__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    word-break: break-word;
}

.contact-card__value:hover { color: var(--accent); }

.contact-card--phone { box-shadow: 0 20px 40px -12px rgba(232, 168, 124, 0.35); }

/* ── Мягкая плашка-примечание ── */
.callout {
    background: var(--white);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 22px 26px;
    box-shadow: var(--shadow);
    color: var(--text-light);
    line-height: 1.7;
    max-width: 820px;
}

.callout strong { color: var(--text-dark); }

/* Усиленная плашка — для предупреждений вроде «Важно» */
.callout--important {
    border-left-color: var(--accent);
    background: #FFF6EF;
}

/* ── О психологе: фото + текст ── */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 46px;
    align-items: start;
    margin-bottom: 56px;
}

.about-photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--secondary);
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.about-facts {
    display: grid;
    gap: 18px;
}

.about-fact {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(247, 197, 168, 0.18);
    color: var(--text-light);
    line-height: 1.7;
}

.about-fact strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

/* ── Финальный призыв ── */
.cta-band {
    background: linear-gradient(135deg, var(--secondary), #FDF0E9);
    border-radius: var(--radius);
    padding: 44px 34px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-top: 44px;
    margin-bottom: 60px;
}

.cta-band__title {
    font-size: clamp(1.25rem, 2.6vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.cta-band__text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 26px;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ── Второстепенная кнопка ── */
.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--text-dark);
    padding: 16px 36px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.02rem;
    border: 1.5px solid var(--accent);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-ghost:hover {
    background: rgba(232, 168, 124, 0.12);
    transform: translateY(-3px);
}

/* ── Адаптив внутренних страниц ── */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-hero { padding: 36px 0 34px; }
}

@media (max-width: 768px) {
    .page-section--soft {
        padding: 28px 22px;
        margin-bottom: 44px;
    }

    .cards-grid { gap: 20px; }
    .cta-band { padding: 34px 22px; }
}

@media (max-width: 480px) {
    .page-hero { padding: 28px 0 26px; }

    .check-list { grid-template-columns: 1fr; }

    .cta-band__actions .btn-primary,
    .cta-band__actions .btn-ghost {
        width: 100%;
    }
}

/* ============================================
   ФОТО, КОТОРЫХ ЕЩЁ НЕТ
   Класс .is-missing вешает js/main.js, если файл
   не загрузился. Вместо битой иконки — мягкий фон.
   ============================================ */
img.is-missing {
    display: none;
}

.carus__media:has(img.is-missing),
.block-image:has(img.is-missing) {
    background: linear-gradient(145deg, #FDF0E9, #F6E3D4);
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ЗАПИСИ (TZ §6.2)
   Открывается кнопкой с data-zapis-open.
   ============================================ */
body.zapis-open {
    overflow: hidden;
}

.zapis {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 9999);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.zapis.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.zapis[hidden] {
    display: none;
}

.zapis__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(74, 59, 50, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.zapis__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 470px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 32px 30px;
    box-shadow: 0 40px 90px -30px rgba(74, 59, 50, 0.5);
    transform: scale(0.94) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.zapis.is-open .zapis__dialog {
    transform: scale(1) translateY(0);
}

.zapis__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.zapis__close:hover {
    background: var(--primary);
}

.zapis__close-icon {
    position: relative;
    width: 16px;
    height: 16px;
    display: block;
}

.zapis__close-icon::before,
.zapis__close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
}

.zapis__close-icon::before { transform: rotate(45deg); }
.zapis__close-icon::after  { transform: rotate(-45deg); }

.zapis__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-right: 44px;
}

.zapis__subtitle {
    color: var(--text-light);
    line-height: 1.65;
    font-size: 0.98rem;
    margin-bottom: 24px;
}

.zapis__form {
    display: grid;
    gap: 16px;
}

.zapis__field { display: block; }

.zapis__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.zapis__input {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--secondary);
    border: 1.5px solid transparent;
    border-radius: 14px;
    padding: 13px 16px;
    transition: var(--transition);
}

.zapis__input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(232, 168, 124, 0.15);
}

.zapis__input--area {
    resize: vertical;
    min-height: 84px;
}

.zapis__submit { width: 100%; }

.zapis__consent {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.5;
    text-align: center;
}

.zapis__status {
    margin-top: 16px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-dark);
    text-align: center;
}

.zapis__status.is-error { color: #B4552F; }

.zapis__status a {
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 480px) {
    .zapis { padding: 12px; }

    .zapis__dialog {
        padding: 28px 20px 24px;
        border-radius: 20px;
    }

    .zapis__title { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .zapis,
    .zapis__dialog {
        transition-duration: 0.01ms !important;
    }
}