

.organizations-grid {
    margin: 40px 0;
}

.org-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.org-card {
    width: calc(33.333% - 24px); /* 3 в ряд с учётом gap */
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

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

.org-logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
}

.org-title-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.org-title-rating h3 {
    margin: 0;
    font-size: 1.1rem;
}

.org-rating {
    color: #ffb400;
    font-size: 1rem;
    white-space: nowrap;
}

.org-address,
.org-phone,
.org-excerpt {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.org-phone strong {
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 992px) {
    .org-card {
        width: calc(50% - 24px);
    }
}

@media (max-width: 576px) {
    .org-card {
        width: 100%;
    }

    .org-title-rating {
        flex-direction: column;
        align-items: flex-start;
    }

    .org-rating {
        margin-top: 6px;
    }
}







/* page-organizations */
.catalog-page {
    padding: 2rem 0;
}

.catalog-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.catalog-filters {
    width: 240px;
    flex-shrink: 0;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.catalog-results {
    flex: 1;
    min-width: 0;
}

/* Карточки — как раньше */
.org-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 2rem;
}

.org-card {
    width: calc(33.333% - 24px);
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

@media (max-width: 992px) {
    .catalog-filters {
        width: 100%;
        order: 2;
    }
    .catalog-results {
        order: 1;
    }
    .org-card {
        width: calc(50% - 24px);
    }
}

@media (max-width: 576px) {
    .org-card {
        width: 100%;
    }
}

/* Пагинация */
.catalog-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-pagination li a,
.catalog-pagination li span {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
}

.catalog-pagination .current span {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}
/* page-organizations */



/* Single Organization Page */
.single-organization {
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.org-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.org-logo img {
    max-width: 180px;
    height: auto;
    border-radius: 8px;
}

.org-title-info h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    color: #222;
}

.org-rating {
    color: #ffb400;
    font-size: 1.1rem;
}

/* Двухколоночный макет */
.org-content-layout {
    display: flex;
    gap: 2.5rem;
}

.org-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.org-contact-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #eee;
}

.org-contact-item,
.org-schedule {
    margin-bottom: 1rem;
}

.org-contact-item strong,
.org-schedule strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
}

.org-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.btn-primary {
    background: #0073aa;
    color: white;
}
.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}
.btn-secondary:hover {
    background: #e0e0e0;
}

/* Основной контент */
.org-main-content {
    flex: 1;
}

.org-excerpt,
.org-gallery,
.org-full-description {
    margin-bottom: 2.5rem;
}

.org-excerpt h2,
.org-gallery h2,
.org-full-description h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #222;
}

.org-clinic-photo {
    margin-bottom: 2.5rem;
}

.org-clinic-photo h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #222;
}

.org-clinic-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Мобильная адаптация */
@media (max-width: 992px) {
    .org-header {
        flex-direction: column;
        text-align: center;
    }

    .org-content-layout {
        flex-direction: column;
    }

    .org-sidebar {
        width: 100%;
    }
}



.org-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.tab-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #555;
    border-bottom: 2px solid transparent;
}

.tab-link.active,
.tab-link:hover {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}



.reviews-list {
    margin-bottom: 2rem;
}

.review-item {
    padding: 1.2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    background: #fafafa;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.review-date {
    color: #777;
    font-size: 0.9rem;
}

.review-rating {
    color: #ffb400;
    margin-bottom: 0.6rem;
}

.review-text {
    line-height: 1.5;
    color: #333;
}

.review-cta {
    text-align: center;
}




/* Карусель — горизонтальная прокрутка на десктопе */
.org-additional-gallery .gallery-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* плавная прокрутка на iOS */
}

.org-additional-gallery .gallery-carousel > a {
    flex: 0 0 auto;
    width: 200px;
    height: 160px;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.org-additional-gallery .gallery-carousel > a:hover {
    transform: translateY(-4px);
}

.org-additional-gallery .gallery-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Мобильные устройства: скрываем прокрутку, делаем "слайдер" через JS (LightGallery сам управляет) */
@media (max-width: 768px) {
    .org-additional-gallery .gallery-carousel {
        gap: 8px;
    }

    .org-additional-gallery .gallery-carousel > a {
        width: 160px;
        height: 120px;
    }
}

/* Убираем скроллбар (для красоты) */
.org-additional-gallery .gallery-carousel::-webkit-scrollbar {
    display: none;
}
.org-additional-gallery .gallery-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.org-title-link {
    color: inherit;
    text-decoration: none;
}

.org-title-link:hover {
    color: #0073aa;
    text-decoration: underline;
}


/* Стиль таблицы услуг */
.services-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 2rem;
}

.service-row {
    display: contents; /* чтобы div не ломал grid */
}

.service-name,
.service-price {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.service-name {
    font-weight: 500;
    color: #333;
}

.service-price {
    text-align: right;
    color: #0073aa;
    font-weight: 600;
}

/* Адаптивность: на мобильных — одна колонка */
@media (max-width: 768px) {
    .services-table {
        grid-template-columns: 1fr;
    }

    .service-name,
    .service-price {
        text-align: left;
    }

    .service-price {
        margin-top: 4px;
        font-size: 0.95rem;
    }
}

/* Кнопка "Посмотреть все" */
.services-footer {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid #ccc;
    background: transparent;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.btn-outline:hover {
    border-color: #0073aa;
    color: #0073aa;
}




.catalog-filters {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group > label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.search-input {
    display: flex;
    gap: 8px;
}

.search-input input {
    flex: 1;
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: #999;
}

.search-btn:hover svg {
    color: #0073aa;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-outline {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
}

.btn-outline:hover {
    background: #e9ecef;
    border-color: #ccc;
}

/* Убираем стрелку у select на iOS */
.catalog-filters select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 28px;
}