/* ==========================================================================
   ბათუმის N2 საჯარო სკოლა — საიტის სტილები
   შენიშვნა: ქართულ ტექსტზე text-transform: uppercase არასოდეს (მთავრულად აქცევს).
   ========================================================================== */

/* ---------- ცვლადები ---------- */

:root {
  --ink:        #2A4A9A;
  --ink-dark:   #1C336F;
  --accent:     #E2B805;
  --stone:      #ECEDE7;
  --paper:      #F7F7F3;
  --plinth:     #DDE0D6;
  --rule:       #C5C9BE;
  --rule-soft:  #E1E3DC;
  --text:       #1F2A30;
  --text-2:     #33424A;
  --muted:      #4E5A60;
  --on-ink:     #D4E0F2;
  --field:      #A9AEA2;
  --danger:     #8A3B2E;
  --ok:         #3F7F6B;
  --badge-draft-bg: #F3E6C6; --badge-draft-fg: #6B4E12;
  --badge-pub-bg:   #DCE6F5; --badge-pub-fg:   #2A4A9A;
  --ph-a: #D5D8CE; --ph-b: #E3E5DD;

  --font-display: 'Noto Serif Georgian', 'Noto Serif', Georgia, serif;
  --font-numeral: 'Noto Serif', 'Noto Serif Georgian', Georgia, serif;
  --font-body:    'Noto Sans Georgian', 'Noto Sans', system-ui, sans-serif;

  --container: 1280px;
  --gutter: 80px;
}

@media (max-width: 1439px) { :root { --gutter: 48px; } }
@media (max-width: 1023px) { :root { --gutter: 32px; } }
@media (max-width: 760px)  { :root { --gutter: 20px; } }

/* ---------- საფუძველი ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--ink); }
a:hover { color: var(--ink-dark); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: break-word;
}

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink);
}

main:focus { outline: none; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- ტიპოგრაფია ---------- */

.page-title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  font-stretch: 75%;
}

.section-title {
  font-size: clamp(40px, 3.9vw, 56px);
  line-height: 1.1;
  font-stretch: 75%;
}

.lead {
  font-size: 21px;
  line-height: 1.65;
  color: var(--text-2);
}

@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.65; }
  .lead { font-size: 17px; }
}

/* ყვითელი ხაზით გახაზული ბმული */
.link-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.link-accent .icon { flex-shrink: 0; transition: transform .15s ease; }
.link-accent:hover .icon { transform: translateX(3px); }

/* რომბით სია */
.diamond-list { list-style: none; margin: 0; padding: 0; }
.diamond-list > li { position: relative; padding-left: 24px; }
.diamond-list > li::before,
.diamond {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ფოტოს ნაცვლად, როცა ფოტო არ არის */
.photo-placeholder {
  display: block;
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 2px, var(--ph-b) 2px 14px);
}

/* ---------- ღილაკები, ველები ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--paper); color: var(--ink-dark); border-color: var(--ink-dark); }

.btn--primary {
  min-height: 56px;
  padding: 0 32px;
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: var(--ink-dark); border-color: var(--ink-dark); color: #fff; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}
.icon-btn:hover { border-color: var(--ink); }

.site-search {
  display: flex;
  gap: 12px;
  max-width: 720px;
}
.site-search input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1.5px solid var(--field);
  border-radius: 2px;
  background: #fff;
  font-size: 17px;
}
.site-search input:focus-visible { border-color: var(--ink); }

@media (max-width: 560px) {
  .site-search .btn { padding: 0 18px; }
  .site-search .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- ენის გადამრთველი ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  font-size: 14px;
}
.lang-switch__item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: inherit;
  text-decoration: none;
}
a.lang-switch__item:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang-switch__item.is-current {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.lang-switch__sep { opacity: .5; }

/* ---------- Utility ზოლი ---------- */

.utility {
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  line-height: 1.3;
}
.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}
.utility__contacts {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.utility__contacts li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.utility a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--on-ink);
  text-decoration: none;
}
.utility a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.utility .icon { flex-shrink: 0; }
.utility__end { display: flex; align-items: center; gap: 12px; }
.utility__fb { justify-content: center; min-width: 44px; }
.utility .lang-switch__item.is-current { color: #fff; }

@media (max-width: 1023px) {
  .utility__address { display: none !important; }
}
@media (max-width: 560px) {
  .utility__contacts { gap: 12px; }
  .utility__email a { justify-content: center; min-width: 44px; }
  .utility__email .utility__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
@media (max-width: 420px) {
  .utility__fb { display: none; }
}

/* ---------- ჰედერი ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--stone);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 96px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__logo { width: auto; height: 68px; }
.brand__name { display: flex; flex-direction: column; }
.brand__top {
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  font-weight: 500;
}
.brand__main {
  font-family: var(--font-display);
  font-size: 26px;
  font-stretch: 75%;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}

.main-nav { margin-left: auto; }
.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav__item::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: transparent;
}
.main-nav__item:hover { color: var(--ink); }
.main-nav__item.is-active,
.main-nav__item[aria-expanded="true"] { color: var(--ink); }
.main-nav__item.is-active::after,
.main-nav__item[aria-expanded="true"]::after { background: var(--accent); }
.main-nav__toggle .icon { transition: transform .15s ease; }
.main-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.header-menu-btn { display: none; }

@media (max-width: 1279px) {
  .main-nav, .header-search-btn { display: none; }
  .header-menu-btn { display: inline-flex; flex-shrink: 0; margin-left: auto; padding: 0 14px; }
}
@media (max-width: 760px) {
  .site-header__inner { min-height: 72px; gap: 12px; }
  .brand { gap: 10px; }
  .brand__logo { height: 50px; }
  .brand__top { font-size: 12px; }
  .brand__main { font-size: 21px; }
}

/* ---------- Mega menu ---------- */

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 40px 0 36px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 16px 24px -20px rgba(31, 42, 48, .35);
}
.mega__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
}
.mega__col {
  padding-top: 16px;
  border-top: 2px solid var(--rule-soft);
}
.mega__col.is-current { border-top-color: var(--accent); }
.mega__title {
  margin-bottom: 10px;
  font-size: 22px;
  font-stretch: 87.5%;
  line-height: 1.25;
}
.mega__list { margin: 0; padding: 0; list-style: none; }
.mega__list a {
  display: block;
  padding: 7px 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
}
.mega__list a:hover,
.mega__list a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.mega .site-search {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  max-width: none;
}
.mega .site-search input { max-width: 640px; }

/* ---------- მობილური მენიუ ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--stone);
  padding-bottom: 40px;
}
.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.brand--small .brand__logo { height: 44px; }
.brand--small .brand__main { font-size: 20px; }

.mobile-menu__groups { margin: 0; padding: 0; list-style: none; }
.mobile-menu__toggle,
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-stretch: 87.5%;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}
.mobile-menu__toggle .icon { flex-shrink: 0; transition: transform .15s ease; }
.mobile-menu__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-menu__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.mobile-menu__sub {
  margin: 0;
  padding: 8px 0 16px;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}
.mobile-menu__sub a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 0 6px 24px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.4;
  text-decoration: none;
}
.mobile-menu__sub a::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  background: var(--accent);
  transform: rotate(45deg);
}
.mobile-menu__sub a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.mobile-menu .site-search { margin: 28px 0 20px; }
.mobile-menu__footer { color: var(--ink); }
.mobile-menu__footer .lang-switch { font-size: 16px; }

body.is-menu-open { overflow: hidden; }

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  padding-top: 32px;
  font-size: 15px;
  color: var(--muted);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb__list li { display: inline-flex; align-items: center; }
.breadcrumb__list li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 12px 0 8px;
  border-top: 1.5px solid var(--field);
  border-right: 1.5px solid var(--field);
  transform: rotate(45deg);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}
.breadcrumb a:hover { color: var(--ink); text-decoration-color: var(--accent); }
.breadcrumb__back { display: none; }

@media (max-width: 760px) {
  .breadcrumb { padding-top: 16px; }
  .breadcrumb__list { display: none; }
  .breadcrumb__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    margin-left: -6px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 64px;
  align-items: end;
  padding-top: 72px;
}
.hero__text {
  align-self: center;
  padding-bottom: 72px;
}
.hero__founding {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.hero__founding::before {
  content: "";
  flex-shrink: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.hero__title {
  margin-bottom: 28px;
  font-size: clamp(46px, 5.84vw, 84px);
  line-height: 1.04;
  font-stretch: 75%;
  text-wrap: balance;
}
.hero__lead {
  max-width: 34em;
  margin-bottom: 40px;
  color: var(--text-2);
  font-size: 21px;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.hero__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* თაღოვანი ფანჯარა სათაღე ქვით */
.arch {
  position: relative;
  width: 440px;
  height: 560px;
  border: 1.5px solid var(--ink);
  border-bottom: none;
  border-radius: 220px 220px 0 0;
}
.arch__img {
  position: absolute;
  top: 14px;
  left: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 14px);
  object-fit: cover;
  border-radius: 206px 206px 0 0;
}
.arch__keystone {
  position: absolute;
  z-index: 1;
  top: -12px;
  left: 50%;
  width: 36px;
  height: 40px;
  transform: translateX(-50%);
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}

/* ცოკოლი „ამოტვიფრული" წარწერით */
.plinth {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 520px;
  height: 132px;
  background: var(--plinth);
  border-top: 3px solid var(--ink);
}
.plinth__text {
  font-family: var(--font-numeral);
  font-size: 76px;
  font-stretch: 75%;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 6px;
  color: #CDD0C5;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85), 0 -1px 0 rgba(0, 0, 0, .22);
}

@media (max-width: 1099px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 48px;
  }
  .hero__text { padding-bottom: 0; }
  .hero__figure { width: 100%; }
  .arch {
    width: min(440px, 80%);
    height: auto;
    aspect-ratio: 440 / 560;
    border-radius: 999px 999px 0 0;
  }
  .arch__img { border-radius: 999px 999px 0 0; }
  .plinth {
    width: min(520px, 100%);
    height: auto;
    padding: 20px 0;
  }
  .plinth__text { font-size: clamp(48px, 13vw, 76px); }
}

@media (max-width: 760px) {
  .hero__inner { padding-top: 32px; gap: 40px; }
  .hero__founding { gap: 12px; margin-bottom: 20px; font-size: 14px; }
  .hero__founding::before { width: 32px; }
  .hero__title { margin-bottom: 20px; }
  .hero__lead { margin-bottom: 28px; font-size: 17px; }
  .hero__actions .btn { width: 100%; }
  .arch__img { top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 10px); }
  .arch__keystone { top: -10px; width: 28px; height: 32px; }
}

/* ---------- ფუტერი ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  font-size: 16px;
  line-height: 1.6;
}
.site-footer a { color: var(--on-ink); text-underline-offset: 4px; }
.site-footer a:hover { color: #fff; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.25fr;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 56px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.logo-plate {
  display: inline-flex;
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--paper);
}
.logo-plate img { width: auto; height: 60px; }
.footer-brand__name { display: flex; flex-direction: column; }
.footer-brand__top { font-size: 13px; line-height: 1.3; }
.footer-brand__main {
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-stretch: 75%;
  font-weight: 700;
  line-height: 1.15;
}
.site-footer__about { max-width: 34em; margin: 24px 0 0; }

.site-footer__title {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 12px;
  color: #fff;
  font-size: 22px;
  font-stretch: 87.5%;
  line-height: 1.25;
}
.site-footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.site-footer__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.site-footer__list .icon { flex-shrink: 0; margin-top: 2px; }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__list--links li { position: relative; padding-left: 20px; }
.site-footer__list--links li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .65em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 72px;
  border-top: 1px solid rgba(212, 224, 242, .25);
  font-size: 14px;
}
.site-footer__bottom p { margin: 0; padding: 14px 0; }
.site-footer__bottom .lang-switch__item.is-current { color: #fff; }

@media (max-width: 1023px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
  .logo-plate img { height: 50px; }
}

/* ---------- შეცდომის გვერდი ---------- */

.error-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 48px 80px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 120px;
}
.error-page__main { min-width: 0; }
.error-page .page-title { margin-bottom: 20px; }
.error-page__text { max-width: 36em; margin-bottom: 32px; }
.error-page__links-title { margin: 40px 0 16px; }

/* „404" ქვის ცოკოლზე, ამოტვიფრული — როგორც „1904 წ." მთავარ გვერდზე */
.error-page__plinth {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border-top: 3px solid var(--ink);
  background: var(--plinth);
}
.error-page__plinth span {
  font-family: var(--font-numeral);
  font-size: 120px;
  font-stretch: 75%;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 8px;
  color: #CDD0C5;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85), 0 -1px 0 rgba(0, 0, 0, .22);
}

@media (max-width: 1023px) {
  .error-page { grid-template-columns: minmax(0, 1fr); }
  .error-page__plinth { order: -1; height: 120px; }
  .error-page__plinth span { font-size: 76px; letter-spacing: 6px; }
}
@media (max-width: 760px) {
  .error-page { padding-top: 32px; padding-bottom: 72px; gap: 32px; }
  .error-page__plinth { height: 96px; }
  .error-page__plinth span { font-size: 60px; }
}

/* ==========================================================================
   საერთო კომპონენტები: ფოტოს ჩარჩო, თაღები, ბარათები
   ========================================================================== */

/* ფოტო ავსებს ჩარჩოს; ჩარჩო ზომას და თაღს იძლევა, ფონად — placeholder-ის დაშტრიხვა */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 2px, var(--ph-b) 2px 14px);
}
.frame picture,
.frame .fill { display: block; width: 100%; height: 100%; }
.fill { object-fit: cover; }

/* სეგმენტური თაღი: R ფოტოს ზომაზეა დამოკიდებული */
.arch-xl { border-radius: 50% 50% 0 0 / 80px 80px 0 0; }
.arch-lg { border-radius: 50% 50% 0 0 / 64px 64px 0 0; }
.arch-md { border-radius: 50% 50% 0 0 / 40px 40px 0 0; }
.arch-sm { border-radius: 50% 50% 0 0 / 28px 28px 0 0; }
.arch-xs { border-radius: 50% 50% 0 0 / 16px 16px 0 0; }

/* ფაილის ნიშანი ფოტოს ნაცვლად */
.doc-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
}
.doc-mark__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 92px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-numeral);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.mini .doc-mark__label { width: 34px; height: 44px; font-size: 10px; letter-spacing: 0; }

/* ბარათი მთლიანად დაჭერადია სათაურის ბმულით */
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; box-shadow: none; }
.card__link:focus-visible::after {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--ink);
}
.card:hover .card__link,
.feature:hover .card__link,
.mini:hover .card__link {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.badge--latest { background: var(--badge-pub-bg); color: var(--badge-pub-fg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
a.chip:hover { background: var(--ink); color: #fff; }
.chips--lg .chip { min-height: 44px; padding: 8px 18px; font-size: 15px; }

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

.block { margin-top: 64px; }
.block-title {
  margin-bottom: 24px;
  font-size: 28px;
  font-stretch: 87.5%;
  line-height: 1.25;
}

.muted-note { color: var(--muted); font-size: 18px; }

/* ადმინკის „წინასწარ ნახვა" */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px var(--gutter);
  background: var(--badge-draft-bg);
  color: var(--badge-draft-fg);
  font-weight: 600;
}
.preview-bar p { display: flex; align-items: center; gap: 10px; margin: 0; }
.preview-bar .icon { flex-shrink: 0; }
.preview-bar__close {
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font-weight: 600;
}

/* ინგლისურ ვერსიაზე: ტექსტი ჯერ ქართულადაა */
.untranslated {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 760px;
  margin: 0 0 28px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--paper);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}
.untranslated .icon { flex-shrink: 0; margin-top: 1px; color: var(--ink); }
.content-page__head .untranslated { margin: 24px 0 0; }

.link-accent--on-ink,
.link-accent--on-ink:hover { color: #fff; }

/* დიდი ბარათი (უახლესი) */
.feature { position: relative; }
.feature__media { aspect-ratio: 700 / 420; }
.feature__body { padding-top: 24px; }
.feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
}
.feature__title {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.1vw, 44px);
  font-stretch: 75%;
  line-height: 1.1;
}
.feature--compact .feature__title { font-size: clamp(26px, 2.4vw, 34px); font-stretch: 87.5%; line-height: 1.2; }
.feature__text {
  display: -webkit-box;
  max-width: 40em;
  margin: 0;
  overflow: hidden;
  color: var(--text-2);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.feature__more { margin-top: 12px; }

/* ბარათი ბადეში */
.card { position: relative; }
.card__media { height: 260px; }
.card__body { padding-top: 20px; }
.card__date,
.mini__date {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.card__title {
  margin-bottom: 10px;
  font-size: 24px;
  font-stretch: 87.5%;
  line-height: 1.25;
}
.card__text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* პატარა ბარათი */
.mini {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.mini__media { width: 150px; height: 112px; }
.mini__title {
  font-size: 20px;
  font-stretch: 87.5%;
  line-height: 1.3;
}
.mini__text {
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mini--xs { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
.mini--xs .mini__media { width: 96px; height: 72px; }
.mini--xs .mini__title { font-size: 17px; line-height: 1.35; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 40px;
}

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .card__media { height: 220px; }
  .card__title { font-size: 20px; }
  .mini { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .mini__media { width: 112px; height: 84px; }
  .mini__title { font-size: 18px; }
  .section-head { margin-bottom: 28px; }
  .block { margin-top: 48px; }
  .block-title { font-size: 24px; }
}

/* ==========================================================================
   მთავარი გვერდი
   ========================================================================== */

/* სწრაფი ბმულები */
.quick { padding: 64px 0 72px; border-bottom: 1px solid var(--rule); }
.quick__title {
  margin-bottom: 28px;
  font-size: 28px;
  font-stretch: 87.5%;
  line-height: 1.25;
}
.quick__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.quick__list > li { background: var(--stone); }
.quick__link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 150px;
  padding: 24px 20px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.quick__icon { color: var(--ink); }
.quick__label { overflow-wrap: anywhere; }
.quick__link:hover { background: var(--paper); color: var(--ink); }
.quick__link:hover .quick__label {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* სიახლეები */
.home-news { padding: 96px 0; }
.home-news__grid {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.home-news__list { margin: 0; padding: 0; list-style: none; }
.home-news__list > li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.home-news__list > li:first-child { padding-top: 0; }

/* მატიანე */
.chronicle {
  padding: 96px 0 88px;
  background: var(--ink);
  color: var(--on-ink);
}
.chronicle__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 80px;
  align-items: center;
}
.chronicle__title { margin-bottom: 24px; color: #fff; }
.chronicle__intro {
  max-width: 30em;
  margin-bottom: 28px;
  font-size: 21px;
  line-height: 1.65;
}
.postcard { margin: 0; }
.postcard__frame { padding: 12px; background: var(--paper); }
.postcard__frame img { width: 100%; height: auto; }
.postcard__caption { margin-top: 14px; font-size: 14px; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--timeline-count, 7), minmax(0, 1fr));
  margin: 80px 0 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 76px;
  height: 1.5px;
  background: rgba(212, 224, 242, .45);
}
.timeline__item { position: relative; padding-right: 24px; }
.timeline__year {
  display: block;
  color: var(--accent);
  font-family: var(--font-numeral);
  font-size: 52px;
  font-stretch: 75%;
  font-weight: 600;
  line-height: 1;
}
.timeline__mark {
  position: absolute;
  top: 70px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  transform: rotate(45deg);
}
.timeline__text {
  display: block;
  margin-top: 48px;
  font-size: 15px;
  line-height: 1.55;
}

/* ხედვა, მისია, ღირებულებები */
.vmv { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.vmv__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 96px;
}
.vmv__label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 28px;
  font-stretch: 87.5%;
  line-height: 1.25;
}
.vmv__label::before {
  content: "";
  flex-shrink: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}
.vmv__quote { margin: 0; }
.vmv__quote p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-stretch: 87.5%;
  font-weight: 500;
  line-height: 1.4;
}
.vmv__quote p::before { content: open-quote; }
.vmv__quote p::after { content: close-quote; }
:lang(ka) { quotes: "„" "“"; }
:lang(en) { quotes: "“" "”"; }
.vmv__side { display: grid; align-content: start; gap: 48px; }
.vmv__mission { margin: 0; color: var(--text-2); font-size: 19px; line-height: 1.7; }
.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.values li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-stretch: 87.5%;
  font-weight: 600;
  line-height: 1.4;
}
.values li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* კათედრები */
.departments { padding: 96px 0 104px; }
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.dept-grid > li { background: var(--stone); }
.dept {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  min-height: 168px;
  padding: 28px 24px;
  text-decoration: none;
}
.dept__icon { color: var(--ink); }
.dept__name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-stretch: 87.5%;
  font-weight: 700;
  line-height: 1.3;
}
a.dept:hover { background: var(--paper); }
a.dept:hover .dept__name {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (max-width: 1100px) {
  .quick__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-news__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .chronicle__top { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .postcard { max-width: 520px; }
  .vmv__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .timeline::before { top: 6px; bottom: 6px; left: 8px; right: auto; width: 1.5px; height: auto; }
  .timeline__item { padding: 0 0 28px 44px; }
  .timeline__item:last-child { padding-bottom: 0; }
  .timeline__mark { top: 14px; left: 3px; }
  .timeline__year { font-size: 36px; }
  .timeline__text { margin-top: 4px; }
}

@media (max-width: 760px) {
  .quick { padding: 48px 0; }
  .quick__title { font-size: 24px; margin-bottom: 20px; }
  .quick__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick__link { min-height: 128px; padding: 20px 16px; font-size: 15px; }
  .home-news, .vmv, .departments { padding: 64px 0; }
  .chronicle { padding: 64px 0; }
  .chronicle__intro { font-size: 17px; }
  .vmv__mission { font-size: 17px; }
  .values li { font-size: 19px; }
  .dept { min-height: 132px; padding: 20px 12px; gap: 14px; }
  /* „ბუნებისმეტყველება" ერთი გრძელი სიტყვაა — ვიწრო სიგანით ეტევა, უფრო გრძელი სახელი კი ხაზზე გადავა */
  .dept__name { font-size: 15px; font-stretch: 75%; overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .brand__logo { height: 44px; }
  .brand__main { font-size: 19px; }
  .header-menu-btn { gap: 6px; padding: 0 10px; }
}
@media (max-width: 379px) {
  /* ვიწრო ეკრანზე მენიუს ღილაკს მხოლოდ ხატულა რჩება (წარწერა ეკრანის მკითხველისთვის რჩება) */
  .header-menu-btn span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
@media (max-width: 374px) {
  .dept-grid { grid-template-columns: minmax(0, 1fr); }
  .quick__link { padding-inline: 12px; }
}

/* ==========================================================================
   სტატიების სია
   ========================================================================== */

.list-page,
.content-page,
.contact-page,
.search-page { padding-bottom: 104px; }

.list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  padding: 40px 0 32px;
}
.list-head__text { max-width: 760px; }
.list-head__intro { margin: 20px 0 0; }

.list-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.list-filter select,
select.field__input {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A4A9A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
.list-filter select {
  min-width: 150px;
  height: 52px;
  padding: 0 44px 0 16px;
  border: 1.5px solid var(--field);
  border-radius: 2px;
  font-size: 16px;
}
.list-filter__search { display: flex; }
.list-filter__search input {
  width: 280px;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--field);
  border-right: 0;
  border-radius: 2px 0 0 2px;
  background: #fff;
  font-size: 16px;
}
.list-filter__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 0 2px 2px 0;
  background: var(--ink);
  color: #fff;
}
.list-filter__submit:hover { background: var(--ink-dark); }

.tabs {
  margin-bottom: 48px;
  overflow-x: auto;
  border-bottom: 1px solid var(--rule);
  scrollbar-width: thin;
}
.tabs__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tabs__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tabs__item::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: transparent;
}
.tabs__item:hover { color: var(--ink); }
.tabs__item.is-active { color: var(--ink); }
.tabs__item.is-active::after { background: var(--accent); }

.list-feature {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}
.list-feature .feature {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.list-feature .feature__body { padding-top: 0; }

.load-more { display: flex; justify-content: center; margin-top: 64px; }
.load-more__btn { min-width: 280px; }
.load-more__btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.empty-state { padding: 32px 0 48px; font-size: 19px; }
.empty-state p { margin-bottom: 12px; }

@media (max-width: 1100px) {
  .list-feature .feature { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .list-feature .feature__body { padding-top: 24px; }
}
@media (max-width: 760px) {
  .list-page, .content-page, .contact-page, .search-page { padding-bottom: 72px; }
  .list-head { padding: 24px 0 24px; gap: 24px; }
  .list-filter { width: 100%; }
  .list-filter__year, .list-filter__year select { width: 100%; }
  .list-filter__search { flex: 1 1 100%; }
  .list-filter__search input { flex: 1; width: auto; min-width: 0; }
  .tabs { margin-bottom: 32px; margin-inline: calc(-1 * var(--gutter)); padding-inline: calc(var(--gutter) - 16px); }
  .list-feature { margin-bottom: 40px; padding-bottom: 40px; }
  .load-more { margin-top: 48px; }
  .load-more__btn { width: 100%; min-width: 0; }
}

/* ==========================================================================
   სტატია და ჩვეულებრივი გვერდი
   ========================================================================== */

.article { padding-bottom: 104px; }
.article__head { max-width: 1000px; padding: 40px 0 48px; }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 24px;
}
.article__date { color: var(--muted); font-size: 15px; }
.article__title {
  margin-bottom: 28px;
  font-size: clamp(38px, 4.45vw, 64px);
  font-stretch: 75%;
  line-height: 1.06;
  text-wrap: balance;
}
.article__lead { max-width: 46em; margin: 0; }
.article__cover { height: 560px; margin: 0 0 64px; }
.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 360px);
  justify-content: space-between;
  gap: 80px;
}
.article__aside {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-top: 24px;
  border-top: 3px solid var(--ink);
}
.aside-title { margin-bottom: 8px; font-size: 24px; font-stretch: 87.5%; line-height: 1.3; }
.aside-list { margin: 0 0 20px; padding: 0; list-style: none; }
.aside-list > li { padding: 16px 0; border-bottom: 1px solid var(--rule); }

/* სტატიისა და გვერდის ტექსტი */
.prose { max-width: 760px; color: var(--text); font-size: 19px; line-height: 1.75; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { margin-top: 1.6em; font-size: 28px; font-stretch: 87.5%; line-height: 1.25; }
.prose ul { padding: 0; list-style: none; }
.prose ul > li { position: relative; padding-left: 28px; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}
.prose ol { padding-left: 1.4em; }
.prose ol > li::marker { color: var(--ink); font-weight: 700; }
.prose li + li { margin-top: .5em; }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.prose strong, .prose b { font-weight: 700; }

/* ფოტოები */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery__item { aspect-ratio: 4 / 3; }
.gallery__item img { transition: transform .3s ease; }
.gallery__item:hover img { transform: scale(1.03); }

/* ფაილები */
.file-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.file-card {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 80px;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  color: var(--text);
  text-decoration: none;
}
.file-card:hover { border-color: var(--ink); color: var(--text); }
.file-card__badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 58px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-numeral);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
}
.file-card__body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.file-card__name { color: var(--ink); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.file-card__meta { color: var(--muted); font-size: 14px; }
.file-card__action {
  flex-shrink: 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* გაზიარება */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.share__label { margin-right: 8px; font-weight: 600; }
.share__btn.is-copied { border-color: var(--ok); color: var(--ok); }

/* წინა / შემდეგი */
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.pager__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
}
.pager__link:hover { border-color: var(--ink); background: var(--paper); color: var(--text); }
.pager__link--next { grid-column: 2; align-items: flex-end; text-align: right; }
.pager__dir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.pager__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-stretch: 87.5%;
  font-weight: 700;
  line-height: 1.3;
}

/* ჩვეულებრივი გვერდი */
.content-page__head { max-width: 1000px; padding: 40px 0; }
.content-page .dept-grid { margin-top: 56px; }
.content-page__extras { max-width: 760px; }
.child-list {
  max-width: 760px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.child-list > li { border-bottom: 1px solid var(--rule); }
.child-list a,
.child-list span {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 8px 0;
  font-weight: 600;
}
.child-list a { color: var(--ink); text-decoration: none; }
.child-list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* შიდა გვერდი: ტექსტი | მარჯვნივ ნავიგაცია „ამ ნაწილში" + მოკლე კონტაქტი */
.content-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 360px);
  justify-content: space-between;
  align-items: start;
  gap: 64px 80px;
}
.content-page__layout--single { grid-template-columns: minmax(0, 760px); }

/* მთავარი ფოტო, რომელიც მთელ სიგანეზე ძალიან მოიჭრებოდა (ვერტიკალური, კვადრატული, სქემა) —
   მთლიანად, თავისი პროპორციით, ტექსტის სვეტში; --ratio = სიგანე / სიმაღლე */
.page-cover {
  aspect-ratio: var(--ratio);
  width: min(100%, calc(560px * var(--ratio)));
  margin: 0 0 48px;
}

/* გვერდის ქვესათაური (თანამდებობა) */
.page-subtitle { margin: 16px 0 0; color: var(--text-2); font-size: 21px; line-height: 1.5; }

/* ქვეგვერდები ბარათებად: ფოტო თაღში, სახელი, თანამდებობა (დირექცია, პედაგოგები) */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.content-page__main > .prose + .people-grid { margin-top: 56px; }
.person { min-width: 0; }
.person__link { display: block; color: inherit; text-decoration: none; }
.person__photo { display: block; aspect-ratio: 4 / 5; margin-bottom: 16px; }
.person__name {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-stretch: 87.5%;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.person__link:hover .person__name {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.person__role { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.45; }

@media (max-width: 760px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .person__photo { margin-bottom: 12px; }
  .person__name { font-size: 18px; }
  .person__role { font-size: 14px; }
  .page-subtitle { font-size: 17px; }
}
.content-page__main { min-width: 0; }
.page-aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 40px;
  min-width: 0;
}
.side-nav { padding-top: 24px; border-top: 3px solid var(--ink); }
.side-nav .aside-title a { color: inherit; text-decoration: none; }
.side-nav .aside-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.side-nav__list { margin: 8px 0 0; padding: 0; list-style: none; }
.side-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.side-nav__link:hover { color: var(--ink); }
.side-nav__link.is-current { color: var(--ink); font-weight: 600; }
.side-nav__link.is-current::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
.side-contact { padding: 24px; border-radius: 4px; background: var(--paper); }
.side-contact .aside-title { margin-bottom: 12px; }
.side-contact__list { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.side-contact__list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-contact__list .icon { flex-shrink: 0; color: var(--ink); }
.side-contact__list a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.side-contact__list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1100px) {
  .article__layout { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .article__aside { position: static; }
  .article__cover { height: 440px; }
  .content-page__layout { grid-template-columns: minmax(0, 1fr); }
  .page-aside { position: static; }
}
@media (max-width: 760px) {
  .article { padding-bottom: 72px; }
  .article__head { padding: 24px 0 32px; }
  .article__title { margin-bottom: 20px; }
  .article__cover { height: 260px; margin-bottom: 40px; }
  .article__cover.arch-xl { border-radius: 50% 50% 0 0 / 48px 48px 0 0; }
  .prose { font-size: 17px; line-height: 1.7; }
  .prose h3 { font-size: 23px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .file-card { gap: 16px; padding: 14px 16px; }
  .file-card__action { display: none; }
  .share { margin-top: 48px; }
  .share__label { width: 100%; }
  .pager { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pager__link--next { grid-column: auto; }
  .content-page__head { padding: 24px 0 28px; }
  .page-cover { width: min(100%, calc(460px * var(--ratio))); margin-bottom: 32px; }
  .page-cover.arch-lg { border-radius: 50% 50% 0 0 / 40px 40px 0 0; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0E1626;
  touch-action: pan-y;
}
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 176px);
  margin: 0;
}
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox__caption { margin-top: 12px; color: var(--on-ink); font-size: 15px; text-align: center; }
.lightbox__counter { position: absolute; top: 32px; left: 24px; margin: 0; color: var(--on-ink); font-size: 15px; }
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(212, 224, 242, .5);
  border-radius: 2px;
  background: rgba(0, 0, 0, .25);
  color: #fff;
}
.lightbox__btn:hover { border-color: #fff; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 760px) {
  .lightbox__figure { max-width: 100vw; }
  .lightbox__img { max-height: calc(100vh - 200px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
}

/* ==========================================================================
   კონტაქტი, ფორმები
   ========================================================================== */

.contact-page__head { padding: 40px 0 48px; }
.contact-page__head .lead { margin: 16px 0 0; }
.contact-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  gap: 64px;
  align-items: start;
}

.contact-photo { margin: 0 0 40px; }
.contact-photo__frame { height: 380px; }
.contact-photo__caption { margin-top: 12px; color: var(--muted); font-size: 14px; }

.contact-list { display: grid; gap: 24px; margin: 0 0 40px; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 20px; }
.contact-list__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
.contact-list__body { display: flex; flex-direction: column; min-width: 0; }
.contact-list__label { color: var(--muted); font-size: 14px; }
.contact-list__value {
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
a.contact-list__value {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.map { margin-bottom: 48px; }
.map__frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
}
.map__link { margin-top: 8px; }

.panel { border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.form-panel { position: sticky; top: 24px; padding: 40px; }
.form-panel__title { margin-bottom: 24px; font-size: 32px; font-stretch: 87.5%; line-height: 1.2; }

.field { margin-bottom: 22px; }
.field__label { display: block; margin-bottom: 6px; font-weight: 600; }
.field__hint { margin: -2px 0 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.field__input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1.5px solid var(--field);
  border-radius: 2px;
  background: #fff;
  font-size: 17px;
  line-height: 1.5;
}
.field__input:focus-visible { border-color: var(--ink); }
select.field__input { padding-right: 44px; }
.field__input--area { min-height: 168px; resize: vertical; }
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 6px 0 0; color: var(--danger); font-size: 15px; font-weight: 600; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--danger);
  background: #F6E9E6;
  color: var(--danger);
  font-weight: 600;
}
.btn--block { width: 100%; }

.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
}
.form-success p { margin-bottom: 28px; color: var(--text-2); }

/* ძებნის გვერდი */
.search-page__head { padding: 40px 0; }
.search-page__head .page-title { margin-bottom: 24px; }
.search-page__count { font-weight: 600; }

@media (max-width: 1100px) {
  .contact-page__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .form-panel { position: static; }
}
@media (max-width: 760px) {
  .contact-page__head, .search-page__head { padding: 24px 0 32px; }
  .contact-photo__frame { height: 240px; }
  .contact-list li { gap: 16px; }
  .contact-list__icon { width: 44px; height: 44px; }
  .contact-list__value { font-size: 19px; }
  .map__frame { height: 260px; }
  .form-panel { padding: 24px 20px; }
  .form-panel__title { font-size: 26px; }
}
