/* =========================
   THEME TOKENS
   Міняєш тільки цей блок — міняється весь сайт
   ========================= */

:root {
    /* Базові кольори */
    --c-bg: #dde2ea;
    --c-surface: #f5f6fb;
    --c-surface-alt: #ffffff;

    --c-ink: #0f1720;
    --c-muted: #6b7280;

    /* Основний бренд (узгоджено під #8d9ca4) */
    --c-primary: #2f3e46;      /* основна “преміум” кнопка/посилання */
    --c-primary-soft: #8d9ca4; /* alt кнопка (замовник) */
    --c-primary-weak: #e7edf0; /* бейджі/легкі фони */
    --c-accent: #6d8ea0;       /* hover/деталі */

    /* Лінії / бордери */
    --c-border-subtle: rgba(15,23,32,0.10);
    --c-border-soft: rgba(148,163,184,0.32);

    /* Навбар + футер */
    --c-nav-bg: rgba(245,246,251,0.88);
    --c-footer-bg: #f3f4f6;
    --c-footer-ink: #374151;

    /* Hero */
    --c-hero-overlay-top: rgba(8,11,25,0.45);
    --c-hero-overlay-mid: rgba(8,11,25,0.62);
    --c-hero-overlay-bottom: rgba(8,11,25,0.90);

    /* Чіпи, карти, glass */
    --c-chip-bg: rgba(255,255,255,0.90);
    --c-chip-bg-active: var(--c-primary);
    --c-chip-ink-active: #ffffff;

    /* Shadows / radius */
    --radius: 18px;
    --radius-pill: 999px;
    --shadow: 0 10px 36px rgba(5,10,25,0.18);

    --container: clamp(960px, 92vw, 1240px);

    /* АЛІАСИ для старих змінних (щоб нічого не зламати) */
    --bg: var(--c-bg);
    --surface: var(--c-surface);
    --ink: var(--c-ink);
    --muted: var(--c-muted);
    --cta: var(--c-primary);
    --line: var(--c-border-subtle);
}

/* Другa тема — body.class="theme-ocean" */
body.theme-ocean {
    --c-bg: #020617;
    --c-surface: #020617;
    --c-surface-alt: #0b1220;

    --c-ink: #e5e7eb;
    --c-muted: #9ca3af;

    --c-primary: #0284c7;
    --c-primary-soft: #0ea5e9;
    --c-primary-weak: #e0f2fe;
    --c-accent: #38bdf8;

    --c-border-subtle: rgba(148,163,184,0.25);
    --c-border-soft: rgba(30,64,175,0.5);

    --c-nav-bg: rgba(15,23,42,0.9);
    --c-footer-bg: #020617;
    --c-footer-ink: #e5e7eb;

    --c-hero-overlay-top: rgba(15,23,42,0.65);
    --c-hero-overlay-mid: rgba(15,23,42,0.8);
    --c-hero-overlay-bottom: rgba(15,23,42,0.98);

    --c-chip-bg: rgba(15,23,42,0.85);
    --c-chip-bg-active: #e5e7eb;
    --c-chip-ink-active: #020617;

    /* оновлюємо й аліаси */
    --bg: var(--c-bg);
    --surface: var(--c-surface);
    --ink: var(--c-ink);
    --muted: var(--c-muted);
    --cta: var(--c-primary);
    --line: var(--c-border-subtle);
}

/* =========================
   GLOBAL
   ========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: var(--container);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}


.menu {
    display: flex;
    gap: 22px;
    font-size: 14px;
}

.menu a {
    font-weight: 500;
    color: var(--c-muted);
    position: relative;
    padding-bottom: 3px;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--c-primary);
    transition: width .2s ease;
}

.menu a:hover {
    color: var(--c-ink);
}

.menu a:hover::after {
    width: 100%;
}

.menu a.active {
    color: var(--c-ink);
    font-weight: 600;
}

.menu a.active::after {
    width: 100%;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 17px;
    border-radius: 16px;
    background: var(--c-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow);
    transition:
            transform .18s cubic-bezier(.15,.9,.35,1.1),
            box-shadow .18s ease,
            background .18s ease,
            filter .18s ease;
}

.btn:hover {
    transform: translateY(-1px) scale(1.01);
    filter: brightness(1.03);
}

.btn.alt {
    background: var(--c-primary-soft);
    color: #f8f9ff;
}

.btn.ghost {
    background: transparent;
    color: var(--c-ink);
    border: 1px solid var(--c-border-subtle);
    box-shadow: none;
}

.btn .chev {
    transition: transform .18s ease;
}

.btn:hover .chev {
    transform: translateX(4px);
}

/* ===== HERO TYPEWRITER ===== */

.hero-typing {
    position: relative;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .hero-typing {
        white-space: normal;
    }
}

.hero-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 4px;
    background: #ffffff;
    vertical-align: -0.1em;
    animation: hero-caret-blink 1s steps(2, start) infinite;
}

@keyframes hero-caret-blink {
    0%, 45% {
        opacity: 1;
    }
    55%, 100% {
        opacity: 0;
    }
}

/* ===== HERO ===== */

.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
}

/* Фото */
.hero-media img.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Шар з текстом — поверх фото */
.hero-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

/* Затемнення */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            to bottom,
            var(--c-hero-overlay-top) 0%,
            var(--c-hero-overlay-mid) 35%,
            var(--c-hero-overlay-bottom) 100%
    );
}

/* Контейнер з текстом */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

/* Контент */
.hero-content {
    max-width: 560px;
    padding-bottom: 2rem;
    pointer-events: auto;
}

/* Заголовок */
.hero .h1 {
    font-size: clamp(24px, 6vw, 42px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
    animation: none;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Лід */
.hero .lead {
    font-size: clamp(14px, 4vw, 17px);
    color: rgba(255,255,255,0.9);
    margin-bottom: 18px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

/* Кнопки */
.hero .cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* HERO: щоб "ghost" кнопка (Портфоліо) читалась на фото */
.hero .btn.ghost {
    color: rgba(255,255,255,0.92);
    border-color: rgba(255,255,255,0.30);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}
.hero .btn.ghost:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.45);
}

/* Trust badge */
.hero .trust {
    font-size: 13px;
    margin-top: 14px;
    background: rgba(15,23,42,0.65);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 999px;
}

/* Бейдж в hero */
.hero .badge {
    background: rgba(15,23,42,0.6);
    color: #e5e7eb;
    box-shadow: none;
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 999px;
}

/* ========= МОБІЛЬНА АДАПТАЦІЯ HERO ========= */
@media (max-width: 640px) {

    .hero {
        min-height: 80vh;
    }

    .hero-media {
        position: relative;
        height: 80vh;
        overflow: hidden;
    }

    .hero-media img.hero-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .hero-content {
        padding-bottom: 2.5rem;
    }

    .hero-overlay {
        background: linear-gradient(
                to bottom,
                rgba(5,8,20,0.2) 0%,
                rgba(5,8,20,0.35) 25%,
                rgba(5,8,20,0.6) 60%,
                rgba(5,8,20,0.9) 100%
        );
    }
}

/* ========= ПЛАНШЕТИ / ДЕСКТОП HERO ========= */
@media (min-width: 641px) {
    .hero {
        min-height: 90vh;
    }

    .hero-media img.hero-img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center;
    }

    .hero-layer {
        align-items: center;
    }
}

/* ===== Текст і бейджі ===== */
.badge {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--c-primary-weak);
    color: #4c526a;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .7px;
    box-shadow: 0 0 18px rgba(255,255,255,0.7);
}

.badge .dot {
    width: 8px;
    height: 8px;
}

.h1 {
    font-size: clamp(30px, 4.3vw, 52px);
    line-height: 1.12;
    margin: 16px 0 12px;
    letter-spacing: -.6px;
}

.lead {
    color: var(--c-muted);
    font-size: 17px;
    margin: 0 0 22px;
}

.cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trust {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
    color: var(--c-muted);
    font-size: 13px;
    background: rgba(255,255,255,0.7);
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid var(--c-border-subtle);
    backdrop-filter: blur(6px);
}

/* ===== Фотоплейсхолдери ===== */
.ph {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: radial-gradient(
            120% 130% at 0% 0%,
            #fdfdff 0 25%,
            #cfd4e7 55%,
            #a7b1cf 100%
    );
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 22px 60px rgba(18,23,45,0.45);
    transition: transform .4s ease, box-shadow .3s ease, filter .3s ease;
}

/* підпис "Photo" вимкнули для всіх */
.ph::after {
    content: none;
}

.ph-hero {
    aspect-ratio: 4 / 3;
}

.ph-wide {
    aspect-ratio: 16 / 9;
}

.ph-tall {
    aspect-ratio: 3 / 4;
}

.ph-square {
    aspect-ratio: 1 / 1;
}

.ph:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 28px 70px rgba(5,10,30,0.6);
    filter: saturate(1.05);
}

/* Hero-паралакс */
.ph-hero {
    transform-origin: center;
    will-change: transform;
}

/* ===== Секції ===== */
section {
    padding: 64px 0;
}

@media (max-width: 768px) {
    section {
        padding: 46px 0;
    }
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.eyebrow {
    font-weight: 700;
    letter-spacing: .2px;
    color: #6f7599;
    text-transform: uppercase;
    font-size: 12px;
}

.h2 {
    font-size: clamp(22px, 3.1vw, 32px);
    letter-spacing: -.3px;
    margin: 6px 0 4px;
}

.sub {
    color: var(--c-muted);
    max-width: 720px;
    font-size: 14px;
}

/* ===== Сітки/карти ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

@media (max-width: 980px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 56px rgba(10,16,35,0.45);
    border-color: var(--c-primary-weak);
}

.card .body {
    padding: 16px 16px 18px;
}

.kicker {
    font-weight: 600;
    color: #8d93a5;
    font-size: 12px;
    letter-spacing: .2px;
    text-transform: uppercase;
}

.title {
    font-weight: 700;
    font-size: 18px;
    margin: 5px 0 7px;
}

.text {
    color: var(--c-muted);
    font-size: 14px;
}

/* Лікарі */
.team {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

@media (max-width: 980px) {
    .team {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 580px) {
    .team {
        grid-template-columns: 1fr;
    }
}

.doc {
    padding: 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-border-subtle);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.doc:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10,16,35,0.45);
}

/* ==== Аватар лікаря — квадрат з легким заокругленням ==== */

.avatar.ph {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f8;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 6px 16px rgba(20, 30, 50, 0.12);
    transition: transform .25s ease, box-shadow .25s ease;
    clip-path: none;
    mask-image: none;
    -webkit-mask-image: none;
}

.avatar.ph::after {
    content: none;
}

.avatar.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Легкий hover */
.doc:hover .avatar.ph {
    /* можна ввімкнути якщо хочеш трохи zoom:
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 32px rgba(15, 20, 40, 0.22);
    */
}

.doc .name {
    font-weight: 700;
    margin: 10px 0 2px;
}

.doc .role {
    color: var(--c-muted);
    font-size: 13px;
}

/* Портфоліо */
.cases {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

@media (max-width: 980px) {
    .cases {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .cases {
        grid-template-columns: 1fr;
    }
}

.ba {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-border-subtle);
    background: var(--c-surface);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ba:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 52px rgba(10,16,35,0.5);
}

.ba .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ba .cap {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--c-muted);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--c-border-subtle);
    background: rgba(244,245,252,0.9);
    backdrop-filter: blur(10px);
}

/* Відгуки / блог */
.testi {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 20px;
}

@media (max-width: 920px) {
    .testi {
        grid-template-columns: 1fr;
    }
}

.quote {
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--c-border-subtle);
    background: radial-gradient(circle at 0% 0%, #ffffff 0, #edf0ff 52%, #e2e6f5 100%);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.quote::before {
    content: "";
    position: absolute;
    inset: -40px auto auto -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(198,205,255,0));
    opacity: .9;
}

.stars {
    letter-spacing: 2px;
    color: #f6e08f;
    font-size: 18px;
    position: relative;
}

/* Контактний блок */
.cta-box {
    background: radial-gradient(circle at 0% 0%, #ffffff 0, #ecefff 45%, #dde2f5 100%);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 24px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    box-shadow: var(--shadow);
    align-items: center;
}

@media (max-width: 920px) {
    .cta-box {
        grid-template-columns: 1fr;
    }
}

/* Футер */
footer {
    padding: 30px 0;
    border-top: 1px solid var(--c-border-soft);
    color: var(--c-muted);
    font-size: 13px;
    background: var(--c-footer-bg);
}

/* Анімації появи */
.reveal {
    /*opacity: 0;*/
    /*transform: translateY(18px);*/
    /*transition: opacity .7s ease, transform .7s ease;*/
}

.reveal.show {
    /*opacity: 1;*/
    /*transform: none;*/
}

/* Hero blob */
.blob {
    position: absolute;
    inset: auto -120px -180px auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(
            60% 60% at 40% 40%,
            rgba(255,255,255,0.9) 0,
            #cbd0ff 30%,
            #98a1ff 55%,
            rgba(103,115,255,0) 75%
    );
    filter: blur(28px);
    opacity: .6;
    animation: float 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translate(0,0) scale(1);
    }
    50% {
        transform: translate(-10px,-12px) scale(1.02);
    }
    100% {
        transform: translate(4px,-18px) scale(1.03);
    }
}

@keyframes softGlow {
    0% {
        text-shadow:
                0 0 4px rgba(255,255,255,0.5),
                0 0 10px rgba(211,216,255,0.5);
    }
    50% {
        text-shadow:
                0 0 10px rgba(255,255,255,0.95),
                0 0 26px rgba(195,202,255,1),
                0 0 42px rgba(138,149,255,0.9);
    }
    100% {
        text-shadow:
                0 0 6px rgba(255,255,255,0.6),
                0 0 16px rgba(188,196,255,0.7);
    }
}

/* Адаптація */
@media (max-width: 768px) {
    .hero .container {
        gap: 30px;
    }

    .lead {
        font-size: 15px;
    }

    .trust {
        font-size: 12px;
    }

    .cta-box {
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 16px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta {
        flex-direction: column;
    }

    .section-head {
        align-items: flex-start;
    }

    .hide-on-mobile {
        display: none;
    }
}

/* =========================
   HAMBURGER + MOBILE NAV
   ========================= */

/* кнопка закриття */
.close-nav {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 22px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    color: #1d2f6a;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: opacity .16s ease, transform .16s ease;
}

.close-nav:hover {
    transform: scale(1.05);
    opacity: .85;
}

/* затемнення фону */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 800;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* бургер */
.hamburger-container {
    position: relative;
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color .25s ease, box-shadow .25s ease;
}

.hamburger-container:hover {
    background-color: rgba(255,255,255,0.85);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .35s ease-in-out;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2.5px;
    width: 100%;
    border-radius: 2px;
    left: 0;
    opacity: 1;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
    background: #3f4763;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* FULLSCREEN GLASS MENU */
.mobile-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(249,251,255,0.18);
    backdrop-filter: blur(46px) saturate(180%);
    -webkit-backdrop-filter: blur(46px) saturate(180%);
    box-shadow: inset 0 0 140px rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 900;
    transform: translateY(-100%);
    transition: transform .45s cubic-bezier(0.77,0,0.175,1);
}

.mobile-nav.open {
    transform: translateY(0);
    pointer-events: auto;
}

/* список в центрі */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.nav-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .28s ease, transform .28s ease;
}

.mobile-nav.open .nav-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.open .nav-item:nth-child(1) { transition-delay: .05s; }
.mobile-nav.open .nav-item:nth-child(2) { transition-delay: .10s; }
.mobile-nav.open .nav-item:nth-child(3) { transition-delay: .15s; }
.mobile-nav.open .nav-item:nth-child(4) { transition-delay: .20s; }
.mobile-nav.open .nav-item:nth-child(5) { transition-delay: .25s; }
.mobile-nav.open .nav-item:nth-child(6) { transition-delay: .30s; }

.nav-link {
    min-width: 220px;
    padding: 12px 20px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: .03em;
    color: #1f3b73;
    text-shadow: 0 0 22px rgba(255,255,255,0.9);
    transition:
            background-color .2s ease,
            color .2s ease,
            transform .15s ease,
            opacity .15s ease;
}

.nav-link:hover {
    background-color: rgba(71,118,230,0.1);
    transform: translateX(4px);
    opacity: .9;
}

.nav-link.active {
    background: linear-gradient(
            90deg,
            rgba(71,118,230,0.14) 0%,
            rgba(142,84,233,0.14) 100%
    );
    color: #233f9b;
}

/* контент під меню */
body.nav-open main,
body.nav-open header.hero,
body.nav-open section {
    filter: blur(4px);
    opacity: .85;
}

/* показати бургер тільки на мобілці */
@media (max-width: 880px) {
    .desktop-menu {
        display: none;
    }

    .hamburger-container {
        display: flex;
    }
}

/* не даємо сторінці скролитись */
body.nav-open {
    overflow: hidden;
}

/* ===== СЕРВІСИ — ВИРІВНЮВАННЯ ===== */

.grid-3 .card {
    display: flex;
    flex-direction: column;
}

.service-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.service-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.service-price {
    font-weight: 500;
    white-space: nowrap;
}

.service-more-btn {
    padding: 4px 12px;
}

/* ===== SERVICES GRID ALIGNMENT ===== */

.services-grid .service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.services-grid .service-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* щоб текст не розтягував картки по-різному */
.services-grid .service-card-text {
    margin-top: 6px;
    margin-bottom: 12px;
    min-height: 48px;
}

/* футер притиснутий до низу */
.services-grid .service-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.service-price {
    font-weight: 500;
    white-space: nowrap;
    font-size: 14px;
}

.service-price-empty {
    visibility: hidden;
}

.service-more-btn {
    padding: 4px 14px;
    font-size: 14px;
}

/* ===== FILTER CHIPS ===== */

.chips-row {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* базовий вигляд (мобайл / планшет) */
.chip {
    border: none;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--c-chip-bg);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.03);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
}

/* ПК-версія: збільшуємо розмір */
@media (min-width: 1024px) {
    .chip {
        padding: 10px 22px;
        font-size: 15px;
    }
}

.chip:hover {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 6px 18px rgba(15,23,42,0.08);
    transform: translateY(-1px);
}

.chip-active {
    background: var(--c-chip-bg-active);
    color: var(--c-chip-ink-active);
    box-shadow: 0 8px 22px rgba(15,23,42,0.25);
}





/* ===== FORCE LOGO SIZE (override everything) ===== */
.nav .brand img.logo{
  height: 28px !important;
  max-height: 28px !important;
  width: auto !important;
  max-width: 180px !important;
  display: block;
  object-fit: contain;
    font-family: "Plus Jakarta Sans";
}

@media (min-width: 768px){
  .nav .brand img.logo{
    height: 32px !important;
    max-height: 32px !important;
  }
}

@media (max-width: 640px){
  .nav .brand img.logo{
    height: 24px !important;
    max-height: 24px !important;
  }
}
