/*
Theme Name: 21Rehab Theme
Theme URI: https://21rehab.ru
Author: App Factory Lab
Author URI: https://appfactorylab.ru
Description: Кастомная тема WordPress для наркологической клиники 21Rehab. Миграция с DLE. SEO-ориентированная архитектура с ACF Pro.
Version: 1.0.4
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
Text Domain: rehab-theme
*/



.section--eeat-meta,
.section--author-box,
.section--contraindications,
.section--sources,
.section--doctor-facts {
    padding: 32px 0;
}

.eeat-meta-card,
.author-box-card,
.contraindications-box,
.sources-box,
.doctor-facts-card {
    background: #fff;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.06);
}

.eeat-meta-card {
    padding: 24px;
}

.eeat-meta-card__top,
.author-box-grid,
.doctor-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.eeat-person {
    display: flex;
    gap: 14px;
    align-items: center;
}

.eeat-person__photo,
.author-box-card__photo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
}

.eeat-person__label,
.author-box-card__role,
.contraindications-box__label {
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #667085;
    margin-bottom: 6px;
}

.eeat-person__name,
.author-box-card__name,
.author-box-card__link {
    font-weight: 700;
}

.eeat-person__position,
.author-box-card__position,
.author-box-card__meta,
.sources-list__note {
    color: #667085;
}

.eeat-meta-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.eeat-stat {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f5f7fa;
    font-size: 14px;
}

.medical-disclaimer {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.author-box-card,
.doctor-facts-card,
.sources-box,
.contraindications-box {
    padding: 24px;
}

.author-box-card {
    display: flex;
    gap: 16px;
}

.author-box-card__content {
    display: grid;
    gap: 6px;
}

.contraindications-box {
    border-color: #fecaca;
    background: #fff7f7;
}

.sources-list,
.doctor-facts-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 12px;
}

@media (max-width: 767px) {

    .eeat-meta-card__top,
    .author-box-grid,
    .doctor-facts-grid,
    .author-box-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .eeat-meta-card,
    .author-box-card,
    .sources-box,
    .contraindications-box,
    .doctor-facts-card {
        padding: 18px;
    }
}



.trust-head {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 24px
}

.trust-license-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 999px;
    text-decoration: none
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px
}

.trust-stat {
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;
    background: #fff
}

.trust-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1.1
}

.trust-stat span {
    display: block;
    margin-top: 6px;
    opacity: .75
}

.archive-head {
    margin-bottom: 28px
}

.section__subtitle {
    max-width: 820px;
    opacity: .8
}

.section--doctors-archive .doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px
}

@media (max-width: 991px) {

    .trust-stats,
    .section--doctors-archive .doctors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (max-width: 640px) {

    .trust-stats,
    .section--doctors-archive .doctors-grid {
        grid-template-columns: 1fr
    }
}


.hotlines-box,
.error-report-box,
.faq-expert-card,
.cookie-notice__inner {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05)
}

.hotlines-box {
    padding: 28px
}

.hotlines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px
}

.hotline-card {
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc
}

.hotline-card__title {
    font-weight: 700;
    margin-bottom: 8px
}

.hotline-card__phone {
    font-size: 20px;
    font-weight: 700
}

.hotline-card__note {
    font-size: 14px;
    color: #5b6470;
    margin-top: 8px
}

.error-report-box {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center
}

.error-report-box__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px
}

.error-report-box__meta {
    font-size: 13px;
    color: #6b7280
}

.faq-expert-card {
    margin-top: 20px;
    padding: 18px;
    display: flex;
    gap: 16px;
    align-items: center
}

.faq-expert-card__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center
}

.faq-expert-card__label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px
}

.faq-expert-card__name {
    font-weight: 700;
    font-size: 18px
}

.faq-expert-card__position {
    font-size: 14px;
    color: #4b5563
}

.trust-licenses-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0
}

.trust-licenses-preview__item {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff
}

.trust-licenses-preview__item img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px
}

.license-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05)
}

.license-card img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover
}

.license-card__title {
    display: block;
    padding: 14px 16px;
    font-weight: 600
}

.cookie-notice {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999
}

.cookie-notice__inner {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center
}

.cookie-notice__text {
    margin: 0;
    font-size: 14px
}

.cookie-notice__btn {
    white-space: nowrap
}

.sticky-cta {
    display: flex;
}

.sticky-cta__btn--accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-weight: 600
}

@media (max-width: 767px) {

    .error-report-box,
    .cookie-notice__inner,
    .faq-expert-card {
        flex-direction: column;
        align-items: flex-start
    }

    .error-report-box__actions {
        align-items: flex-start
    }

    .trust-licenses-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .trust-licenses-preview__item img {
        height: 140px
    }
}