/* ============================================================
   Dr. Levchenko — блок «Прозорість / ясність» (index)
   ============================================================ */

.page-index .home-clarity-con {
    overflow: hidden;
}

.page-index .home-clarity-inner {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 52%);
    gap: clamp(32px, 5vw, 88px);
    align-items: center;
    justify-content: space-between;
}

/* --- Візуал: дві фото + декор --- */
.page-index .home-clarity-visual__stage {
    position: relative;
    min-height: 420px;
    padding: 28px 36px 48px 0;
}

.page-index .home-clarity-visual__ring {
    position: absolute;
    top: 8%;
    left: -6%;
    width: clamp(200px, 42%, 280px);
    height: clamp(200px, 42%, 280px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 232, 254, 0.85) 0%, rgba(241, 243, 254, 0) 72%);
    pointer-events: none;
    z-index: 0;
}

.page-index .home-clarity-visual__square {
    position: absolute;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(58, 68, 152, 0.22);
    border-radius: 14px;
    pointer-events: none;
    z-index: 2;
}

.page-index .home-clarity-visual__square--2 {
    bottom: 10%;
    left: 4%;
    width: 38px;
    height: 38px;
    transform: rotate(-12deg);
    border-color: rgba(58, 68, 152, 0.35);
    background: var(--primary--color);
    opacity: 0.12;
}

.page-index .home-clarity-visual__dot-grid {
    position: absolute;
    right: 0;
    bottom: 18%;
    width: 72px;
    height: 72px;
    background-image: radial-gradient(circle, rgba(58, 68, 152, 0.28) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
}

.page-index .home-clarity-visual__photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(26, 26, 46, 0.1);
    z-index: 1;
}

.page-index .home-clarity-visual__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-index .home-clarity-visual__photo--primary {
    width: min(78%, 340px);
    aspect-ratio: 4 / 5;
    margin-left: auto;
}

.page-index .home-clarity-visual__photo--secondary {
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(58%, 240px);
    aspect-ratio: 1 / 1;
    border: 5px solid #fff;
    box-shadow: 0 14px 40px rgba(58, 68, 152, 0.16);
}

/* --- Контент --- */
.page-index .home-clarity-content__card {
    position: relative;
    padding: clamp(28px, 4vw, 44px);
    background: linear-gradient(145deg, #ffffff 0%, #f7f8ff 58%, #eef1fd 100%);
    border-radius: 28px;
    border: 1px solid rgba(58, 68, 152, 0.1);
    box-shadow: 0 24px 60px rgba(58, 68, 152, 0.08);
}

.page-index .home-clarity-content__corner {
    position: absolute;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.page-index .home-clarity-content__corner--tl {
    top: 18px;
    left: 18px;
    border-top: 3px solid var(--primary--color);
    border-left: 3px solid var(--primary--color);
    border-radius: 6px 0 0 0;
    opacity: 0.45;
}

.page-index .home-clarity-content__corner--br {
    right: 18px;
    bottom: 18px;
    border-bottom: 3px solid var(--primary--color);
    border-right: 3px solid var(--primary--color);
    border-radius: 0 0 6px 0;
    opacity: 0.3;
}

.page-index .home-clarity-content__title {
    margin: 0 0 18px;
    font-size: clamp(24px, 2.6vw, 38px);
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--black--family--color2, #1a1a2e);
    font-weight: 700;
}

.page-index .home-clarity-content__lead {
    margin: 0 0 28px;
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.65;
    color: rgba(26, 26, 46, 0.78);
    max-width: 54ch;
}

/* --- Переваги: bento-сітка --- */
.page-index .home-clarity-perks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.page-index .home-clarity-perk {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(58, 68, 152, 0.1);
    box-shadow: 0 6px 20px rgba(58, 68, 152, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-index .home-clarity-perk:nth-child(2) {
    transform: translateY(6px);
}

.page-index .home-clarity-perk:nth-child(3) {
    transform: translateY(-4px);
}

.page-index .home-clarity-perk:hover {
    transform: translateY(-2px);
    border-color: rgba(58, 68, 152, 0.22);
    box-shadow: 0 10px 28px rgba(58, 68, 152, 0.1);
}

.page-index .home-clarity-perk:nth-child(2):hover {
    transform: translateY(4px);
}

.page-index .home-clarity-perk:nth-child(3):hover {
    transform: translateY(-6px);
}

.page-index .home-clarity-perk__mark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary--color) 0%, #5a66b8 100%);
    color: #fff;
    font-size: 13px;
    transform: rotate(-6deg);
    box-shadow: 0 6px 14px rgba(58, 68, 152, 0.28);
}

.page-index .home-clarity-perk:nth-child(even) .home-clarity-perk__mark {
    transform: rotate(6deg);
    border-radius: 50%;
}

.page-index .home-clarity-perk__text {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--black--family--color2, #1a1a2e);
}

.page-index .home-clarity-content__cta {
    min-width: 260px;
}

/* --- Responsive --- */
@media (max-width: 1199.98px) {
    .page-index .home-clarity-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-index .home-clarity-visual__stage {
        max-width: 520px;
        margin: 0 auto;
        padding-right: 24px;
    }

    .page-index .home-clarity-content__card {
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .page-index .home-clarity-visual__stage {
        min-height: 320px;
        padding-right: 12px;
    }

    .page-index .home-clarity-visual__photo--primary {
        width: 72%;
    }

    .page-index .home-clarity-visual__photo--secondary {
        width: 52%;
    }

    .page-index .home-clarity-perks {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-index .home-clarity-perk,
    .page-index .home-clarity-perk:nth-child(2),
    .page-index .home-clarity-perk:nth-child(3) {
        transform: none;
    }

    .page-index .home-clarity-perk:hover,
    .page-index .home-clarity-perk:nth-child(2):hover,
    .page-index .home-clarity-perk:nth-child(3):hover {
        transform: none;
    }

    .page-index .home-clarity-content__cta {
        width: 100%;
        min-width: 0;
        text-align: center;
    }
}
