/* ახალი მე — საერთო სტილი
   VOICE: მეგობრული, ნათელი, მოტივაციური
   IDEA: გადახაზული „მე“ → „ახალი მე“ (ხელით შესწორებული სიტყვა)
   COLOUR: თეთრი და ღია პიტნისფერი ფონი, მწვანე აქცენტი, მუქი მწვანე ბლოკები
   TYPE: Noto Sans Georgian, 4 ზომა
   LAYOUT: ფართო ზოლები, 1200px შიგთავსი, მობილურზე ერთი სვეტი */
:root {
  color-scheme: light;
  --bg: #ffffff; --soft: #F3FAF5; --mint: #E3F4E9; --mint2: #CDEBD8;
  --green: #1F7A4A; --green-h: #186640; --green-d: #17402B; --green-l: #7FD3A0;
  --ink: #18211C; --muted: #4A564E; --faint: #6B7770; --line: #E3E8E4; --grey: #A39E92;
  --warn: #B4412E; --warn-bg: #FCEDEA; --gold: #F2B33D;
  --r: 16px; --r-lg: 24px; --shadow: 0 12px 40px rgba(23, 64, 43, .08);
  --font: 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-h); }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ლოგო */
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); font-weight: 900; letter-spacing: -.3px; white-space: nowrap; }
.logo .old { position: relative; display: inline-block; color: var(--grey); margin-right: .28em; }
.logo .old svg { position: absolute; left: -10%; top: 34%; width: 120%; height: 38%; overflow: visible; }
.logo .old path { stroke: var(--green); stroke-width: 10; stroke-linecap: round; fill: none; }
.logo b { color: var(--green); font-weight: 900; }
.logo-stack { display: inline-flex; flex-direction: column; align-items: center; font-weight: 900; line-height: 1.05; }
.logo-stack .old { position: relative; display: inline-block; color: var(--grey); }
.logo-stack .old svg { position: absolute; left: -10%; top: 36%; width: 120%; height: 36%; overflow: visible; }
.logo-stack .old path { stroke: var(--green); stroke-width: 9; stroke-linecap: round; fill: none; }
.logo-stack b { color: var(--green); }
.on-dark .logo, .on-dark .logo-stack { color: #fff; }
.on-dark .logo .old, .on-dark .logo-stack .old { color: #5F8A72; }
.on-dark .logo .old path, .on-dark .logo-stack .old path { stroke: var(--green-l); }
.on-dark .logo b, .on-dark .logo-stack b { color: var(--green-l); }

/* ღილაკები და ველები */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 1px solid transparent; font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(31, 122, 74, .25); }
.btn-primary:hover { background: var(--green-h); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-dark { background: var(--green-d); color: #fff; }
.btn-dark:hover { background: #10301f; color: #fff; }
.btn-light { background: #fff; color: var(--green-d); }
.btn-light:hover { background: var(--mint); color: var(--green-d); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--green-l); outline-offset: 2px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.input, select.input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #CFD8D2; border-radius: 12px; font: 16px var(--font); color: var(--ink); background: #fff; }
.input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--mint2); }
.field { margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.err { color: var(--warn); font-size: 14px; min-height: 20px; }
.ok-msg { background: var(--mint); color: var(--green-d); padding: 12px 14px; border-radius: 12px; font-size: 15px; }

/* ბარათები */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card-soft { background: var(--soft); border-radius: var(--r-lg); padding: 24px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--green-d); white-space: nowrap; }
.badge-gold { background: #FFF3D6; color: #7A5200; }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.bar { height: 10px; background: #E7ECE8; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .4s; }
.bar.over > i { background: var(--warn); }

/* ზედა მენიუ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.nav .logo { font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--green); }
@media (max-width: 760px) { .nav-links .hide-m { display: none; } .nav-links { gap: 10px; } }

/* მოდალი */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; background: rgba(16, 32, 22, .45); padding: 0; }
.modal.open { display: flex; }
.modal-box { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 24px; }
@media (min-width: 640px) { .modal { align-items: center; padding: 20px; } .modal-box { border-radius: 24px; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); flex-shrink: 0; }
.icon-btn:hover { background: var(--soft); }

/* შეტყობინება */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--green-d); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ფუტერი */
.footer { background: var(--green-d); color: #CFE3D6; padding: 48px 0 32px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.footer .links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer .legal { border-top: 1px solid #2B5A40; margin-top: 32px; padding-top: 20px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
th { font-size: 13px; color: var(--faint); font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
.scroll { overflow-x: auto; }
