/* === БАЗОВЫЕ СТИЛИ === */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Lato, sans-serif;
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 50px;
}

:root {
    --bg: #f5f5f5;
    --card: #fff;
    --accent: #1fc602;
    --muted: #9a9a9a;
    --h1-size: 42px;
    --h2-size: 28px;
    --h3-size: 18px;
}


h1,
h2,
h3 {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

.page-title {
    font-size: var(--h1-size);
}

html.modal-open,
body.modal-open {
    overflow: hidden;
    height: 100%;
}


/* Контейнер */
.container {
    padding-left: 40px;
    padding-right: 40px;
    position: relative;
}

/* === ШАПКА === */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg);
    padding: 10px 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-wrapper .header {
    width: auto;
    margin-left: 35px;
    margin-right: 50px;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-left: 50px;
}

.header {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(128, 128, 128, 0.9);
    padding: 10px 30px;
    border-radius: 30px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nav {
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: center;
    /* Это выровняет все элементы (ссылки и див) по одной линии */
    gap: 0;
}

.nav a {
    /* color: #fff; */
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.right-side {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    color: white;
    font-weight: 600;
}

.btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 30px;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100px;
}

.btn:hover {
    background: #148a01;
}

.dropdown {
    position: relative;
    display: flex;
    /* Делаем флексом, чтобы ссылка внутри центрировалась */
    align-items: center;
    height: 100%;
    /* Чтобы область наведения соответствовала высоте шапки */
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    /* Тот самый невидимый зазор между кнопкой и меню */
}

/* Стили выпадающего списка */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(128, 128, 128, 0.95);
    /* Твой цвет фона */
    backdrop-filter: blur(10px);
    min-width: 200px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Состояние "скрыто" */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

/* ГЛАВНОЕ: Появление при наведении */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Стили ссылок внутри меню */
.dropdown-menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px !important;
    /* Твои паддинги */
    font-size: 14px;
    border-radius: 12px;
    display: block;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
    text-align: center;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
    /* Легкий эффект из твоего стиля */
}

/* Опционально: поворот стрелочки (если добавишь её в HTML) */
.dropdown:hover .nav-last {
    background: rgba(255, 255, 255, 0.2);
}

/* Поиск */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box {
    position: absolute;
    right: 45px;
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    outline: none;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

.search-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border: none;
}

.search-icon:hover {
    transform: scale(1.1);
    background: #148a01;
    border-color: rgba(255, 255, 255, 0.4);
}

.search-active .search-box {
    width: 250px;
    opacity: 1;
    visibility: visible;
}

.btn-white {
    padding: 10px 22px;
    border-radius: 25px;
    background: white;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-white:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Основной контент */
.header-content {
    margin-top: 120px;
}

/* === СЕКЦИИ === */
.section {
    margin-top: 40px;
    margin-bottom: 100px;
    position: relative;
}

/* === ВЫРАВНИВАНИЕ КНОПОК С ЗАГОЛОВКАМИ === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.section-header .section-title,
.programs-main-title {
    font-size: 42px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.2;
    flex-shrink: 0;
}

/* Контейнер для кнопок в секциях */
.section-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.section-buttons a.section-btn {
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

/* Кнопки секций */
.section-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    height: fit-content;
    text-decoration: none;
}

.section-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* Стрелочные кнопки */
.arrow-btn {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arrow-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* === НОВОСТИ === */
.news-container {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.news-card a {
    text-decoration: none;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-card .news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    overflow: hidden;
}

.news-card a p.date {
    margin: 8px 10px;
    font-size: 12px;
    color: var(--muted);
    text-align: start;
}

.news-card a p.title {
    margin: 8px 0;
    font-size: 14px;
    /* color: var(--muted); */
    margin: 8px 10px;
    text-align: start;
    text-transform: uppercase;
    color: #585858;
}

.more-news-cards {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.more-news-cards-liener {
    width: 94%;
    height: 1px;
    background-color: #d6d6d6;
    margin: 0 auto;
    /* margin: 0 50px; */

}

/* === ПРОГРАММЫ === */

.programs-grid {
    display: grid;
    grid-template-columns: 540px 1fr;
    gap: 30px;
    margin-top: 70px;
}

.hero-photo img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    object-position: 15% center;
    border-radius: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.hero-photo img:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.programs-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.program-card {
    background: var(--card);
    border-radius: 18px;
    padding: 24px 22px 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

/* ===== ТЕКСТ ===== */

.pc-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    margin-bottom: 12px;
}

.pc-short {
    font-size: 15px;
    line-height: 1.45;
    color: var(--muted);
    margin-bottom: 10px;
}

/* ===== СКРЫТЫЙ БЛОК ===== */

.pc-more {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.program-card.open .pc-more {
    max-height: 500px;
    opacity: 1;
}

.pc-more p {
    margin: 8px 0;
}

/* ===== ЦЕНА ===== */

.pc-price {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 14px 0 16px;
}

.pc-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-details {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 9px 18px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14.5px;
    text-align: center;
    flex: 1;
    text-decoration: none;
}

.btn-details:hover {
    background: var(--accent);
    color: #fff;
}

.price-option {
    display: block;
    margin-top: 2px;
}


/* === ВРАЧИ === */
.doctors-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.doctor-card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 500px;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}


.doctor-card--aladin {
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 500px;
}

.doctor-card--aladin .img-wrapper {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;

    border-radius: 12px;
}

.doctor-card--aladin .img-wrapper img {
    /* width: 100%;
    height: 100%; */
    position: absolute;
    top: 10px;
    left: 0;
}

.doctor-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 10px;
}

.doctor-card h3 {
    font-size: 18px;
    margin: 5px 0;
    color: #222;
}

.doctor-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.doctor-tags span,
.doctor-card--aladin span {
    background: #e0e0e0;
    color: #555;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.doctor-specialty,
.doctor-exp,
.doctor-clinic,
.doctor-price {
    font-size: 14px;
    color: var(--muted);
    margin: 3px 0;
    font-weight: 400;
    /* font-family: Montserrat, sans-serif; */
}

.doctor-clinic {
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.doctor-price {
    text-align: start;
}

.doctor-card .btn,
.doctor-card--aladin .btn {
    margin-top: 15px;
    width: 120px;
    padding: 10px 10px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    line-height: 1.2;
    vertical-align: middle;
}

.doctor-card .btn:hover {
    background: var(--accent);
    color: #fff;
}

/* Контейнер для кнопок врача */
.doctor-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
    width: 100%;
    align-items: center;
}

.doctor-buttons .btn {
    width: 100%;
    padding: 12px 8px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    text-align: center;
    border: 2px solid var(--accent);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Сброс стилей для button */
.doctor-buttons button {
    background: none;
    font: inherit;
    color: inherit;
}

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

.btn-details:hover {
    background: var(--accent);
    color: #fff;
}

.btn-appointment {
    background: var(--accent);
    color: white;
}

.btn-appointment:hover {
    background: #148a01;
    border-color: #148a01;
}

/* === О НАС === */
.section-title {
    margin-top: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.about-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 18px;
    margin-top: -100px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.about-title {
    font-size: 28px;
    font-weight: 700;
    color: #111;
}

.about-details {
    background: #fff;
    padding: 18px 22px;
    border-radius: 14px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-details p {
    margin: 6px 0;
    font-size: 15px;
    color: #333;
}

.about-advantages ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-advantages li {
    position: relative;
    padding-left: 35px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.about-advantages li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
}

/* === ФИЛИАЛЫ === */
.branch-card {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.branch-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.branch-card.active {
    background-color: #e3f2fd;
    border-color: #0ada34;
    border-left: 4px solid #0bc804;
}

.branches-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
}

.branch-search {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.branch-search:focus {
    outline: none;
    border-color: #00e759;
    box-shadow: 0 0 0 2px rgba(38, 222, 1, 0.2);
}

/* === ОТЗЫВЫ === */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.review-card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.stars {
    color: #ff9800;
    font-size: 18px;
}

/* Video Modal Styles */
.modal-video {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content-video {
    position: relative;
    /* background-color: #fefefe; */
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 80%;
    max-width: 850px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); */
    animation-name: animatetop;
    animation-duration: 0.4s;
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.close-video {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: -30px;
    top: -25px;
    cursor: pointer;
    z-index: 1001;
    background-color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.close-video:hover,
.close-video:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.video-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}
#videoPlayer{
    width: 100%;
    height: 480px;
}
.no-video-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.no-video-content {
    text-align: center;
    color: white;
}

.no-video-content p {
    font-size: 24px;
    margin-bottom: 20px;
}

.play-button {
    background-color: #ff5c5c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.play-button:hover:not(:disabled) {
    background-color: #ff3c3c;
}

.play-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.video-container {
    position: relative;
    width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content-video {
        width: 95%;
        margin: 10% auto;
    }

    .close-video {
        right: 10px;
        top: 10px;
    }

    .no-video-content p {
        font-size: 18px;
    }

    .play-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .video-wrapper {
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.review-date {
    font-size: 13px;
    color: var(--muted);
}

.review-author {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.review-text {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-link {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.review-link:hover {
    text-decoration: underline;
}

.review-source {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.review-source img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.reviews-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* === МОДАЛКА ОТЗЫВА === */
.review-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.review-modal.show {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.review-modal-content {
    background: var(--card);
    margin: 60px auto;
    padding: 30px 25px 60px;
    border-radius: 16px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-30px);
    transition: transform 0.4s ease;
}

.review-modal.show .review-modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 30px;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding: 0; */

}

.modal-close:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.modal-author {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.modal-text {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 12px;
    font-size: 14px;
    color: var(--muted);
}

.review-footer .review-source {
    margin-top: 0;
}

.review-footer .review-source img {
    width: 22px;
    height: 22px;
}

.review-footer .review-date {
    font-size: 13px;
    color: var(--muted);
}

.footer {
    background: #fff;
    border-top: 1px solid #eee;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #000;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-links {
    display: flex;
    flex: 1;
    gap: 80px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-column a {
    text-decoration: none;
    color: #000;
    transition: opacity .2s;
}

.footer-column a:hover {
    opacity: 0.7;
}

.footer-widgets {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.widget {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    max-width: 240px;
}

.widget img {
    display: block;
    margin: 0 auto 10px;
    max-height: 80px;
}

.widget p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.widget a {
    color: var(--accent);
    font-weight: 500;
}

.socials {
    display: flex;
    gap: 10px;
    margin-left: -15px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background 0.2s;
}

.socials img {
    width: 30px;
    height: 30px;
}

.socials a:hover {
    background: #f5f5f5;
}

.footer-bottom {
    border-top: 1px solid #eee;
    margin-top: 40px;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 13px;
    color: #555;
}

.footer-access {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.footer-access img {
    width: 18px;
    height: 18px;
}

.doctor-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
    margin-bottom: 15px;
    /* Отступ перед кнопками */
}

.doctor-card-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.doctor-card-link:hover .doctor-card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    padding: 20px;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    padding: 35px 30px;
    width: 500px;
    max-width: 95%;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent);
    color: #fff;
    transform: rotate(90deg);
}

h1 {
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: var(--text);
    padding-right: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#playButtonCenter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 92, 92, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
}
#playButtonCenter span {
    position: relative;
    top: -1px;
    left: 2px;
}

#playButtonCenter:hover {
    background-color: rgba(255, 60, 60, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}



.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    border: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 198, 2, 0.15);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 120px;
    line-height: 1.4;
    border: 2px solid var(--border);
    border-radius: 12px;
}

/* Кастомные селекты для специальностей и врачей */
.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.select-trigger:hover {
    border-color: #ccc;
}

.select-trigger:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 198, 2, 0.15);
}

.select-trigger:after {
    content: "▼";
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.select-trigger.active:after {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--accent);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    /* Убираем скроллбар */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.select-dropdown::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.select-dropdown.active {
    display: block;
}

.select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background: var(--dropdown-hover);
}

.select-option.selected {
    background: rgba(31, 198, 2, 0.1);
    color: var(--accent);
    font-weight: 600;
}

/* Сворачиваемый календарь */
.calendar-toggle {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
}

.searchable-select-container {
    position: relative;
    width: 100%;
}

.searchable-select-container {
    position: relative;
    width: 100%;
}

#doctor-search,
#specialty-search {
    width: 100%;
    padding: 10px;
    /* border: 1px solid #ccc; */
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: white;
}

/* Visually hide the select but keep it accessible for form validation */
#doctor,
#specialty {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
    z-index: -1;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* Custom dropdown styles */
.options-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
}

.options-list li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.options-list li:last-child {
    border-bottom: none;
}

.options-list li:hover {
    background-color: #f5f5f5;
}

.options-list li.selected {
    background-color: #e6f7ff;
}

.options-list li span.highlight {
    background-color: #ffff00;
    font-weight: bold;
}



.calendar-toggle:hover {
    border-color: #ccc;
}

.calendar-toggle:after {
    content: "▼";
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.calendar-toggle.active:after {
    transform: rotate(180deg);
}

.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 2px solid var(--border);
    display: none;
}

.calendar-container.active {
    display: block;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-title {
    font-weight: 700;
    font-size: 18px;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--light-text);
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s;
}

.calendar-nav button:hover {
    background: #f0f0f0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--light-text);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    border: 2px solid transparent;
}

.calendar-day:hover {
    background: #f0f0f0;
}

.calendar-day.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.today {
    border: 2px solid var(--accent);
}

.calendar-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

/* Кнопки Удалить и Сегодня */
.btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 30px;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100px;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
}

.btn:hover {
    background: #148a01;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: var(--light-text);
}

.btn-outline:hover {
    background: #f8f9fa;
}

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

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

/* Чекбокс */
.checkbox-group {
    margin: 10px 0 25px;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    color: #333;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--light-text);
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
    position: relative;
    padding-left: 0;
    width: 100%;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox:hover input~.checkmark {
    border-color: var(--accent);
}

.checkbox input:checked~.checkmark {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox input:checked~.checkmark:after {
    display: block;
}

.checkbox a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
}

.checkbox a:hover {
    border-bottom: 1px solid var(--accent);
}

/* Кнопка отправки */
.btn-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 15px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #148a01;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 198, 2, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(31, 198, 2, 0.2);
}

/* Старая боковая панель справа */
.vision-panel {
    position: static;
    /* Изменяем на static, чтобы избежать фиксированного позиционирования */
    width: 100%;
    max-width: 700px;
    background: #333;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    z-index: 99999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* flex-direction: column; */
    gap: 8px;
    pointer-events: none;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.vision-panel.active {
    position: static;
    /* Также меняем на static для активного состояния */
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    /* Увеличиваем, чтобы показать содержимое */
    pointer-events: auto;
}

.vision-panel * {
    pointer-events: auto;
}

.vision-panel button {
    background: #555;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vision-panel button:hover {
    background: #1fc602;
}

.vision-panel button.active {
    background: #1fc602;
}

#visionClose {
    background: #f00;
    padding: 5px 10px;
    /* align-self: flex-end; */
    font-size: 20px;
}

/* Скрываем .footer-access когда панель активна */
.vision-panel.active~.footer-access,
.vision-panel.active+.footer-access {
    display: none;
}

/* Скрываем кнопку #visionToggle когда панель активна */
.vision-panel.active~#visionToggle {
    display: none;
}

/* Рабочие режимы (текст увеличивается) */
.vision-mode body {
    font-size: 1.5em !important;
    line-height: 1.6 !important;
}

.vision-mode.big {
    font-size: 1.8em !important;
}

.vision-mode.big h2 {
    font-size: 1.8em !important;
}

.vision-mode.big h3 {
    font-size: 1.6em !important;
}

.vision-mode.big p,
.vision-mode.big a {
    font-size: 1.4em !important;
}

.vision-mode.huge {
    font-size: 2.2em !important;
}

.vision-mode.huge h2 {
    font-size: 2.2em !important;
}

.vision-mode.huge h3 {
    font-size: 2.0em !important;
}

.vision-mode.huge p,
.vision-mode.huge a {
    font-size: 1.8em !important;
}


.vision-mode.gray {
    filter: grayscale(100%);
    background: #000 !important;
    color: #fff !important;
}

.vision-mode.gray a {
    color: #fff !important;
    text-decoration: underline !important;
}

.vision-mode.high {
    filter: contrast(2) brightness(1.2) !important;
}

.vision-mode .footer,
.vision-mode .header-wrapper,
.vision-mode .program-card,
.vision-mode .doctor-card,
.vision-mode .doctor-card--aladin,
.vision-mode .branch-card {
    background: transparent !important;
    color: #fff !important;
}

.vision-mode h2,
.vision-mode h3 {
    color: #fff !important;
}

.vision-mode .news-card {
    background: transparent !important;
}

.vision-mode a,
.vision-mode button {
    outline: 3px solid yellow !important;
}

/* Добавьте/обновите в CSS */
/* .vision-mode .vision-panel,
.vision-mode.gray .vision-panel {
    background: #333 !important;
    color: #fff !important;
    filter: none !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    position: static !important; 
    opacity: 1;
    visibility: visible !important;
    max-height: 500px !important;
    margin-top: 10px;
} */

.vision-mode .vision-panel * {
    /* background: transparent !important; */
    /* color: inherit !important; */
    /* outline: none !important; */
    /* font-size: inherit !important; */
}

.vision-mode .vision-panel button {
    background: #555 !important;
    color: #fff !important;
    outline: none !important;
}

.vision-mode .vision-panel button.active {
    background: #1fc602 !important;
    color: #fff !important;
}

.vision-mode .vision-panel button:hover {
    background: #1fc602 !important;
}

#visionClose {
    background: #f00 !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .modal-content {
        padding: 25px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 15px;
    }

    .calendar-day {
        height: 35px;
        font-size: 14px;
    }

    .select-dropdown {
        max-height: 150px;
    }

    .btn {
        width: 90px;
        padding: 8px 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 480px) {
    .header-wrapper {
        position: static !important;
        padding: 10px 0 !important;
        height: auto;
        box-shadow: none;
        /* margin: 0; */
    }

    .header-wrapper .header {
        max-width: 100px;
        margin: 0;
    }

    /* .header {
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 15px !important;
        border-radius: 15px;
}

        gap: 15px;
    } */

    .logo {
        text-align: center;
        margin-bottom: 0;
    }

    .logo img {
        height: 45px;
        margin-left: 0;
    }

    .nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 0;
        width: 100%;
    }

    .nav a {
        padding: 8px 10px !important;
        font-size: 13px;
        text-align: center;
        flex: 1;
        min-width: 80px;
        white-space: nowrap;
    }

    .right-side {
        flex-direction: row !important;
        justify-content: center;
        gap: 15px;
        width: 100% !important;
        align-items: center;
        flex-wrap: wrap;
    }

    .phone {
        font-size: 14px;
        color: white;
        white-space: nowrap;
    }

    .btn {
        width: auto !important;
        padding: 8px 20px !important;
        font-size: 14px;
    }

    .search-wrapper {
        display: none;
    }

    body {
        padding-top: 0 !important;
    }

    .header-content {
        margin-top: 20px;
    }

    .section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 24px !important;
        width: 100% !important;
        line-height: 1.2;
        margin-bottom: 0 !important;
        position: relative;
        z-index: 10;
    }

    .programs-main-title {
        font-size: 24px !important;
    }

    .section-btn {
        width: 100% !important;
        text-align: center;
        padding: 12px 20px !important;
        font-size: 16px;
        margin-top: 0 !important;
    }

    .section-buttons {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .news-container,
    .doctors-container,
    .reviews-container,
    .programs-cards {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .programs-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .news-card,
    .doctor-card,
    .program-card {
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .doctor-card img {
        height: 220px;
        object-position: top center !important;
    }

    .pc-title {
        position: static !important;
        margin: 0 0 15px 0 !important;
        font-size: 18px;
        top: 0 !important;
    }

    .pc-clinic,
    .pc-duration,
    .pc-price,
    .btn-details {
        position: static !important;
        margin-bottom: 12px;
        top: 0 !important;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        margin-top: 0 !important;
        max-height: 220px;
        width: 100%;
    }

    .footer-top {
        flex-direction: column !important;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column !important;
        gap: 30px;
    }

    .footer-column {
        width: 100% !important;
        text-align: center;
    }

    .footer-widgets {
        width: 100% !important;
        align-items: center;
        margin: 0 auto;
    }

    .widget {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    .header-wrapper {
        position: fixed;
        padding: 10px 0 !important;
    }

    .header {
        flex-direction: column !important;
        /* width: 100% !important; */
        max-width: 100px !important;
        margin: 0 !important;
        padding: 15px !important;
        gap: 15px;
    }

    .nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 0;
    }

    .nav a {
        padding: 8px 12px !important;
        font-size: 14px;
    }

    .right-side {
        flex-direction: row !important;
        justify-content: center;
        gap: 15px;
        width: 100% !important;
        flex-wrap: wrap;
    }

    .phone {
        font-size: 15px;
    }

    .btn {
        width: auto !important;
        padding: 10px 20px !important;
    }

    body {
        padding-top: 130px !important;
    }

    .header-content {
        margin-top: 140px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .news-container {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 20px;
    }

    .doctors-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .reviews-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .programs-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .programs-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    @media (max-width: 768px) {
        .programs-cards {
            grid-template-columns: 1fr !important;
        }

        .section-title {
            font-size: 28px !important;
            position: relative;
            z-index: 10;
            margin-bottom: 15px !important;
        }

        .programs-main-title {
            font-size: 28px !important;
        }

        .about-section .section-title {
            background: var(--bg);
            padding: 10px 0;
            margin-bottom: 20px;
        }
    }

    .doctor-card img {
        object-position: top center !important;
        height: 260px;
    }

    .hero-photo img {
        height: 400px;
        object-position: center 25%;
    }

    .footer-top {
        flex-direction: column !important;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column !important;
        gap: 30px;
    }

    .footer-widgets {
        width: 100% !important;
        align-items: center;
    }

    .widget {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }
}

@media (min-width: 481px) and (max-width: 1024px) and (orientation: landscape) {
    .header-wrapper {
        padding: 8px 0 !important;
    }

    .header {
        flex-direction: row !important;
        padding: 12px 20px !important;
        gap: 10px;
    }

    .nav {
        flex-direction: row !important;
        margin-bottom: 0;
        flex-wrap: nowrap;
    }

    .nav a {
        padding: 6px 10px !important;
        font-size: 13px;
    }

    .right-side {
        flex-direction: row !important;
        margin-top: 0;
        flex-wrap: nowrap;
    }

    body {
        padding-top: 100px !important;
    }

    .header-content {
        margin-top: 110px;
    }

    .doctors-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.footer .container {
    overflow: hidden;
    position: relative;
}

.footer-widgets {
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

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

    .branch-map {
        order: -1;
        margin-bottom: 20px;
    }
}

.awards {
    padding: 2rem 0;
    margin: 2rem 0;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.awards-grid .card {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.awards-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.awards-grid .card img {
    width: 100%;
    height: auto;
    /* max-width: 200px; */
    max-height: 200px;
    object-fit: contain;
    /* padding: 1rem; */
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    .awards-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .awards-grid .card img {
        max-width: 150px;
        max-height: 150px;
        padding: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .awards-grid {
        gap: 1rem;
    }

    .awards-grid .card img {
        max-width: 100%;
        max-height: auto;
        padding: 0.5rem;
    }
}

/* BURGER MENU STYLES */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: white;
    transition: all 0.3s linear;
    transform-origin: center;
    border-radius: 2px;
}

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

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

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

.nav-menu {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 0;
}

/* Mobile styles */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        background-color: rgba(128, 128, 128, 0.95);
        width: 100%;
        height: calc(100vh);
        transition: 0.3s;
        padding: 95px 0;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 15px 20px;
        font-size: 16px;
        width: 90%;
        margin: 5px auto;
        border-radius: 10px;
        text-align: center;
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.02);
    }

    .dropdown {
        position: static;
        width: 90%;
        margin: 5px auto;
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-end;

    }

    .dropdown-menu {
        position: static;
        transform: translateX(0);
        transform: none;
        opacity: 1;
        visibility: visible;
        display: block;
        backdrop-filter: none;
        background: rgba(128, 128, 128, 0);
        width: 100%;
        box-shadow: none;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    .header {
        padding: 10px 15px;
    }

    .right-side {
        gap: 10px;
    }

    .phone {
        display: none;
    }

    .btn {
        padding: 6px 15px;
        font-size: 14px;
    }

    .search-wrapper {
        display: none;
    }

    .search-wrapper.mobile-search {
        display: flex;
        position: static;
        width: 100%;
        margin: 10px auto;
    }

    .search-wrapper.mobile-search .search-box {
        position: static;
        width: 90%;
        opacity: 1;
        visibility: visible;
    }
}

.right-side--mobile {
    display: none;
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .nav-menu a {
        padding: 12px 15px;
        font-size: 15px;
    }

}

/* Small tablet and mobile styles */
@media (max-width: 768px) {
    .header-wrapper {
        padding: 10px 15px;
        z-index: 1000;
        /* max-width: 200px; */
    }

    .right-side--mobile {
        display: flex;
    }

    .logo img {
        height: 50px;
        margin-left: 10px;
    }

    .right-side {
        gap: 8px;
        display: none;
    }

    right-side--mobile {
        display: flex;
    }

    .btn {
        padding: 5px 12px;
        font-size: 13px;
        width: auto;
    }

}

.nav-site {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    margin-bottom: 50px;
    /* max-width: 235px; */
    /* width: auto; */
    gap: 10px;
    /* height: 50px; */
    /* gap: 20px; */

}

.nav-site a {
    font-size: 18px;
    font-weight: 400;
    font-family: Montserrat, sans-serif;
    color: var(--accent);
    text-decoration: none;
    font-size: .85em;
    /* height: 10px; */
    /* margin-right: 30px; */
}

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

.nav-site p {
    color: rgb(102, 102, 102);
    font-family: Montserrat, sans-serif;
    font-size: .85em;
    font-weight: 500;
    padding: 0;
    /* height: 10px; */
    /* color: var(--accent); */
}

.nav-site span {
    /* height: 11px; */
    position: relative;
    top: -2px;
}

.nav-site p:hover {
    color: var(--accent-hover);
}

.footer-left--copy {
    max-width: 250px;
    width: 100%;
}

.footer_added--info {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    max-width: 314px;
    width: 100%;
    font-weight: 600;
    color: #5c5c5c;
}

.footer-policy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-policy a {
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-decoration: none;
}

.footer-policy a:hover {
    opacity: .7;
}

.footer-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-map a {
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-decoration: none;
}

.footer-map a:hover {
    opacity: .7;
}


/* Стили для ссылки */
.mrt-link--wrapper {
    position: fixed;
    top: 155px;
    right: -111px;
    rotate: 90deg;
    height: 70px;
    /* Синий цвет */
    /* outline: 1px solid red; */

    /* Убираем подчеркивание */

    /* Плавное изменение цвета */

}

.mrt-link--wrapper a {
    position: relative;
    top: 70px;
    background-color: var(--accent);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    /* Скругление углов */

    transition: all 0.3s ease;
}

/* Эффект при наведении */
.mrt-link--wrapper:hover a {
    bottom: 40px;
}

@media screen and (max-width: 1200px) {

    /* .mrt-link--wrapper {
        bottom: 40px;
        right: 5px;
    } */
    .mrt-link--wrapper a {
        /* top: 100px; */
    }
}

/* Стилизация поля даты */
input[type="date"] {
    width: 100%;
    padding: 12px;
    /* border: 1px solid #ddd; */
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

input[type="date"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Убираем стандартные стрелки в Chrome/Safari */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

/* Для Firefox */
input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
}

select {
    width: 100%;
    padding: 12px 15px;
    /* border: 1px solid #ddd; */
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    transition: border-color 0.3s;
}

select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

select:invalid {
    color: #666;
}

select option {
    padding: 10px;
    font-size: 14px;
}

.technical_work {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    height: 60vh;
}

.technical_work h2 {
    font-size: 30px;
    font-weight: 700;

}

.technical_work a {
    color: var(--accent);
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    font-family: Montserrat, "sans-serif";
    transition: all 0.3s ease-in-out;
    border-bottom: 2px solid var(--accent);
}



.video-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-container .video-card {
    background: var(--card);
    border-radius: 16px;
    /* padding: 20px; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;

    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    border: 1px solid #d7d7d7;

    overflow: hidden;
}

.video-container .video-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);

}

.video-container .video-card iframe {
    width: 100%;
    /* height: auto; */
    object-fit: cover;
    border-radius: 8px;
}


.video-container .video-card p {
    font-size: 18px;
    font-weight: 500;

    text-align: center;
    color: #000;
    padding: 0 10px;
}

.video-container .video-card a {
    /* width: 360px; */
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;

}

.video-container .video-card a:hover {
    text-decoration: none;
    color: var(--accent);
}

.open-video-modal{
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    .nav-site {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-site span {
        font-size: 1.5rem;
        rotate: 90deg;
        margin-left: 20px;
    }

    .video-container {
        grid-template-columns: repeat(1, 1fr);

    }
}