/* ===== SHARED STYLES FOR ALL PAGES ===== */
:root {
  --bg: #221830;
  --bg-deep: #181024;
  --bg-darker: #0d0515;
  --bg-light: #332444;
  --gold: #f5d27a;
  --gold-soft: #ecc56b;
  --gold-bright: #f9dc8c;
  --gold-dark: #c9a85a;
  --cream: #faf3e0;
  --white: #ffffff;
  --text: #faf3e0;
  --text-muted: rgba(250, 243, 224, 0.7);
  --text-faded: rgba(250, 243, 224, 0.5);
  --line: rgba(245, 210, 122, 0.25);
  --line-soft: rgba(250, 243, 224, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* --- PAGE TRANSITIONS (რბილი გადასვლა) --- */
body {
  opacity: 1;
  transition: opacity 0.42s ease, transform 0.42s ease;
}
html.page-loading body { opacity: 0; transform: translateY(8px); }
html.page-ready body { opacity: 1; transform: translateY(0); }
html.page-leaving body { opacity: 0; transform: translateY(-8px); }
@media (prefers-reduced-motion: reduce) {
  body, html.page-loading body, html.page-leaving body {
    transition: none; opacity: 1; transform: none;
  }
}
body {
  font-family: 'Noto Sans Georgian', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--bg-deep); }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* TOPBAR */
.topbar {
  background: var(--bg-darker);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 12px;
  position: relative;
  z-index: 10;
}
.topbar-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
}
.topbar-contacts { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-contacts a { color: var(--gold-soft); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar-contacts a:hover { color: var(--gold-bright); }
.topbar-contacts .icon { color: var(--gold); }
.topbar-meta { display: flex; align-items: center; gap: 16px; }
/* --- LANGUAGE SWITCHER --- */
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--cream);
  opacity: 0.55;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.lang-btn:hover { opacity: 1; color: var(--gold-bright); }
.lang-btn.active {
  opacity: 1;
  color: var(--gold);
  border-color: var(--gold);
}
.lang-divider { width: 1px; height: 14px; background: var(--line); margin: 0 2px; }
.live-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.5 } }

/* HEADER */
header {
  background: rgba(42, 30, 61, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 14px 40px;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 32px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; justify-self: start; }
.brand-logo { width: 56px; height: 56px; flex-shrink: 0; }
.brand-logo img { width: 100%; height: 100%; display: block; }
.brand-text { line-height: 1.2; }
.brand-text .name {
  font-family: 'Noto Serif Georgian', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.brand-text .tagline {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

/* NAV */
nav.main-nav { display: flex; justify-content: center; min-width: 0; }
.header-inner > .btn-primary { flex-shrink: 0; justify-self: end; }
nav ul.menu { display: flex; gap: 2px; list-style: none; align-items: center; }
nav ul.menu > li { position: relative; }
nav ul.menu > li > a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
nav ul.menu > li > a:hover,
nav ul.menu > li:hover > a {
  color: var(--gold);
  background: rgba(245, 210, 122, 0.06);
}
nav ul.menu > li.has-dropdown > a::after {
  content: '▾';
  font-size: 10px;
  margin-left: 2px;
  opacity: 0.6;
}
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 320px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 200;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-deep);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
nav ul.menu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}
.dropdown a:hover { background: rgba(245, 210, 122, 0.08); color: var(--gold); }
.dropdown a .ico {
  width: 28px;
  height: 28px;
  background: rgba(245, 210, 122, 0.1);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.dropdown a .ico svg { width: 14px; height: 14px; }
.dropdown a .txt { display: flex; flex-direction: column; gap: 2px; }
.dropdown a .txt strong { font-family: 'Noto Serif Georgian', serif; font-weight: 600; font-size: 14px; }
.dropdown a .txt span { font-size: 11.5px; color: var(--text-faded); line-height: 1.4; }

.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
  padding: 12px 22px;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  font-family: inherit;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 6px 20px rgba(245, 210, 122, 0.3);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  padding: 12px 22px;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.btn-outline:hover { background: var(--gold); color: var(--bg-deep); }

/* PAGE HEADER */
.page-hero {
  padding: 80px 32px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: url('../assets/logo_512.png') center/contain no-repeat;
  opacity: 0.04;
  pointer-events: none;
}
.page-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.breadcrumb a { color: var(--gold-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--text-faded); }

.page-title {
  font-family: 'Noto Serif Georgian', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* PAGE CONTENT */
section.page-content {
  padding: 80px 32px;
  position: relative;
  z-index: 1;
}
.content-wrap { max-width: 1100px; margin: 0 auto; }

.content-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
}
.sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar h4 {
  font-family: 'Noto Serif Georgian', serif;
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: 4px; }
.sidebar a {
  display: block;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  border-radius: 3px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.sidebar a:hover { color: var(--gold); background: rgba(245, 210, 122, 0.05); }
.sidebar a.active {
  color: var(--gold);
  background: rgba(245, 210, 122, 0.08);
  border-left-color: var(--gold);
  font-weight: 600;
}

article { font-size: 15.5px; line-height: 1.85; }
article h2 {
  font-family: 'Noto Serif Georgian', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin: 40px 0 20px;
  letter-spacing: -0.01em;
}
article h2:first-child { margin-top: 0; }
article h3 {
  font-family: 'Noto Serif Georgian', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-bright);
  margin: 32px 0 14px;
}
article p { color: var(--text); margin-bottom: 18px; }
article strong { color: var(--gold-soft); }
article ul, article ol { margin: 18px 0 18px 24px; }
article li {
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.75;
}
article li::marker { color: var(--gold); }

.callout {
  background: var(--bg-deep);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
}
.callout-label {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 8px;
}
.callout p { margin: 0; font-size: 14.5px; color: var(--text-muted); }

table.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}
table.info-table th {
  background: var(--bg-darker);
  color: var(--gold);
  font-family: 'Noto Serif Georgian', serif;
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
}
table.info-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 14px;
}
table.info-table tr:last-child td { border-bottom: none; }
table.info-table tr:hover td { background: rgba(245, 210, 122, 0.03); color: var(--text); }

/* CARDS LIST FOR PAGE CONTENT */
.list-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}
.list-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  padding: 24px 28px;
  border-radius: 4px;
  transition: all 0.3s;
}
.list-card:hover { border-color: var(--gold); background: var(--bg); }
.list-card h4 {
  font-family: 'Noto Serif Georgian', serif;
  font-size: 19px;
  color: var(--gold);
  margin-bottom: 10px;
}
.list-card p { font-size: 14px; color: var(--text-muted); }

/* GRID CARDS */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.grid-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 4px;
  transition: all 0.3s;
}
.grid-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.grid-card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(245, 210, 122, 0.1);
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 16px;
}
.grid-card h4 {
  font-family: 'Noto Serif Georgian', serif;
  font-size: 19px;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1.3;
}
.grid-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* FOOTER */
footer {
  background: var(--bg-darker);
  color: var(--text-muted);
  border-top: 1px solid var(--gold);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { font-size: 13px; line-height: 1.75; max-width: 360px; margin-bottom: 20px; }
.footer-brand .social { display: flex; gap: 10px; }
.footer-brand .social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.footer-brand .social a:hover { background: var(--gold); color: var(--bg-deep); }
.footer-col h5 {
  font-family: 'Noto Serif Georgian', serif;
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a, .footer-col span { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-faded);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold);
  width: 42px;
  height: 42px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  flex-shrink: 0;
}

@media (max-width: 1280px) {
  .header-inner { display: flex; justify-content: space-between; }
  nav.main-nav { display: none; }
  .mobile-toggle { display: block; }
  nav.main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    z-index: 200;
  }
  nav.main-nav.open ul.menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
  }
  nav.main-nav.open ul.menu > li > a {
    padding: 14px 12px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft, rgba(245,210,122,0.08));
  }
  nav.main-nav.open .dropdown {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0 0 8px 16px;
    min-width: 0;
  }
  nav.main-nav.open .dropdown a { padding: 8px 12px; }
}
@media (max-width: 1024px) {
  nav.main-nav { display: none; }
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: relative; top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar-contacts { gap: 12px; flex-direction: column; }
  .page-hero { padding: 50px 24px 40px; }
  section.page-content { padding: 50px 20px; }
  article h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
