/* ==========================================================================
   სახმელეთო ტრანსპორტის სააგენტო
   ერთი სტილების ფაილი ორივე გვერდისთვის. ფერები, ზომები და რადიუსები
   ცვლადებშია (:root), ასე რომ ვიზუალის შეცვლა ერთ ადგილას ხდება.
   ========================================================================== */

@font-face {
    font-family: "Noto Sans Georgian";
    src: url("../fonts/noto-sans-georgian.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

@font-face {
    font-family: "Noto Sans Georgian";
    src: url("../fonts/noto-sans-georgian-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --brand: #6fa80f;
    --brand-strong: #4f7d06;
    --brand-soft: #eef6dd;
    --ink: #17231c;
    --ink-soft: #4b5a51;
    --ink-muted: #7c8a81;
    --line: #e3e8e2;
    --surface: #ffffff;
    --page: #f5f7f4;
    --deep: #10382b;

    --radius-s: 10px;
    --radius-m: 16px;
    --radius-l: 24px;
    --shadow-s: 0 1px 2px rgba(16, 56, 43, .06), 0 2px 8px rgba(16, 56, 43, .05);
    --shadow-m: 0 8px 28px rgba(16, 56, 43, .12);

    --header-h: 76px;
    --gutter: clamp(16px, 4vw, 48px);
    --content: 1280px;

    --font: "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}

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

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: var(--radius-s);
    background: var(--deep); color: #fff;
    transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 40;
    height: var(--header-h);
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header__row { height: 100%; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { width: 112px; height: 40px; }
.brand__name { max-width: 9.5em; flex: none; font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--ink); }

.nav { display: flex; align-items: center; gap: 0; margin-right: auto; min-width: 0; }
.nav__link {
    padding: 8px 9px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--ink-soft);
    transition: background-color .15s, color .15s;
}
.nav__link:hover { background: var(--brand-soft); color: var(--brand-strong); }
.nav__link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }

.search { position: relative; width: min(220px, 100%); flex: none; }
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.search__input {
    width: 100%; height: 44px;
    padding: 0 16px 0 42px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--page);
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.search__input::placeholder { color: var(--ink-muted); }
.search__input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }

/* ჰედერში ძიება ჩაკეცილია ხატულად და ფოკუსზე იშლება (მენიუს ზემოდან), რომ შვიდი პუნქტი დაეტიოს */
.site-header .search { width: 44px; height: 44px; }
.site-header .search__input { position: absolute; top: 0; right: 0; width: 44px; padding-right: 0; cursor: pointer; transition: width .2s, border-color .15s, background-color .15s, box-shadow .15s; }
.site-header .search__input::placeholder { color: transparent; }
.site-header .search__icon { left: auto; right: 13px; z-index: 1; }
.site-header .search:focus-within .search__input { width: 260px; padding-right: 44px; cursor: text; z-index: 0; }
.site-header .search:focus-within .search__input::placeholder { color: var(--ink-muted); }
.site-header .search__input { padding-left: 16px; }
.site-header .search__results { z-index: 2; }

.search__results {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: max(100%, 340px); max-width: calc(100vw - 2 * var(--gutter));
    max-height: 360px; overflow-y: auto;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-m);
    box-shadow: var(--shadow-m);
}
.search__item { display: block; padding: 10px 12px; border-radius: var(--radius-s); }
.search__item:hover, .search__item:focus-visible { background: var(--brand-soft); }
.search__item-date { display: block; font-size: 12px; color: var(--ink-muted); }
.search__item-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.search__empty { padding: 12px; font-size: 14px; color: var(--ink-muted); }

.menu-toggle {
    display: none;
    width: 44px; height: 44px; margin-left: auto;
    align-items: center; justify-content: center;
    border-radius: var(--radius-s);
    font-size: 22px; color: var(--ink);
}
.menu-toggle:hover { background: var(--brand-soft); }

/* მობილური მენიუ */
.mobile-menu {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
    padding: 20px var(--gutter) 32px;
    background: var(--surface);
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
    animation: menu-in .18s ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu .search { width: 100%; margin-bottom: 8px; }
.mobile-menu .search__results { position: static; width: 100%; max-width: none; margin-top: 8px; box-shadow: none; }
.mobile-menu__link { padding: 14px 16px; border-radius: var(--radius-s); font-size: 18px; font-weight: 600; }
.mobile-menu__link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.mobile-menu__contacts { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; color: var(--ink-soft); }
.mobile-menu__contacts a { display: inline-flex; align-items: center; gap: 10px; }
body.is-locked { overflow: hidden; }

/* ---------- გვერდის ჩარჩო ---------- */

main { flex: 1; }

.page-head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(20px, 3vw, 32px); }
.page-head__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.page-head__title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--brand); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-s); }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap;
    background: var(--page); color: var(--ink-soft);
}
.chip--brand { background: var(--brand-soft); color: var(--brand-strong); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px;
    border-radius: 999px;
    font-weight: 600; font-size: 14px;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn--ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-strong); }

/* ---------- სიახლეები: განლაგება ---------- */

.news-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: clamp(40px, 6vw, 80px); }

.archive { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; }
.archive__title { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 16px; }

.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar__month { font-size: 17px; font-weight: 700; }
.calendar__nav { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-soft); }
.calendar__nav:hover { background: var(--brand-soft); color: var(--brand-strong); }

.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.calendar__weekday { padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.calendar__day {
    position: relative;
    aspect-ratio: 1; width: 100%;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 14px; color: var(--ink);
    transition: background-color .12s, color .12s;
}
.calendar__day:hover { background: var(--brand-soft); }
.calendar__day.is-outside { color: #b9c3bc; }
.calendar__day.is-today { box-shadow: inset 0 0 0 2px var(--brand); font-weight: 700; }
.calendar__day.has-news { font-weight: 700; color: var(--brand-strong); }
.calendar__day.has-news::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand); }
.calendar__day[aria-pressed="true"] { background: var(--brand); color: #fff; }
.calendar__day[aria-pressed="true"]::after { background: #fff; }

.archive__years { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.year-btn { padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--page); color: var(--ink-soft); transition: background-color .12s, color .12s; }
.year-btn:hover { background: var(--brand-soft); color: var(--brand-strong); }
.year-btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.archive__reset { width: 100%; margin-top: 16px; }

.filter-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; color: var(--ink-soft); font-size: 14px; }

/* ---------- სიახლის ბარათი ---------- */

.news-list { display: grid; gap: 18px; }

.news-card {
    display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px;
    padding: 18px;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.news-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); border-color: #d3dccf; }
.news-card__media { border-radius: var(--radius-s); overflow: hidden; background: var(--page); aspect-ratio: 6 / 5; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-card:hover .news-card__media img { transform: scale(1.03); }
.news-card__body { display: flex; flex-direction: column; min-width: 0; }
.news-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.news-card__title { font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }   /* მთელი ბარათი დასაჭერია */
.news-card { position: relative; }
.news-card__title a:hover { color: var(--brand-strong); }
.news-card__summary {
    color: var(--ink-soft); font-size: 15px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.news-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 14px; color: var(--brand-strong); }
.news-card__more .icon { transition: transform .18s; }
.news-card:hover .news-card__more .icon { transform: translateX(4px); }

.empty { padding: 40px 24px; text-align: center; color: var(--ink-soft); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination__btn {
    min-width: 42px; height: 42px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius-s);
    background: var(--surface); font-weight: 600; font-size: 14px;
}
.pagination__btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-strong); }
.pagination__btn[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination__btn:disabled { opacity: .4; cursor: default; }

/* ---------- სიახლე სრულად ---------- */

.article-wrap { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 80px); }
.article { max-width: 880px; margin: 0 auto; padding: clamp(20px, 4vw, 44px); border-radius: var(--radius-l); }
.back-link { display: inline-flex; align-items: center; gap: 8px; padding: 11px 0; margin: -11px 0 9px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.back-link:hover { color: var(--brand-strong); }
.article__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.article__title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; line-height: 1.25; margin-bottom: 24px; }
.article__figure { margin-bottom: 26px; }
.article__image { width: 100%; border-radius: var(--radius-m); overflow: hidden; background: var(--page); cursor: zoom-in; display: block; }
.article__image img { width: 100%; max-height: 480px; object-fit: contain; }
.article__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.article__gallery button { border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.article__gallery img { width: 100%; height: 100%; object-fit: cover; }
.article__text { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.article__text p + p { margin-top: 1em; }
.article__text a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- ფოტოს გადიდება ---------- */

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(10, 20, 15, .9); }
.lightbox__stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px clamp(12px, 6vw, 88px); }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-s); background: #fff; }
.lightbox__btn {
    position: absolute; width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px;
    transition: background-color .15s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .3); }
.lightbox__btn--close { top: 14px; right: 14px; }
.lightbox__btn--prev { left: 14px; top: 50%; margin-top: -24px; }
.lightbox__btn--next { right: 14px; top: 50%; margin-top: -24px; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; font-size: 14px; }

/* ---------- კონტაქტი ---------- */

.hero { padding-top: clamp(16px, 3vw, 28px); }
.slider { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--deep); width: 100%; aspect-ratio: 21 / 8; box-shadow: var(--shadow-s); }
.slider__track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.slider__slide { flex: 0 0 100%; height: 100%; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__btn {
    position: absolute; top: 50%; margin-top: -24px;
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 22px;
    background: rgba(255, 255, 255, .9); color: var(--ink);
    box-shadow: var(--shadow-s);
    transition: background-color .15s, transform .15s;
}
.slider__btn:hover { background: #fff; transform: scale(1.06); }
.slider__btn--prev { left: 16px; }
.slider__btn--next { right: 16px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.slider__dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .6); transition: width .2s, background-color .2s; }
.slider__dot[aria-current="true"] { width: 28px; background: #fff; }

.offices { display: grid; gap: 20px; padding-bottom: clamp(40px, 6vw, 80px); }

.office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(18px, 3vw, 32px); padding: clamp(18px, 2.5vw, 28px); }
.office__name { font-size: clamp(19px, 2vw, 24px); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.office__list { display: grid; gap: 12px; }
.office__row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--ink-soft); }
.office__row .icon { margin-top: 4px; color: var(--brand-strong); }
.office__row a { display: inline-block; padding: 9px 0; margin: -9px 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.office__row a:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }

.office__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 240px; }
.office__photo, .office__map { position: relative; border-radius: var(--radius-m); overflow: hidden; background: var(--page); min-height: 220px; }
.office__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.office__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.office__map-link {
    position: absolute; right: 10px; bottom: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--surface); box-shadow: var(--shadow-s);
    font-size: 13px; font-weight: 600; color: var(--ink);
}
.office__map-link:hover { color: var(--brand-strong); }

/* ---------- ტექსტური გვერდები: განყოფილებების სია + შიგთავსი ---------- */

.sections { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: clamp(40px, 6vw, 80px); }

.side-nav { position: sticky; top: calc(var(--header-h) + 20px); padding: 10px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.side-nav__toggle { display: none; width: 100%; padding: 8px 10px; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; text-align: left; }
.side-nav__toggle .icon { transition: transform .2s; }
.sections.is-open .side-nav__toggle .icon { transform: rotate(180deg); }
.side-nav__list { display: grid; gap: 2px; }
.side-nav__group { padding: 12px 14px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }
.side-nav__link {
    display: block; padding: 10px 14px; border-radius: var(--radius-s);
    font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink-soft);
    transition: background-color .12s, color .12s;
}
.side-nav__link.is-nested { padding-left: 26px; }
.side-nav__link:hover { background: var(--page); color: var(--ink); }
.side-nav__link[aria-current="true"] { background: var(--brand-soft); color: var(--brand-strong); }

.section { padding: clamp(20px, 3.5vw, 40px); border-radius: var(--radius-l); min-width: 0; }
.section__group { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-strong); margin-bottom: 6px; }
.section__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.section__subtitle { color: var(--ink-muted); margin-bottom: 8px; }
.section__title + .prose, .section__title + .entries, .section__subtitle + .prose, .section__subtitle + .entries { margin-top: 20px; }

.prose { color: var(--ink-soft); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 14px; }
.prose a { color: var(--brand-strong); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(79, 125, 6, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose__heading { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.prose > .prose__heading:not(:first-child) { margin-top: 30px; }
.prose__list { display: grid; gap: 10px; }
.prose__list li { position: relative; padding-left: 22px; }
.prose__list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.entries { display: grid; gap: 12px; }
.entry { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--page); }
.entry > p:first-child { color: var(--ink); font-weight: 600; }

.doc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.prose .doc-link, .doc-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border: 1px solid var(--line); border-radius: 18px;
    background: var(--surface);
    font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink);
    text-decoration: none;
    transition: border-color .12s, color .12s, box-shadow .12s;
}
.doc-link:hover { border-color: var(--brand); color: var(--brand-strong); box-shadow: var(--shadow-s); }
.doc-link .icon { color: var(--brand-strong); }
.doc-link__kind { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-muted); overflow-wrap: normal; }
.doc-link .icon { flex: none; }

/* ---------- სერვისები ---------- */

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: clamp(40px, 6vw, 80px); }
.service {
    position: relative; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    min-height: 220px; padding: 26px;
    border-radius: var(--radius-l); background: var(--deep); color: #fff;
    box-shadow: var(--shadow-s);
    transition: transform .18s, box-shadow .18s;
}
.service__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 40, 28, .78), rgba(8, 40, 28, .12) 65%); }
.service__title { position: relative; z-index: 1; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; line-height: 1.25; }
.service__more { position: relative; z-index: 1; width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 20px; }
a.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
a.service:hover .service__bg { transform: scale(1.04); }

/* ---------- პარტნიორები ---------- */

.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding-bottom: clamp(40px, 6vw, 80px); }
.partner { display: flex; flex-direction: column; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
a.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: #d3dccf; }
.partner__logo { height: 170px; padding: 24px; display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid var(--line); }
.partner__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.partner__short { font-size: 20px; font-weight: 800; line-height: 1.2; }
.partner__name { color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.partner__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--brand-strong); }

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

.home-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: #fff; }
.home-hero__slides { position: absolute; inset: 0; z-index: -2; }
.home-hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.home-hero__slide.is-active { opacity: 1; }
.home-hero__video { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: center / cover no-repeat; }
.home-hero__video[hidden] { display: none; }
.home-hero__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .3) 45%, rgba(0, 0, 0, .6) 100%);
}
.home-hero__notice {
    position: absolute; top: clamp(14px, 2.4vw, 28px); left: clamp(12px, 3.6vw, 72px); right: clamp(12px, 3.6vw, 72px);
    width: fit-content; max-width: calc(100% - 24px);
    padding: 8px 16px; border-radius: 999px;
    background: rgba(0, 0, 0, .55); color: #fff;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-size: clamp(13px, 1.3vw, 15px); font-weight: 600; line-height: 1.4;
}
.home-hero__inner { min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.home-hero__kicker { font-size: clamp(13px, 1.4vw, 15px); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #cbe58f; margin-bottom: 14px; }
.home-hero__title { max-width: 16em; font-size: clamp(30px, 5vw, 60px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--deep); color: rgba(255, 255, 255, .82); padding: clamp(28px, 4vw, 44px) 0 24px; }
.site-footer__row { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-footer__org { display: flex; align-items: center; gap: 14px; max-width: 460px; font-size: 14px; line-height: 1.5; }
.site-footer__org img { width: 40px; height: auto; flex: none; }
.site-footer__links { display: flex; align-items: center; gap: 0 22px; flex-wrap: wrap; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font-weight: 600; }
.site-footer__links a:hover { color: #cbe58f; }
.site-footer__copy { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ჩატის ვიჯეთი არ უნდა ჩანდეს მენიუს ან გადიდებული ფოტოს ზემოთ */
body.is-locked #chat-widget-launcher,
body.is-locked #chat-widget-frame { display: none !important; }

/* ვიჯეტის მობილური სტილი ფანჯარას width/height: auto-ზე ტოვებს, რაც iframe-ისთვის 300×150-ს ნიშნავს
   და ფანჯარა ზედა კუთხეში პატარა ნაგლეჯად რჩება. აქ ზომას ცხადად ვუწერთ. */
@media (max-width: 480px) {
    #chat-widget-frame {
        top: 8px !important; left: 8px !important; right: auto !important; bottom: auto !important;
        width: calc(100% - 16px) !important;
        height: calc(100vh - 16px) !important;
        height: calc(100dvh - 16px) !important;
        max-height: none !important;
    }
}

/* არქივის ჩამოშლა ვიწრო ეკრანზე */
.archive__toggle {
    display: none;
    width: 100%; padding: 16px 18px;
    align-items: center; justify-content: space-between;
    font-weight: 700; font-size: 15px;
}
.archive__toggle .icon { transition: transform .2s; }
.archive__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* ---------- Responsive ---------- */

@media (min-width: 861px) { .archive__inner[hidden] { display: block !important; } }

@media (max-width: 1080px) {
    .news-layout { grid-template-columns: 280px minmax(0, 1fr); }
    .news-card { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
    .office { grid-template-columns: 1fr; }
}

@media (max-width: 1400px) {
    .nav, .site-header .search { display: none; }
    .menu-toggle { display: inline-flex; }
}

@media (max-width: 860px) {
    :root { --header-h: 64px; }
    .brand__logo { width: 96px; height: 34px; }

    .sections { grid-template-columns: 1fr; }
    .side-nav { position: static; max-height: none; }
    .side-nav__toggle { display: flex; }
    .side-nav__list { display: none; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
    .sections.is-open .side-nav__list { display: grid; }

    .news-layout { grid-template-columns: 1fr; }
    .archive { position: static; order: -1; padding: 0; }
    .archive__inner { padding: 0 18px 18px; }
    .archive__toggle { display: flex; }
    .slider { aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
    .news-card { grid-template-columns: 1fr; padding: 14px; }
    .news-card__summary { -webkit-line-clamp: 5; }
    .office__media { grid-template-columns: 1fr; }
    .services { grid-template-columns: 1fr; }
    .service { min-height: 170px; padding: 20px; }
    .entry { padding: 14px; }
    .slider__btn { width: 40px; height: 40px; margin-top: -20px; font-size: 18px; }
    .slider__btn--prev { left: 8px; }
    .slider__btn--next { right: 8px; }
    .site-footer { padding-bottom: 96px; }           /* ადგილი ჩატის ღილაკისთვის */
    .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 14px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
    .site-header, .site-footer, .archive, .slider, .office__map, .pagination, .mobile-menu, .side-nav { display: none !important; }
    .sections { display: block; }
    body { background: #fff; }
    .card { box-shadow: none; }
}

.mobile-menu__nav { display: grid; gap: 4px; }
