/* ==========================================
   Подключение шрифтов
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;900&display=swap');

/* ==========================================
   Новая премиальная палитра (Medical Concierge)
   ========================================== */
:root {
    --color-gold: #c59b27;
    --color-gold-gradient: linear-gradient(135deg, #dfb961 0%, #f5e3b5 50%, #c59b27 100%);
    --color-bg-champagne: #fcfbf8;
    --color-card-champagne: #f5f2ea;
    --color-dark-accent: #2a2824;
    --color-accent: #194a50;
    /* Сохранили изумрудный для кнопок и градиентов */
    --color-text: #2a2824;
    --color-text-muted: #66635e;
    --color-bg: #ffffff;
    --color-card-bg: #f4f5f4;
    --font-main: 'Montserrat', sans-serif;
}

/* ==========================================
   Базовые стили
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================
   Шапка (Header)
   ========================================== */
.header {
    padding: 24px 0;
    position: relative;
    z-index: 100;
}

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

.header__logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.header__logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.header__menu {
    list-style: none;
    display: flex;
    gap: 48px;
}

.header__menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.header__menu a:hover {
    color: var(--color-accent);
}

.header__burger {
    display: none;
}

/* ==========================================
   Кнопки
   ========================================== */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--color-accent);
    color: #ffffff;
}

.btn--primary:hover {
    background-color: #11363a;
}

.btn--outline {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn--outline:hover {
    background-color: var(--color-accent);
    color: #ffffff;
}

/* ==========================================
   Hero Section (Первый блок)
   ========================================== */
.hero {
    padding: 20px 0 100px;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 30px;
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: clamp(3rem, 3.6vw, 4.2rem);
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__title strong,
.hero__title span {
    color: var(--color-accent);
    font-weight: 500;
    display: inline-block;
}

.hero__description {
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 50px;
    max-width: 95%;
}

.hero__booking-block {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 32px 35px;
    margin-left: 36%;
    width: 111%;
    position: relative;
    z-index: 10;
}

.hero__booking-text {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero__booking-text p {
    margin-bottom: 12px;
}

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

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

.hero__image-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.hero__img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

/* Адаптив Hero и Header */
@media (max-width: 1200px) {
    .hero__booking-block {
        margin-left: 15%;
        width: 110%;
    }

    .header__menu {
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero__booking-block {
        margin-left: 0;
        width: 100%;
        padding: 24px;
    }

    .hero__image-wrapper {
        order: -1;
    }

    .header__burger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 101;
        margin-left: 20px;
    }

    .header__burger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-text);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

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

    .header__burger span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .header__burger span:nth-child(3) {
        bottom: 0;
    }

    .header__nav {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 12px 0;
    }

    .hero {
        padding: 15px 0 0px;
    }

    .hero__title {
        font-size: 1.5rem;
        font-weight: 500;
        margin-bottom: 10px;
    }

    .hero__title strong,
    .hero__title span {
        font-weight: 500;
    }

    .hero__description {
        margin-bottom: 20px;
    }

    .hero__img-element {
        border-radius: 5px;
    }

    .hero__booking-block {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        border-radius: 0;
        padding: 24px 15px;
    }

    .hero__booking-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
/* ==========================================
   Изящное выделение текста (strong, b)
   ========================================== */
strong,
b {
    /* Используем полужирное начертание (600) вместо стандартного жирного (700 или 800). 
       Оно читается легче и выглядит намного аккуратнее. */
    font-weight: 600;

    /* Делаем цвет выделенного текста чуть более глубоким (графитовым), 
       чтобы он красиво контрастировал с основным текстом, но не кричал "черным пятном" */
    color: var(--color-dark-accent, #1A1A1A);
}

/* Дополнительный класс: если где-то в тексте нужно выделить слово фирменным золотым цветом */
strong.text-gold {
    color: var(--color-gold, #D4AF37);
    font-weight: 600;
}

/* ==========================================
   Стилизация стандартной галереи WordPress
   ========================================== */
.journal-single__content .gallery,
.gallery {
    display: grid !important;
    /* На компьютерах 3 колонки, на планшетах 2, на телефонах 1 */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Скрываем стандартные очистки потока WP, чтобы сетка не ломалась */
.gallery br,
.gallery::after,
.gallery::before {
    display: none !important;
}

/* Стилизация карточки фото */
.gallery .gallery-item {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.gallery .gallery-item:hover {
    transform: translateY(-5px);
}

/* Настройки самого изображения */
.gallery .gallery-icon img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    /* Строгая вертикальная пропорция */
    object-fit: cover;
    display: block;
    border: none !important;
}

/* Темный градиент снизу для читаемости текста */
.gallery .gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Стилизация подписи */
.gallery .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 20px;
    margin: 0;
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    /* Поверх градиента */
}

/* Выделение имени хирурга золотым цветом */
.gallery .gallery-caption strong {
    display: block;
    color: var(--color-gold, #C59B27);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
/* ==========================================
   Фикс для ссылок-лайтбоксов в галерее
   ========================================== */
.gallery .gallery-icon a {
    display: block;
    width: 100%;
    height: 100%;
    /* Гарантируем, что клик по картинке сработает поверх градиента */
    position: relative;
    z-index: 3;
}

/* Настраиваем саму картинку внутри ссылки */
.gallery .gallery-icon a img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border: none !important;
}

/* Делаем так, чтобы клик по тексту тоже открывал фото */
.gallery .gallery-caption {
    pointer-events: none;
}

/* Балансирует длину строк в заголовках, избегая висячих слов на новой строке */
h1,
h2,
h3,
h4,
.section-title {
    text-wrap: balance;
}

/* Избегает "вдов" (одиноких слов на последней строке) в обычных абзацах */
p,
li {
    text-wrap: pretty;
}