/* =========================================================
   Detective1 — базовые стили статической копии
   ========================================================= */

@import url('https://fonts.googleapis.com/css?family=Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&subset=cyrillic&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #222;
    background: #f4f4f4;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

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

/* =========================================================
   Топ-бар
   ========================================================= */

#sp-top-bar {
    background: #111;
    color: #fff;
    font-size: 14px;
}

#sp-top-bar .container-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icons {
    list-style: none;
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.social-icons a:hover {
    color: #f68e13;
}

.sp-contact-info {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.sp-contact-info a {
    color: #fff;
    text-decoration: none;
}

.sp-contact-info a:hover {
    color: #f68e13;
}

/* =========================================================
   Шапка / меню
   ========================================================= */

#sp-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

#sp-header .container-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.logo img {
    height: 52px;
    display: block;
}

.sp-megamenu-parent {
    list-style: none;
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.sp-megamenu-parent > li > a {
    display: inline-block;
    padding: 9px 11px;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 999px;
    transition: 0.2s;
}

.sp-megamenu-parent > li > a:hover,
.sp-megamenu-parent > li.active > a {
    background: #a40000;
    color: #fff;
}

#offcanvas-toggler {
    display: none;
}

.burger-icon {
    width: 26px;
    height: 20px;
    position: relative;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #222;
    border-radius: 2px;
}

.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 9px; }
.burger-icon span:nth-child(3) { top: 18px; }

@media (max-width: 1300px) {
    .sp-megamenu-parent {
        display: none !important;
    }

    #offcanvas-toggler {
        display: flex;
    }
}

@media (max-width: 992px) {
    .logo img {
        height: 36px;
    }
}

/* Off-canvas mobile menu */
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 280px;
    background: #fff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -6px 0 24px rgba(0,0,0,0.15);
    overflow-y: auto;
}

.offcanvas-menu.is-open {
    transform: translateX(0);
}

.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    display: none;
}

.offcanvas-overlay.is-open {
    display: block;
}

.offcanvas-menu .close-offcanvas {
    display: block;
    margin: 16px;
    cursor: pointer;
}

.offcanvas-menu ul {
    list-style: none;
    margin: 0;
    padding: 0 16px;
}

.offcanvas-menu ul li a {
    display: block;
    padding: 14px 10px;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.offcanvas-menu ul li.active a {
    color: #a40000;
}

/* =========================================================
   Кнопки
   ========================================================= */

.btn {
    display: inline-block;
    border-radius: 999px;
    padding: 13px 26px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.btn-lg {
    padding: 16px 30px;
    font-size: 18px;
}

.btn-danger {
    background: #a40000;
    border-color: #a40000;
    color: #fff !important;
}

.btn-danger:hover {
    background: #7a0000;
    border-color: #7a0000;
}

.btn-outline-dark {
    background: transparent;
    border-color: #222;
    color: #222 !important;
}

.btn-outline-dark:hover {
    background: #222;
    color: #fff !important;
}

/* =========================================================
   Главная: первый экран
   ========================================================= */

main {
    padding: 40px 0 60px;
}

.d1-hero {
    background: linear-gradient(135deg, #111 0%, #2a0000 100%);
    color: #fff;
    border-radius: 28px;
    padding: 64px 56px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.d1-hero h1 {
    max-width: 900px;
    font-size: 46px;
    line-height: 1.15;
    font-weight: 900;
    color: #fff;
    margin: 0 0 22px;
}

.d1-hero p {
    max-width: 760px;
    font-size: 21px;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    margin-bottom: 32px;
}

.d1-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.d1-hero .btn-outline-dark {
    color: #fff !important;
    border-color: rgba(255,255,255,0.65);
}

.d1-hero .btn-outline-dark:hover {
    background: #fff;
    color: #111 !important;
}

/* =========================================================
   Главная: направления
   ========================================================= */

.d1-directions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 32px;
}

.d1-direction-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    border-top: 5px solid #a40000;
}

.d1-direction-card h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 14px;
}

.d1-direction-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.d1-direction-card a {
    color: #a40000;
    font-weight: 800;
    text-decoration: none;
}

/* =========================================================
   Страница "Как работаем"
   ========================================================= */

.page-header h1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 900;
    margin: 0 0 34px;
    color: #111;
}

.com-content-article__body {
    max-width: 980px;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin: 0 auto;
}

.com-content-article__body h2 {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 850;
    margin-top: 42px;
    margin-bottom: 18px;
    color: #111;
}

.com-content-article__body p {
    margin-bottom: 16px;
}

.com-content-article__body ul {
    margin: 0 0 26px 0;
    padding-left: 24px;
}

.com-content-article__body li {
    margin-bottom: 10px;
}

.d1-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.d1-benefits div {
    background: #fff;
    padding: 18px 20px;
    border-radius: 14px;
    font-weight: 700;
    color: #111;
    border-left: 4px solid #a40000;
}

.d1-benefits div a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.d1-benefits div:hover {
    transform: translateY(-2px);
    transition: 0.2s;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    cursor: pointer;
}

.d1-call {
    margin-top: 50px;
    text-align: center;
    background: linear-gradient(135deg, #111 0%, #2a0000 100%);
    color: #fff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.16);
}

.d1-call h2 {
    color: #fff !important;
    margin-top: 0 !important;
}

.d1-call p {
    color: rgba(255,255,255,0.9);
    max-width: 720px;
    margin: 0 auto 24px;
}

/* =========================================================
   Блок помощи над поиском специалистов
   ========================================================= */

.d1-search-help {
    background: linear-gradient(135deg, #111 0%, #2a0000 100%);
    color: #fff;
    border-radius: 20px;
    padding: 28px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.d1-search-help h3 {
    color: #fff;
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
}

.d1-search-help p {
    margin: 0;
    color: rgba(255,255,255,0.88);
    font-size: 17px;
    line-height: 1.6;
}

.d1-search-help-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
}

.d1-search-help .btn {
    text-align: center;
}

.d1-search-help .btn-outline-dark {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.5);
}

.d1-search-help .btn-outline-dark:hover {
    background: #fff;
    color: #111 !important;
}

/* =========================================================
   Фильтры
   ========================================================= */

.d1-filter-toggle {
    width: 100%;
    margin: 0 0 22px;
    padding: 14px 20px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: none;
}

.d1-filter-toggle:hover {
    background: #a40000;
}

.d1-filter-toggle::before {
    content: "▼ ";
}

.d1-filter-toggle.is-open::before {
    content: "▲ ";
}

@media (max-width: 768px) {
    .d1-filter-toggle {
        display: block;
    }

    .d1-filters-hidden {
        display: none;
    }
}

.jfilters-filters-container {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 26px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
    flex-wrap: wrap;
}

.jfilters-filter-container {
    flex: 1;
    min-width: 220px;
}

.jfilters-filter-header {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: #111;
}

.jfilters-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jfilters-item-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.jfilters-item-link:hover {
    background: #eee;
}

.jfilters-item-link.is-active {
    background: #a40000;
    color: #fff;
}

.jfilters-item-link--clear {
    font-size: 0;
}

.jfilters-item-link--clear::after {
    content: "✕ Сбросить";
    font-size: 14px;
    color: #a40000;
    font-weight: 600;
}

/* =========================================================
   Список специалистов
   ========================================================= */

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

.com-finder__results-list .result__item {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 22px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    border-left: 5px solid #a40000;
}

.d1-finder-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: start;
}

.d1-finder-card__photo img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}

.d1-finder-card__title {
    margin: 0 0 10px;
}

.result__title-link {
    color: #111;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 850;
    text-decoration: none;
}

.result__title-link:hover {
    color: #a40000;
}

.d1-finder-card__speciality {
    margin: -4px 0 12px;
    color: #a40000;
    font-size: 17px;
    font-weight: 800;
}

.d1-finder-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.d1-finder-card__meta span,
.d1-finder-card__badges span {
    background: #f5f5f5;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 14px;
    font-weight: 700;
}

.d1-status--verified {
    background: #a40000 !important;
    color: #fff !important;
}

.d1-status--pending {
    background: #fff3cd !important;
    color: #7a5b00 !important;
}

.d1-status--not-verified {
    background: #eeeeee !important;
    color: #777 !important;
}

.d1-finder-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.result__description {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 16px;
    max-width: 900px;
}

.d1-finder-card__more {
    display: inline-block;
    margin-top: 4px;
    background: #a40000;
    color: #fff !important;
    border-radius: 999px;
    padding: 9px 22px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.d1-finder-card__more:hover {
    background: #111;
}

.com-finder__counter {
    color: #666;
    font-size: 15px;
    margin: 10px 0 0;
}

/* =========================================================
   Полная карточка специалиста
   ========================================================= */

.d1-specialist-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px 38px;
}

.d1-specialist-card__photo img {
    width: 100%;
    max-width: 360px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.16);
    object-fit: cover;
    aspect-ratio: 5/4;
}

.d1-specialist-card__title {
    font-size: 38px;
    line-height: 1.15;
    font-weight: 900;
    margin: 0 0 10px;
    color: #111;
}

.d1-specialist-card__specialization {
    color: #a40000;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.d1-specialist-card__specialty {
    color: #555;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
}

.d1-specialist-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.d1-specialist-card__meta span,
.d1-specialist-badges span {
    background: #f5f5f5;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 700;
}

.d1-specialist-card__meta .is-verified {
    background: #a40000;
    color: #fff;
}

.d1-specialist-card__description {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.d1-specialist-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.d1-specialist-card__actions .btn {
    border-radius: 999px;
    padding: 11px 24px;
    font-weight: 700;
}

.d1-specialist-section {
    grid-column: 1 / -1;
    background: #f7f7f7;
    border-radius: 18px;
    padding: 22px 24px;
}

.d1-specialist-section h2 {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 12px;
    color: #111;
}

.d1-specialist-section p {
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    color: #333;
}

.d1-specialist-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.d1-specialist-notice {
    margin: 18px 0 22px;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 500;
}

.d1-specialist-notice strong {
    font-weight: 850;
}

.d1-specialist-notice--unavailable {
    background: #fff3cd;
    color: #6f5400;
    border-left: 5px solid #d9a300;
}

/* =========================================================
   Форма обращения (модалка)
   ========================================================= */

.eb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.eb-overlay.is-open {
    display: flex;
}

.eb-dialog {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.eb-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.eb-close:hover {
    color: #555;
}

.eb-header {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    padding-right: 20px;
}

.cf-fields p {
    color: #555;
    font-size: 15px;
    margin: 0 0 18px;
}

.cf-control-group {
    margin-bottom: 16px;
}

.cf-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}

.cf-required-label {
    color: #a40000;
}

.cf-input {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
}

textarea.cf-input {
    resize: vertical;
}

.cf-radio-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cf-radio-group .cf-label {
    display: inline;
    font-weight: 400;
}

.cf-btn {
    background: #f54447;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 13px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.cf-btn:hover {
    background: #d9302f;
}

.cf-success-message {
    display: none;
    background: #eafaf1;
    color: #1e7e34;
    padding: 16px 18px;
    border-radius: 10px;
    font-weight: 600;
}

/* =========================================================
   Footer
   ========================================================= */

#sp-footer {
    background: #111;
    color: rgba(255,255,255,0.6);
    padding: 28px 0;
    margin-top: 40px;
    font-size: 14px;
}

#sp-footer .container-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

#sp-footer ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

#sp-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

#sp-footer a:hover {
    color: #fff;
}

/* =========================================================
   Анимации появления при прокрутке
   ========================================================= */

/* Скрываем .reveal-блоки до появления, ТОЛЬКО когда есть JS (класс ставится
   инлайн-скриптом в <head>). Без JS/для краулеров без исполнения скриптов
   контент остаётся видимым по умолчанию — см. head() в generate_site.py. */
html.js-reveal-active .reveal {
    opacity: 0;
    transform: translateY(24px);
}

.reveal {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.d1-directions .reveal:nth-child(2) { transition-delay: 0.08s; }
.d1-directions .reveal:nth-child(3) { transition-delay: 0.16s; }

.com-finder__results-list .reveal { transition-delay: 0s; }

/* Плавный переход при наведении на карточки */
.d1-direction-card,
.d1-finder-card,
.d1-specialist-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.d1-direction-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.12);
}

.com-finder__results-list .result__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* =========================================================
   Стрелка-подсказка "листайте вниз" в hero
   ========================================================= */

.d1-scroll-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 36px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    animation: d1-bounce 1.8s ease-in-out infinite;
}

.d1-scroll-cue:hover {
    background: rgba(255,255,255,0.12);
}

@keyframes d1-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.d1-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 850;
    margin: 56px 0 28px;
    color: #111;
    scroll-margin-top: 100px;
}

/* =========================================================
   Интерактивная карта процесса (journey map)
   ========================================================= */

.d1-journey {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px 26px;
    margin-bottom: 40px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.d1-journey__line {
    position: absolute;
    top: 60px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: repeating-linear-gradient(to right, #a40000 0 10px, transparent 10px 18px);
}

.d1-journey__step {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #222;
    padding: 0 6px;
}

.d1-journey__circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #666;
    margin-bottom: 12px;
    transition: 0.25s;
}

.d1-journey__label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.d1-journey__step:hover .d1-journey__circle {
    border-color: #a40000;
    color: #a40000;
    transform: scale(1.08);
}

.d1-journey__step.is-active .d1-journey__circle {
    background: #a40000;
    border-color: #a40000;
    color: #fff;
    transform: scale(1.1);
}

.d1-journey__step.is-active .d1-journey__label {
    color: #a40000;
}

.d1-step {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .d1-journey {
        flex-wrap: wrap;
        gap: 20px 10px;
        padding: 26px 18px;
    }

    .d1-journey__line {
        display: none;
    }

    .d1-journey__step {
        flex: 1 1 40%;
    }
}

/* =========================================================
   Плавающая кнопка-помощник
   ========================================================= */

.d1-float-help {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #a40000;
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 14px;
    box-shadow: 0 10px 26px rgba(164,0,0,0.35);
    transition: 0.25s;
}

.d1-float-help__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
    animation: d1-pulse 2.2s ease-in-out infinite;
}

.d1-float-help__text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.d1-float-help:hover {
    background: #7a0000;
    transform: translateY(-2px);
}

@keyframes d1-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
    50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

@media (max-width: 576px) {
    .d1-float-help__text {
        display: none;
    }
}

/* =========================================================
   Рейтинг специалиста
   ========================================================= */

.d1-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 12px;
    font-size: 15px;
}

.d1-rating__stars {
    color: #e0a800;
    letter-spacing: 2px;
    font-size: 16px;
}

.d1-rating__value {
    font-weight: 800;
    color: #111;
}

.d1-rating__count {
    color: #777;
    font-size: 13px;
}

/* =========================================================
   Полоса доверия (гарантии)
   ========================================================= */

.d1-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 28px 0 8px;
}

.d1-trust-item {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.d1-trust-item__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.d1-trust-item__title {
    font-weight: 800;
    font-size: 16px;
    color: #111;
    margin-bottom: 4px;
}

.d1-trust-item__text {
    font-size: 14px;
    color: #666;
    line-height: 1.45;
}

/* =========================================================
   Компактная форма "Перезвоните мне"
   ========================================================= */

.cf-quick-form {
    margin-top: 22px;
    max-width: 520px;
}

.cf-quick-form__label {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    margin-bottom: 10px;
}

.cf-quick-form__row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cf-quick-form .cf-input {
    flex: 1;
    min-width: 220px;
    border: none;
    padding: 13px 16px;
    border-radius: 999px;
    font-size: 16px;
}

.cf-quick-form .btn {
    border-radius: 999px;
    white-space: nowrap;
}

.cf-quick-form .cf-success-message {
    margin-top: 4px;
}

/* =========================================================
   FAQ
   ========================================================= */

.d1-faq {
    max-width: 860px;
    margin: 0 auto 40px;
}

.d1-faq-item {
    background: #fff;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.d1-faq-item summary {
    font-weight: 800;
    font-size: 17px;
    color: #111;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.d1-faq-item summary::-webkit-details-marker {
    display: none;
}

.d1-faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: #a40000;
    margin-left: 12px;
    flex-shrink: 0;
}

.d1-faq-item[open] summary::after {
    content: "−";
}

.d1-faq-item p {
    margin: 14px 0 0;
    color: #444;
    font-size: 16px;
    line-height: 1.6;
}

/* =========================================================
   Похожие специалисты
   ========================================================= */

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

.d1-similar-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 22px rgba(0,0,0,0.07);
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.d1-similar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.d1-similar-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.d1-similar-card__body {
    padding: 14px 16px;
}

.d1-similar-card__name {
    font-weight: 800;
    font-size: 16px;
    color: #111;
    margin-bottom: 2px;
}

.d1-similar-card__specialty {
    color: #a40000;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* =========================================================
   Сортировка
   ========================================================= */

.d1-sort-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #333;
}

/* =========================================================
   Блог
   ========================================================= */

.d1-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 20px;
}

.d1-blog-card {
    display: block;
    background: #fff;
    border-radius: 20px;
    padding: 26px 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
    border-top: 5px solid #a40000;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.d1-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.12);
}

.d1-blog-card__category {
    display: inline-block;
    background: #f5f5f5;
    color: #a40000;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.d1-blog-card__title {
    font-size: 20px;
    font-weight: 850;
    color: #111;
    margin: 0 0 10px;
    line-height: 1.3;
}

.d1-blog-card__excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.55;
    margin: 0 0 14px;
}

.d1-blog-card__meta {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

.d1-blog-post__category {
    display: inline-block;
    background: #f5f5f5;
    color: #a40000;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.d1-blog-post__meta {
    color: #888;
    font-size: 15px;
    margin: -14px 0 30px;
}

/* =========================================================
   Мобильная версия
   ========================================================= */

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }

    .com-content-article__body h2 {
        font-size: 24px;
    }

    .d1-hero {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .d1-hero h1 {
        font-size: 32px;
    }

    .d1-hero p {
        font-size: 17px;
    }

    .d1-hero-actions .btn {
        width: 100%;
    }

    .d1-directions {
        grid-template-columns: 1fr;
    }

    .d1-benefits {
        grid-template-columns: 1fr;
    }

    .d1-call {
        padding: 32px 22px;
        border-radius: 20px;
    }

    .d1-search-help {
        display: block;
        padding: 24px;
    }

    .d1-search-help h3 {
        font-size: 24px;
    }

    .d1-search-help-buttons {
        margin-top: 24px;
        min-width: auto;
    }

    .d1-search-help .btn {
        width: 100%;
    }

    .com-finder__results-list .result__item {
        padding: 20px;
        border-radius: 16px;
    }

    .result__title-link {
        font-size: 21px;
    }

    .result__description {
        font-size: 15px;
    }

    .d1-finder-card {
        display: block;
    }

    .d1-finder-card__photo img {
        width: 100%;
        height: auto;
        margin-bottom: 16px;
    }

    .d1-specialist-card {
        display: block;
        padding: 22px;
        border-radius: 18px;
    }

    .d1-specialist-card__photo img {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .d1-specialist-card__title {
        font-size: 30px;
    }

    .d1-specialist-card__actions .btn {
        width: 100%;
        text-align: center;
    }

    .d1-specialist-section {
        margin-top: 16px;
        padding: 20px;
    }

    .jfilters-filters-container {
        display: block;
    }

    .jfilters-filter-container {
        margin-bottom: 20px;
    }

    .d1-trust-strip {
        grid-template-columns: 1fr;
    }

    .d1-similar-grid {
        grid-template-columns: 1fr;
    }

    .d1-blog-grid {
        grid-template-columns: 1fr;
    }

    .cf-quick-form .cf-input {
        min-width: 100%;
    }

    .cf-quick-form .btn {
        width: 100%;
    }
}
