/* Глобальная отмена рамки фокуса (обводки при клике/фокусе) для всех элементов темы */
*:focus,
*:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* global constraints */
html {
    background-color: #ffffff;
}

body {
    background-color: #f8f9fa; 
    max-width: 1300px;         
    margin: 0 auto;            
    overflow-x: hidden; 
    position: relative;
}

/* header elements */
.logo-icon {
    color: #2d64f3;
    font-size: 32px;
}

.logo-title {
    color: #2d64f3;
    font-size: 18px;
    line-height: 1;
}

.site-logo {
    display: block;
    height: 44px;
    width: auto;
}

.site-logo-footer {
    height: 36px;
}

.header-phone {
    color: inherit;
    text-decoration: none;
}

.header-phone:hover,
.header-phone:focus {
    color: inherit;
    text-decoration: none;
}

/* Хлебные крошки (Rank Math, header.php) — на всех страницах кроме главной,
   разделитель настроен в Rank Math на "/" (Настройки → Общие → Крошки) */
.lecdent-breadcrumbs-wrap {
    padding-top: 14px;
    padding-bottom: 14px;
}

.rank-math-breadcrumb p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.4;
}

.rank-math-breadcrumb a {
    color: #6c757d;
    text-decoration: none !important;
}

.rank-math-breadcrumb a:hover {
    color: #2d64f3;
}

.rank-math-breadcrumb .separator {
    margin: 0 6px;
    color: #c0c7d6;
}

.rank-math-breadcrumb .last {
    color: #1a1a1a;
    font-weight: 600;
}

/* hero section */
.hero-section {
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    padding-bottom: 60px;
}

.hero-title {
    font-size: 48px;
    color: #1a1a1a;
    word-spacing: 5px; 
}

.hero-subtitle {
    font-size: 18px;
    color: #4a4a4a;
    word-spacing: 3px; 
}

/* swiper structural fixes */
.heroSwiper .swiper-slide {
    height: auto !important; 
}

.hero-bg-image {
    top: 0;
    right: 0;
    width: 55%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

/* hero icons styling (transparent background) */
.hero-feature .feature-icon {
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
}

.hero-feature-text {
    overflow-wrap: break-word;
    word-break: break-word;
    min-height: 2.4em;
    display: flex;
    align-items: center;
}

/* floating promo card */
.promo-card {
    position: absolute !important;
    bottom: 120px !important;
    right: 3rem;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 20 !important;
}

/* reviews avatars */
.avatar {
    width: 48px !important; 
    height: 48px !important;
    object-fit: cover !important;
}

.avatar + .avatar {
    margin-left: -15px !important;
}

img.avatar.border {
    border-width: 3px !important;
}

/* advantages banner */
.overlap-block {
    margin-left: -15px;
    margin-right: -15px;
    margin-top: -90px;
    background-color: #ffffff;      
    border-radius: 12px;            
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    position: relative;
    z-index: 10;                    
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;          
    height: 56px;
    background: #f8f9fa;  
    border-radius: 50%;
    flex-shrink: 0; 
    color: #2d64f3;
}

/* results section */
.results-section {
    padding-top: 1rem;
}

/* result card styling */
.result-card {
    background-color: #ffffff;
    border-radius: 12px; 
    border: none; 
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); 
    overflow: hidden; 
}

.result-image-wrapper {
    position: relative;
    overflow: hidden;
}

.result-badge {
    position: absolute;
    bottom: 15px; 
    padding: 4px 10px;
    background-color: rgba(0, 0, 0, 0.6); 
    color: #ffffff; 
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2; 
}

.badge-before {
    left: 15px;
}

.badge-after {
    right: 15px;
}

/* media queries (mobile constraints) */
@media (max-width: 767.98px) {

    .overlap-block {
        margin-top: 15px; 
    }
    
    .hero-title {
        font-size: 26px;
        word-spacing: normal; 
        line-height: 1.2;
        text-align: left;
        margin-bottom: 8px !important;
    }
    
    .hero-subtitle {
        font-size: 14px;
        text-align: left;
        margin-bottom: 12px !important;
    }
    
    .hero-section {
        padding-bottom: 40px !important;
        padding-top: 20px !important;
        text-align: left;
        background-color: #f4f6f9; 
    }

    .hero-content-wrapper {
        background-color: #ffffff;
        padding: 16px 12px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .hero-content-wrapper > .d-flex.flex-column.mb-0 {
        margin-top: auto;
    }

    .mobile-image-wrap {
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        margin-bottom: 12px !important;
    }

    .mobile-image-wrap img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
    }

    .hero-feature {
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-feature .feature-icon svg,
    .hero-feature .feature-icon img {
        width: 26px;
        height: 26px;
    }

    .hero-feature .feature-icon {
        margin-right: 0 !important;
        margin-bottom: 4px !important;
    }

    .hero-feature-text {
        font-size: 11px;
        line-height: 1.1;
        text-align: center;
    }

    .site-logo {
        height: 36px;
    }
    
    .mobile-phone-text {
        font-size: 13px;
    }

    .mobile-btn {
        font-size: 12px;
        padding: 0.4rem 0.6rem !important;
    }
    
    .hero-section .container-fluid {
        z-index: 1;
        padding-left: 10px;
        padding-right: 10px;
    }

    .results-section {
        margin-top: 60px; 
    }
}

/* Tablet styles for overlap block */
@media (min-width: 768px) and (max-width: 991.98px) {
    .overlap-block {
        margin-top: 20px;
    }
    
    .hero-section {
        padding-bottom: 20px;
    }
    
    .features-bar {
        flex-wrap: wrap;
    }
    
    .feature-item {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 20px !important;
    }
}

/* Nav breakpoint configuration */
@media (max-width: 1250px) {
    .desktop-nav-only {
        display: none !important;
    }
    .mobile-menu-trigger {
        display: inline-block !important;
    }
}

@media (min-width: 1251px) {
    .desktop-nav-only {
        display: block !important;
    }
    .mobile-menu-trigger {
        display: none !important;
    }
}

/* --- styles for  --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%; 
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999; 
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-sidebar.open {
    left: 0; 
}

/* header navigation spacing fix */
.header-nav {
    flex-wrap: nowrap !important;
}

.header-nav .nav-link {
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
    white-space: nowrap;
    font-size: 15px;
}

.header-nav .nav-link:hover,
.header-nav .current-menu-item .nav-link {
    font-weight: 500;
}

/* styles for "Как проходит лечение" */
.treatment-section {
    position: relative;
    z-index: 5;
    background-color: #ffffff;
    padding-top: 1rem;
}

.treatment-line {
    position: absolute;
    top: 55px;
    left: 10%;
    right: 10%;
    height: 1px;
    border-top: 1px dashed #cdd8fb;
    z-index: 0;
}

.step-icon-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 15px 35px rgba(45, 100, 243, 0.12), inset 0 0 20px rgba(45, 100, 243, 0.05); 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d64f3;
    z-index: 2;
}

.step-number {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e4eaff; 
    color: #2d64f3;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border: 3px solid #ffffff; 
    box-sizing: content-box;
}

.treatment-step p {
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .treatment-line {
        display: none; 
    }
}

.step-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid #2d64f3; 
    
    -webkit-mask-image: linear-gradient(to right, transparent 20%, black 30%, black 70%, transparent 80%);
    mask-image: linear-gradient(to right, transparent 20%, black 30%, black 70%, transparent 80%);
    z-index: 1;
}

/* step number */
.step-number {
    position: absolute;
    top: -13px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #e4eaff;
    color: #2d64f3;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border: 3px solid #ffffff;
    
    box-sizing: border-box; 
    z-index: 2;
}

@media (min-width: 992px) {
    .treatment-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 55px;
        right: 0; 
        width: 8px;
        height: 8px;
        background-color: #cdd8fb; 
        border-radius: 50%;
        transform: translate(50%, -50%);
        z-index: 1;
    }
}

@media (max-width: 767.98px) {

    .treatment-step p {
        display: none !important;
    }


    .treatment-step {
        margin-bottom: 15px !important; 
        padding-bottom: 0 !important;
    }

    .treatment-step .step-icon-wrapper {
        margin-bottom: 3px !important;
        width: 80px;
        height: 80px;
        box-shadow: 0 8px 20px rgba(45, 100, 243, 0.1);
    }

    .treatment-step .step-icon-wrapper svg {
        width: 32px;
        height: 32px;
    }

    .treatment-step h6 {
        font-size: 15px;
        margin-bottom: 2px !important;
    }

    .step-number {
        top: -12px;
        width: 24px;
        height: 24px;
        font-size: 10px;
        border-width: 2px;
    }

    .treatment-step p {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 0 !important;
    }
}

/* --- Pricing Section --- */
.pricing-section {
    padding-top: 1rem;
    padding-bottom: 60px;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 24px 20px;
    position: relative;
    transition: box-shadow 0.2s ease-in-out;
}

.pricing-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* popular card */
.pricing-card.popular {
    border: 2px solid #2d64f3;
    box-shadow: 0 8px 20px rgba(45, 100, 243, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2d64f3;
    color: #ffffff;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}


.pricing-card.popular .pricing-title {
    color: #2d64f3;
}

.pricing-price {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-price .price-from {
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.pricing-list li {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #2d2d2d;
    margin-bottom: 10px;
    line-height: 1.4;
}

.pricing-list li svg {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: 1px;
    flex-shrink: 0;
    color: #2d64f3;
}

.pricing-img-wrapper.one-tooth {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;           
    width: 50%;               
    max-width: 160px;         
    flex-shrink: 0;
    margin-left: auto;
    overflow: hidden;         
    border-radius: 8px;       
}

.pricing-img-wrapper.four-toothes {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;             
    width: 49%;              
    max-width: 160px;         
    flex-shrink: 0;
    margin-left: auto;
    overflow: hidden;         
    border-radius: 8px;      
}

.pricing-img-wrapper.all-toothes {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;             
    width: 48%;              
    max-width: 160px;         
    flex-shrink: 0;
    margin-left: auto;
    overflow: hidden;        
    border-radius: 8px;       
}

.pricing-img {
    width: 100%;              
    height: 100%;        
    object-fit: cover;     
}

.btn-pricing {
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 0;
    width: 100%;
}

/* Cost Calculator */
.calculator-section {
    padding-top: 1rem;
}

.cost-calculator-tile {
    background: linear-gradient(135deg, #2b5ce6 0%, #5984ef 100%);
    border-radius: 20px;
    padding: 40px 30px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cost-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 15px;
}

.cost-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-cost-calc {
    background-color: #ffffff;
    color: #2b5ce6;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    transition: 0.2s;
}

.btn-cost-calc:hover {
    background-color: #f0f4ff;
    color: #204bc2;
    text-decoration: none;
}

.feature-icon-circle {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #2b5ce6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Добавил легкую тень для объема */
}

.feature-icon-circle svg {
    width: 34px;
    height: 34px;
}

.feature-text {
    font-size: 12px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
    max-width: 130px;
    margin: 0 auto;
}

.doctor-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.doctor-img {
    width: auto;
    height: 140%;
    object-fit: cover;
    transform: scale(1.4);
    object-position: right;
}

@media (max-width: 1199.98px) {
    .doctor-wrapper {
        display: none !important;
    }
}


/* Секция доверие/гарантии/рейтинг */
.trust-section {
    padding-top: 1rem;
}

/* Секция о клинике */
.clinic-info-section {
    padding-top: 1rem;
}

/* Секция контактов и формы */
.contacts-form-section {
    padding-top: 1rem;
}

/* Card Styles */
.trust-card {
    background-color: #ffffff;
    border: none;
    border-radius: 16px; /* Единое скругление для всех плиток */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04); /* Мягкая "воздушная" тень */
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.trust-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); 
    transform: translateY(-2px); 
}


@media (max-width: 767.98px) {
    .trust-stat {
        width: 100%;
        border-bottom: 1px solid #eef2f6;
        padding-bottom: 24px;
        margin-bottom: 24px !important;
    }
    .trust-stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0 !important;
    }
    
    .review-platform {
        width: 100%;
        border-bottom: 1px solid #eef2f6;
        padding-bottom: 20px;
        margin-bottom: 20px !important;
    }
    .review-platform:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0 !important;
    }
}

/* Form Custom Styles */
.custom-input {
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 14px;
    height: auto;
    box-shadow: none;
    transition: border-color 0.2s ease-in-out;
}

.custom-input:focus {
    border-color: #2d64f3;
    box-shadow: 0 0 0 3px rgba(45, 100, 243, 0.1);
}

.custom-btn {
    border-radius: 6px;
    padding: 0.7rem 1rem;
    font-size: 15px;
}

.input-icon-wrapper {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c7d6; 
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; 
}

.custom-input.with-icon {
    padding-left: 38px;
}

.round-checkbox .custom-control-label::before {
    border-radius: 50% !important;
    border: 1.5px solid #adb5bd;
}

.round-checkbox .custom-control-label::after {
    border-radius: 50% !important;
}

/* Footer Styles */
.footer-section {
    border-top: 1px solid #eef2f6 !important;
}

.footer-link {
    font-size: 13px;
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.footer-link:hover {
    color: #2d64f3 !important;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
}

.social-icon.vk { background-color: #2787F5; }
.social-icon.tg { background-color: #039BE5; }
.social-icon.wa { background-color: #25D366; }
.social-icon.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

/* соцсети из настроек темы — сами иконки 32х32, без кружка-подложки */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.social-link img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .footer-patients-col {
        margin-bottom: 2rem !important;
    }
}

/* Архив услуг (archive-services.php) — компоновка карточек по образцу
   dmitrovich.ru/services/, цвета и скругления — по палитре темы (см. .trust-card,
   .step-icon-wrapper: акцент #2d64f3, подложка иконки #e4eaff) */
.services-section {
    padding-top: 1rem;
}

.services-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 20px 24px;
    height: 100%;
    text-decoration: none !important;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.service-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.service-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.service-card-more {
    font-size: 13px;
    color: #6c757d;
}

.service-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #e4eaff;
    color: #2d64f3;
    overflow: hidden;
}

.service-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .service-card {
        padding: 16px 18px;
    }

    .service-card-icon {
        width: 48px;
        height: 48px;
    }
}

/* Страница "Контакты" (template/contacts_tpl.php) — карточки того же визуального языка,
   что .trust-card (белый фон, скругление 16px, мягкая тень), но БЕЗ подъёма при ховере
   (.trust-card:hover двигает карточку — на объединённой инфо-карточке это выглядит как
   "прыжок"), строки email по образцу wp-content/themes/lecardo/templates/template-contacts.php */
.contacts-page-section {
    padding-top: 1rem;
}

.contact-card {
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.contact-phone-value {
    font-size: 24px !important;
}

.contact-email-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
    text-decoration: none !important;
}

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

.contact-email-item:first-child {
    padding-top: 0;
}

.contact-email-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f4ff;
    color: #2d64f3;
}

.contact-email-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.contact-address-note {
    font-size: 12px;
    font-weight: 400;
    color: #6c757d;
}

/* Попапы-формы (template-parts/modals.php, js/modals.js) — затемнённый фон,
   по центру экрана, адаптивные */
.lecdent-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lecdent-modal.is-open {
    display: flex;
}

.lecdent-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.6);
}

.lecdent-modal-dialog {
    position: relative;
    z-index: 1;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
}

.lecdent-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
}

.lecdent-modal-close:hover {
    color: #1a1a1a;
}

.lecdent-modal-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}

body.lecdent-modal-open {
    overflow: hidden;
}

.lecdent-modal-dialog--sm {
    max-width: 380px;
    text-align: center;
}

.lecdent-modal-dialog--video {
    max-width: 860px;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    line-height: 0;
    overflow: hidden;
}

.lecdent-modal-dialog--video video {
    width: 100%;
    max-height: 80vh;
    display: block;
}

.lecdent-video-wrap {
    position: relative;
    width: 100%;
    max-width: 860px;
}

.lecdent-video-wrap .lecdent-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    z-index: 2;
}

/* Сквозная секция "Записаться на приём" (template-parts/appointment-section.php) */
.appointment-section {
    padding-top: 1rem;
}

.appointment-section-label {
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
}

.appointment-section .social-link,
.appointment-section .social-link img {
    width: 40px;
    height: 40px;
}

.appointment-section-phone {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none !important;
}

.appointment-section-phone:hover {
    color: #2d64f3;
}

/* Архив специалистов (archive-specialists.php) — карточки по образцу
   dmitrovich.ru/doctors/, цвета — палитра темы */
.specialists-page-section {
    padding-top: 1rem;
}

.specialists-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialists-filter-btn {
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    color: #4a4a4a;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.specialists-filter-btn:hover {
    border-color: #2d64f3;
    color: #2d64f3;
}

.specialists-filter-btn.is-active {
    background-color: #2d64f3;
    border-color: #2d64f3;
    color: #ffffff;
}

.specialist-card {
    display: block;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    text-decoration: none !important;
    height: 100%;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.specialist-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.specialist-card-photo {
    aspect-ratio: 3 / 4;
    background-color: #eef2f6;
    overflow: hidden;
}

.specialist-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.specialist-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c7d6;
}

.specialist-card-body {
    padding: 18px 20px;
}

.specialist-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.specialist-card-exp {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
}

.specialist-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.specialist-card-tag {
    background-color: #e4eaff;
    color: #2d64f3;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}

/* Переиспользуемые "белые карточки" одиночных страниц (специалист/услуга) —
   единый паттерн вместо дублирования в каждом шаблоне */
.lecdent-card-block {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 24px;
    margin-bottom: 24px;
}

.lecdent-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.lecdent-thumb-button {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background-color: #eef2f6;
    border: none;
    padding: 0;
    cursor: pointer;
}

.lecdent-thumb-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Одиночная страница специалиста (single-specialists.php) — по образцу
   dmitrovich.ru/doctors/, адаптировано под реальные поля специалиста;
   карточки/тег-паттерн — как у .specialist-card, видео-попап — как у
   .review-card-media на странице отзывов */
.specialist-single-section {
    padding-top: 1rem;
}

.specialist-hero-photo {
    border-radius: 12px;
    overflow: hidden;
    background-color: #eef2f6;
}

.specialist-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.specialist-hero-exp {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 14px;
}

.specialist-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.specialist-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialist-hero-content {
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a4a;
}

.lecdent-modal-dialog--video img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

/* Одиночная страница услуги (single-services.php) — по образцу
   dmitrovich.ru/services/implantatsiya/, адаптировано под реальные поля услуги;
   белые карточки/заголовки — .lecdent-card-block/.lecdent-section-title (общие
   с single-specialists.php), карточки врачей — .specialist-card (архив
   специалистов), видео/фото-попап — .review-card-media + js/media-popups.js */
.service-single-section {
    padding-top: 1rem;
}

.service-banner-price {
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 14px;
}

.service-banner-price strong {
    color: #2d64f3;
}

.service-preims-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.service-preims-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #1a1a1a;
}

.service-price-list {
    display: flex;
    flex-direction: column;
}

.service-price-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f6;
}

.service-price-row:last-child {
    border-bottom: none;
}

.service-price-name {
    font-size: 14px;
    color: #1a1a1a;
}

.service-price-value {
    font-size: 14px;
    font-weight: 700;
    color: #2d64f3;
    white-space: nowrap;
}

.service-ba-card {
    display: flex;
    gap: 8px;
}

.service-ba-thumb {
    position: relative;
    flex: 1;
    display: block;
    border: none;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #eef2f6;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.service-ba-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-ba-tag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background-color: rgba(26, 26, 26, 0.65);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
}

/* Страница "Отзывы" (template/reviews_tpl.php) — по образцу lecardodent.ru/otzyvy/,
   цвета/скругления/тень — как у .trust-card */
.reviews-page-section {
    padding-top: 1rem;
}

.review-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 24px;
    margin-bottom: 24px;
}

.review-card-media {
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #eef2f6;
    border: none;
    padding: 0;
    position: relative;
}

.review-card-media video,
.review-card-media img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.review-card-media--video {
    cursor: pointer;
}

.review-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #2d64f3;
    opacity: 0.6;
    transition: transform 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

.review-card-media--video:hover .review-card-play {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
}

.review-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.review-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}

.review-card-date {
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
}

.review-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a4a;
    max-height: 90px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.review-card.is-expanded .review-card-text {
    max-height: var( --lecdent-review-text-height, 1000px );
}

.review-card-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2d64f3;
    cursor: pointer;
}

.review-card-toggle:hover {
    text-decoration: underline;
}

.reviews-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.reviews-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    color: #4a4a4a;
    font-size: 14px;
    text-decoration: none !important;
}

.reviews-pagination-btn:hover {
    border-color: #2d64f3;
    color: #2d64f3;
}

.reviews-pagination-btn.current {
    background-color: #2d64f3;
    border-color: #2d64f3;
    color: #ffffff;
}

.lecdent-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lecdent-form-error {
    font-size: 13px;
    color: #dc3545;
    margin-bottom: 12px;
}

/* Страница "Вопрос-ответ" (template/faq_tpl.php) — аккордеон по образцу
   lecardodent.ru/faq/, цвета — палитра темы (акцент #2d64f3) */
.faq-page-section {
    padding-top: 1rem;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item-question {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 14px;
    padding: 18px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.faq-item-question:focus,
.faq-item-question:focus-visible {
    outline: none;
    box-shadow: none;
}

.faq-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e4eaff;
    color: #2d64f3;
}

.faq-item-text {
    flex-grow: 1;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.faq-item-arrow {
    flex-shrink: 0;
    display: flex;
    color: #6c757d;
    transition: transform 0.2s ease-in-out;
}

.faq-item.is-open .faq-item-arrow {
    transform: rotate(180deg);
    color: #2d64f3;
}

.faq-item-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-in-out;
}

.faq-item.is-open .faq-item-answer {
    max-height: var(--lecdent-faq-answer-height, 1000px);
}

.faq-item-answer-inner {
    padding: 0 20px 20px 66px;
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.6;
}

@media (max-width: 575.98px) {
    .faq-item-answer-inner {
        padding-left: 20px;
    }
}

/* Страница "Цены" (template/ceny_tpl.php) — CPT price + таксономия price_category
   (с подкатегориями). Аккордеон категорий — по образцу .faq-item (см. выше),
   строки позиций — переиспользуют .service-price-list/.service-price-row
   (см. single-services.php), палитра темы (акцент #2d64f3). */
.price-page-section {
    padding-top: 1rem;
}

.price-flat-card {
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 4px 20px;
}

.price-cat-list {
    display: flex;
    flex-direction: column;
}

.price-cat {
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.price-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 14px;
    padding: 18px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.price-cat-header:focus,
.price-cat-header:focus-visible {
    outline: none;
    box-shadow: none;
}

.price-cat-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.price-cat-arrow {
    flex-shrink: 0;
    display: flex;
    color: #6c757d;
    transition: transform 0.2s ease-in-out;
}

.price-cat.is-open > .price-cat-header .price-cat-arrow {
    transform: rotate(180deg);
    color: #2d64f3;
}

/* Сворачивание через grid-template-rows (0fr/1fr), не через max-height с высотой,
   вычисленной в JS — та высота фиксировалась один раз в момент открытия и не умела
   сама подстроиться, когда внутри уже открытой категории потом разворачивался вложенный
   аккордеон подкатегории: контент, идущий ПОСЛЕ неё (собственные позиции родителя),
   обрезался. grid-строка "1fr" пересчитывается браузером сама при любом изменении
   высоты содержимого, включая вложенные аккордеоны — лишней логики в JS не нужно. */
.price-cat-body {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.25s ease-in-out;
}

.price-cat.is-open > .price-cat-body {
    grid-template-rows: 1fr;
}

.price-cat-body-inner {
    min-height: 0;
    overflow: hidden;
}

/* Паддинг — на отдельной обёртке ВНУТРИ .price-cat-body-inner, не на ней самой:
   padding всегда учитывается в минимальном размере бокса и не может сжаться до 0
   вместе с grid-строкой (min-height:0 на него не действует) — иначе в свёрнутом
   состоянии из-под карточки торчала бы полоска высотой с этот padding. */
.price-cat-body-content {
    padding: 0 20px 20px;
}

.price-cat--nested .price-cat-body-content {
    padding: 0 16px 14px;
}

/* Подкатегория — тот же аккордеон, вложенный внутрь родительского, визуально мельче
   и без собственной тени/скругления карточки — чтобы читалось как часть родителя */
.price-cat--nested {
    background-color: #fbfcfe;
    border-color: #eef2f6;
    margin-bottom: 10px;
}

.price-cat--nested .price-cat-header {
    padding: 12px 16px;
}

.price-cat--nested .price-cat-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d64f3;
}

.service-price-value .price-from {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    margin-right: 2px;
}

.lecdent-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background-color: #e4eaff;
    color: #2d64f3;
}

@media (max-width: 575.98px) {
    .lecdent-modal-dialog {
        padding: 24px 20px;
    }

    .lecdent-modal[data-modal="review-video"],
    .lecdent-modal[data-modal="specialist-video"],
    .lecdent-modal[data-modal="specialist-diploma"] {
        padding: 8px;
    }
}

.contact-email-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    word-break: break-word;
}

/* about page (template/about_tpl.php) */
.about-hero-text {
    font-size: 15px;
    line-height: 1.6;
}

.about-hero-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.about-hero-image {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
}

.about-quote-card {
    background-color: #f4f6fb;
    border-radius: 16px;
    padding: 32px;
    position: relative;
}

.about-quote-mark {
    color: #cdd8fb;
    margin-bottom: 12px;
}

.about-quote-text {
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 16px;
}

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

.about-quote-author {
    font-weight: 700;
    color: #1a1a1a;
}

.about-quote-position {
    font-size: 14px;
}

.about-video-wrap {
    border-radius: 16px;
    overflow: hidden;
}

.about-video-wrap video {
    display: block;
    width: 100%;
}

.about-gallery-item {
    display: block;
    text-decoration: none;
}

.about-gallery-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
}

.about-gallery-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
}

.about-license-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    overflow: hidden;
    background: none;
    cursor: pointer;
}

.about-license-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background-color: #ffffff;
}

.about-license-caption {
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

.about-org-info-card {
    border: 1px solid #eef2f6;
    border-radius: 12px;
}

.about-org-info-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
}

.about-org-info-toggle svg {
    flex-shrink: 0;
    color: #2d64f3;
    transition: transform 0.2s ease-in-out;
}

.about-org-info-card.is-open .about-org-info-toggle svg {
    transform: rotate(180deg);
}

.about-org-info-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-in-out;
}

.about-org-info-card.is-open .about-org-info-body {
    max-height: var(--lecdent-orginfo-height, 3000px);
}

.about-org-info-body-inner {
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a4a;
}