/* ===== Василь Лесик — хірург-ендокринолог ===== */
:root {
    --navy: #0b1f4d;
    --navy2: #12306b;
    --blue: #1b57e6;
    --blue2: #3b82f6;
    --sky: #d9e8fc;
    --sky2: #e6effc;
    --line: #c9d9f1;
    --text: #26354f;
    --muted: #5d6f8f;
    --white: #fff;
    /* Фон сторінок: ледь блакитний; секції-смуги трохи насиченіші */
    --bg: #e9f1fd;
    --bg-band: #dde9fb;
    --bg-band2: #d4e3f8;
    --radius: 18px;
    --shadow: 0 8px 30px rgba(20,60,140,.08);
    --max: 1120px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Manrope','Segoe UI',Roboto,Arial,sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}
h1, h2, h3 {
    color: var(--navy);
    line-height: 1.2;
    font-weight: 800;
}
h1 {
    font-size: clamp(32px,5vw,58px);
}
h2 {
    font-size: clamp(26px,3.4vw,38px);
    margin-bottom: 14px;
}
h3 {
    font-size: clamp(19px,2vw,23px);
}
p {
    color: var(--text);
}
.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}
.ico {
    width: 26px;
    height: 26px;
    display: inline-block;
    vertical-align: middle;
}
.skip {
    position: absolute;
    left: -999px;
}
.skip:focus {
    left: 10px;
    top: 10px;
    background: #fff;
    padding: 8px 14px;
    z-index: 100;
}
/* ---------- header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(213,229,253,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.15;
}
/* Повний логотип в шапці (img/logo-full.png, прозорий фон, пропорція ≈ 3:1) */
.brand img {
    height: 58px;
    width: auto;
}
.nav ul {
    display: flex;
    gap: 30px;
}
.nav a {
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: .2s;
}
.nav a:hover, .nav a.active {
    border-color: var(--blue);
    color: var(--blue);
}
.nav .nav-cta {
    display: none;
}
/* Посилання на Телеграм-канал у шапці: іконка + текст (на телефоні лишається тільки іконка) */
.header-tg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--navy);
}
.header-tg img {
    width: 22px;
    height: 22px;
}

/* Кнопка-бургер мобільного меню (показується лише ≤860px) */
.burger {
    display: none;
    background: var(--sky);
    border: 0;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    cursor: pointer;
}
.burger {
    background: linear-gradient(180deg,#fff,#dbe8fc);
    border: 2px solid #fff;
    border-radius: 15px;
    width: 48px;
    height: 48px;
    box-shadow: 0 6px 16px rgba(31,85,232,.2);
    transition: .25s;
    place-items: center;
}
.burger .bars {
    position: relative;
    width: 22px;
    height: 16px;
    display: block;
}
.burger .bars i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.6px;
    border-radius: 2px;
    background: var(--blue);
    transition: .3s;
}
.burger .bars i:nth-child(1) { top: 0; }
.burger .bars i:nth-child(2) { top: 6.7px; width: 70%; }
.burger .bars i:nth-child(3) { top: 13.4px; }
.burger[aria-expanded="true"] {
    background: linear-gradient(180deg,#4a95ff,#2a6df2);
    border-color: #fff;
}
.burger[aria-expanded="true"] .bars i {
    background: #fff;
}
.burger[aria-expanded="true"] .bars i:nth-child(1) { top: 6.7px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .bars i:nth-child(3) { top: 6.7px; transform: rotate(-45deg); }
/* Іконки та телефон у меню видно лише на телефоні */
.nav .nav-ico, .nav .nav-tel {
    display: none;
}
/* ---------- buttons ---------- */

/* КНОПКИ: базова форма всіх кнопок сайту (.btn) та варіанти */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 17px;
    border: 0;
    cursor: pointer;
    transition: .25s;
    font-family: inherit;
}
.btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* .btn-primary — синя градієнтна кнопка (головна: «Отримати консультацію», «Надіслати») */
.btn-primary {
    background: linear-gradient(180deg,#4a95ff,#2a6df2);
    color: #fff;
    box-shadow: 0 10px 24px rgba(42,109,242,.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(42,109,242,.4);
}

/* .btn-dark — темно-синя кнопка (внутрішні сторінки: «Безкоштовна консультація», «Написати лікарю») */
.btn-dark {
    background: var(--navy2);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(11,31,77,.25);
}
.btn-dark:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

/* .btn-soft — світло-блакитна кнопка («Дізнатися більше», «Написати лікарю» на головній) */
.btn-soft {
    background: linear-gradient(180deg,#c6ddfd,#cfe1fd);
    color: var(--navy);
}
.btn-soft img {
    filter: none;
}
.btn-soft:hover {
    transform: translateY(-2px);
}
.note {
    font-size: 15px;
    color: var(--muted);
    margin-top: 14px;
}
/* ---------- home hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: #09183a;
    /* Висота банера пропорційна ширині екрана, щоб фото лікаря було видно повністю */
    min-height: min(41vw, 860px);
    display: flex;
    align-items: center;
}
.hero .container { width: 100%; }

/* Фонове фото головного екрану: img/hero-surgeon.jpg (широке полотно: лікар справа, фото вертикальне, розширене фоном, зліва — фон банера для тексту).
   Для телефону використовується окремий кадр img/hero-surgeon-mobile.jpg (див. нижче, @media).
   Щоб замінити фото — підставте файл з тією ж назвою, пропорція десктопного ≈ 2.3 : 1 */
.hero-bg {
    position: absolute;
    inset: 0;
    background: url(../img/hero-surgeon.jpg) center right/cover no-repeat;
}
/* Темно-синя вуаль зліва під текстом (м'яко зникає ближче до фото лікаря) */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(9,24,58,.55) 0%,rgba(9,24,58,.25) 40%,rgba(9,24,58,0) 60%);
}
.hero .container {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    padding-bottom: 90px;
    /* Текст зсунуто до лівого краю: відступ від краю екрана ≈ 80px (змініть 56px, щоб регулювати).
       На вужчих екранах зсув вимикається автоматично (min з 0) */
    left: min(0px, calc(56px - (100vw - var(--max)) / 2));
}
/* Заголовок у два рядки («Хірургія щитоподібної» / «та прищитоподібних залоз»);
   розмір шрифту залежить від ширини екрана (vw), щоб пропорція до фото зберігалась */
.hero h1 {
    max-width: none;
    margin-bottom: 22px;
    color: #fff;
    font-size: clamp(40px,3.9vw,76px);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}
/* Підзаголовок: іконка-щит (img/ico-shield.svg) + два рядки тексту */
.hero .sub {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: none;
    margin-bottom: 34px;
    color: #cfe0fa;
}
.hero .sub img {
    width: clamp(46px,3vw,60px);
    height: clamp(46px,3vw,60px);
    flex: none;
}
.hero .sub p {
    font-size: clamp(16px,1.6vw,30px);
    line-height: 1.4;
}
.hero .sub p,
.hero .sub span {
    color: #cfe0fa;
}
.hero .sub b {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: clamp(19px,2vw,38px);
}
/* Кнопка в темному банері — світла «таблетка» із синім текстом */
.hero .btn-primary {
    font-size: clamp(16px,1.15vw,22px);
    padding: clamp(15px,1.1vw,22px) clamp(28px,2.1vw,42px);
    background: linear-gradient(180deg,#fff,#d9e8ff);
    color: var(--blue);
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
.hero .btn-primary img {
    filter: none;
}
.hero .note {
    font-size: clamp(15px,1vw,19px);
    color: #cfe0fa;
}
/* ---------- sections ---------- */
section {
    padding: 64px 0;
}
.bg-sky {
    background: var(--bg-band);
}
.bg-sky2 {
    background: var(--bg-band2);
}
.grid {
    display: grid;
    gap: 22px;
}
.g2 {
    grid-template-columns: repeat(2,1fr);
}
.g3 {
    grid-template-columns: repeat(3,1fr);
}
.g4 {
    grid-template-columns: repeat(4,1fr);
}
.g5 {
    grid-template-columns: repeat(5,1fr);
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

/* Кругла підкладка під іконки (.round-ico; .lg — великий, .white — білий варіант) */
.round-ico {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--sky);
    display: grid;
    place-items: center;
    flex: none;
}
.round-ico img {
    width: 34px;
    height: 34px;
}
.round-ico.lg {
    width: 96px;
    height: 96px;
}
.round-ico.lg img {
    width: 46px;
    height: 46px;
}
/* Детальні кольорові іконки (.detail): світлий круг із білою обводкою, іконка більша */
.round-ico.detail {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 35% 30%, #f6faff, #cfe0fb);
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(20,60,140,.14);
}
.round-ico.detail img {
    width: 56px;
    height: 56px;
}
/* Великий варіант (симптоми) */
.round-ico.lg.detail {
    width: 112px;
    height: 112px;
}
.round-ico.lg.detail img {
    width: 76px;
    height: 76px;
}
.round-ico.white {
    background: #fff;
    box-shadow: var(--shadow);
}
/* direction cards */

/* Картки напрямків на головній (ілюстрація залози + заголовок + кругла кнопка-стрілка .go) */
.dir {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 24px 18px 70px;
    transition: .25s;
}
.dir:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(20,60,140,.15);
}
/* Схема залози в картці напрямку (img/thyroid-*.svg, parathyroid.svg).
   Усередині SVG є поле під світіння, тому картинку збільшено, а зайві відступи прибрано від’ємними margin */
.dir>img {
    width: 210px;
    height: 210px;
    margin: -18px 0 -12px;
}
.dir h3 {
    font-size: 19px;
    color: var(--blue);
}
.dir small {
    display: block;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.5;
    margin-top: 6px;
}
.dir .go {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sky);
    display: grid;
    place-items: center;
}
.dir .go img {
    width: 20px;
}
/* about strip */
.strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    background: linear-gradient(90deg,#cee2fd,#deebfe);
    border-radius: 24px;
    padding: 36px 44px;
    border: 1px solid var(--line);
}
.strip h2 {
    margin-bottom: 4px;
}
.strip .name {
    font-size: 34px;
    font-weight: 800;
    color: var(--navy2);
}
.strip .pos {
    color: #6c8cc8;
    font-size: 20px;
}
.facts {
    display: flex;
    gap: 34px;
    align-items: center;
}
.facts div {
    border-left: 1px solid #c7d7f0;
    padding-left: 30px;
}
.facts b {
    font-size: 38px;
    color: var(--navy);
    display: block;
    line-height: 1;
}
.facts span {
    color: var(--muted);
    font-size: 15px;
}
.facts .txt {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
}
/* consultation */
.consult {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
/* Емблема біля «Опишіть ситуацію»: документ із висновком, емблемою залози та значком «завантажити» (img/illustration-upload.svg) */
.consult-art {
    width: 124px;
    height: 124px;
    flex: none;
}
.consult .txt {
    font-size: clamp(20px,2.4vw,28px);
    color: var(--navy);
    flex: 1;
    min-width: 240px;
    line-height: 1.35;
}
.consult .btn {
    min-width: 280px;
    justify-content: center;
}
.steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
    margin-top: 26px;
}
.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.step .n {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sky);
    color: var(--blue);
    font-weight: 800;
    font-size: 22px;
    display: grid;
    place-items: center;
    flex: none;
}
.step b {
    display: block;
    color: var(--navy);
    font-size: 18px;
}
.step span {
    color: var(--muted);
    font-size: 15px;
}
/* reviews */
.reviews {
    position: relative;
}
.dots {
    display: flex;
    gap: 8px;
}
.dots button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--blue2);
    background: #fff;
    cursor: pointer;
    padding: 0;
}
.dots button.on {
    background: var(--blue2);
}
.rv-wrap {
    position: relative;
    margin-top: 18px;
}

/* Стрічка скріншотів відгуків (прокрутка + прив’язка до карток) */
.rv-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px;
}
.rv-track::-webkit-scrollbar {
    display: none;
}
.rv-item {
    flex: 0 0 calc((100% - 48px)/4);
    scroll-snap-align: start;
    margin: 0;
}
.rv-open {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--sky2);
    cursor: zoom-in;
    padding: 0;
    transition: .25s;
}
.rv-open:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.rv-open img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Кнопки-стрілки слайдера відгуків (‹ ›) */
.rv-arrow {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 2;
    transition: .2s;
}
.rv-arrow:hover {
    background: var(--sky);
}
.rv-arrow img {
    width: 20px;
}
.rv-prev {
    left: -14px;
}
.rv-prev img {
    transform: rotate(180deg);
}
.rv-next {
    right: -14px;
}
/* Крапки слайдера відгуків: по центру та посередині вільного місця
   між скріншотами й нижнім краєм блоку (≈26px зверху і знизу).
   Відступ зверху зменшено на 4px, бо стрічка .rv-track має нижній padding 4px */
.dots {
    justify-content: center;
    margin-top: 22px;
}

/* Збільшений перегляд скріншота відгуку при кліку */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8,20,50,.88);
    display: grid;
    place-items: center;
    z-index: 100;
    padding: 24px;
}
.lightbox[hidden] {
    display: none;
}
.lightbox>img {
    max-width: min(92vw,88vh);
    max-height: 88vh;
    border-radius: 12px;
    background: #fff;
}
.lb-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.lb-nav {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,.3);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .2s;
}
.lb-nav:hover {
    background: var(--sky);
    transform: scale(1.08);
}
.lb-nav img {
    width: 24px;
}
.lb-prev {
    left: 18px;
}
.lb-prev img {
    transform: rotate(180deg);
}
.lb-next {
    right: 18px;
}
.lb-count {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: 700;
    background: rgba(255,255,255,.16);
    padding: 6px 16px;
    border-radius: 999px;
}
@media (max-width: 860px) {
    .lb-nav {
        width: 44px;
        height: 44px;
        margin-top: -22px;
    }
    .lb-prev {
        left: 8px;
    }
    .lb-next {
        right: 8px;
    }
}
.lb-close img {
    width: 22px;
}
/* ---------- footer ---------- */
/* Нижня панель: ніжно-блакитне «скло» (напівпрозорий градієнт + легке розмиття) замість темно-синього блоку */
.footer {
    background: linear-gradient(180deg, rgba(211,228,253,.88), rgba(185,213,252,.95));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 -10px 30px rgba(31,85,232,.06);
    color: var(--navy);
    padding: 26px 0;
}
.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer a, .footer span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--navy);
}
/* Іконки у футері — власний синій колір (без інверсії в білий) */
.footer img {
    width: 24px;
    height: 24px;
}
.footer a:hover {
    color: var(--blue);
}
.footer .sep {
    width: 1px;
    height: 34px;
    background: rgba(31,85,232,.2);
}
/* Кнопки соцмереж у футері: круглі, світлі, при наведенні — заливка синім */
.footer .socials {
    display: flex;
    gap: 10px;
}
.footer .socials a {
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(255,255,255,.9);
    transition: .2s;
}
.footer .socials a:hover {
    background: var(--blue);
    transform: translateY(-2px);
}
.footer .socials a:hover img {
    filter: brightness(0) invert(1);
}
.copy {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
/* ---------- inner page hero ---------- */
.phero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(100deg,#d4e6fd 0%,#e4f0fe 55%,#cee2fd 100%);
}
.phero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 64px;
    padding-bottom: 64px;
}
.phero .txt {
    max-width: 560px;
}
.phero h1 {
    font-size: clamp(34px,4.6vw,54px);
    margin-bottom: 12px;
}
.phero .lead {
    font-size: clamp(19px,2.2vw,26px);
    color: var(--muted);
    margin-bottom: 26px;
    line-height: 1.4;
}
.phero .lead.strong {
    color: var(--navy);
    font-weight: 700;
    font-size: clamp(22px,2.6vw,30px);
    margin-bottom: 8px;
}
.phero .art {
    width: min(430px,42%);
    flex: none;
}
.loc {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}
.loc img {
    width: 20px;
}
/* two-col text blocks */
.split {
    display: flex;
    align-items: center;
    gap: 50px;
}
.split.rev {
    flex-direction: row-reverse;
}
.split .art {
    width: min(380px,40%);
    flex: none;
}
.split .art img {
    border-radius: var(--radius);
    width: 100%;
}
/* Фото в рамці — той самий стиль, що й картка лікаря (.doctor-card):
   заокруглення 28px, м'яка тінь, блакитний градієнт-підкладка, легке затемнення знизу */
.split .art.art-photo {
    position: relative;
    width: min(460px, 46%);
    border-radius: 28px;
    background: linear-gradient(160deg, #eaf2ff, #cfe0fb);
    box-shadow: 0 18px 44px rgba(20,60,140,.18);
    overflow: hidden;
}
.split .art.art-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}
/* Блакитна віньєтка по краях фото — як на картці лікаря */
.split .art.art-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 42%, transparent 52%, rgba(120,160,235,.38) 100%);
    pointer-events: none;
    z-index: 1;
}
.split .art.art-photo::after {
    z-index: 1;
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 34%;
    background: linear-gradient(to top, rgba(11,31,77,.3), transparent);
    pointer-events: none;
}
.split .txt {
    flex: 1;
}
.split p+p {
    margin-top: 12px;
}
.lead-b {
    font-weight: 700;
    color: var(--navy);
    font-size: 20px;
    margin-bottom: 10px;
}
/* items */
.item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.item h3 {
    margin-bottom: 6px;
    font-size: 20px;
}
.item p {
    font-size: 16px;
    color: var(--text);
}
.sym {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--navy);
}
.cause {
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--sky2);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 22px;
}

/* Ілюстрація залози зліва в картках причин тиреотоксикозу */
.cause>img {
    width: 230px;
    flex: none;
    background: linear-gradient(180deg,#d1e4fd,#c1d8f9);
    align-self: stretch;
    object-fit: contain;
    padding: 10px;
}
.cause .body {
    padding: 26px 28px 26px 0;
}
.cause .row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 10px;
    font-size: 16px;
}
.cause .row img {
    width: 26px;
    margin-top: 2px;
    flex: none;
}
.cause h3 {
    margin-bottom: 4px;
}
.cause .tag {
    display: block;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.callout {
    background: var(--sky);
    border-radius: 14px;
    padding: 16px 22px;
    color: var(--navy);
    font-weight: 600;
    display: flex;
    gap: 14px;
    align-items: center;
}
.callout img {
    width: 34px;
}

/* Плашка-підказка внизу блакитної секції (сторінка «Прищитоподібні залози»):
   біла картка по центру, без блакитної обводки, рівно половина висоти виходить на білий фон.
   .has-float — секція-власник (position: relative + більший нижній відступ під плашку) */
.has-float {
    position: relative;
    padding-bottom: 90px;
}
.callout-float {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: min(560px, calc(100% - 48px));
    background: #fff;
    border: 0;
    box-shadow: 0 8px 30px rgba(20, 60, 140, .12);
    font-size: 16px;
    z-index: 2;
}
.checks li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 6px 0;
    font-weight: 500;
}
.checks img {
    width: 24px;
    flex: none;
}
.prep {
    display: flex;
    gap: 34px;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(100deg,#cee2fd,#deebfe);
    border-radius: 24px;
    padding: 34px 40px;
    border: 1px solid var(--line);
}
.prep .head {
    flex: 1.2;
    min-width: 260px;
    display: flex;
    gap: 20px;
    align-items: center;
}
.prep .head h2 {
    font-size: clamp(23px,2.6vw,30px);
    margin-bottom: 6px;
}
.prep .checks {
    flex: 1;
    min-width: 220px;
    border-left: 1px solid #c7d7f0;
    padding-left: 30px;
}
.prep .cta {
    flex: 1.3;
    min-width: 360px;
    text-align: center;
}
/* Велика кнопка в блоці підготовки: в один рядок, більший шрифт і стрілка */
.prep .cta .btn {
    white-space: nowrap;
    font-size: 20px;
    padding: 22px 40px;
    gap: 18px;
    min-width: 320px;
    max-width: 100%;
    justify-content: center;
}
.prep .cta .btn img {
    width: 30px;
    height: 30px;
}
.prep .cta .tel {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
}
.prep .cta .tel img {
    width: 28px;
}
.prep .cta small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}
/* Верхні блоки внутрішніх сторінок: текст зсунуто до лівого краю, як на головній
   (змініть 56px, щоб регулювати відступ; на вужчих екранах зсув вимикається) */
.phero .txt {
    position: relative;
    left: min(0px, calc(56px - (100vw - var(--max)) / 2));
}
@media (max-width: 980px) {
    .phero .txt { left: 0; }
}
@media (max-width: 560px) {
    .prep .cta { min-width: 0; flex-basis: 100%; }
    .prep .cta .btn { min-width: 0; width: 100%; font-size: 18px; padding: 20px 20px; white-space: normal; }
}
/* ---------- Міжнародна співпраця (about.html) ---------- */
.intl {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 44px;
    align-items: center;
}
/* Обкладинка відео: заокруглена рамка, тінь, кругла кнопка Play та підпис */
.intl-video {
    position: relative;
    display: block;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 18px 44px rgba(15,45,120,.28);
    border: 3px solid #fff;
    transition: .3s;
}
.intl-video:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(15,45,120,.36);
}
.intl-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.intl-video .play {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    transition: .3s;
}
.intl-video:hover .play {
    background: var(--blue);
    border-color: var(--blue);
    transform: scale(1.08);
}
.intl-video .play i {
    margin-left: 6px;
    border-left: 24px solid #fff;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}
.intl-video .cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    text-align: center;
    color: #fff;
}
.intl-video .cap b {
    display: block;
    font-size: clamp(20px,2.4vw,30px);
    letter-spacing: .02em;
    text-transform: uppercase;
}
.intl-video .cap small {
    color: #bcd0f2;
    font-size: 16px;
}
.intl-txt h3 {
    font-size: clamp(24px,2.6vw,32px);
    margin-bottom: 14px;
}
.intl-txt p {
    margin-bottom: 14px;
}
.intl-txt .btn {
    margin-top: 10px;
}
/* кнопка «Переглянути відео»: світла кругла іконка Play всередині */
.intl-txt .btn img {
    filter: none;
    width: 26px;
    height: 26px;
}
/* Смуга з трьох тез */
.intl-strip {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin-top: 34px;
    background: linear-gradient(100deg,#cee2fd,#deebfe);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px 10px;
}
.intl-strip>div {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 26px;
    font-weight: 700;
    color: var(--navy);
    font-size: 17px;
}
.intl-strip>div+div {
    border-left: 1px solid #b9cdee;
}
@media (max-width: 860px) {
    .intl {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .intl-strip {
        grid-template-columns: 1fr;
        padding: 8px 4px;
    }
    .intl-strip>div+div {
        border-left: 0;
        border-top: 1px solid #b9cdee;
    }
    .intl-video .play {
        width: 68px;
        height: 68px;
        margin: -34px 0 0 -34px;
    }
}
/* types (cancer) */
.type {
    padding: 14px 14px 22px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.type img {
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    margin-bottom: 14px;
}
.type h3 {
    font-size: 19px;
    margin-bottom: 6px;
}
.type p {
    font-size: 15px;
    color: var(--muted);
}
.row-art {
    display: flex;
    gap: 44px;
    align-items: center;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

/* Ілюстрації зліва в рядках сторінки «Рак» (УЗД, операція, чекліст) */
.row-art>img {
    width: 300px;
    flex: none;
}
.row-art h2 {
    font-size: clamp(25px,3vw,34px);
}
.row-art .muted {
    color: var(--muted);
    font-size: 16px;
    margin-top: 10px;
}
/* timeline */
.timeline {
    position: relative;
    max-width: 820px;
    margin: 30px auto 0;
    padding-left: 34px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(#2d7cf0,#b8d1f4);
}
.tl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    position: relative;
    padding: 12px 0;
}
.tl::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 20px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #2d7cf0;
    border: 4px solid var(--sky);
}
.tl b {
    font-size: 21px;
    color: var(--navy2);
}
.badge {
    display: inline-block;
    background: #c9dffd;
    color: #1b4fb0;
    border-radius: 10px;
    padding: 6px 18px;
    font-size: 15px;
    font-weight: 600;
    margin: 6px 0 18px;
}
.meta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 500;
}
.meta img {
    width: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

/* Фото лікаря в банері «Про лікаря» (файл img/doctor-hero.jpg):
   займає праву частину банера на всю висоту, ліворуч розчиняється у блакитний фон */
.portrait {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
    mask-image: linear-gradient(to right, transparent 0, #000 38%);
}
.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 30%;
    display: block;
}
.phero .container {
    position: relative;
    z-index: 1;
}
/* contacts */
/* Картки контактів (телефон, адреса, онлайн): іконка + текст.
   align-items: center — текст по вертикалі посередині картки, поруч із круглою іконкою */
.contact-card {
    display: flex;
    gap: 18px;
    align-items: center;
}
.contact-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}
.contact-card a, .contact-card p {
    font-size: 18px;
    font-weight: 600;
}
form label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin: 14px 0 6px;
    font-size: 15px;
}
form input, form textarea, form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #b9ccea;
    border-radius: 12px;
    font: inherit;
    background: #fff;
}
form input:focus, form textarea:focus {
    outline: 2px solid var(--blue2);
    border-color: transparent;
}
form textarea {
    min-height: 130px;
    resize: vertical;
}
/* Повідомлення форми: .ok — успішно надіслано, .err — помилка (показуються через js/main.js) */
.ok {
    display: none;
    background: #d9f2e0;
    color: #1b6b3a;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    font-weight: 600;
}
.err {
    display: none;
    background: #fdecec;
    color: #a32121;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    font-weight: 600;
}
/* Поле-пастка для ботів: поза екраном, не видиме для людей */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.btn[disabled] {
    opacity: .6;
    cursor: wait;
}
/* Карта Google Maps на сторінці «Контакти»: заокруглена рамка, iframe на всю ширину блоку */
.map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    margin-top: 22px;
    background: var(--sky);
    line-height: 0;
}
.map iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}
/* fade-in */

/* Анімація плавної появи блоків (клас додає js/main.js) */
.fade {
    opacity: 0;
    transform: translateY(20px);
    transition: .7s;
}
.fade.in {
    opacity: 1;
    transform: none;
}
/* Портретна картка лікаря на сторінці «Про лікаря» (img/doctor-about.jpg) */
.doctor-card {
    position: relative;
    width: min(430px, 42%);
    border-radius: 28px;
    background: linear-gradient(160deg, #dbe8fe, #c1d6f9);
    box-shadow: 0 18px 44px rgba(20,60,140,.18);
    overflow: hidden;
    flex-shrink: 0;
}
.doctor-card img {
    display: block;
    width: 100%;
    height: auto;
}
/* М'яке затемнення знизу для читабельності міток */
.doctor-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 34%;
    background: linear-gradient(to top, rgba(11,31,77,.35), transparent);
    pointer-events: none;
}
/* Скляні мітки */
.dc-chip {
    position: absolute;
    z-index: 2;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.8);
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(20,60,140,.15);
}
.dc-chip b { color: var(--blue); font-size: 16px; }
.dc-chip-1 { left: 16px; bottom: 66px; }
.dc-chip-2 { left: 16px; bottom: 16px; }

/* ---------- responsive ---------- */
@media (max-width:980px) {
    .rv-item {
        flex-basis: calc((100% - 16px)/2);
    }
    .g4, .g5 {
        grid-template-columns: repeat(2,1fr);
    }
    .g3 {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .phero .art {
        display: none;
    }
    .split, .split.rev {
        flex-direction: column;
        align-items: flex-start;
    }
    .split .art {
        width: 100%;
        max-width: 420px;
    }
    /* Фото в рамці на вузьких екранах: на всю ширину колонки */
    .split .art.art-photo {
        width: 100%;
        max-width: 420px;
    }
    /* Картка лікаря на вузьких екранах */
    .doctor-card {
        width: 100%;
        max-width: 380px;
    }
    .cause {
        flex-direction: column;
        align-items: stretch;
    }
    .cause>img {
        width: 100%;
        height: 200px;
    }
    .cause .body {
        padding: 0 22px 24px;
    }
    .row-art {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .row-art>img {
        width: 200px;
    }
    /* На вузьких екранах фото стає фоном банера, трохи бліднішим за текст */
    .portrait {
        width: 100%;
        opacity: .2;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .prep .checks {
        border: 0;
        padding: 0;
    }
}
@media (max-width:860px) {
    .rv-item {
        flex-basis: 78%;
    }
    .rv-prev {
        left: -6px;
    }
    .rv-next {
        right: -6px;
    }
    body {
        font-size: 16px;
    }
    .burger {
        display: grid;
    }
    /* Логотип на телефоні трохи менший, щоб не торкався іконок */
    .brand img {
        height: 46px;
    }
    /* Іконка Telegram притиснута праворуч, впритул до бургера */
    .header-tg {
        margin-left: auto;
        margin-right: 14px;
    }
    .header-tg span {
        display: none;
    }
    /* Мобільне меню: «скляна» заокруглена панель з іконками, телефоном і затемненням позаду */
    .nav {
        position: fixed;
        top: 84px;
        left: 12px;
        right: 12px;
        background: linear-gradient(180deg,rgba(255,255,255,.97),rgba(232,241,254,.97));
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        border: 1px solid #fff;
        border-radius: 26px;
        box-shadow: 0 30px 70px rgba(10,35,100,.35), 0 4px 14px rgba(15,45,120,.1);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-14px) scale(.97);
        transform-origin: top right;
        transition: opacity .28s, transform .28s, visibility .28s;
        z-index: 60;
    }
    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav ul {
        flex-direction: column;
        gap: 6px;
        padding: 14px;
    }
    /* Пункт меню: кругла скляна іконка зліва, назва, шеврон справа */
    .nav a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 8px 16px 8px 8px;
        font-size: 18px;
        border: 0;
        border-radius: 18px;
    }
    .nav .nav-ico {
        display: block;
        flex: none;
        width: 52px;
        height: 52px;
        padding: 7px;
        border-radius: 50%;
        background: linear-gradient(180deg,#fff,#e3eefd);
        border: 2px solid #fff;
        box-shadow: 0 6px 14px rgba(31,85,232,.16);
    }
    .nav li:not(.nav-cta):not(.nav-tel) a::after {
        content: "";
        margin-left: auto;
        width: 9px;
        height: 9px;
        border-top: 2.4px solid #9db4dd;
        border-right: 2.4px solid #9db4dd;
        transform: rotate(45deg);
    }
    .nav a:hover, .nav a.active {
        background: linear-gradient(90deg,#d8e7fd,#e8f1fe);
        color: var(--blue);
    }
    .nav a.active::after {
        border-color: var(--blue);
    }
    .nav .nav-cta {
        display: block;
        margin-top: 6px;
        padding-top: 14px;
        border-top: 1px solid #cfe0f8;
    }
    .nav .nav-cta a.btn {
        justify-content: center;
        color: #fff;
        font-size: 18px;
        padding: 18px 20px;
        border-radius: 16px;
    }
    .nav .nav-cta a.btn:hover {
        color: #fff;
        background: linear-gradient(180deg,#4a95ff,#2a6df2);
    }
    .nav .nav-tel {
        display: block;
    }
    .nav .nav-tel a {
        justify-content: center;
        padding: 10px;
        font-size: 19px;
        font-weight: 800;
        color: var(--navy);
    }
    .nav .nav-tel img {
        width: 22px;
    }
    /* Затемнення сторінки під відкритим меню */
    body.menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(8,22,58,.45);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        z-index: 40;
    }
    .hero::after {
        background: linear-gradient(180deg,rgba(9,24,58,0) 0%,rgba(9,24,58,.9) 48%);
    }
    .hero {
        min-height: 0;
        display: block;
    }
    .hero h1 {
        font-size: 34px;
        white-space: normal;
    }
    .br-d {
        display: none;
    }
    .hero .container {
        left: 0;
        padding-top: 300px;
        padding-bottom: 36px;
    }
    /* Телефон: окреме щільне фото лікаря зверху (340px заввишки), під ним — текст */
    .hero-bg {
        bottom: auto;
        height: 340px;
        background-image: url(../img/hero-surgeon-mobile.jpg);
        background-color: #09183a;
        background-position: center 30%;
        background-size: cover;
    }
    .strip {
        padding: 26px;
    }
    .facts {
        gap: 20px;
        flex-wrap: wrap;
    }
    .footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .footer .sep {
        display: none;
    }
    .footer .socials {
        margin-top: 4px;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .header .btn {
        width: auto;
    }
    section {
        padding: 44px 0;
    }
    .g2 {
        grid-template-columns: 1fr;
    }
    .tl {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .prep {
        padding: 26px 22px;
    }
    .dir {
        flex-direction: row;
        text-align: left;
        padding: 14px 64px 14px 14px;
        gap: 14px;
        align-items: center;
    }
    .dir>img {
        width: 118px;
        height: 118px;
        margin: -12px -10px -12px -14px;
    }
    /* Трохи менший заголовок, щоб довгі слова не впиралися в кругле кнопку-стрілку */
    .dir h3 {
        font-size: 17px;
    }
    .g4.dirs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .g5 {
        grid-template-columns: repeat(2,1fr);
    }
}


/* =====================================================================
   МОБІЛЬНА ОПТИМІЗАЦІЯ (телефон): ніщо не виходить за край екрана,
   збільшений перегляд відгуків по центру, фото на «Про лікаря» зверху
   ===================================================================== */
html, body {
    overflow-x: hidden;
}
img, svg {
    max-width: 100%;
}
@media (max-width:980px) {
    .g2, .g3 {
        grid-template-columns: minmax(0,1fr);
    }
    .g4, .g5 {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .grid>*, .split>*, .intl>* {
        min-width: 0;
    }
    /* Ілюстрації поруч із текстом: по центру на всю ширину колонки */
    .split .art {
        margin: 0 auto;
    }
    .row-art>img {
        width: 100%;
        max-width: 420px;
        align-self: center;
    }
    /* «Про лікаря»: фото лікаря зверху, текст під ним */
    .phero-about {
        display: flex;
        flex-direction: column-reverse;
    }
    .phero-about .portrait {
        position: relative;
        width: 100%;
        height: 330px;
        opacity: 1;
        -webkit-mask-image: linear-gradient(to bottom,#000 72%,transparent);
        mask-image: linear-gradient(to bottom,#000 72%,transparent);
    }
    .phero-about .portrait img {
        object-position: 50% 25%;
        box-shadow: none;
    }
    .phero-about .container {
        margin-top: -34px;
    }
    .phero-about .txt {
        padding-bottom: 36px !important;
    }
}
@media (max-width:560px) {
    /* Картки-ознаки та типи — в одну колонку; п'ять симптомів — по два, останній по центру */
    .g4:not(.dirs) {
        grid-template-columns: minmax(0,1fr);
    }
    .g5>:last-child:nth-child(odd) {
        grid-column: 1/-1;
        justify-self: center;
    }
    .round-ico.lg.detail {
        width: 104px;
        height: 104px;
    }
    .round-ico.lg.detail img {
        width: 70px;
    }
    .intl-video .cap b {
        font-size: 18px;
    }
    .callout {
        flex-wrap: wrap;
    }
    h2 {
        font-size: 26px;
    }
    /* Збільшений перегляд відгуків: картка точно по центру екрана */
    .lightbox {
        padding: 12px;
        grid-template-columns: minmax(0,1fr);
    }
}
.lightbox {
    grid-template-columns: minmax(0,1fr);
}
.lightbox>img {
    justify-self: center;
    max-width: min(100%,900px);
    max-height: 86vh;
    object-fit: contain;
    width: auto;
    border-radius: 18px;
}
@media (max-width:980px) {
    /* сітки з вбудованими колонками (inline style) — теж в одну колонку */
    .grid[style*="grid-template-columns"] {
        grid-template-columns: minmax(0,1fr) !important;
    }
}
@media (max-width:980px) {
    /* ілюстрації з вбудованою шириною у відсотках — на телефоні на всю ширину колонки */
    .split .art[style*="width"] {
        width: 100% !important;
        max-width: 420px;
    }
}
@media (max-width:560px) {
    .prep .cta .btn {
        font-size: 17px;
        padding: 18px 14px;
        gap: 12px;
    }
    .prep .cta .btn img {
        width: 24px;
        height: 24px;
    }
}

/* ===== МОБІЛЬНИЙ: блок «Як відбувається спостереження?» — іконка зверху, текст на всю ширину ===== */
@media (max-width:700px){
  .item-obs{flex-direction:column;align-items:flex-start!important;gap:14px}
  .item-obs .round-ico.lg{width:96px;height:96px;flex:none}
  .item-obs h2{font-size:24px!important}
}

/* ===== МОБІЛЬНИЙ: ілюстрація монітора УЗД — компактніша й м'якша, щоб не домінувала над текстом ===== */
@media (max-width:980px){
  .split .art.art-us,.split .art.art-us[style*="width"]{width:72%!important;max-width:280px;margin:6px auto 0;opacity:.92}
  .split .art.art-us img{border-radius:20px;box-shadow:0 10px 26px rgba(36,69,160,.12)}
}
