/* Кнопки */
.btn-primary {
    background-color: var(--olive-btn);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--olive-dark);
    transform: translateY(-2px);
}

.btn-consult {
    background-color: var(--olive-btn);
    color: white;
    transition: var(--transition);
}

.btn-consult:hover {
    background-color: var(--olive-dark);
    transform: translateY(-2px);
}

/* Кнопка «Записаться» в карточках консультации */
.btn-consult-sm {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--olive-btn);
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-consult-sm:hover {
    background-color: var(--olive-medium);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Заголовки секций — светлый фон */
.section-title {
    position: relative;
    display: block;
    color: var(--olive-medium);
    text-align: left;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--olive);
    bottom: -10px;
    left: 0;
    transition: var(--transition);
}

.section-title:hover { color: var(--olive-dark); }
.section-title:hover::after { background: var(--olive-medium); width: 100px; }

/* Заголовки секций — тёмный фон */
.section-title-white {
    position: relative;
    display: block;
    color: white;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
}

.section-title-white::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--olive-light);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.section-title-white:hover { color: var(--olive-light); }
.section-title-white:hover::after { background: white; width: 100px; }

@media (max-width: 768px) {
    .section-title,
    .section-title-white {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .section-title::after,
    .section-title-white::after {
        bottom: -5px;
        height: 2px;
    }
}

/* Иконка ДНК в навигации */
.fa-dna { color: var(--olive); }

/* SVG-иконки в карточках услуг */
.service-card-icon { color: var(--olive-dark); }

/* Карточки услуг */
.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--olive);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    will-change: transform, opacity;
}

.service-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card-content {
    display: flex;
    align-items: flex-start;
    height: 100%;
}

.service-card .icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(107, 142, 35, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper { background-color: rgba(107, 142, 35, 0.2); }

.service-text { flex: 1; }

.service-card h5 {
    color: var(--olive-dark);
    font-weight: 600;
    margin: 0;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.service-card li {
    position: relative;
    margin-bottom: 0.5rem;
}

.service-card li:last-child { margin-bottom: 0; }

.services-bg {
    background-image: url('/images/fon33.webp');
    background-size: cover;
}

@media (min-width: 1024px) {
    .service-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .service-card .icon-wrapper {
        margin-bottom: 15px !important;
        margin-right: 0 !important;
    }
    .service-card h5 { margin-top: 10px; }
}

@media (max-width: 1023px) {
    .service-card-content {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    .service-card .icon-wrapper {
        margin-right: 15px !important;
        margin-bottom: 0 !important;
    }
}

/* Карточки в секции «Виды рака и синдромов» */
.types-section {
    background: linear-gradient(to bottom, white, rgba(107, 142, 35, 0.1));
}

.types-card-olive   { border-top: 4px solid var(--olive); }
.types-card-medium  { border-top: 4px solid var(--olive-medium); }

.types-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.types-list li {
    position: relative;
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.types-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: var(--olive);
}

.types-list.medium li::before { background-color: var(--olive-medium); }

.types-list li span { transition: color 0.3s; }
.types-list li span:hover         { color: var(--olive); }
.types-list.medium li span:hover  { color: var(--olive-medium); }

/* Блоки консультации */
.card-header-bg {
    background: linear-gradient(to right, #718547, #5f7a25);
}

.consult-info-box {
    background-color: #f9fafb;
    border-left: 4px solid var(--olive-medium);
    border-radius: 0.5rem;
    padding: 1rem;
}

.disclaimer {
    background-color: var(--olive-light);
    border: 1px solid var(--olive-light-border);
    color: var(--olive-light-text);
    font-size: 0.875rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
}

/* FAQ */
.faq-icon { color: var(--olive); }

.faq-note {
    border-left: 4px solid var(--olive);
    background-color: var(--olive-light);
    color: var(--olive-light-text);
    border-radius: 0.5rem;
    padding: 1.25rem;
}

/* Шаги очной консультации */
.threesteps {
    background-image: url('/images/fon2.webp');
    background-size: cover;
}

.threesteps-card {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--olive);
}

.threesteps-icon-bg {
    background-color: rgba(107, 142, 35, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.threesteps-icon-bg span {
    color: var(--olive);
    font-weight: bold;
}

/* Контактные иконки */
.contact-icon { color: var(--olive); }

/* QR-панель в блоке контактов */
.qr-panel {
    display: flex;
    align-items: center;
    background: rgba(107, 142, 35, 0.04);
    border: 1px solid rgba(107, 142, 35, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 22px;
    gap: 0;
}

.qr-panel__qr {
    flex-shrink: 0;
    background: white;
    border-radius: 7px;
    padding: 6px;
    display: flex;
    align-self: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.qr-panel__qr img {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 2px;
}

.qr-panel__divider {
    width: 1px;
    align-self: stretch;
    background: rgba(107, 142, 35, 0.2);
    margin: 0 15px;
    flex-shrink: 0;
}

.qr-panel__text {
    flex: 1;
    min-width: 0;
}

.qr-panel__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--olive-light-text);
    margin-bottom: 5px;
    line-height: 1.3;
}

.qr-panel__sub {
    font-size: 0.8125rem;
    color: var(--olive-light-text);
    opacity: 0.8;
    line-height: 1.5;
}

.qr-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 15px;
}

.qr-panel__share-wrap {
    position: relative;
}

.qr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 162px;
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none;
    border: 1px solid transparent;
    line-height: 1;
    box-sizing: border-box;
}

.qr-btn i { font-size: 0.875rem; }

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

.qr-btn--primary:hover { background: var(--olive-dark); }

.qr-btn--outline {
    background: white;
    color: var(--olive-medium);
    border-color: rgba(107, 142, 35, 0.3);
}

.qr-btn--outline:hover {
    background: rgba(107, 142, 35, 0.05);
    border-color: rgba(90, 125, 26, 0.45);
}

/* Всплывашка поделиться (в QR-панели) */
.qr-share-popup {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid rgba(107, 142, 35, 0.18);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11);
    padding: 6px 0;
    width: 200px;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.17s ease, transform 0.17s ease, visibility 0s 0.17s;
}

.qr-share-popup--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.17s ease, transform 0.17s ease, visibility 0s;
}

@media (max-width: 1023px) {
    .qr-panel {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }

    .qr-panel__qr { margin: 0 auto; }

    .qr-panel__divider { display: none; }

    .qr-panel__actions {
        margin-left: 0;
        width: 100%;
    }

    .qr-panel__share-wrap { width: 100%; }

    .qr-btn { width: 100%; }
}

/* Слоган */
.slogan-section {
    background-image: url('/images/fon2.webp');
    background-size: cover;
    background-position: center;
}
