/* =============================================================
   HOMEPAGE (front-page.php)
============================================================= */

body.home {
    overflow-x: hidden;
}

/* Container */
.hp-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Shared button */
.hp-btn {
    display: inline-block !important;
    padding: 13px 30px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.02em !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
    align-self: flex-start;
    white-space: nowrap;
}

.hp-btn:hover {
    transform: translateY(-2px);
}

.hp-btn--primary {
    background-color: var(--primary_color) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(241, 70, 36, 0.35);
}

.hp-btn--primary:hover {
    background-color: var(--secondary_color) !important;
    color: #fff !important;
}

/* Section headings */
.hp-stats__title,
.hp-treatments__title,
.hp-how__title,
.hp-team__title,
.hp-clinics__title,
.hp-testimonials__title,
.hp-faq__title {
    text-align: center;
    font-size: clamp(22px, 3vw, 32px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 36px !important;
    color: var(--secondary_color) !important;
}

/* ---- HERO ---- */
.hp-hero {
    background: #F8F9FA;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.hp-hero__inner {
    display: flex;
    align-items: stretch;
    min-height: 659px;
}

.hp-hero__left {
    flex: 0 0 45%;
    max-width: 45%;
    padding: 28px 32px 28px max(20px, calc((100vw - 1360px) / 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.hp-hero__left-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-hero__left-bottom {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hp-hero__slider {
    flex: 1;
    padding: 40px;
    position: relative;
}

.hp-hero__tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 0;
    width: 100%;
}

.hp-hero__tab {
    display: flex !important;
    flex: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
    color: #223645 !important;
    white-space: nowrap;
    text-transform: none !important;
    letter-spacing: 0 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.hp-hero__tab.is-active {
    background: var(--third_color, #0d7200) !important;
    box-shadow: 0 4px 16px rgba(13, 114, 0, 0.5);
    color: #fff !important;
}

.hp-hero__tab-pin {
    display: none !important;
}

.hp-hero__tab-pin svg {
    width: 10px !important;
    height: 10px !important;
    color: var(--primary_color, #f14624);
    display: block !important;
}

.hp-hero__tab.is-active .hp-hero__tab-pin {
    background: rgba(255, 255, 255, 0.25) !important;
}

.hp-hero__tab.is-active .hp-hero__tab-pin svg {
    color: #fff !important;
}

.hp-hero__tab-label {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: inherit !important;
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    white-space: normal;
}

.hp-hero__title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 0;
    color: var(--secondary_color);
}

.hp-hero__subtitle {
    font-style: italic;
    font-size: 13px !important;
    color: #777;
    margin-bottom: 0;
    line-height: 1.55;
}

.hp-hero__para {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 0;
}

.hp-hero__slide {
    display: none;
    position: relative;
}

.hp-hero__slide.is-active {
    display: block;
}

.hp-hero__slide-img {
    width: 100%;
    height: 579px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.hp-hero__slide-card {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    max-width: 340px;
}

.hp-hero__card-flag {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.hp-hero__card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 15px;
    color: #555;
}

.hp-hero__card-info strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary_color);
    margin-bottom: 2px;
}

.hp-hero__dots {
    display: none;
}

.hp-hero__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background .2s, width .2s, height .2s;
}

.hp-hero__dot.is-active {
    width: 14px;
    height: 14px;
    background: var(--third_color, #0d7200);
}

/* ---- STATS ---- */
.hp-stats {
    padding: 60px 0;
    background: #fff;
}

.hp-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-stats__card {
    text-align: center;
    padding: 24px 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    transition: box-shadow .2s;
}

.hp-stats__card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
}

.hp-stats__icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
}

.hp-stats__num {
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: var(--secondary_color) !important;
    margin-bottom: 6px !important;
    letter-spacing: 0 !important;
}

.hp-stats__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ---- ABOUT ---- */
.hp-about {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 60px 0;
    background: #fafafa;
}

.hp-about .hp-container {
    max-width: 100%;
    padding: 0;
}

.hp-about__inner {
    display: flex;
    align-items: stretch;
    min-height: 540px;
    gap: 0;
}

.hp-about__img-wrap {
    flex: 0 0 50%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
}

.hp-about__img-frame {
    flex: 1;
    position: relative;
    min-height: 0;
}

.hp-about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.hp-about__caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary_color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-about__caption-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.hp-about__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px max(30px, calc((100vw - 1360px) / 2)) 60px 60px;
}

.hp-about__title {
    font-size: clamp(22px, 3vw, 34px) !important;
    font-weight: 800 !important;
    color: var(--secondary_color) !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

.hp-about__content p {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ---- CTA ---- */
.hp-cta {
    padding: 60px 0;
    background: #fff3ef;
}

.hp-cta__inner {
    display: flex;
    gap: 60px;
    align-items: center;
}

.hp-cta__left {
    flex: 1;
}

.hp-cta__right {
    flex: 1;
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 32px;
}

.hp-cta__right .nf-fields-required,
.hp-cta__right .nf-form-fields-required {
    display: none !important;
}

.hp-cta__right .nf-form-cont .nf-field-container {
    margin: 0 0 14px !important;
    padding: 0 !important;
}

.hp-cta__right .nf-form-cont .nf-before-field,
.hp-cta__right .nf-form-cont .nf-after-field {
    display: none !important;
}

.hp-cta__right .nf-form-cont .field-wrap {
    margin: 0 !important;
    padding: 0 !important;
}

.hp-cta__right .nf-form-cont .nf-field-label {
    margin: 0 0 4px !important;
    padding: 0 !important;
}

.hp-cta__right .nf-form-cont .nf-field-element {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.hp-cta__right .nf-form-cont .html-wrap p:first-child {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--secondary_color) !important;
    margin-bottom: 6px !important;
}

.hp-cta__right .nf-form-cont .html-wrap p:last-child {
    font-size: 14px !important;
    color: #888 !important;
    margin-bottom: 20px !important;
}

.hp-cta__right .nf-form-content {
    display: block !important;
}

.hp-cta__right .nf-form-content>div,
.hp-cta__right .nf-form-cont .nf-row,
.hp-cta__right .nf-form-cont .nf-cell,
.hp-cta__right .nf-form-cont .nf-field-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: none !important;
}

.hp-cta__right .nf-form-cont .nf-field-element input:not([type=submit]),
.hp-cta__right .nf-form-cont .nf-field-element textarea {
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background: #fafafa !important;
    padding: 12px 16px !important;
    height: auto !important;
    min-height: 48px !important;
    font-size: 15px !important;
    box-shadow: none !important;
}

.hp-cta__right .nf-form-cont .nf-field-element input:not([type=submit]):focus,
.hp-cta__right .nf-form-cont .nf-field-element textarea:focus {
    border-color: var(--primary_color) !important;
    background: #fff !important;
    outline: none !important;
}

.hp-cta__right .nf-form-cont .field-wrap input[type=submit] {
    background: var(--primary_color) !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    height: 52px !important;
    line-height: 1 !important;
    padding: 0 20px !important;
    box-shadow: 0 4px 16px rgba(241, 70, 36, 0.35) !important;
    color: #fff !important;
    width: 100% !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.hp-cta__right .nf-form-cont .field-wrap input[type=submit]:hover {
    background: var(--secondary_color) !important;
}

.hp-cta__right .nf-form-cont .nf-field-label label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--secondary_color) !important;
}

.hp-cta__right .nf-form-cont .nf-field-element .iti {
    width: 100%;
    display: block;
}

.hp-cta__right .nf-form-cont .nf-field-element .iti input {
    width: 100% !important;
    padding-left: 52px !important;
}

.hp-cta__right .iti__flag-container {
    height: 48px;
    display: flex;
    align-items: center;
}

.hp-cta__right .iti__selected-flag {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px 0 12px;
}

.hp-cta__title {
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 800;
    color: var(--secondary_color);
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.25;
}

.hp-cta__para {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.hp-cta__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hp-cta__bullets li {
    padding-left: 28px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    background-image: url('https://drvorobjev.com/wp-content/uploads/2025/05/check-red.svg');
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: left 4px;
}

.hp-cta__bullets li::before {
    content: none !important;
    display: none !important;
}

/* ---- TREATMENTS ---- */
.hp-treatments {
    padding: 60px 0;
    background: #fff;
}

.hp-treatments__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-treatments__card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
    background: #fff;
}

.hp-treatments__card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .13);
}

.hp-treatments__img {
    width: 100%;
    aspect-ratio: 17 / 15;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    margin-bottom: 16px;
}

.hp-treatments__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hp-treatments__name {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--secondary_color) !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
}

.hp-treatments__desc {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    flex: 1;
    margin-bottom: 16px;
}

.hp-treatments__more {
    font-size: 14px;
    font-weight: 700;
    color: var(--third_color, #0d7200);
    margin-top: auto;
}

/* ---- HOW WE TREAT ---- */
.hp-how {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 60px 0;
    background: #fafafa;
}

.hp-how .hp-container {
    max-width: 100%;
    padding: 0;
}

.hp-how__title {
    padding: 0 max(30px, calc((100vw - 1360px) / 2 + 30px));
    margin-bottom: 40px !important;
}

.hp-how__item {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
    min-height: 500px;
}

.hp-how__item--right {
    flex-direction: row-reverse;
}

.hp-how__img-wrap {
    flex: 0 0 50%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    overflow: hidden;
    align-self: flex-start;
}

.hp-how__img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px !important;
    display: block;
}

.hp-how__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px max(30px, calc((100vw - 1360px) / 2 + 30px)) 40px 60px;
}

.hp-how__item--right .hp-how__content {
    padding: 40px 60px 40px max(30px, calc((100vw - 1360px) / 2 + 30px));
}

.hp-how__num {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: var(--primary_color);
    line-height: 1;
    margin-bottom: 4px;
}

.hp-how__item-title {
    font-size: clamp(18px, 1.8vw, 24px) !important;
    font-weight: 800 !important;
    color: var(--secondary_color) !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
}

.hp-how__para {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
}

.hp-how__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hp-how__bullets li {
    padding-left: 28px;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    background-image: url('https://drvorobjev.com/wp-content/uploads/2025/05/check-red.svg');
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: left 4px;
}

.hp-how__bullets li::before {
    content: none !important;
    display: none !important;
}

/* ---- TEAM ---- */
.hp-team {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 60px 0;
    background: #fff;
}

.hp-team .hp-container {
    max-width: 100%;
    padding: 0;
}

.hp-team__title {
    padding: 0 max(30px, calc((100vw - 1360px) / 2 + 30px));
    margin-bottom: 40px !important;
}

.hp-team__owner {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 60px;
    min-height: 540px;
}

.hp-team__owner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px 40px max(30px, calc((100vw - 1360px) / 2 + 30px));
}

.hp-team__owner-name {
    font-size: clamp(20px, 2.2vw, 26px) !important;
    font-weight: 800 !important;
    color: var(--secondary_color) !important;
    margin-bottom: 16px !important;
    line-height: 1.2 !important;
}

.hp-team__owner-bio p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 14px;
}

.hp-team__owner-bio ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hp-team__owner-bio ul li {
    padding-left: 28px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    background-image: url('https://drvorobjev.com/wp-content/uploads/2025/05/check-red.svg');
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: left 4px;
}

.hp-team__owner-bio ul li::before {
    content: none !important;
    display: none !important;
}

.hp-team__owner-img-wrap {
    flex: 0 0 50%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
}

.hp-team__owner-img-frame {
    flex: 1;
    position: relative;
    min-height: 0;
}

.hp-team__owner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.hp-team__owner-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary_color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 32px);
}

.hp-team__badge-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.hp-team__cta {
    padding-left: max(30px, calc((100vw - 1360px) / 2 + 30px));
    padding-right: max(30px, calc((100vw - 1360px) / 2 + 30px));
}

.hp-team__carousel-wrap {
    display: flex;
    align-items: flex-start;
    padding: 0 40px;
    gap: 16px;
}

.hp-team__carousel {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.hp-team__carousel::-webkit-scrollbar {
    display: none;
}

.hp-team__member {
    flex: 0 0 220px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hp-team__member-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 10px;
}

.hp-team__member-role {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary_color);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.hp-team__member-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary_color);
}

.hp-team__arrow {
    flex-shrink: 0;
    margin-top: 108px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary_color);
    border: none;
    box-shadow: 0 4px 12px rgba(241, 70, 36, .35);
    cursor: pointer;
    color: #fff;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    line-height: 1;
}

.hp-team__arrow:hover {
    background: #111;
    color: #fff;
}

.hp-team__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.hp-team__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, width .2s, border-radius .2s;
    flex-shrink: 0;
}

.hp-team__dot.is-active {
    background: var(--primary_color);
    width: 24px;
    border-radius: 4px;
}

.hp-team__cta {
    text-align: center;
    margin-top: 40px;
}

/* ---- CLINICS ---- */
.hp-clinics {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 60px 0;
    background: #fafafa;
}

.hp-clinics .hp-container {
    max-width: 100%;
    padding: 0;
}

.hp-clinics__title {
    padding: 0 40px !important;
}

.hp-clinics__nav {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 40px;
}

.hp-clinics__tab {
    padding: 10px 24px;
    border-radius: 100px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--secondary_color);
    transition: all .2s;
    white-space: nowrap;
    line-height: 1.4;
}

.hp-clinics__tab.is-active {
    background: var(--third_color, #0d7200);
    box-shadow: 0 4px 16px rgba(13, 114, 0, 0.5);
    color: #fff;
}

.hp-clinics__panel {
    display: none;
}

.hp-clinics__panel.is-active {
    display: block;
}

.hp-clinics__main {
    display: flex;
    gap: 0;
    align-items: stretch;
    margin: 0 40px 40px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
}

.hp-clinics__img-wrap {
    flex: 0 0 52%;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hp-clinics__img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.hp-clinics__info {
    flex: 1;
    padding: 40px 48px;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.hp-clinics__info .hp-btn {
    margin-top: auto;
    padding-top: 24px;
    align-self: flex-start;
}

.hp-clinics__name {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--secondary_color);
    margin-top: 0;
    margin-bottom: 4px;
}

.hp-clinics__address {
    font-size: 15px;
    color: #555;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hp-icon-pin {
    width: 18px;
    height: 18px;
    color: var(--primary_color);
    flex-shrink: 0;
}

.hp-clinics__desc {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.hp-clinics__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hp-clinics__bullets li {
    padding-left: 28px;
    font-size: 15px;
    background-image: url('https://drvorobjev.com/wp-content/uploads/2025/05/check-red.svg');
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: left 4px;
    color: #444;
    line-height: 1.5;
}

.hp-clinics__bullets li::before {
    content: none !important;
    display: none !important;
}

.hp-clinics__gallery-wrap {
    padding: 0 40px;
}

.hp-clinics__gallery-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

section.hp-clinics .hp-clinics__garrow,
section.hp-clinics button.hp-clinics__garrow {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 8px !important;
    border: none !important;
    background: #f14624 !important;
    background-color: #f14624 !important;
    box-shadow: 0 4px 12px rgba(241, 70, 36, .35) !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    transition: opacity .2s;
    outline: none !important;
    text-indent: 0 !important;
    font-size: 0 !important;
}

section.hp-clinics .hp-clinics__garrow svg,
section.hp-clinics button.hp-clinics__garrow svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    font-size: initial !important;
}

section.hp-clinics .hp-clinics__garrow:hover {
    opacity: .75 !important;
}

.hp-clinics__gallery {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.hp-clinics__gallery::-webkit-scrollbar {
    display: none;
}

.hp-clinics__glink {
    display: block;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
}

.hp-clinics__glink:hover .hp-clinics__gimg {
    transform: scale(1.04);
}

.hp-clinics__gimg {
    width: 190px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    display: block;
    transition: transform .3s;
    scroll-snap-align: start;
}

/* Gallery dots */
.hp-clinics__gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.hp-clinics__gdot {
    width: 8px !important;
    height: 8px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background: #ddd !important;
    background-color: #ddd !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
    display: block !important;
    line-height: 1 !important;
    font-size: 0 !important;
    color: transparent !important;
}

.hp-clinics__gdot.is-active {
    background: var(--primary_color) !important;
    background-color: var(--primary_color) !important;
    transform: scale(1.25);
}

/* Lightbox */
.hp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.hp-lightbox.is-open {
    display: flex;
}

.hp-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    user-select: none;
}

.hp-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s;
}

.hp-lightbox__close:hover {
    opacity: 1;
}

.hp-lightbox__prev,
.hp-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #f14624;
    border: none;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    transition: opacity .2s;
}

.hp-lightbox__prev:hover,
.hp-lightbox__next:hover {
    opacity: .8;
}

.hp-lightbox__prev {
    left: 16px;
}

.hp-lightbox__next {
    right: 16px;
}

/* Video modal */
.hp-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.hp-video-modal.is-open {
    display: flex;
}

.hp-video-modal__frame {
    width: min(90vw, 960px);
    aspect-ratio: 16/9;
}

.hp-video-modal__frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    border: none;
}

.hp-video-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s;
}

.hp-video-modal__close:hover {
    opacity: 1;
}

/* ---- TESTIMONIALS ---- */
.hp-testimonials {
    padding: 60px 0;
    background: #fff;
}

.hp-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.hp-testimonials__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-testimonials__video-link {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.hp-testimonials__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    transition: transform .3s;
}

.hp-testimonials__video-link:hover .hp-testimonials__thumb {
    transform: scale(1.06);
}

.hp-testimonials__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary_color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-testimonials__play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.hp-testimonials__caption {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary_color);
}

.hp-testimonials__cta {
    text-align: center;
    margin-top: 40px;
}

/* ---- FAQ ---- */
.hp-faq {
    padding: 60px 0;
    background: #fafafa;
}

.hp-faq__list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hp-faq__item {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    overflow: hidden;
}

.hp-faq__question {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    transform: none;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary_color);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.hp-faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary_color);
    color: var(--primary_color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    transition: transform .3s;
    position: relative;
}

.hp-faq__icon::before,
.hp-faq__icon::after {
    content: '';
    position: absolute;
    background: var(--primary_color);
    border-radius: 2px;
}

.hp-faq__icon::before {
    width: 12px;
    height: 2px;
}

.hp-faq__icon::after {
    width: 2px;
    height: 12px;
    transition: transform .3s;
}

.hp-faq__item.is-open .hp-faq__icon::after {
    transform: rotate(90deg);
}

.hp-faq__item.is-open .hp-faq__icon,
.hp-faq__question:hover .hp-faq__icon {
    border-color: #fff;
}

.hp-faq__item.is-open .hp-faq__icon::before,
.hp-faq__item.is-open .hp-faq__icon::after,
.hp-faq__question:hover .hp-faq__icon::before,
.hp-faq__question:hover .hp-faq__icon::after {
    background: #fff;
}

.hp-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.hp-faq__item.is-open .hp-faq__answer {
    max-height: 600px;
}

.hp-faq__answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {

    /* HERO — mobile: title(1) → subtitle(2) → slider(3) → tabs(4) → left-bottom(5) */
    .hp-hero__inner {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .hp-hero__left {
        display: contents;
        /* розпускає wrapper, діти стають прямими flex-дітьми */
    }

    .hp-hero__left-top {
        display: contents;
        /* розпускає wrapper, щоб таби могли стати окремим блоком після слайдера */
    }

    .hp-hero__title {
        order: 1;
        padding: 20px 16px 0;
    }

    .hp-hero__subtitle {
        order: 2;
        padding: 0 16px;
        margin-top: 8px;
    }

    .hp-hero__tabs {
        order: 4;
        padding: 0 16px;
        margin-top: 8px;
        margin-bottom: 0;
    }

    .hp-hero__tab {
        flex: 1 !important;
        width: auto !important;
        justify-content: center !important;
    }

    .hp-hero__slider {
        order: 3;
        flex: unset;
        width: 100%;
        padding: 16px 16px 12px;
    }

    .hp-hero__left-bottom {
        order: 5;
        padding: 28px 16px 24px;
        gap: 14px;
    }

    .hp-hero__slide.is-active {
        display: flex;
        flex-direction: column;
    }

    .hp-hero__slide-img {
        height: 280px;
        border-radius: 12px 12px 0 0;
    }

    .hp-hero__slide-card {
        position: static;
        max-width: 100%;
        bottom: auto;
        left: auto;
        padding: 10px 14px;
        gap: 10px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    }

    /* SECTIONS */
    .hp-stats,
    .hp-about,
    .hp-cta,
    .hp-treatments,
    .hp-how,
    .hp-team,
    .hp-clinics,
    .hp-testimonials,
    .hp-faq {
        padding: 40px 0;
    }

    .hp-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-about__inner {
        flex-direction: column;
        min-height: auto;
        gap: 0;
    }

    .hp-about__text {
        order: 1;
        padding: 32px 20px 28px;
    }

    .hp-about__img-wrap {
        order: 2;
        flex: unset;
        width: 100%;
        height: 320px;
        padding: 0 16px 24px;
    }

    .hp-about__img-frame {
        height: 100%;
    }

    .hp-cta__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .hp-cta__right {
        flex: unset;
        max-width: 100%;
        width: 100%;
        padding: 28px 20px;
    }

    .hp-treatments__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-how__title {
        margin-bottom: 20px !important;
    }

    .hp-how__item {
        flex-direction: column;
        gap: 0;
    }

    .hp-how__item--right {
        flex-direction: column;
    }

    .hp-how__img-wrap {
        padding: 0 16px 16px;
        align-self: auto;
    }

    .hp-how__img {
        aspect-ratio: 16 / 9;
    }

    .hp-how__content,
    .hp-how__item--right .hp-how__content {
        padding: 16px 20px 40px;
    }

    .hp-how__num {
        font-size: 36px;
        margin-bottom: 2px;
    }

    .hp-how__item-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .hp-how__para {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .hp-how__bullets {
        gap: 8px;
    }

    .hp-how__bullets li {
        font-size: 14px;
    }

    .hp-team__title {
        margin-bottom: 20px !important;
    }

    .hp-team__owner {
        flex-direction: column;
        gap: 0;
        min-height: auto;
    }

    .hp-team__owner-img-wrap {
        order: -1;
        flex: unset;
        width: 100%;
        padding: 0 16px 24px;
    }

    .hp-team__owner-img-frame {
        min-height: 280px;
    }

    .hp-team__owner-text {
        padding: 0 20px 16px;
    }

    .hp-team__owner-name {
        font-size: 20px;
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }

    .hp-team__owner-bio p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .hp-team__owner-bio p:first-child {
        margin-top: 0 !important;
    }

    .hp-team__member {
        flex: 0 0 200px;
    }

    .hp-team__cta {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hp-clinics__title {
        padding: 0 16px !important;
    }

    .hp-clinics__nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px;
        gap: 6px;
        margin-bottom: 40px;
    }

    .hp-clinics__tab {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .hp-clinics__main {
        flex-direction: column;
        margin: 0 16px 24px;
    }

    .hp-clinics__img-wrap {
        flex: unset;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .hp-clinics__img {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hp-clinics__info {
        padding: 10px 20px 24px;
    }

    .hp-clinics__gallery-wrap {
        padding: 0 20px;
    }

    section.hp-clinics .hp-clinics__garrow,
    section.hp-clinics button.hp-clinics__garrow {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    .hp-clinics__glink {
        width: 100%;
        flex: 0 0 100%;
    }

    .hp-clinics__gimg {
        width: 100%;
        height: auto;
        aspect-ratio: 190 / 140;
    }

    .hp-team__carousel-wrap {
        padding: 0 16px;
        gap: 10px;
    }

    .hp-team__arrow {
        width: 36px;
        height: 36px;
        margin-top: 112px;
    }
}

@media (max-width: 640px) {

    /* HERO */
    .hp-hero__title {
        padding: 16px 12px 0;
    }

    .hp-hero__subtitle {
        padding: 0 12px;
    }

    .hp-hero__tabs {
        padding: 0 12px;
    }

    .hp-hero__left-bottom {
        padding: 6px 12px 16px;
        gap: 12px;
    }

    .hp-hero__slide-img {
        height: 220px;
    }

    .hp-hero__slide-card {
        padding: 8px 10px;
        gap: 6px;
        max-width: 100%;
        border-radius: 0 0 10px 10px;
    }

    .hp-hero__card-flag {
        width: 22px;
        height: 15px;
    }

    .hp-hero__card-info {
        font-size: 13px;
        gap: 2px;
    }

    .hp-hero__card-info strong {
        font-size: 14px;
    }

    .hp-hero__tabs {
        gap: 5px;
    }

    .hp-hero__tab {
        flex: 1 !important;
        width: auto !important;
        font-size: 12px !important;
        padding: 4px 7px !important;
        gap: 3px !important;
    }

    .hp-hero__tab-label {
        font-size: 12px !important;
    }

    .hp-hero__title {
        font-size: 24px;
    }

    .hp-btn {
        align-self: stretch !important;
        text-align: center !important;
        white-space: normal !important;
        padding: 12px 20px !important;
    }

    /* SECTIONS */
    .hp-stats__grid {
        grid-template-columns: 1fr;
    }

    .hp-treatments__grid {
        grid-template-columns: 1fr;
    }

    .hp-treatments__name {
        font-size: 17px !important;
    }

    .hp-treatments__desc {
        font-size: 13px !important;
    }

    .hp-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .hp-team__owner {
        margin-bottom: 10px;
    }

    .hp-team__member {
        flex: 0 0 100%;
    }

    .hp-team__member-img {
        height: auto;
        aspect-ratio: 220 / 260;
    }

    .hp-team__arrow {
        margin-top: calc((100vw - 124px) * 0.375 - 18px);
    }

    .hp-stats,
    .hp-about,
    .hp-cta,
    .hp-treatments,
    .hp-how,
    .hp-team,
    .hp-clinics,
    .hp-testimonials,
    .hp-faq {
        padding: 32px 0;
    }

    .hp-btn {
        white-space: normal !important;
        align-self: stretch !important;
        text-align: center !important;
    }

    /* CLINICS gallery — відступи як у інших блоків секції, стрілки в окремому ряду під фото.
       Стрілки виведені з flex-потоку (position:absolute) і закріплені знизу обгортки,
       щоб не залежати від flex-wrap/order — надійніше при конфліктах з іншими правилами. */
    .hp-clinics__gallery-wrap {
        padding: 0 20px 44px;
        position: relative;
    }

    .hp-clinics__gallery-row {
        display: block;
    }

    .hp-clinics__gallery {
        width: 100%;
    }

    .hp-clinics__glink,
    .hp-clinics__gimg {
        border-radius: 10px;
    }

    section.hp-clinics .hp-clinics__garrow,
    section.hp-clinics button.hp-clinics__garrow {
        position: absolute !important;
        top: auto !important;
        bottom: 0 !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 8px rgba(241, 70, 36, .3) !important;
    }

    section.hp-clinics .hp-clinics__garrow--prev {
        left: calc(50% - 40px) !important;
        right: auto !important;
    }

    section.hp-clinics .hp-clinics__garrow--next {
        right: calc(50% - 40px) !important;
        left: auto !important;
    }

    section.hp-clinics .hp-clinics__garrow svg,
    section.hp-clinics button.hp-clinics__garrow svg {
        width: 16px !important;
        height: 16px !important;
    }

    .hp-clinics__gallery-dots {
        margin-top: 8px;
    }

    /* LIGHTBOX (повноекранний перегляд фото) — маленькі стрілки під фото, не поверх нього */
    .hp-lightbox {
        padding: 20px 20px 76px;
        box-sizing: border-box;
    }

    .hp-lightbox__img {
        max-width: 100%;
        max-height: 100%;
    }

    .hp-lightbox__prev,
    .hp-lightbox__next {
        top: auto !important;
        bottom: 16px !important;
        transform: none !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 24px !important;
        line-height: 40px !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
    }

    .hp-lightbox__prev {
        left: calc(50% - 52px) !important;
        right: auto !important;
    }

    .hp-lightbox__next {
        right: calc(50% - 52px) !important;
        left: auto !important;
    }

    .hp-lightbox__close {
        top: 10px;
        right: 14px;
    }

    /* TEAM (лікарі) — та сама схема, що й CLINICS: відступи по боках, стрілки під фото */
    .hp-team__carousel-wrap {
        padding: 0 20px 44px;
        position: relative;
    }

    .hp-team__carousel {
        width: 100%;
    }

    .hp-team__arrow {
        position: absolute !important;
        top: auto !important;
        bottom: 0 !important;
        margin-top: 0 !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 8px rgba(241, 70, 36, .3) !important;
    }

    .hp-team__arrow--prev {
        left: calc(50% - 40px) !important;
        right: auto !important;
    }

    .hp-team__arrow--next {
        right: calc(50% - 40px) !important;
        left: auto !important;
    }

    .hp-team__arrow svg {
        width: 16px !important;
        height: 16px !important;
    }

    .hp-team__dots {
        margin-top: 8px;
    }
}