:root {
  --ink: #10292d;
  --teal: #0f7473;
  --teal-dark: #08373b;
  --cream: #f7f6f1;
  --brand: #0f83a8; /* კლინიკის ფერი — rgb(15 131 168) */
}

/* ─────────────────────────────────────────────────────────────
   ბრენდის ფერი: ყველა მუქი teal-950 ფონი → კლინიკის ფერი.
   (tailwind.min.css purged build-ია, ამიტომ ფერს აქ ვცვლით და არა
    ახალი arbitrary კლასით. --tw-bg-opacity შენარჩუნებულია.)
   ───────────────────────────────────────────────────────────── */
.bg-teal-950 {
  background-color: rgb(15 131 168 / var(--tw-bg-opacity, 1));
}

/* ბრენდის/topbar-ის ფერი სათაურებისთვის */
.text-brand {
  color: #0f83a8;
}

/* ═══════════════ მიმართულების გვერდი (direction) ═══════════════ */
/* hero band — წინწკლებიანი ფონი, განსხვავებული ფერი */
.dir-hero {
  position: relative; text-align: center;
  padding: 2.75rem 1rem;
  background-color: #eaf6fa;
  background-image: radial-gradient(circle, rgba(14, 116, 144, 0.14) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  border-bottom: 1px solid rgba(15, 131, 168, .12);
}
@media (min-width: 640px) { .dir-hero { padding: 3.5rem 1.5rem; } }
.dir-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #0f83a8;
}
.dir-kicker::before, .dir-kicker::after {
  content: ""; height: 2px; width: 1.6rem; border-radius: 2px; background: currentColor; opacity: .5;
}
.dir-title {
  margin-top: .85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.12;
  font-size: 20px; color: #0b3a49;
}

/* body */
.dir-body { padding: 2.5rem 1rem 4rem; background: #fff; }
@media (min-width: 640px) { .dir-body { padding: 3rem 1.5rem 5rem; } }
.dir-wrap { max-width: 75rem; margin: 0 auto; }

/* body — მიმართულების აღწერითი ტექსტი */
.dir-prose { max-width: 68rem; }
.dir-prose p { font-size: 15px; line-height: 1.95; font-weight: 500; color: #46555b; }
.dir-prose p + p { margin-top: 1.15rem; }
.dir-prose + .dir-speaker { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid #e8eef0; }

/* sections — დასათაურებული სიები */
.dir-section { max-width: 68rem; margin-top: 2rem; }
.dir-section-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; color: #0f83a8; margin-bottom: .95rem; }
.dir-list { list-style: none; display: grid; gap: .6rem; }
.dir-list li {
  position: relative; padding-left: 1.5rem;
  font-size: 1.02rem; line-height: 1.75; font-weight: 500; color: #46555b;
}
.dir-list li::before {
  content: ""; position: absolute; left: 0; top: .55rem;
  width: .5rem; height: .5rem; border-radius: 999px; background: #0f83a8;
}

/* ფოტოები — გვერდიგვერდ */
.dir-images { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.25rem; align-items: start; }
@media (min-width: 600px) { .dir-images { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.dir-images img {
  width: 100%; height: auto; border-radius: .9rem;
  border: 1px solid #e2e8ea; box-shadow: 0 14px 34px -20px rgba(8, 55, 59, .35);
}

/* ── block-სისტემა (ტექსტი/სია+ფოტო/ფოტო+ტექსტი/გალერეა) ── */
.dir-block { margin-top: 2.25rem; }
.dir-block-p { font-size: 15px; line-height: 1.9; font-weight: 500; color: #46555b; }
.dir-block-p + .dir-block-p { margin-top: .85rem; }
.dir-block-heading { font-size: 1.12rem; font-weight: 800; line-height: 1.55; color: #0b3a49; }
.dir-block-heading + .dir-block-p { margin-top: .9rem; }
.dir-block-text .dir-list { margin-top: .55rem; }

.dir-block--split { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 768px) {
  .dir-block--split { grid-template-columns: 1.5fr 1fr; gap: 2.75rem; }
  .dir-block--media { grid-template-columns: 1fr 1fr; align-items: center; }
  .dir-block--imgleft { grid-template-columns: 1fr 1.5fr; }
}
.dir-block-media img {
  width: 100%; height: auto; border-radius: .9rem;
  border: 1px solid #e2e8ea; box-shadow: 0 14px 34px -20px rgba(8, 55, 59, .35);
}
/* სია+ფოტო: ფოტო არ იყოს დიდი — სიის ტოლ სიმაღლეზე, ცენტრში */
.dir-block--split:not(.dir-block--media) .dir-block-media img {
  display: block; width: auto; max-width: 100%; max-height: 300px; margin: 0 auto;
}

/* გალერეა — 3 (ან 2) ფოტო ერთ ზოლზე */
.dir-gallery { display: grid; gap: 1rem; margin-top: 2.5rem; }

/* mobile: 3-ფოტოიანი → 2 ზევით + მე-3 სრული სიგანით ქვევით (ორივეს უტოლდება) */
.dir-gallery:not(.dir-gallery--2) { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.dir-gallery:not(.dir-gallery--2) img:nth-child(3) { grid-column: 1 / -1; }

/* mobile: 2-ფოტოიანი */
.dir-gallery--2 { grid-template-columns: 1fr; }
@media (min-width: 480px) {
  .dir-gallery--2 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (min-width: 700px) {
  .dir-gallery:not(.dir-gallery--2) { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .dir-gallery:not(.dir-gallery--2) img:nth-child(3) { grid-column: auto; }
  .dir-gallery--2 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
.dir-gallery img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .9rem;
  border: 1px solid #e2e8ea; box-shadow: 0 14px 34px -20px rgba(8, 55, 59, .35);
}

/* პროფილის ბარათი — სტატიის ბოლოს, კლიკებადი (→ ექიმის პროფილი) */
.dir-profile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 22rem; margin: 2.75rem auto 0;
  padding: 2rem 1.5rem 1.75rem; border-radius: 1.5rem; text-decoration: none;
  background: #fff; border: 1px solid #e7eef0;
  box-shadow: 0 20px 45px -25px rgba(8, 55, 59, .3);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dir-profile:hover { transform: translateY(-4px); border-color: #cfeaf1; box-shadow: 0 28px 52px -24px rgba(15, 131, 168, .42); }
.dir-profile-photo {
  width: 8rem; height: 8rem; border-radius: 999px; overflow: hidden;
  border: 4px solid #fff; background: #eef3f4;
  box-shadow: 0 0 0 3px rgba(15, 131, 168, .25), 0 14px 30px -14px rgba(8, 55, 59, .4);
}
.dir-profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dir-profile-name { margin-top: 1.15rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: #0b3a49; }
.dir-profile-role { margin-top: .4rem; font-size: .88rem; line-height: 1.55; font-weight: 600; color: #64757a; max-width: 18rem; }
.dir-profile-link { margin-top: 1rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 800; color: #0f83a8; }
.dir-profile-link svg { width: .95rem; height: .95rem; transition: transform .2s ease; }
.dir-profile:hover .dir-profile-link svg { transform: translateX(3px); }

/* ═══════════════ ჩვენი გუნდი (team) ═══════════════ */
.team-hero {
  position: relative; text-align: center;
  padding: 2.5rem 1rem 2.75rem;
  background-color: #eaf6fa;
  background-image: radial-gradient(circle, rgba(14, 116, 144, 0.14) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  border-bottom: 1px solid rgba(15, 131, 168, .12);
}
@media (min-width: 640px) { .team-hero { padding: 3.5rem 1.5rem; text-align: left; } }
.team-wrap { max-width: 75rem; margin: 0 auto; }
.team-hero nav { display: none; }
@media (min-width: 640px) { .team-hero nav { display: block; } }
.team-kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: .5rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #0f83a8;
}
@media (min-width: 640px) { .team-kicker { margin-top: 1.25rem; } }
.team-kicker::before { content: ""; height: 2px; width: 1.6rem; border-radius: 2px; background: currentColor; opacity: .5; }
.team-title {
  margin-top: .8rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.12;
  font-size: clamp(1.8rem, 5vw, 2.9rem); color: #0b3a49;
}
.team-subtitle { margin: .9rem auto 0; max-width: 40rem; font-size: .95rem; line-height: 1.7; color: #5b6b70; font-weight: 500; }
@media (min-width: 640px) { .team-subtitle { margin-left: 0; } }

.team-body { padding: 2.5rem 1rem 4rem; background: #fff; }
@media (min-width: 640px) { .team-body { padding: 3.5rem 1.5rem 5rem; } }

/* ხელმძღვანელი — პრემიუმ ბარათი: მართკუთხა ფოტო + ბრენდის პანელი */
.team-lead {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  max-width: 58rem; margin: 0 auto;
  border-radius: 1.5rem; background: #fff; border: 1px solid #e7eef0;
  box-shadow: 0 34px 80px -42px rgba(8, 55, 59, .5);
  color: inherit; text-decoration: none;
}
.team-lead--link { cursor: pointer; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.team-lead--link:hover { transform: translateY(-3px); border-color: #cfeaf1; box-shadow: 0 44px 90px -42px rgba(15, 131, 168, .5); }
@media (min-width: 820px) { .team-lead { grid-template-columns: .82fr 1.18fr; border-radius: 1.75rem; } }

.team-lead-media { position: relative; aspect-ratio: 4 / 3; background: #eef3f4; overflow: hidden; }
@media (min-width: 480px) { .team-lead-media { aspect-ratio: 16 / 10; } }
@media (min-width: 820px) { .team-lead-media { aspect-ratio: auto; min-height: 100%; } }
.team-lead-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.team-lead-panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.85rem 1.5rem 2rem; color: #fff;
  background: linear-gradient(158deg, #16a0c9 0%, #0b6a89 60%, #08556f 100%);
}
@media (min-width: 640px) { .team-lead-panel { padding: 2.75rem 2.5rem; } }
.team-lead-panel::after {
  content: ""; position: absolute; right: -3.5rem; top: -3.5rem;
  width: 13rem; height: 13rem; border-radius: 999px; border: 2.75rem solid rgba(255, 255, 255, .07);
}

.team-lead-badge {
  position: relative; align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  padding: .45rem 1rem; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff;
}

.team-lead-name {
  position: relative; display: flex; align-items: center; gap: .6rem;
  margin-top: 1.25rem; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
}
@media (min-width: 640px) { .team-lead-name { font-size: 2.1rem; } }
.team-lead-ic { flex: none; width: 1.6rem; height: 1.6rem; color: rgba(255, 255, 255, .9); }
@media (min-width: 640px) { .team-lead-ic { width: 1.9rem; height: 1.9rem; } }

.team-lead-roles {
  position: relative; margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.team-lead-roles p { font-size: .9rem; line-height: 1.6; font-weight: 600; color: rgba(255, 255, 255, .82); }
.team-lead-roles p + p { margin-top: .5rem; }
.team-lead-roles p:first-child { color: #fff; font-weight: 700; }
@media (min-width: 640px) { .team-lead-roles p { font-size: 1rem; } }

/* კატეგორია */
.team-group { margin-top: 3rem; }
@media (min-width: 640px) { .team-group { margin-top: 3.5rem; } }
.team-group-label {
  display: flex; align-items: center; gap: .85rem;
  font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; color: #0f83a8; margin-bottom: 1.5rem;
}
.team-group-label::before { content: ""; flex: none; width: 2.25rem; height: 3px; border-radius: 3px; background: #0f83a8; }

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .team-grid { gap: 1rem; } }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

.team-card {
  display: block; overflow: hidden; min-width: 0;
  background: #fff; border: 1px solid #e7eef0; border-radius: 1rem;
  box-shadow: 0 12px 30px -20px rgba(8, 55, 59, .18);
  color: inherit; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (min-width: 640px) { .team-card { border-radius: 1.25rem; } }
.team-card:hover { transform: translateY(-4px); border-color: #cfeaf1; box-shadow: 0 22px 44px -22px rgba(15, 131, 168, .35); }
.team-card--link { cursor: pointer; }
.team-card--link:hover { border-color: #0f83a8; }
.team-card-more { display: inline-flex; align-items: center; gap: 5px; margin-top: .55rem; font-size: .7rem; font-weight: 800; color: #0f83a8; font-family: 'DejaVu Sans', 'Noto Sans Georgian', sans-serif; }
.team-card-more i { font-size: .62rem; transition: transform .25s ease; }
.team-card--link:hover .team-card-more i { transform: translateX(3px); }

/* მართკუთხა ფოტო/ინიციალები (წრეების გარეშე) */
.team-card-media { position: relative; aspect-ratio: 4 / 5; background: #eef3f4; overflow: hidden; }
.team-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-card-initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(155deg, #16a0c9, #0b6a89); color: #fff;
  font-size: 2.4rem; font-weight: 800; letter-spacing: .02em;
}

.team-card-body { padding: .8rem .45rem 1rem; text-align: center; }
@media (min-width: 640px) { .team-card-body { padding: 1.1rem .85rem 1.25rem; } }
.team-name { font-size: .92rem; font-weight: 800; color: #0b3a49; line-height: 1.3; overflow-wrap: break-word; }
@media (min-width: 640px) { .team-name { font-size: 1.02rem; } }
.team-role { margin-top: .4rem; font-size: .75rem; line-height: 1.45; font-weight: 600; color: #64757a; overflow-wrap: break-word; }
@media (min-width: 640px) { .team-role { font-size: .82rem; } }

/* speaker — სახელი წინ, პატარა იკონით */
.dir-speaker { display: flex; align-items: flex-start; gap: .6rem; max-width: 44rem; }
.dir-speaker-mark { flex: none; margin-top: .28rem; color: #0f83a8; }
.dir-speaker-mark svg { width: 1.3rem; height: 1.3rem; }
.dir-speaker-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #0b3a49; line-height: 1.2; }
.dir-speaker-role { margin-top: .45rem; font-size: .9rem; line-height: 1.7; font-weight: 600; color: #64757a; }

/* video — სუფთა ჩარჩო + შუა play ღილაკი */
.dir-video {
  position: relative; margin-top: 1.75rem; border-radius: 1.25rem; overflow: hidden;
  border: 1px solid #e2e8ea; background: #06222b;
  box-shadow: 0 22px 50px -28px rgba(8, 55, 59, .35);
}
@media (min-width: 640px) { .dir-video { margin-top: 2rem; border-radius: 1.5rem; } }
.dir-video video { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #06222b; }
.dir-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 4.75rem; height: 4.75rem;
  border: none; cursor: pointer; border-radius: 999px; color: #fff;
  background: rgba(15, 131, 168, .92);
  box-shadow: 0 12px 30px rgba(8, 55, 59, .4), 0 0 0 8px rgba(255, 255, 255, .18);
  transition: transform .2s ease, background .2s ease, opacity .25s ease;
}
.dir-play:hover { transform: translate(-50%, -50%) scale(1.07); background: #0f83a8; }
.dir-play svg { width: 1.9rem; height: 1.9rem; margin-left: .22rem; }
.dir-video.is-playing .dir-play { opacity: 0; pointer-events: none; }

/* coming soon (ნეირორეანიმაცია) */
.dir-soon {
  margin-top: 1.75rem; display: grid; place-items: center; text-align: center;
  border-radius: 1.25rem; padding: 3rem 1.5rem;
  border: 1px dashed rgba(15, 131, 168, .3); background: rgba(15, 131, 168, .04); color: #64757a;
}
.dir-soon svg { width: 2.25rem; height: 2.25rem; color: #0f83a8; margin-bottom: .85rem; }
.dir-soon p { font-size: .95rem; line-height: 1.7; max-width: 24rem; }

/* sticky header-ისთვის: body-ის overflow-x:hidden → clip
   (hidden ქმნის scroll-container-ს და ტეხავს position:sticky-ს; clip არა) */
body.overflow-x-hidden {
  overflow-x: clip;
}

/* desktop-only ჩვენება (md:block purged CSS-ში არ არის) */
.show-desktop { display: none; }
@media (min-width: 768px) { .show-desktop { display: block; } }

/* desktop მენიუ — topbar-ის ფერი (ბრენდი) + თეთრი ტექსტი
   (მხოლოდ ეს nav, რომ mobile bottom-nav-ს არ შეეხოს) */
nav[aria-label="მთავარი ნავიგაცია"] {
  background-color: #0f83a8; /* = topbar-ის ზუსტი ფერი */
  border-bottom-color: rgba(255, 255, 255, .18);
}
nav[aria-label="მთავარი ნავიგაცია"] ul > li > a,
nav[aria-label="მთავარი ნავიგაცია"] ul > li > button {
  color: #fff;
}
nav[aria-label="მთავარი ნავიგაცია"] ul > li > a:hover,
nav[aria-label="მთავარი ნავიგაცია"] ul > li > button:hover {
  color: rgba(255, 255, 255, .78);
}

/* მუქ header-ზე ლოგო — ბუნებრივი ფერებით (გამჭვირვალე PNG) */
.hdr-logo {
  height: 3.5rem;
  width: auto;
}

/* მობილურის hamburger — ცხადი ღილაკი (სუნთქვის ადგილი, არ იკუჭება) */
.hdr-burger {
  background: rgba(255, 255, 255, .12);
  transition: background .2s ease;
}
.hdr-burger:active { background: rgba(255, 255, 255, .24); }

/* home ვიდეოს ჩარჩო — შავის ნაცვლად მუქი ცისფერი */
.home-video-frame {
  background-color: rgb(7 76 96);
}

/* topbar სოც. იკონები — გამჭვირვალე თეთრი წრე, ნათელი იკონი, ლამაზი hover */
.social-ic {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, .95);
  background: rgba(255, 255, 255, .14);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-ic:hover {
  background: #fff;
  color: #0f83a8;
  transform: translateY(-1px);
}

/* topbar — მობილურზე მუქი (header-ს ერწყმის) + გამყოფი ხაზი;
   desktop-ზე ბრენდის ცისფერი (როგორც იყო) */
.site-topbar {
  background: linear-gradient(180deg, #10404c, #0d2b34);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
@media (min-width: 768px) {
  .site-topbar {
    background: #0f83a8;
    border-bottom: 0;
  }
}

/* footer — ღია ცისფერ ფონზე მუქი-თეთრი ტექსტი უკეთ იკითხებოდეს */
#site-footer .text-white\/55,
#site-footer .text-white\/60 {
  color: rgb(255 255 255 / 0.9);
}

/* footer — გამოკვეთილი მუქი-ბრენდის ზედა ხაზი (desktop + mobile) */
#site-footer {
  border-top: 3px solid #0a5c74;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: "Noto Sans Georgian", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

/* ===== მობილურის ქვედა მენიუ (ბრტყელი / სერიოზული) ===== */
.mobile-bottom-nav {
  background: #ffffff;
  border-top: 1px solid #e2e8f0 !important;
  border-radius: 0;
  box-shadow: 0 -4px 16px rgba(8, 55, 59, .07);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  position: fixed;
}

.mbn-inner {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 62px;
}

.mbn-item {
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  background: none;
  border: 0;
  color: #64748b;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  position: relative;
  transition: color .2s ease, background .2s ease;
}

.mbn-ic {
  align-items: center;
  display: flex;
  height: 22px;
  justify-content: center;
}

.mbn-ic i {
  font-size: 20px;
  line-height: 1;
}

.mbn-ic svg {
  height: 22px;
  width: 22px;
}

.mbn-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1px;
  line-height: 1;
}

/* active — ზედა აქცენტ-ხაზი + ბრენდის ფერი (ბრტყელი, ხაზგასმა) */
.mbn-item.is-active {
  background: linear-gradient(180deg, rgba(15, 131, 168, .07), rgba(15, 131, 168, 0) 70%);
  color: #0f83a8;
}
.mbn-item.is-active .mbn-label { font-weight: 700; }
.mbn-item.is-active::before {
  background: #0f83a8;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.mbn-item:active { background: rgba(15, 131, 168, .06); }

@media (hover: hover) {
  .mbn-item:not(.is-active):hover { color: #0f83a8; }
}

/* ===== BPG Arial Caps — სათაურები/მენიუ ===== */
.font-caps { font-family: 'BPG Arial Caps', 'Noto Sans Georgian', sans-serif; }
/* Desktop მთავარი მენიუ */
nav[aria-label="მთავარი ნავიგაცია"] { font-family: 'BPG Arial Caps', 'Noto Sans Georgian', sans-serif; }
/* მობილურის ქვედა მენიუ — წარწერები */
.mbn-label { font-family: 'BPG Arial Caps', 'Noto Sans Georgian', sans-serif; }

/* DejaVu Sans — მიმართულებების ბარათები + განათლების სათაურები + გალერეის აღწერა
   + გუნდის ბარათების ექიმები (შოთას ხელმძღვანელის ბარათის გარდა) */
.font-dejavu,
.dircard-title, .dircard-more,
.edu-title,
.team-name, .team-role { font-family: 'DejaVu Sans', 'Noto Sans Georgian', sans-serif; }

/* სექციების სათაურების ფიქსირებული ზომა — 18px (ყველა ეკრანზე) */
#services-title,
#video-title,
#education-title,
#gallery-title { font-size: 18px; }

/* ===== მიმართულებების ბარათები (home + hub) ===== */
.dircard-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .dircard-grid { gap: 18px; } }
@media (min-width: 1024px) { .dircard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

.dircard {
  align-items: center;
  background: #fff;
  border: 1px solid #e7eef2;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(8, 55, 59, .05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: 20px 12px 16px;
  position: relative;
  text-align: center;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease, border-color .3s ease;
}
@media (min-width: 640px) { .dircard { border-radius: 22px; gap: 14px; padding: 34px 22px 28px; } }

/* ზედა აქცენტ-ხაზი hover-ზე */
.dircard::before {
  background: linear-gradient(90deg, #16a6cc, #0f83a8);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.dircard:hover {
  border-color: rgba(15, 131, 168, .30);
  box-shadow: 0 20px 44px rgba(15, 131, 168, .16);
  transform: translateY(-6px);
}
.dircard:hover::before { transform: scaleX(1); }

.dircard-ic {
  align-items: center;
  background: linear-gradient(150deg, #16a6cc 0%, #0f83a8 58%, #0b6f8f 100%);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(15, 131, 168, .28);
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  height: 46px;
  justify-content: center;
  transition: transform .35s cubic-bezier(.34, 1.4, .5, 1);
  width: 46px;
}
@media (min-width: 640px) { .dircard-ic { height: 66px; width: 66px; border-radius: 18px; box-shadow: 0 10px 22px rgba(15, 131, 168, .30); } }
.dircard-ic i { font-size: 19px; }
@media (min-width: 640px) { .dircard-ic i { font-size: 28px; } }
.dircard:hover .dircard-ic { transform: scale(1.07) rotate(-4deg); }

.dircard-title {
  color: #0e2a34;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.4;
}
@media (min-width: 640px) { .dircard-title { font-size: 15.5px; } }

.dircard-desc {
  color: #5b7280;
  font-size: 12px;
  line-height: 1.55;
  margin-top: -2px;
}
@media (min-width: 640px) { .dircard-desc { font-size: 12.5px; } }

.dircard-more {
  align-items: center;
  color: #0f83a8;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
@media (min-width: 640px) { .dircard-more { font-size: 12px; } }
.dircard-more i { font-size: 11px; transition: transform .3s ease; }
.dircard:hover .dircard-more i { transform: translateX(4px); }

/* ===== hub (ქვე-მიმართულებების არჩევანი) ===== */
.dir-hub { margin: 6px 0 14px; }

/* hub-სა და შემდეგ სექციას (შოთა/ვიდეო) შორის ლამაზი გამყოფი */
.dir-divider {
  background: linear-gradient(90deg, transparent, rgba(15, 131, 168, .32) 22%, rgba(15, 131, 168, .32) 78%, transparent);
  height: 1px;
  margin: 40px auto 36px;
  max-width: 680px;
  position: relative;
  width: 100%;
}
.dir-divider::before {
  background: linear-gradient(150deg, #16a6cc, #0f83a8);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px rgba(15, 131, 168, .18), 0 4px 10px rgba(15, 131, 168, .35);
  content: "";
  height: 10px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
}
@media (min-width: 640px) { .dir-divider { margin: 52px auto 44px; } }
.dir-hub-title {
  color: #0e2a34;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  position: relative;
  padding-left: 14px;
}
.dir-hub-title::before {
  background: linear-gradient(180deg, #16a6cc, #0f83a8);
  border-radius: 3px;
  bottom: 3px;
  content: "";
  left: 0;
  position: absolute;
  top: 3px;
  width: 5px;
}
@media (min-width: 640px) { .dir-hub-title { font-size: 20px; margin-bottom: 22px; } }

/* ===== მთავარი — ვიდეოს სექცია (მობილურზე კომპაქტური) ===== */
.home-video-sec { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 640px) { .home-video-sec { padding-top: 72px; padding-bottom: 80px; } }
@media (min-width: 1024px) { .home-video-sec { padding-top: 96px; padding-bottom: 96px; } }
.home-video-head { margin-bottom: 22px; }
@media (min-width: 1024px) { .home-video-head { margin-bottom: 40px; } }

/* ===== მთავარი — ფოტო გალერეა (ჰორიზონტალური swipe, scrollbar დამალული) ===== */
.gallery-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
}
.gallery-scroll::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.gallery-scroll > .gallery-card {
  flex: 0 0 43%;              /* 2 სრული + მე-3-ის კიდე (peek) → მინიშნება, რომ კიდევ არის */
  scroll-snap-align: start;
}
@media (min-width: 640px) { .gallery-scroll { gap: 14px; } .gallery-scroll > .gallery-card { flex-basis: 44%; } }
@media (min-width: 1024px) {
  .gallery-scroll { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; overflow: visible; }
  .gallery-scroll > .gallery-card { flex: none; }
}

/* ===== მთავარი — განათლების ბარათები ===== */
.edu-card {
  align-items: center;
  background: #f6f4ee;
  border: 1px solid #eceff0;
  border-radius: 20px;
  display: flex;
  gap: 15px;
  padding: 18px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
@media (min-width: 640px) { .edu-card { border-radius: 24px; gap: 18px; padding: 26px; } }
.edu-card:hover {
  border-color: rgba(15, 131, 168, .25);
  box-shadow: 0 18px 40px rgba(8, 55, 59, .10);
  transform: translateY(-4px);
}
.edu-ic {
  align-items: center;
  background: linear-gradient(150deg, #16a6cc, #0f83a8 60%, #0b6f8f);
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(15, 131, 168, .28);
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  height: 50px;
  justify-content: center;
  width: 50px;
}
.edu-ic i { font-size: 20px; }
.edu-body { flex: 1 1 auto; min-width: 0; }
.edu-label { color: #0f83a8; display: block; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.edu-title { color: #0e2a34; display: block; font-size: 16px; font-weight: 800; margin-top: 5px; }
@media (min-width: 640px) { .edu-title { font-size: 18px; } }
.edu-arrow {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: #0f83a8;
  display: flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  transition: background .3s ease, color .3s ease, transform .3s ease;
  width: 40px;
}
.edu-card:hover .edu-arrow { background: #0f83a8; color: #fff; transform: translateX(3px); }

.service-card {
  min-width: 0;
}

.service-card::after {
  background: linear-gradient(90deg, #20aaa5, #73d4ce);
  bottom: 0;
  content: "";
  height: 3px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 280ms ease;
  width: 55%;
}

.service-card:hover::after,
.service-card:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

::selection {
  background: #bce5e1;
  color: #05292d;
}

:focus-visible {
  outline: 3px solid #2dd4bf;
  outline-offset: 4px;
}

.skip-link {
  left: 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  align-items: center;
  color: #0f7473;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  gap: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  background: #1ca4a0;
  content: "";
  height: 2px;
  width: 2rem;
}

.hero-slide {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: scale(1.025);
  transition: opacity 850ms ease, transform 6500ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 1;
}

.hero-slide .slide-copy {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease 220ms, transform 650ms ease 220ms;
}

.hero-slide.is-active .slide-copy {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  [data-slider] {
    background: #08373b;
    border: 0;
    border-radius: 0;
    box-shadow: 0 24px 65px rgba(8, 55, 59, .13);
    isolation: isolate;
    max-width: none;
    overflow: hidden;
    width: 100%;
  }

  [data-slider]::before {
    display: none;
  }

  .hero-slide::after {
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(8, 55, 59, .12);
    color: #0f7473;
    content: attr(data-slide-number);
    display: flex;
    font-size: .72rem;
    font-weight: 900;
    height: 3rem;
    justify-content: center;
    left: auto;
    letter-spacing: .12em;
    position: absolute;
    right: 2.5rem;
    top: 2rem;
    width: 3rem;
    z-index: 5;
  }

  .hero-slide .hero-media {
    border-radius: 0;
    box-shadow: none;
    height: 100%;
    inset: 0 auto 0 0;
    object-position: center;
    outline: 0;
    width: 100%;
  }

  .hero-slide .hero-shade {
    display: none;
  }

  .hero-slide .slide-copy {
    display: none;
  }

  .hero-slide.is-active .slide-copy {
    transform: none;
  }

  .hero-controls {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 999px;
    bottom: 1.75rem;
    left: auto;
    padding: .5rem .55rem .5rem 1.1rem;
    right: 2.5rem;
    width: 13.5rem;
    z-index: 6;
  }

  .hero-controls .hero-dot {
    background: #bfd4d2;
  }

  .hero-controls .hero-dot[aria-current="true"] {
    background: #0f7473;
  }

  .hero-controls .hero-arrows button {
    background: #fff;
    border-color: #d7e7e5;
    box-shadow: 0 5px 16px rgba(8, 55, 59, .08);
    color: #0b5c5d;
    height: 2.6rem;
    width: 2.6rem;
  }

  .hero-controls .hero-arrows button:hover {
    background: #0f7473;
    color: #fff;
  }
}

.hero-dot[aria-current="true"] {
  background: #fff;
  width: 2.25rem;
}

.nav-dropdown {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  visibility: hidden;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.gallery-card img {
  transition: transform 650ms cubic-bezier(.2, .75, .25, 1), filter 300ms ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.065);
}

.gallery-card .gallery-overlay {
  opacity: 0;
  transition: opacity 250ms ease;
}

.gallery-card:hover .gallery-overlay,
.gallery-card:focus-visible .gallery-overlay {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lightbox-panel {
  opacity: 0;
  transform: scale(.975);
  transition: opacity 220ms ease, transform 220ms ease;
}

#lightbox.is-visible .lightbox-panel {
  opacity: 1;
  transform: scale(1);
}

.noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
  .reveal {
    transform: translateY(14px);
  }

  .eyebrow {
    letter-spacing: .1em;
  }
}

/* სლაიდერი — მობილურ ვერსიაზე: ტექსტების გარეშე, ავსებს სივრცეს, ზოლების/გაწელვის გარეშე */
@media (max-width: 639px) {
  [data-slider] {
    height: auto !important;
    aspect-ratio: 1272 / 460 !important;  /* ფოტოების ზუსტი პროპორცია → სრული კადრი, ჭრის/ზოლების გარეშე */
    border-radius: 5px !important;         /* მაქს. მომრგვალება 5px */
  }

  .hero-slide .hero-media {
    object-fit: cover !important;
    object-position: center !important;
  }

  .hero-slide .hero-shade,
  .hero-slide .slide-copy {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
