/* ==========================================================================
   КНП «КМКЛ №18» — Modern Clinical redesign
   Refreshed teal identity · airy · accessible · responsive
   ========================================================================== */

:root {
  --teal:        #15a0a0;
  --teal-600:    #0e8c8c;
  --teal-700:    #0b7474;
  --teal-050:    #eef8f8;
  --teal-100:    #d8efef;
  --ink:         #14303a;
  --ink-soft:    #355059;
  --muted:       #61777f;
  --line:        #e4edee;
  --bg:          #ffffff;
  --bg-soft:     #f4f9f9;
  --bg-soft-2:   #eef4f5;
  --amber:       #f2a33c;
  --amber-600:   #e08a1e;
  --coral:       #ef7158;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;
  --shadow:      0 6px 24px rgba(20,48,58,.08);
  --shadow-md:   0 14px 40px rgba(20,48,58,.12);
  --shadow-sm:   0 3px 10px rgba(20,48,58,.07);
  --container:   1180px;
  --ff-head:     'Montserrat', system-ui, sans-serif;
  --ff-body:     'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal-700); }
h1,h2,h3,h4,h5 { font-family: var(--ff-head); color: var(--ink); line-height: 1.2; font-weight: 700; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex: none; }
.skip-link { position: absolute; left: -999px; background: var(--teal); color:#fff; padding:.6rem 1rem; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; top: 0; color:#fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
  padding: .72em 1.4em; border-radius: 999px; border: 2px solid transparent;
  background: var(--teal); color: #fff !important; cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s; white-space: nowrap;
}
.btn:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--accent { background: var(--amber); color: var(--ink) !important; }
.btn--accent:hover { background: var(--amber-600); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.7); color:#fff !important; }
.btn--outline:hover { background: rgba(255,255,255,.14); }
.btn--ghost { background: var(--teal-050); color: var(--teal-700) !important; }
.btn--ghost:hover { background: var(--teal-100); }
.btn .ic { font-size: 1.1em; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #cfe3e6; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 40px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45em; color: #cfe3e6; }
.topbar a.topbar__item:hover { color: #fff; }
.topbar__item .ic { color: var(--teal); font-size: 1.05rem; }
.topbar__spacer { margin-left: auto; }
.topbar__sep { width:1px; height:16px; background: rgba(255,255,255,.16); }
.topbar__phone { font-weight: 700; color:#fff; }
@media (max-width: 720px){ .topbar__sep,.topbar .topbar__item:nth-child(3){ display:none; } }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--line); }
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand__logo { width: 56px; height: 56px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--ff-head); font-size: 1.02rem; color: var(--ink); letter-spacing: .2px; }
.brand__text small { font-size: .72rem; color: var(--muted); }

.mainnav { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.mainnav__list { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.mainnav__item > a { display: inline-flex; align-items: center; gap: .25em;
  font-family: var(--ff-head); font-weight: 600; font-size: .86rem; text-transform: uppercase;
  letter-spacing: .3px; color: var(--ink); padding: .65rem .7rem; border-radius: 8px; }
.mainnav__item > a:hover { color: var(--teal-700); background: var(--teal-050); }
.mainnav__item.is-active > a { color: var(--teal-700); }
.mainnav__item.is-active > a::after { content:""; }
.mainnav__item .caret { font-size: .9em; opacity: .6; transition: transform .15s; }

/* Dropdown */
.has-children { position: relative; }
.submenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: .5rem; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .18s; z-index: 50; }
.has-children:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-children:hover .caret { transform: rotate(180deg); }
.submenu a { display: block; padding: .6rem .8rem; border-radius: 9px; font-size: .92rem;
  color: var(--ink-soft); font-weight: 500; }
.submenu a:hover { background: var(--teal-050); color: var(--teal-700); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 11px; background:#fff; cursor: pointer; padding: 0 11px; margin-left: auto; }
.nav-toggle span { height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background:
    radial-gradient(120% 140% at 100% 0%, var(--teal-100) 0%, transparent 55%),
    linear-gradient(180deg, var(--teal-050), #fff);
  padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::after { content:""; position:absolute; right:-60px; top:-60px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(21,160,160,.12), transparent 70%); }
.page-hero--image { background: linear-gradient(115deg, rgba(11,116,116,.92), rgba(14,48,58,.78)), var(--hero-img) center/cover no-repeat; border-bottom: none; }
.page-hero--image .page-hero__title,
.page-hero--image .breadcrumb,
.page-hero--image .breadcrumb *,
.page-hero--image .page-hero__date,
.page-hero--image .page-hero__lead { color: #fff; }
.page-hero--image .breadcrumb a:hover { color:#fff; text-decoration: underline; }
.page-hero__title { font-size: clamp(1.7rem, 1rem + 2.6vw, 2.7rem); margin: .4rem 0 0; max-width: 22ch; }
.page-hero__date { display: inline-flex; align-items: center; gap: .45em; color: var(--muted); font-size: .92rem; margin: .8rem 0 0; }
.page-hero__lead { margin: .9rem 0 0; max-width: 60ch; font-size: 1.08rem; color: var(--ink-soft); }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.breadcrumb a { color: var(--teal-600); }
.breadcrumb__current { color: var(--ink-soft); font-weight: 600; }

/* ---------- Page body / prose ---------- */
.page-body { padding: 3rem 0 4rem; }
.prose { max-width: 820px; margin-inline: auto; font-size: 1.06rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 .9rem; }
.prose h3 { font-size: 1.28rem; margin: 1.8rem 0 .7rem; }
.prose h4 { font-size: 1.1rem; margin: 1.5rem 0 .6rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin: .4rem 0; }
.prose ul li::marker { color: var(--teal); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--teal-100); }
.prose a:hover { text-decoration-color: var(--teal); }
.prose img { border-radius: var(--radius); margin: 1.6rem auto; box-shadow: var(--shadow); }
.prose figure { margin: 1.6rem 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.prose blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--teal);
  background: var(--teal-050); border-radius: 0 12px 12px 0; color: var(--ink); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .95rem;
  box-shadow: var(--shadow-sm); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: .8rem 1rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th, .prose tr:first-child td { background: var(--teal-050); color: var(--ink); font-weight: 700; font-family: var(--ff-head); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.prose iframe { max-width: 100%; border-radius: var(--radius); margin: 1.4rem 0; }

/* Document/PDF links inside content */
.prose a[href$=".pdf"] { display: inline-flex; align-items: center; gap: .5em; text-decoration: none;
  background: var(--teal-050); color: var(--teal-700); padding: .35em .8em; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.prose a[href$=".pdf"]:hover { background: var(--teal-100); }
.prose a[href$=".pdf"]::before { content:"📄"; font-size: .95em; }

/* Image galleries (theme classes stripped) → clean responsive grid, no bullets */
.prose ul:has(> li figure), .prose ul:has(> li > a > img), .prose ul:has(> li > img) {
  list-style: none; padding: 0; margin: 1.6rem 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem;
}
.prose ul:has(> li figure) > li, .prose ul:has(> li > a > img) > li, .prose ul:has(> li > img) > li { margin: 0; }
.prose ul:has(> li figure) figure { margin: 0; }
.prose li:has(figure), .prose li:has(> a > img), .prose li:has(> img) { list-style: none; }
.prose ul:has(> li figure) img, .prose ul:has(> li > a > img) img { margin: 0; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Legacy cmsmasters column classes → graceful responsive grid */
.cmsmasters_row, .cmsmasters_row_inner { display: block; }
[class*="one_half"], [class*="one_third"], [class*="two_third"], [class*="one_fourth"], [class*="three_fourth"] { margin-bottom: 1.2rem; }
@media (min-width: 760px){
  .cmsmasters_column.one_half, .cmsmasters_column.one_third, .cmsmasters_column.two_third,
  .cmsmasters_column.one_fourth, .cmsmasters_column.three_fourth { display: inline-block; vertical-align: top; padding-right: 1.4rem; }
}

/* ---------- Generic cards / grid ---------- */
.section { padding: 4rem 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section__eyebrow { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: 2px;
  font-size: .76rem; font-weight: 700; color: var(--teal); }
.section__title { font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem); margin: .5rem 0 .6rem; }
.section__sub { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px){ .grid--4 { grid-template-columns: repeat(2,1fr); } .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid--2,.grid--3,.grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__date { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4em; }
.card__title { font-size: 1.1rem; margin: 0; line-height: 1.3; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--teal-700); }
.card__excerpt { font-size: .95rem; color: var(--muted); margin: 0; }
.card__more { margin-top: auto; font-family: var(--ff-head); font-weight: 600; font-size: .9rem;
  color: var(--teal-700); display: inline-flex; align-items: center; gap: .4em; }
.card__more .ic { transition: transform .15s; }
.card:hover .card__more .ic { transform: translateX(3px); }

/* Doctor card */
.doc-card { text-align: center; padding: 1.6rem 1.2rem; }
.doc-card .card__media { aspect-ratio: 1; width: 128px; border-radius: 50%; margin: 0 auto 1rem; box-shadow: var(--shadow-sm); }
.doc-card__role { color: var(--teal-700); font-size: .85rem; font-weight: 600; }

/* Department / feature tile */
.tile { background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; display:flex; gap:1rem; align-items:flex-start; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-050); color: var(--teal); font-size: 1.6rem; }
.tile h3 { font-size: 1.12rem; margin: 0 0 .3rem; }
.tile h3 a { color: var(--ink); } .tile h3 a:hover { color: var(--teal-700); }
.tile p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Home ---------- */
.hero { position: relative; background:
    radial-gradient(90% 120% at 90% -10%, var(--teal-100), transparent 50%),
    linear-gradient(180deg, var(--teal-050) 0%, #fff 70%); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
  padding: 4rem 0 4.5rem; }
.hero__eyebrow { display:inline-flex; align-items:center; gap:.5em; background:#fff; border:1px solid var(--teal-100);
  color: var(--teal-700); font-weight:600; font-size:.82rem; padding:.4em .9em; border-radius:999px; box-shadow: var(--shadow-sm); }
.hero__title { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); margin: 1rem 0 0; color: var(--ink); }
.hero__title b { color: var(--teal); }
.hero__text { font-size: 1.12rem; color: var(--ink-soft); margin: 1.2rem 0 1.8rem; max-width: 50ch; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero__stat b { font-family: var(--ff-head); font-size: 1.9rem; color: var(--teal-700); display:block; line-height:1; }
.hero__stat span { font-size: .85rem; color: var(--muted); }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/4.4; object-fit: cover; }
.hero__badge { position:absolute; left:-18px; bottom:28px; background:#fff; border-radius: 16px; box-shadow: var(--shadow-md);
  padding: .9rem 1.1rem; display:flex; align-items:center; gap:.7rem; }
.hero__badge .ic { color: var(--coral); font-size: 1.8rem; }
.hero__badge b { font-family: var(--ff-head); color: var(--ink); display:block; }
.hero__badge small { color: var(--muted); }
@media (max-width: 880px){ .hero__inner { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; } .hero__media { order: -1; max-width: 460px; } }

.cta-band { background: linear-gradient(115deg, var(--teal-700), var(--teal)); color:#fff; border-radius: var(--radius-lg);
  padding: 2.6rem; display:flex; align-items:center; justify-content:space-between; gap: 1.5rem; flex-wrap: wrap; box-shadow: var(--shadow-md); }
.cta-band h2 { color:#fff; font-size: 1.7rem; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }

/* News list footer link row */
.section__foot { text-align:center; margin-top: 2.4rem; }

/* ---------- Listing pages ---------- */
.listing-intro { max-width: 760px; margin: 0 auto 2.4rem; text-align:center; color: var(--muted); }
.count-pill { display:inline-block; background: var(--teal-050); color: var(--teal-700); font-weight:600;
  font-size:.85rem; padding:.3em .9em; border-radius:999px; margin-bottom: .8rem; }

/* ---------- Mobile nav ---------- */
@media (max-width: 960px) {
  /* backdrop-filter creates a containing block that traps position:fixed children;
     disable it on mobile so the nav drawer can be full-height/viewport-fixed. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: flex; }
  .mainnav { position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); background:#fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 1.2rem; transform: translateX(100%);
    transition: transform .25s ease; box-shadow: var(--shadow-md); overflow-y: auto; margin: 0; z-index: 120; }
  body.nav-open .mainnav { transform: translateX(0); }
  body.nav-open::after { content:""; position: fixed; inset:0; background: rgba(20,48,58,.45); z-index: 110; }
  .mainnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .mainnav__item > a { padding: .9rem .6rem; border-radius: 10px; font-size: .95rem; justify-content: space-between; }
  .mainnav__item { border-bottom: 1px solid var(--line); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; max-height: 0; overflow: hidden; padding: 0 0 0 .8rem; transition: max-height .25s; min-width: 0; }
  .has-children.open .submenu { max-height: 600px; }
  .has-children.open .caret { transform: rotate(180deg); }
  .mainnav__cta { margin-top: 1rem; justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aebfc4; margin-top: 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2rem; padding: 3.4rem 22px 2.6rem; }
.brand--light .brand__text strong { color:#fff; } .brand--light .brand__text small { color: #8fa6ac; }
.site-footer__about p { margin-top: 1rem; font-size: .94rem; line-height: 1.7; }
.site-footer h4 { color:#fff; font-size: 1rem; margin: 0 0 1.1rem; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: #aebfc4; font-size: .94rem; } .footer-links a:hover { color:#fff; }
.footer-contact li { display: flex; gap: .6rem; font-size: .92rem; align-items: flex-start; }
.footer-contact .ic { color: var(--teal); font-size: 1.1rem; margin-top: .15em; }
.footer-contact a { color: #aebfc4; } .footer-contact a:hover { color:#fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #81979d; }
.site-footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; flex-wrap: wrap; }
@media (max-width: 860px){ .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Department: layout + tabs + schedule sidebar ---------- */
.dept-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.4rem; align-items: start; }
.dept-main { min-width: 0; }
@media (max-width: 940px){ .dept-layout { grid-template-columns: 1fr; } .dept-aside { order: -1; } }

.tabs__nav { display: flex; gap: .4rem; border-bottom: 2px solid var(--line); margin-bottom: 1.8rem; flex-wrap: wrap; }
.tabs__btn { appearance: none; background: none; border: none; cursor: pointer;
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem; color: var(--muted);
  padding: .8rem 1.2rem; border-radius: 10px 10px 0 0; position: relative; transition: color .15s, background .15s; }
.tabs__btn:hover { color: var(--teal-700); background: var(--teal-050); }
.tabs__btn.is-active { color: var(--teal-700); }
.tabs__btn.is-active::after { content:""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--teal); border-radius: 3px; }
.tabs__panel { display: none; animation: fadeIn .25s ease; }
.tabs__panel.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tabs__panel .prose { max-width: none; font-size: 1.02rem; }

.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.6rem; position: sticky; top: 96px; }
.info-card__title { font-size: 1.15rem; margin: 0 0 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.info-card h4 { font-size: .92rem; color: var(--teal-700); margin: 1rem 0 .2rem; }
.info-card p { margin: .2rem 0; font-size: .95rem; color: var(--ink-soft); }
.info-card a { word-break: break-word; }
.info-card__cta { width: 100%; justify-content: center; margin-top: 1.4rem; }

/* Departments list inside the contacts sidebar */
.dept-list { list-style: none; margin: 0; padding: 0; }
.dept-list li { border-bottom: 1px solid var(--line); }
.dept-list li:last-child { border-bottom: 0; }
.dept-list a { display: block; padding: .62rem .2rem; font-size: .92rem; color: var(--ink-soft);
  text-decoration: none; transition: color .15s, padding .15s; }
.dept-list a:hover { color: var(--teal-700); padding-left: .55rem; }

/* Prominent main phone on the contacts page */
.contact-main { display: flex; flex-direction: column; gap: .15rem; margin: .4rem 0 1.1rem; }
.contact-main__label { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.contact-main__num { font-family: var(--ff-head); font-weight: 700; font-size: 1.7rem;
  color: var(--teal-700); text-decoration: none; line-height: 1.1; }
.contact-main__num:hover { color: var(--teal); }

/* Doctors grid inside ЛІКАРІ tab */
.doc-grid .doc-card { padding: 1.3rem 1rem; }
.doc-grid .card__media { width: 110px; }
.doc-grid .card__title { font-size: 1rem; }

/* Gallery grid (ГАЛЕРЕЯ tab) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: .8rem; }
.gallery-grid__item { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid__item:hover img { transform: scale(1.06); }

/* ---------- Doctor profile: portrait + content ---------- */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2.4rem; align-items: start; }
.profile-photo { position: sticky; top: 96px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--bg-soft-2); }
.profile-photo img { width: 100%; aspect-ratio: 3/3.6; object-fit: cover; display: block; }
.profile-photo--ph { display: grid; place-items: center; aspect-ratio: 3/3.6; color: var(--teal);
  background: linear-gradient(160deg, var(--teal-050), var(--teal-100)); }
.profile-photo--ph .ic { width: 40%; height: 40%; opacity: .6; }
.profile-content { max-width: none; }
@media (max-width: 760px){ .profile-layout { grid-template-columns: 1fr; }
  .profile-photo { max-width: 280px; margin: 0 auto; position: static; } }

/* ---------- Full-width video embeds ---------- */
.video-embed { position: relative; width: min(100%, var(--container)); margin: 1.8rem auto; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background:#000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* break a video out of the narrow prose column to fill the container */
.prose .video-embed { width: 100%; }
.dept-main .video-embed, .profile-content .video-embed { width: 100%; }

/* ---------- Home: services tabs ---------- */
.svc { max-width: 980px; margin: 0 auto; }
.svc .tabs__nav { justify-content: center; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 2rem; }
.svc-grid li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0;
  border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 1rem; }
.svc-grid li .ic { flex: none; color: var(--teal); margin-top: .15em; font-size: 1.1rem; }
.svc-lead { color: var(--muted); margin: 0 0 1.4rem; font-size: 1.02rem; }
@media (max-width: 680px){ .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Home: about band ---------- */
.about-band { display: grid; grid-template-columns: .95fr 1.05fr; gap: 2.6rem; align-items: center; }
.about-band__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 4/3.2; object-fit: cover; }
.about-band__title { font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); margin: .6rem 0 1rem; }
.about-band__text { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.75; }
.about-band__text b { color: var(--teal-700); }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.stat-strip div { background: var(--teal-050); border-radius: var(--radius); padding: 1.1rem 1rem; text-align: center; }
.stat-strip b { font-family: var(--ff-head); font-size: 1.8rem; color: var(--teal-700); display: block; line-height: 1; }
.stat-strip span { font-size: .82rem; color: var(--muted); }
@media (max-width: 860px){ .about-band { grid-template-columns: 1fr; } .about-band__media { max-width: 520px; } }

/* ---------- Home: testimonials ---------- */
.review { background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.6rem 1.5rem; display:flex; flex-direction:column; gap: .9rem; }
.review__quote { color: var(--teal); font-family: var(--ff-head); font-size: 2.4rem; line-height: .6; height: .6em; }
.review__text { color: var(--ink-soft); font-size: .96rem; line-height: 1.65; margin: 0; flex: 1; }
.review__author { display:flex; align-items:center; gap:.7rem; margin-top: .2rem; }
.review__avatar { flex:none; width: 40px; height: 40px; border-radius: 50%; display:grid; place-items:center;
  background: var(--teal-100); color: var(--teal-700); font-family: var(--ff-head); font-weight: 700; }
.review__name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.review__stars { color: var(--amber); font-size: .85rem; letter-spacing: 1px; }

/* ---------- History timeline ---------- */
.timeline { position: relative; max-width: 880px; margin: 0 auto; padding: .5rem 0; }
.timeline::before { content:""; position:absolute; left: 26px; top: 0; bottom: 0; width: 2px; background: var(--teal-100); }
.tl-item { position: relative; padding: 0 0 2.4rem 70px; }
.tl-item:last-child { padding-bottom: .5rem; }
.tl-item::before { content:""; position:absolute; left: 18px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--teal-100); }
.tl-year { display:inline-block; font-family: var(--ff-head); font-weight: 700; color: var(--teal-700);
  background: var(--teal-050); border-radius: 999px; padding: .2em .9em; font-size: .9rem; margin-bottom: .6rem; }
.tl-item h3 { margin: 0 0 .6rem; font-size: 1.15rem; }
.tl-item p { margin: 0 0 .8rem; color: var(--ink-soft); line-height: 1.7; }
.tl-media { display:flex; flex-wrap: wrap; gap: .8rem; margin: .2rem 0 1rem; }
.tl-media img { height: 150px; width: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); object-fit: cover; }
@media (max-width: 560px){ .tl-media img { height: 120px; } }

/* ---------- Team / administration ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.team-card { display: grid; grid-template-columns: 130px 1fr; gap: 1.4rem; background:#fff; border:1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.4rem; align-items: start; }
.team-card__photo { width: 130px; height: 150px; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(160deg, var(--teal-050), var(--teal-100)); display:grid; place-items:center; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-card__photo .ic { width: 44%; height: 44%; color: var(--teal); opacity: .6; }
.team-card h3 { font-size: 1.05rem; margin: 0 0 .35rem; line-height: 1.3; }
.team-card__role { color: var(--teal-700); font-weight: 600; font-size: .92rem; margin: 0 0 .6rem; }
.team-card__creds { list-style: none; margin: 0; padding: 0; }
.team-card__creds li { font-size: .9rem; color: var(--muted); padding: .15rem 0 .15rem .9rem; position: relative; }
.team-card__creds li::before { content:"–"; position:absolute; left: 0; color: var(--teal); }
@media (max-width: 720px){ .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px){ .team-card { grid-template-columns: 1fr; } .team-card__photo { width: 130px; margin: 0 auto; } }

/* ---------- Document / link cards (public info, reports) ---------- */
.doc-group { margin-bottom: 2.4rem; }
.doc-group__title { font-family: var(--ff-head); font-size: 1.1rem; color: var(--ink); margin: 0 0 1.1rem;
  padding-bottom: .6rem; border-bottom: 2px solid var(--teal-050); }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.doc-link { display: flex; gap: 1rem; align-items: center; background:#fff; border:1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.2rem 1.3rem;
  transition: transform .18s, box-shadow .18s; color: var(--ink); text-decoration: none; }
.doc-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--teal-700); }
.doc-link__icon { flex:none; width: 46px; height: 46px; border-radius: 12px; display:grid; place-items:center;
  background: var(--teal-050); color: var(--teal); font-size: 1.4rem; }
.doc-link > span:not(.doc-link__icon) { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.doc-link b { font-family: var(--ff-head); font-size: 1rem; line-height: 1.3; }
.doc-link > span:not(.doc-link__icon) > span { font-size: .85rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: .35em; }
.doc-link:hover > span:not(.doc-link__icon) > span { color: var(--teal-700); }

/* ---------- Forms ---------- */
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 2.2rem; max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.form-field label { font-family: var(--ff-head); font-weight: 600; font-size: .9rem; color: var(--ink); }
.form-field input, .form-field textarea {
  font: inherit; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .8rem 1rem; transition: border-color .15s, box-shadow .15s; width: 100%; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-050); background:#fff; }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: .4rem 0 1.4rem; }
.form-consent input { margin-top: .2em; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1.2rem; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } .form-card { padding: 1.5rem; } }

/* ---------- Accordion (pricing, FAQ) ---------- */
.acc { background:#fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  margin-bottom: .9rem; overflow: hidden; }
.acc > summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--ff-head);
  font-weight: 600; font-size: 1.02rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; transition: background .15s; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content:""; flex: none; width: 11px; height: 11px; border-right: 2.4px solid var(--teal);
  border-bottom: 2.4px solid var(--teal); transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.acc[open] > summary { background: var(--teal-050); color: var(--teal-700); }
.acc[open] > summary::after { transform: rotate(-135deg); margin-top: 2px; }
.acc > summary:hover { background: var(--teal-050); }
.acc__body { padding: .4rem 1.3rem 1.3rem; }
.acc__body table { margin: .6rem 0 0; }
.price-group__head { font-family: var(--ff-head); font-size: 1.25rem; color: var(--teal-700);
  margin: 2.2rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--teal-050); }
.price-group__head:first-child { margin-top: 0; }

/* ---------- Gallery lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  padding: 4rem 1rem; background: rgba(8, 22, 27, .93); backdrop-filter: blur(2px); }
.lightbox.is-open { display: flex; animation: fadeIn .2s ease; }
.lightbox__img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55); }
.lightbox__btn { position: absolute; appearance: none; border: none; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.12); border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; transition: background .15s; }
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 1.1rem; right: 1.1rem; font-size: 2rem; }
.lightbox__prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 1.3rem; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.8); font-size: .9rem; font-family: var(--ff-head); }
@media (max-width: 560px){ .lightbox__btn { width: 42px; height: 42px; } .lightbox__prev { left: .4rem; } .lightbox__next { right: .4rem; } }

/* utilities */
.text-center { text-align:center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
