@charset "UTF-8";

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

html {
    scroll-behavior: smooth;
    height: 100%;
    margin: 0;
}

/* =============
   Цветовые утилиты
============= */

/* --- Основные цвета --- */
.text-primary {
    color: #8B6B5D !important;
}

.bg-primary {
    background-color: #8B6B5D !important;
}

.border-primary {
    border-color: #8B6B5D !important;
}

.text-secondary {
    color: #E1C4C4 !important;
}

.bg-secondary {
    background-color: #E1C4C4 !important;
}

.border-secondary {
    border-color: #E1C4C4 !important;
}

/* --- Нейтральные цвета --- */
.text-white {
    color: #ffffff !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.text-dark {
    color: #333333 !important;
}

.bg-dark {
    background-color: #333333 !important;
}

.text-light {
    color: #f8f8f8 !important;
}

.bg-light {
    background-color: #f8f8f8 !important;
}

/* --- Прозрачность --- */
.bg-transparent {
    background-color: transparent !important;
}

/* --- Утилиты без !important (если нужно вложенные переопределять) */
/* Можно использовать отдельно, если не хотите !important */
.primary-text {
    color: #8B6B5D;
}

.primary-bg {
    background-color: #8B6B5D;
}

.secondary-bg {
    background-color: #E1C4C4;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #FAFAFA;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    flex: 1 0 auto;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px; /* ← больше на планшетах */
    }
}

/* Для очень узких экранов — уменьшаем отступы */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}


.page-buffer {
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .page-buffer {
        margin-bottom: 20px;
    }
}


h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #333;
}

p {
    font-size: 16px;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #8B6B5D;
}

.btn-application {
    display: inline-block;
    background: #8B6B5D;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-application:hover {
    background: #E1C4C4;
    color: #333;
    transform: translateY(-2px);
}


/* Внутиристраничное меню */
.page-toc {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;

    /* Свёрнутое состояние */
    width: 44px;
    height: 44px;
    transition: width 0.25s ease;
}

/* Раскрытое состояние */
.page-toc.expanded {
    width: 280px;
    height: auto;
    /* Убираем фиксированную высоту — но animating через max-height */
}

/* Обёртка для анимации содержимого */
.toc-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.page-toc.expanded .toc-content {
    max-height: 500px; /* достаточно для 7 пунктов */
    padding: 16px;
}

/* Иконка */
.toc-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #8B6B5D;
    cursor: pointer;
    background: white;
    border-radius: 12px;
}

.page-toc.expanded .toc-toggle {
    display: none;
}

/* Список */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-toc.expanded .toc-list {
    opacity: 1;
    transform: translateY(0);
}

.toc-list li {
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-toc .toc-list a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    font-size: 14px;
    transition: color 0.2s;
}

.page-toc .toc-list a:hover {
    color: #8B6B5D;
}

.page-toc.expanded .toc-list li {
    opacity: 1;
    transform: translateY(0);
}

/* Каскадное появление (опционально) */
.page-toc.expanded .toc-list li:nth-child(1) {
    transition-delay: 0.05s;
}

.page-toc.expanded .toc-list li:nth-child(2) {
    transition-delay: 0.1s;
}

.page-toc.expanded .toc-list li:nth-child(3) {
    transition-delay: 0.15s;
}

.page-toc.expanded .toc-list li:nth-child(4) {
    transition-delay: 0.2s;
}

.page-toc.expanded .toc-list li:nth-child(5) {
    transition-delay: 0.25s;
}

.page-toc.expanded .toc-list li:nth-child(6) {
    transition-delay: 0.3s;
}

.page-toc.expanded .toc-list li:nth-child(7) {
    transition-delay: 0.35s;
}

@media (max-width: 767px) {
    #pageToc {
        display: none !important;
    }
}


/* Кнопка "Вверх" */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #8B6B5D;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background: #E1C4C4;
    color: #333;
    transform: translateY(0);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* На очень маленьких экранах */
@media (max-width: 375px) {
    .back-to-top {
        bottom: 16px;
        right: 16px;
    }
}


/* Кнопка "Написать в Telegram" */
.link-tg {
    position: fixed;
    bottom: 20px;
    left: 20px; /* симметрично right у .back-to-top */
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 44px;
    background: #8B6B5D;
    color: white;
    border: none;
    border-radius: 50px; /* скруглённая прямоугольная форма */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-flex;
}

.link-tg:hover {
    background: #E1C4C4;
    color: #333;
}

.link-tg .default-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor; /* чтобы иконка меняла цвет при наведении */
}

/* На очень маленьких экранах */
@media (max-width: 375px) {
    .link-tg {
        bottom: 16px;
        left: 16px;
        padding: 0 12px;
        height: 40px;
        font-size: 13px;
    }

    .link-tg .default-icon {
        width: 18px;
        height: 18px;
    }
}


/* Для SVG */
.default-icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* На очень маленьких экранах */
@media (max-width: 375px) {
    .default-icon {
        width: 16px;
        height: 16px;
    }
}

.my-icon {
    color: #333;
}


/* ——— Шапка ——— */
.header {
    background: transparent;
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

@media (max-width: 767px) {
    .header {
        position: fixed;
        background: white;
        padding: 16px 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    body {
        padding-top: 60px; /* подстраивайте под реальную высоту */
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-text {
    display: flex;
    align-items: stretch; /* по умолчанию, можно не писать */
}

.header-logo-text p {
    margin: 0;
    margin-top: auto;
    font-size: 18px;
    margin-bottom: -3px;
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .header-logo-text p {
        font-size: 14px; /* или любой меньший размер */
    }
}

.header .nav {
    display: block;
}

/* ——— Логотип ——— */
.logo {
    display: flex;
    align-items: center;
    height: 100%; /* ← занимает всю высоту хедера */
}

.logo img {
    max-height: 40px; /* ← ограничиваем высоту */
    width: auto; /* ← сохраняем пропорции */
    display: block;
    object-fit: contain;
}

.nav {
    display: block;
}

@media (max-width: 767px) {
    .logo img {
        max-height: 32px; /* ← чуть меньше на мобильных */
    }
}

/* Основное меню */
.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav li a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.nav li a:hover,
.nav li a.active {
    color: #8B6B5D;
}

/* === Бургер-кнопка === */
.burger-menu {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 101;
}

.burger-menu span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.burger-menu span:nth-child(1) {
    top: 0;
}

.burger-menu span:nth-child(2) {
    top: 9px;
}

.burger-menu span:nth-child(3) {
    top: 18px;
}

/* При открытии */
.burger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* === Адаптивность === */

@media (max-width: 767px) {
    .burger-menu {
        display: block;
    }

    /* Скрытое состояние */
    .nav {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 16px 0;
        border-radius: 8px;
        z-index: 1001;

        /* Анимация */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px); /* немного вверх */
        transition: all 0.3s ease;

        /* Важно: не занимает место, но остаётся "рендеримым" для анимации */
        pointer-events: none;
    }

    /* Открытое состояние */
    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 16px;
    }

    .nav li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        text-transform: none;
        letter-spacing: normal;
        font-weight: 400;
        color: #333;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
    }

    .nav li:last-child a {
        border-bottom: none;
    }
}


/* Основной контейнер страницы */
.blog-page {
    padding-top: 80px;
}

@media (max-width: 767px) {
    .blog-page {
        padding-top: 30px; /* чуть меньше */
    }
}

/* Хлебные крошки */
.breadcrumbs {
    margin: 0 0 10px;
    font-size: 14px;
    color: #777;
}

.breadcrumbs ol {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: #8B6B5D;
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumbs [aria-current="page"] {
    color: #aaa;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #ccc;
}

/* Заголовок страницы */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin: 10px 0 24px;
    line-height: 1.2;
}

/* Вводный текст */
.page-intro {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    max-width: 800px;
    font-family: 'Open Sans', sans-serif;
}

.page-meta {
    font-size: 14px;
    line-height: 1.7;
    color: #8B6B5D;
    max-width: 800px;
    font-family: 'Open Sans', sans-serif;
}

@media (max-width: 767px) {
    .page-title {
        font-size: 28px;
        margin: 8px 0 20px;
    }

    .page-intro {
        font-size: 16px;
        margin-bottom: 32px;
    }
}

/* ——— Подвал ——— */
.footer {
    background: #333;
    color: white;
    padding: 40px 0 20px;
    font-size: 14px;
    line-height: 1.5;
    flex-shrink: 0;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Основная компоновка */
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Логотип + подпись */
.footer-logo {
    flex: 0 0 180px;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px; /* вместо margin-bottom */
}

.footer-logo img {
    max-height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-logo p {
    color: #aaa;
    font-size: 14px;
    margin: 0 !important;
}

/* Навигация + Документы */
.footer-links {
    display: flex;
    gap: 40px;
    flex: 1;
    min-width: 250px;
    justify-content: center;
}

.footer-col {
    min-width: 140px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

/* Контакты */
.footer-col--contacts {
    flex: 0 0 180px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-col--contacts .social-links {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 10px;
}

.footer-col--contacts .social-links a {
    display: inline-block;
    color: #ccc;
    transition: color 0.2s;
}

.footer-col--contacts .social-links svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.footer-col--contacts .social-links a:hover {
    color: white;
}

.footer-contact {
    margin: 4px 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
}

/* Копирайт */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 13px;
}

/* === Адаптивность === */

/* Планшет */
@media (max-width: 1023px) {
    .footer-content {
        gap: 20px;
    }

    .footer-links {
        gap: 30px;
    }

    .footer-col {
        min-width: 120px;
    }
}

/* Мобильный */
@media (max-width: 767px) {
    .footer-content {
        isplay: block; /* ← отключаем flex */
        text-align: center;
    }

    /* Явно делаем .footer-logo блоком с центрированием */
    .footer-logo {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 180px;

    }

    .footer-logo img {
        margin: 0 !important;
        margin-bottom: 8px !important;
    }

    .footer-logo p {
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Остальные колонки */
    .footer-links,
    .footer-col--contacts {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-col--contacts {
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-col--contacts .social-links {
        justify-content: center !important;
    }

    .footer-links {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .footer-col {
        margin-bottom: 20px;
    }

    .footer-logo,
    .footer-links,
    .footer-col--contacts {
        display: block;
        margin: 0 auto 20px;
        max-width: 300px;
    }
}


/* ——— Герой-секция ——— */
.hero {
    background: #FAFAFA;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.hero-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

/* Блок изображения/видео */
.hero-image {
    flex: 1;
    max-width: 600px;
    width: 100%;
    aspect-ratio: 4 / 3; /* ← фиксирует пропорции */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Обложка */
.video-poster,
.video-player {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    overflow: hidden;
}

.video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    display: block;
}

/* Кнопка воспроизведения */
.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(139, 107, 93, 0.8);
    color: white;
    border: none !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
}

.video-play:hover {
    background-color: rgba(225, 196, 196, 0.9);
}

/* Видеоплеер */
.video-player {
    display: none; /* ← скрыт по умолчанию */
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Адаптивность === */

/* Планшет */
@media (max-width: 1023px) {
    .hero {
        padding: 60px 0 50px;
    }

    .hero-content h1 {
        font-size: 38px;
        margin-top: 25px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-image {
        max-width: 500px;
    }
}

/* Мобильный */
@media (max-width: 767px) {
    .hero {
        padding: 5px 0 40px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        max-width: 100%;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-image {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .video-play {
        width: 50px;
        height: 50px;
    }

    .video-play::before {
        font-size: 20px;
    }
}


/* ——— О психологе ——— */
.about {
    padding: 60px 0;
    background: #fff;
}

.about .container {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap; /* ← позволяет переноситься на мобильных */
}

.about-content {
    flex: 2;
    min-width: 300px; /* предотвращает сжатие до нуля */
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-content blockquote {
    font-style: italic;
    font-size: 18px;
    margin-top: 20px;
    color: #8B6B5D;
    border-left: 4px solid #E1C4C4;
    padding-left: 15px;
}

.about-image {
    position: relative;
    flex: 1;
    max-width: 400px;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    filter: grayscale(40%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

/* === Адаптивность === */

/* Планшет */
@media (max-width: 1023px) {
    .about {
        padding: 50px 0;
    }

    .about-content h2 {
        font-size: 32px;
    }
}

/* Мобильный */
@media (max-width: 767px) {
    .about {
        padding: 40px 0;
    }

    .about .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-content {
        width: 100%;
        max-width: 100%;
    }

    .about-content h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    .about-image {
        order: -1; /* ← изображение будет СВЕРХУ */
        width: 100%;
        max-width: 100%;
    }

    .about-content blockquote {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }
}


/* Запросы клиентов */
.requests {
    background: #F9F5F0;
    padding: 50px 0;
    text-align: center;
}

.requests h2 {
    margin-bottom: 30px;
    color: #333;
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
    padding: 0 20px;
    margin: 30px auto 0;
}

.request-card {
    background: #fff;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #E8DCCD;
    transition: transform 0.2s ease;
}

.request-card:hover {
    transform: translateY(-3px);
}

/* Иконка (универсальная) */
.request-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-card p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: #333;
}


/* ——— Почему я ——— */
.why-me {
    background: #ffffff;
    padding: 50px 0;
}

.why-me h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: left;
}

.why-me-content {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
    flex-wrap: wrap; /* ← КЛЮЧЕВОЕ ИЗМЕНЕНИЕ */
}

.why-me-text {
    flex: 1;
    min-width: 300px; /* чтобы не сжимался до нуля */
    max-width: 600px; /* ограничиваем ширину текста */
}

.why-me-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.why-me-text blockquote {
    font-style: italic;
    font-size: 20px;
    color: #8B6B5D;
    border-left: 4px solid #E8DCCD;
    padding-left: 20px;
    margin: 30px 0;
    max-width: 100%; /* ← важно! */
}

.why-me-image {
    flex: 1;
    min-width: 280px; /* минимум для фото */
    max-width: 400px;
    display: flex;
    justify-content: center; /* центрируем на мобильных */
}

.why-me-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    filter: grayscale(40%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: block; /* убирает нижний отступ */
}

.why-me-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Адаптивность */
@media (max-width: 768px) {
    .why-me h2 {
        font-size: 26px;
        text-align: center;
    }

    .why-me-content {
        flex-direction: column;
        text-align: center;
    }

    .why-me-text,
    .why-me-image {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .why-me-buttons {
        justify-content: center;
    }
}


/* ——— Отзывы ——— */
.reviews {
    background: #FAFAFA;
    padding: 60px 0;
    text-align: center;
}

.reviews h2 {
    font-size: 32px;
    color: #333;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    margin-bottom: 30px;
}

.reviews-slider {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0 60px;
}

.review-slide {
    flex: 0 0 calc(33.333% - 16px); /* 3 карточки на десктопе */
}

.review-card {
    background: white;
    border: 1px solid #E8DCCD;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 28px;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    text-align: center;
}

.review-initials {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #E1C4C4;
    color: #8B6B5D;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border: 2px solid #8B6B5D;
    flex-shrink: 0;
}

.review-card blockquote {
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    flex-grow: 1; /* ← занимает всё свободное место */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.review-card blockquote::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 44px;
    color: #E1C4C4;
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.review-author {
    font-weight: 500;
    color: #8B6B5D;
    font-size: 14px;
    margin-top: 16px;
    font-family: 'Open Sans', sans-serif;
    flex-shrink: 0; /* ← не сжимается */
}

/* Стрелки */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 107, 93, 0.1);
    color: #8B6B5D;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.slider-arrow:hover {
    background: #8B6B5D;
    color: white;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.reviews-footnote {
    font-size: 14px;
    color: #777;
    font-style: italic;
}

/* === Адаптивность === */

/* Планшет */
@media (max-width: 991px) {
    .review-slide {
        flex: 0 0 calc(50% - 12px); /* 2 карточки */
    }

    .slider-track {
        padding: 0 40px;
        gap: 20px;
    }

    .reviews h2 {
        font-size: 28px;
    }

    .review-card {
        min-height: 260px;
    }
}

/* Мобильный */
@media (max-width: 767px) {
    .review-slide {
        flex: 0 0 100%; /* 1 карточка */
    }

    .slider-track {
        padding: 0 20px;
        gap: 16px;
    }

    .reviews {
        padding: 40px 0;
    }

    .reviews h2 {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .review-card {
        min-height: 240px;
        padding: 20px;
    }

    .slider-prev {
        left: 0px;
    }

    .slider-next {
        right: 0px;
    }
}


/* ——— Методы ——— */
.approaches {
    padding: 60px 0;
    background: #F9F5F0;
    text-align: center;
}

.approaches h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
    font-size: 18px;
    line-height: 1.7;
}

/* Основная сетка карточек */
.approach-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px; /* ← ограничим, чтобы не было слишком широких отступов */
    margin: 0 auto;
}

/* Карточка метода */
.approach-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    flex: 1;
    min-width: 300px;
    max-width: 520px; /* ← ограничим максимальную ширину */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Ключевое: растягиваем по высоте родителя */
    align-self: stretch;
}

/* На десктопе — фиксируем минимальную высоту */
@media (min-width: 768px) {
    .approach-card {
        min-height: 420px; /* ← подберите под самый высокий контент */
    }
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Визуальный блок */
.approach-visual {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approach-visual img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
}

/* Текст */
.approach-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.approach-text h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #333;
}

.subtitle {
    font-size: 14px;
    color: #8B6B5D;
    font-weight: 500;
    margin-bottom: 14px;
    font-family: 'Open Sans', sans-serif;
}

.approach-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1; /* ← цитата и текст занимают всё пространство */
}

.approach-text blockquote {
    font-style: italic;
    font-size: 16px;
    color: #8B6B5D;
    border-left: 3px solid #E1C4C4;
    padding-left: 15px;
    margin: 20px 0 0;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
}

.method-link {
    display: inline-block;
    margin-top: 20px; /* ← кнопка прижата к низу */
    color: #8B6B5D;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.method-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #8B6B5D;
    transition: width 0.3s ease;
}

.method-link:hover {
    color: #333;
}

.method-link:hover::after {
    width: 100%;
}

/* === Адаптивность === */

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

    .approaches h2 {
        font-size: 26px;
    }

    .section-intro {
        font-size: 16px;
        padding: 0 15px;
    }

    .approach-cards {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .approach-card {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        text-align: center; /* ← КЛЮЧЕВОЕ ИЗМЕНЕНИЕ */
        display: flex;
        flex-direction: column;
        align-items: center; /* ← выравниваем содержимое по центру */
    }

    .approach-visual {
        margin-bottom: 16px;
    }

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

    .approach-text blockquote {
        text-align: center;
        border-left: none;
        padding-left: 0;
        margin: 16px auto 0;
        max-width: 90%;
    }

    .method-link {
        margin-top: 20px;
        text-align: center;
    }
}


/* ——— Контактная секция ——— */
.contact-section {
    background: #FAFAFA;
    padding: 40px 0;
}

.contact-card {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    background: #8B6B5D;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Левый блок — информация */
.contact-info {
    flex: 1;
    color: white;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.contact-logo img {
    max-height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 16px;
    line-height: 1.3;
    color: white;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

/* Правый блок — кнопки */
.contact-actions {
    flex: 1;
    background: white;
    margin: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 8px;
}

/* Кнопка-ссылка */
.contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F9F5F0;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
    border: 1px solid transparent;
}

.contact-btn:hover {
    background: #f0ebe6;
    color: #8B6B5D;
    border-color: #8B6B5D;
}

.contact-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .contact-card {
        flex-direction: column;
        border-radius: 16px;
    }

    .contact-info,
    .contact-actions {
        width: 100%;
        padding: 32px 24px;
        margin: 0;
        border-radius: 0;
    }

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

    .contact-logo {
        justify-content: center;
    }

    .contact-logo img {
        max-height: 36px;
    }

    .contact-actions {
        padding: 32px 24px;
        gap: 12px;
    }

    .contact-btn {
        justify-content: center;
        text-align: center;
    }
}


/* ——— Контент блога (Корневая страница): две колонки ——— */
.blog-content {
    padding: 15px 0 60px;
}

.blog-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.articles-column {
    flex: 2;
    width: 100%;
}

.topics-column {
    flex: 1;
    background: #F9F5F0;
    padding: 24px;
    border-radius: 14px;
    align-self: flex-start;
    position: sticky;
    top: 80px;
    margin-top: 60px;
}

.topics-column h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #333;
}

/* Сетка статей */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* === Темы === */
.topics-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-tag {
    background: white;
    color: #8B6B5D;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    text-align: center;
}

.topic-tag:hover {
    background: #8B6B5D;
    color: white;
}

/* === Кнопка записи === */
.consultation-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #8B6B5D;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.consultation-btn:hover {
    background: #E1C4C4;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.consultation-btn .default-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

/* === Мобильные темы === */
.topics-mobile {
    display: none;
    width: 100%;
}

.topics-toggle {
    width: 100%;
    background: #F9F5F0;
    border: 1px solid #E8DCCD;
    border-radius: 14px;
    padding: 16px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.toggle-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.topics-list-wrapper {
    margin-bottom: 24px;
}

/* === Адаптивность === */
@media (max-width: 991px) {
    .blog-layout {
        flex-direction: column;
        gap: 32px;
    }

    .topics-column {
        position: static;
        width: 100%;
        display: none;
    }

    .topics-mobile {
        display: block;
    }

    /* Показываем мобильную кнопку, скрываем десктопную */
    .consultation-btn.mobile {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 16px;
    }

    .topics-column .consultation-btn {
        display: none;
    }
}

@media (min-width: 992px) {
    .consultation-btn.mobile {
        display: none;
    }
}

/* === Стили карточки статьи (без изменений) === */
.article-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.article-card a {
    display: block;
    color: #333;
    text-decoration: none;
    height: 100%;
}

.article-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 200px;
}

.article-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f5f5f5;
}

.article-preview::before {
    content: "Изображение";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 14px;
}

.article-card:hover .article-preview img {
    transform: scale(1.02);
}

.article-info {
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 16px;
    height: 33%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.article-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #333;
}

.article-info .article-excerpt {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    color: #666;
    flex-grow: 1;
}

.article-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #8B6B5D;
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 8px 0 0;
}

@media (max-width: 767px) {
    .article-info h2 {
        font-size: 16px;
        margin: 0 0 6px;
    }

    .article-meta {
        font-size: 11px;
        margin: 0;
    }

    .article-excerpt,
    .article-meta span:last-child,
    .article-meta span:first-of-type {
        display: none;
    }

    .article-meta time {
        font-size: 12px;
        color: #8B6B5D;
        display: block;
    }

    .article-info {
        height: auto;
        padding: 14px;
        bottom: 10px;
        left: 12px;
        right: 12px;
    }
}


/* ——— Страница контента ——— */
/* ——— Заголовок статьи ——— */
.article-title {
    font-size: 36px;
    line-height: 1.3;
    margin: 10px 0 16px;
    text-align: left;
}

/* ——— Мета-информация ——— */
.article-meta {
    font-size: 14px;
    color: #8B6B5D;
    margin-bottom: 40px;
    display: flex;
    gap: 8px;
}

.article-meta span {
    display: flex;
    align-items: center;
}


/* ——— Заголовок страницы (например, "Блог") ——— */
.page-header {
    background: #F9F5F0;
    padding: 20px 0;
    margin-bottom: 40px;
    text-align: center;
}

.page-title-label {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    color: #8B6B5D;
    margin: 0;
}

.content-page {
    margin-top: 120px; /* компенсация фиксированного меню и шапки */
}

.content-section {
    padding: 20px 0 10px 0;
}

.content-caption {
    text-align: center;
    margin-top: 20px;
}

.content-section .container > h2 {
    font-size: 28px;
    margin-bottom: 24px;
    text-align: center;
}

/* Картинка с подписью */
.content-image {
    margin: 30px 0;
    text-align: center;
}

.content-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.image-caption {
    color: #777;
    font-size: 14px;
    margin-top: 12px;
    font-style: italic;
}

/* Информационный блок */
.info-box {
    background: #F9F5F0;
    border-left: 4px solid #8B6B5D;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}

/* Таблица */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-table th,
.content-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.content-table th {
    background: #F9F5F0;
    color: #8B6B5D;
    font-weight: 600;
}

.content-table tr:last-child td {
    border-bottom: none;
}

/* === Галерея (без JS) === */

.gallery-slider {
    position: relative;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.gallery-track {
    display: flex;
    transition: transform 0.4s ease;
}

.gallery-item {
    min-width: 100%;
    text-align: center;
    padding: 20px;
    background: white;
}

.gallery-item img {
    width: 100%;
    max-width: clamp(300px, 80%, 800px);
    border-radius: 8px;
    margin-bottom: 16px;
}


/* Видео */
.video-wrapper {
    margin: 30px 0;
    text-align: center;
}

.video-placeholder {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.video-placeholder img {
    width: 100%;
    border-radius: 10px;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(139, 107, 93, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}


/* === Секция FAQ — карточка по аналогии с contact-card === */
/* === FAQ — карточка без разъездов === */
#faq.content-section {
    padding: 40px 0;
}

/* Карточка FAQ — как у contact-card, но без display: flex внутри container */
.faq-card {
    background: #fafafa;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 0 auto;
    max-width: 1000px; /* ширина как у contact-card */
}

.faq-card h2 {
    font-family: 'Playfair Display', serif;
    color: #333;
    font-size: 28px;
    margin: 0 0 32px;
    text-align: center;
}

/* Элементы списка */
.faq-list {
    display: block; /* не используем flex — избегаем конфликтов */
}

.faq-item {
    padding: 16px 0;
    border-bottom: 1px solid #eaeaea;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    text-align: left;
}

.faq-question:hover {
    color: #8B6B5D;
}

.faq-toggle {
    color: #8B6B5D;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-answer {
    margin-top: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    display: none;
}

.faq-answer p {
    margin: 0 0 12px;
}

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

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .faq-card {
        padding: 24px 20px;
    }

    .faq-card h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .faq-question {
        font-size: 16px;
    }
}


/* ——— Видео ——— */
.video-wrapper {
    margin: 30px 0;
    width: 100%;
    position: relative;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* ——— Аудио ——— */
.audio-player {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 30px auto;
    background: #FFF;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.audio-preview {
    flex: 0 0 100px; /* фиксированная ширина превью */
}

.audio-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.audio-controls {
    flex: 1; /* растягивается на оставшееся пространство */
    min-width: 0; /* важно для корректного сжатия */
}

.audio-controls audio {
    width: 100%;
    height: 44px; /* стандартная высота плеера */
}

.audio-info {
    margin-bottom: 16px;
}

.audio-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px;
}

.audio-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}


/* Оверлей загрузки */
#formOverlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

.sending-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Сообщение об успехе */
.form-success-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8fff9;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    width: 100%;
    height: 100%;
    margin: 5px;
}

.form-success-icon svg {
    width: 24px;
    height: 24px;
    color: #28a745;
}

/* Контейнер для всех уведомлений */
#toastStack {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Стиль уведомления */
.custom-toast {
    display: flex;
    align-items: center;
    padding: 14px 16px 14px 16px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 56px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Цвета по типу */
.custom-toast--success {
    background-color: #28a745;
}

.custom-toast--error,
.custom-toast--danger {
    background-color: #dc3545;
}

.custom-toast--info {
    background-color: #17a2b8;
}

.custom-toast--warning {
    background-color: #ffc107;
    color: #212529;
}

/* Текст */
.custom-toast__body {
    flex-grow: 1;
    padding-right: 10px;
}

/* Кнопка закрытия */
.custom-toast__close {
    background: none;
    border: none;
    font-size: 20px;
    color: inherit;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    opacity: 0.8;
}

.custom-toast__close:hover {
    opacity: 1;
}

/* Прогресс-бар (внизу) */
.custom-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Подсветка невалидного поля */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Для чекбокса — подсветка метки */
input[type="checkbox"].is-invalid + label {
    color: #dc3545;
}

/* Или, если чекбокс внутри label — подсветите сам label */
label:has(input[type="checkbox"].is-invalid) {
    color: #dc3545;
}

.filter-loading {
    position: relative;
}

.filter-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    z-index: 10;
}

.filter-loading .filter-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* === Галерея-слайдер (Swiper) === */

.gallery-slider-content {
    padding: 20px 0;
}

.gallery-slider-content .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
}

.gallery-slider-content .swiper-slide img {
    max-width: 100%;
    height: auto; /* ← вместо фиксированной высоты */
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.gallery-slider-content .swiper-slide p {
    margin-top: 12px;
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    max-width: 100%;
    word-break: break-word;
}

/* Переопределение стилей Swiper для кнопок */
.swiper-button-prev,
.swiper-button-next {
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 10 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    color: #8B6B5D !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: white !important;
    color: #8B6B5D !important;
}

.gallery-slider-content .swiper-button-prev {
    left: 16px !important;
}

.gallery-slider-content .swiper-button-next {
    right: 16px !important;
}

/* Адаптивность */
@media (max-width: 767px) {
    .gallery-slider-content .swiper-slide {
        padding: 0 12px;
    }

    .gallery-slider-content .swiper-slide img {
        height: auto;
    }

    .gallery-slider-content .swiper-slide p {
        font-size: 14px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .gallery-slider-content .swiper-button-prev {
        left: 8px !important;
    }

    .gallery-slider-content .swiper-button-next {
        right: 8px !important;
    }
}

@media (max-width: 480px) {
    .gallery-slider-content .swiper-slide img {
        height: auto;
    }

    .gallery-slider-content .swiper-slide p {
        font-size: 13px;
        line-height: 1.3;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .gallery-slider-content .swiper-button-prev {
        left: 4px !important;
    }

    .gallery-slider-content .swiper-button-next {
        right: 4px !important;
    }
}


/* Секция документов */
.document-block {
    margin: 1.5rem 0;
}

.document-card {
    display: flex;
    align-items: center; /* ← вертикальное выравнивание всего содержимого */
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.document-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.document-icon {
    flex-shrink: 0;
    margin-right: 16px;
}

.document-icon img {
    display: block;
    width: 60px;
    height: auto;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}

.document-title a {
    color: #2c3e50;
    text-decoration: none;
}

.document-title a:hover {
    text-decoration: underline;
}

.document-meta {
    color: #666;
    font-size: 14px;
}

/* === Кнопки с иконками === */
.document-actions {
    display: flex;
    gap: 12px; /* меньше отступ на мобильных */
    align-items: center; /* ← выравнивание по вертикали */
    flex-shrink: 0;
    margin-left: auto; /* прижимает кнопки к правому краю */
}

.document-actions .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 14px;
}


/* Цвет иконок — берётся из .my-icon */
.my-icon {
    color: #333;
    stroke: currentColor; /* ← КЛЮЧЕВОЕ: делает stroke = color */
}

/* === Адаптивность === */
@media (max-width: 767px) {
    .document-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .document-icon {
        margin-right: 0;
    }

    .document-actions {
        align-self: stretch;
        justify-content: flex-start;
        margin-left: 0;
    }

    .document-actions .btn {
        flex: 1;
        justify-content: center;
    }
}


/* Секция сертификатов */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.certificates-grid {
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.certificate-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.certificate-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.certificate-info {
    padding: 16px;
    text-align: center;
}

.certificate-info h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #2c3e50;
}

.certificate-date {
    color: #7f8c8d;
    font-size: 0.875rem;
    margin: 0;
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    z-index: 10000;
    display: none;
    padding: 16px;
}

.cookie-content {
    background: rgba(30, 30, 30, 0.85); /* тёмный полупрозрачный */
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    text-align: center; /* выравнивание текста по центру */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
}

/* === Кнопки: flex between === */
.cookie-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cookie-link {
    color: #d4af7a;
    text-decoration: underline;
    font-size: 14px;
    white-space: nowrap;
}

.cookie-link:hover {
    color: #f0e6c8;
}

.cookie-btn {
    background: #8B6B5D;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: #a0846e;
}

/* === Адаптивность === */
@media (max-width: 576px) {
    .cookie-banner {
        width: calc(100% - 24px);
        bottom: 12px;
    }

    .cookie-content {
        padding: 16px;
    }

    .cookie-text {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cookie-link,
    .cookie-btn {
        text-align: center;
        justify-content: center;
    }
}

/* === Страница Контакты === */
.hero-contacts {
    background: #FAFAFA;
    padding: 80px 0 0;
    text-align: center;
}

.hero-contacts h1 {
    font-family: 'Playfair Display', serif;
    color: #333;
    font-size: 36px;
    margin-bottom: 16px;
}

.hero-contacts p {
    font-size: 16px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* Призыв к действию (ваш h2) */
.contact-cta {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #333;
    margin: 60px 0 40px;
    line-height: 1.3;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .hero-contacts {
        padding: 40px 0 0;
    }

    .hero-contacts h1 {
        font-size: 28px;
    }

    .hero-contacts p {
        font-size: 14px;
    }

    .contact-cta {
        font-size: 20px;
        margin: 40px 0 30px;
    }
}

.form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #8B6B5D;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none; /* важно для <a> */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.form-btn:hover {
    background: #E1C4C4;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Иконка */
.default-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
