/* FiraGO (bBox Type, SIL Open Font License): ქართული და ლათინური ერთი ოჯახიდან, ჩვენს სერვერზე */
@font-face { font-family: "FiraGO"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/FiraGO-Regular.woff2") format("woff2"); }
@font-face { font-family: "FiraGO"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/FiraGO-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "FiraGO"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/FiraGO-Bold.woff2") format("woff2"); }
/* happychild.ge: მშობლის გზამკვლევი. განლაგება: ერთი სვეტი ტელეფონზე, ლენდინგზე ორი სვეტი დიდ ეკრანზე. */
:root {
  --bg: #EDF0EE;
  --bg-ico: #E4E8E6;
  --ink: #3A4642;
  --card: #F8FAF8;
  --line: #5E6D68;
  --p1: #D0E9D7;
  --p2: #CBE2F4;
  --p3: #DBD2F2;
  --p4: #F7D5CC;
  --sunsoft: #FFF0B8;
  --sun: #E6C984;
  --on-sun: #3A4642;
  --leaf: #54766A;
  --on-leaf: #FFFFFF;
  --btn-bg: #55645F;
  --btn-fg: #FFFFFF;
  --logo-a: #4A6B5F;
  --logo-b: #A8604A;
  --serif: "FiraGO", "Sylfaen", system-ui, sans-serif;
  --sans: "FiraGO", "Sylfaen", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C2224;
    --bg-ico: #283133;
    --ink: #DCE4E0;
    --card: #262E30;
    --line: #8EA09A;
    --p1: #273A31;
    --p2: #243541;
    --p3: #302C43;
    --p4: #3D2D2D;
    --sunsoft: #3E3920;
    --btn-bg: #E6C984;
    --btn-fg: #1C2224;
    --leaf: #8DB5A2;
    --logo-a: #8DB5A2;
    --logo-b: #E6C984;
    --on-leaf: #1C2224;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C2224;
  --bg-ico: #283133;
  --ink: #DCE4E0;
  --card: #262E30;
  --line: #8EA09A;
  --p1: #273A31;
  --p2: #243541;
  --p3: #302C43;
  --p4: #3D2D2D;
  --sunsoft: #3E3920;
  --btn-bg: #E6C984;
  --btn-fg: #1C2224;
  --leaf: #8DB5A2;
  --logo-a: #8DB5A2;
  --logo-b: #E6C984;
  --on-leaf: #1C2224;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1040px; margin: 0 auto; }

/* ღილაკები */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bg); border-radius: 999px;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.12); }
.btn.sm { min-height: 44px; padding: 0 1.1rem; font-size: .95rem; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.leaf { background: var(--leaf); border-color: var(--leaf); color: var(--on-leaf); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; color: inherit; cursor: pointer; min-height: 44px; }

/* ჩიპები და ტეგები */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.qa-filters { display: grid; gap: .8rem 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.chip, .chip-label {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1rem;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 999px;
  font: 600 .95rem var(--sans); cursor: pointer; position: relative;
}
.chip[aria-pressed="true"], .chip-label:has(input:checked) { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.chip-label input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.tag {
  display: inline-block; padding: .1rem .8rem;
  background: var(--card); border: 2px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 600;
}

/* ბარათები */
.card {
  background: var(--card); border: 2px solid var(--line); border-radius: 22px;
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start;
}
.p1 { background: var(--p1); } .p2 { background: var(--p2); } .p3 { background: var(--p3); } .p4 { background: var(--p4); } .sun { background: var(--sunsoft); }
.card h2, .card h3 { font-size: 1.2rem; line-height: 1.4; }
.card .small { font-size: .95rem; }
.grid2 { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
  min-height: 84px; padding: .9rem; border: 2px solid var(--line); border-radius: 18px;
  display: flex; align-items: flex-end; text-decoration: none;
  font: 700 1rem/1.3 var(--serif);
}
.stack { display: flex; flex-direction: column; gap: 1rem; }
.note { padding: .8rem 1rem; border-radius: 16px; background: var(--p1); font-size: .95rem; line-height: 1.55; }
.muted { font-size: .9rem; }

/* ფორმები */
label.field { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], input[type="url"], input[type="date"], input[type="time"], select, textarea {
  font: 400 1rem var(--sans); min-height: 48px; padding: .7rem 1rem;
  border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); width: 100%;
}
input[type="checkbox"] { width: 24px; height: 24px; flex: none; accent-color: var(--leaf); }
label.check { flex-direction: row; align-items: center; gap: .6rem; min-height: 44px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-bottom: 2px solid var(--line); }
.row:last-child { border-bottom: 0; }
audio { width: 100%; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
legend { font-weight: 600; padding: 0 0 .5rem; }
.msg { min-height: 1.5em; font-size: .95rem; }

/* დეტალები (აკორდეონი) */
details { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 0 1rem; }
details[open] { padding-bottom: 1rem; }
summary {
  min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  font-weight: 700; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; width: .6rem; height: .6rem; flex: none;
  border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg);
}
details[open] > summary::after { transform: rotate(-135deg); }
details > .body { display: flex; flex-direction: column; gap: .75rem; }
details ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.sleepbox { background: var(--p2); }
.range { position: relative; height: 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); margin-top: .4rem; }
.range i { position: absolute; top: -2px; bottom: -2px; border: 2px solid var(--line); border-radius: 999px; background: var(--sun); }
.range-labels { display: flex; justify-content: space-between; font-size: .8rem; }

/* პასუხის დონე */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .7rem;
  border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap;
}
.badge svg { flex: none; }
.lv-ok { background: var(--leaf); color: var(--on-leaf); border: 2px solid var(--leaf); }
.lv-watch { background: var(--card); color: var(--ink); border: 2px solid var(--line); }
.lv-doctor { background: var(--sun); color: var(--on-sun); border: 2px solid var(--line); }
.doc { padding: .8rem 1rem; border: 2px dashed var(--line); border-radius: 14px; font-size: .95rem; }
.q-head { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; padding: .6rem 0; }

/* ფონი: ძალიან ღია ნაცრისფერი საბავშვო აიქონები (სათამაშოები, ცხოველები), არეული წყობით */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg-ico);
  -webkit-mask: url("bg-pattern.svg") 0 0 / 520px 520px repeat; mask: url("bg-pattern.svg") 0 0 / 520px 520px repeat; }
@media (max-width: 600px) { body::after { -webkit-mask-size: 420px 420px; mask-size: 420px 420px; } }
@media print { body::after { display: none; } }

/* საიტის ჩარჩო: ერთი და იგივე ზედა ზოლი და ქვედა ნაწილი ყველა გვერდზე */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 54px; width: auto; max-width: 100%; }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 2px solid var(--line); }
.head-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; padding-block: .6rem; }
.head-in > * { min-width: 0; }
.head-in .nav-menu { justify-self: start; }
.head-in .logo { justify-self: center; white-space: nowrap; }
.head-in .acc-menu:not(.nav-menu), .head-in .hd-login { justify-self: end; }
.nav-menu .acc-btn { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
.nav-menu .acc-pop { left: 0; right: auto; }
.nav-menu .acc-btn { gap: .4rem; }
.nav-menu .acc-pop { min-width: 14rem; max-height: calc(100vh - 5rem); overflow-y: auto; }
.nav-menu .acc-item[aria-current="page"] { background: var(--sun); color: var(--on-sun); font-weight: 700; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: inherit; }
main { outline: none; min-height: 60vh; }

/* გვერდები */
.page { padding-block: 1.5rem 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.page h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.25; }
.narrow { max-width: 46rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); align-items: stretch; }
.cards > .card { height: 100%; }
.card-grp + .card-grp { margin-top: 2rem; }
.card-grp-t { font-size: clamp(1.15rem, 3vw, 1.4rem); line-height: 1.3; margin: 0 0 .9rem; }
.home-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 820px) { .home-grid { grid-template-columns: 1fr 1fr; } }
.tile { min-height: 96px; }
.done-line { font: 700 1.2rem/1.4 var(--serif); }
.link-card { text-decoration: none; transition: transform .15s; }
.link-card:hover { transform: translateY(-3px); }
.link-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }

/* მთავარი გვერდი */
.hero { display: grid; gap: 2.5rem; align-items: center; padding-block: 2rem 3rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.2; margin-bottom: 1.1rem; }
.hero .lead { max-width: 34rem; margin-bottom: 0; font-size: 1.15rem; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr .9fr; padding-block: 3rem 4rem; } }
.badge-time { align-self: flex-end; margin-bottom: -.2rem; }
.section { padding-block: 2.5rem; }
.section h2.sec { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.3; max-width: 32rem; margin-bottom: 1.5rem; }
.promise { background: var(--p1); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; max-width: 36rem; }
.checks li { padding-left: 2rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 1.1rem; height: .55rem; border-left: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg); }
footer.foot { padding-block: 2rem 3rem; font-size: .95rem; border-top: 2px solid var(--line); }
footer.foot .wrap { display: flex; flex-direction: column; gap: .4rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: .6rem; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }

/* შესვლა */
.sheet { max-width: 26rem; margin: 0 auto; padding-block: 2rem 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.sheet > h1, .sheet > .lead { text-align: center; }
.sheet h1 { font-size: 1.7rem; line-height: 1.3; }
.sep { text-align: center; }
.forgot { margin: -.35rem 0 0; font-size: .88rem; }
.forgot .link-btn { font-size: inherit; min-height: 0; }
.gbtn { background: var(--card); color: var(--ink); border-color: var(--line); }

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

/* შემოსავლის წყაროების გვერდები */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.progress { height: 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--sun); }
.ans { min-height: 56px; font-size: 1.05rem; }
.ans[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.promo { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.promo > div { flex: 1 1 18rem; display: flex; flex-direction: column; gap: .4rem; }
.trust { padding: 1rem 0 0; font-weight: 600; }
.lockcard { border-style: dashed; }
.ctx-card { padding: .8rem 1rem; width: 100%; }
.thumb { width: 100%; max-height: 180px; object-fit: cover; border-radius: 14px; border: 2px solid var(--line); }
.portrait { max-width: 260px; border-radius: 22px; border: 2px solid var(--line); }
ul.plain { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
h1 svg { vertical-align: -3px; }
.hero.solo { grid-template-columns: 1fr !important; padding-block: 2rem 2.5rem; }
.hero.solo h1 { max-width: 28ch; }
.card h3 .tag { font: 700 .75rem var(--sans); vertical-align: middle; margin-left: .3rem; }

.srcs { margin: 0; padding-left: 1.1rem; display: grid; gap: .75rem; }
.srcs a { overflow-wrap: anywhere; }

/* შეხსენების შეტყობინებები (toast) */
#hc-toasts { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; gap: .6rem; padding: .8rem max(.8rem, env(safe-area-inset-left, 0px)) max(.8rem, env(safe-area-inset-bottom, 0px)); pointer-events: none; justify-items: center; }
.toast { pointer-events: auto; width: min(100%, 30rem); background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 18px; padding: .9rem 1rem; box-shadow: 0 6px 0 var(--line); display: grid; gap: .6rem; }
.toast-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
textarea { resize: vertical; }

/* ჩემი ბავშვი: ჩანართები */
.tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; margin-inline: -.1rem; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 1rem; display: inline-flex; align-items: center; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.tab[aria-current="page"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.tab-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.tab-title h2 { font-size: 1.35rem; }
.tag.lv-ok { display: inline-flex; align-items: center; gap: .3rem; }
.tag.soon { background: var(--sunsoft); }
.chip.sm { min-height: 36px; padding: 0 .8rem; font-size: .85rem; }

/* აცრები */
.vax-group { display: grid; gap: .4rem; }
.vax-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .6rem; }
.vax-head h3 { font-size: 1.05rem; }
.vax-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.vax-row { display: flex; gap: .8rem; align-items: flex-start; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: .8rem; }
.vax-body { display: grid; gap: .25rem; min-width: 0; flex: 1; }
.vax-check { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--on-leaf); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.vax-check[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf); }

/* რეჟიმი: გრაფიკები */
.chart { width: 100%; height: auto; display: block; }
.chart-bar { fill: var(--leaf); }
.chart-band { fill: var(--sun); opacity: .35; }
.chart-line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart-none { fill: var(--line); opacity: .5; }
.chart-tx { fill: var(--ink); font: 600 10px var(--sans); }
.eat-row { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.eat-dot { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font: 700 .7rem var(--sans); color: var(--ink); background: var(--card); }
.eat-dot.e-good { background: var(--leaf); border-color: var(--leaf); color: var(--on-leaf); }
.eat-dot.e-mid { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }
.eat-dot.e-bad { background: var(--p4); }

.print-only { display: none; }
@media print {
  .site-head, .foot, .no-print, #hc-toasts, .skip { display: none !important; }
  .print-only { display: block !important; }
  .vax-mark.print-only { display: inline !important; font-weight: 700; }
  body { background: #fff !important; color: #000 !important; }
  .card, .vax-row { box-shadow: none !important; background: #fff !important; border: 1px solid #000 !important; break-inside: avoid; }
  .page { padding: 0 !important; max-width: none !important; }
  .print-head { border-bottom: 1px solid #000; padding-bottom: .5rem; margin-bottom: .75rem; }
  a { color: inherit; text-decoration: none; }
}

.row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }

/* Happy Child+: ოთხი გეგმა ერთ რიგში */
.cards.plans { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan-act { margin-top: auto; padding-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.chip.locked { opacity: .65; cursor: not-allowed; }
.acc-item.locked { opacity: .7; cursor: not-allowed; }
.chip svg { vertical-align: -2px; }

/* YouTube-ის გადასახედი სურათი პოდკასტის ეპიზოდზე */
.yt { position: relative; display: block; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; border: 2px solid var(--ink, #3A4642); }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .7); }
.yt-play::after { content: ""; position: absolute; left: 25px; top: 18px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play, .yt:focus-visible .yt-play { background: #c00; }
.row .chips { margin: 0; }

/* პროფილის გვერდი: სექციები ერთმანეთისგან გამოყოფილია */
.acc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.acc-plan { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.acc-badge { font-size: .95rem; padding: .35rem .8rem; }
.acc-mail { margin: 0; }
.acc-sec { margin-top: 1.25rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
.acc-sec .stack, .acc-sec.stack { gap: 1.1rem; }
.acc-h { font-size: 1.2rem; }

/* კითხვა-პასუხი: ჯგუფების სათაურები და წყაროები */
.qa-group { font-size: 1.05rem; margin: 1.25rem 0 .25rem; color: var(--leaf); }
.qa-src { margin-top: .5rem; }
.qa-src a { color: inherit; text-decoration: underline; }

/* პროფილის ჩამოსაშლელი მენიუ */
.acc-menu { position: relative; }
.acc-btn { gap: .45rem; max-width: 11rem; }
.acc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-pop { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 30; min-width: 12.5rem; max-width: 80vw; padding: .4rem; background: var(--card); border: 2px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 18%, transparent); display: flex; flex-direction: column; gap: .15rem; }
.acc-pop[hidden] { display: none; }
.acc-item { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .8rem; border: 0; border-radius: .7rem; background: transparent; color: var(--ink); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; width: 100%; }
.acc-item:hover, .acc-item:focus-visible { background: var(--p1); }
.acc-item[aria-checked="true"] { background: var(--sunsoft); }
.acc-tick { width: 1rem; flex: none; text-align: center; }
.acc-sep { height: 1px; margin: .2rem .4rem; background: color-mix(in srgb, var(--line) 35%, transparent); }

@media (max-width: 480px) {
  .head-in { gap: .35rem; }
  .acc-btn { max-width: 6.5rem; padding: 0 .8rem; }
  .nav-menu .acc-btn { max-width: none; }
  .head-in { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .head-in .acc-menu:not(.nav-menu) .acc-btn { max-width: 100%; padding: 0 .6rem; gap: .3rem; }
  .head-in .acc-menu:not(.nav-menu) .acc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .logo img { height: 50px; }
}

/* მთავარი გვერდის ფოტო */
.hero-photo { margin: 0 0 1.5rem; }
.hero-photo[hidden] { display: none; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; border-radius: 24px; background: var(--p1); }
.hero-photo figcaption { margin-top: .4rem; font-size: .8rem; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.hero-photo figcaption a { color: inherit; }
@media (min-width: 700px) { .hero-photo img { aspect-ratio: 21 / 8; } }

/* გვერდების მენიუს ჯგუფები */
.acc-grp { display: flex; flex-direction: column; gap: .15rem; }
.acc-grp + .acc-grp { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
.acc-grp-t { padding: .2rem .8rem; font-size: .75rem; font-weight: 700; letter-spacing: .02em; color: color-mix(in srgb, var(--ink) 65%, transparent); }
.acc-soon { margin-left: .3rem; font-size: .7rem; }
.nav-menu .acc-pop { min-width: 15.5rem; }
.nav-menu .acc-item > span { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.nav-menu .acc-soon { margin: 0; padding: 0 .5rem; min-height: 0; font-size: .7rem; line-height: 1.4; }

/* მთავარი გვერდი: პანელების სათაურები დიდი ასოებით (Roboto; ქართულისთვის Noto Sans Georgian, SIL OFL), განმარტებები Noto Sans Georgian-ით */
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/Roboto-Bold.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Noto Sans Georgian"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/NotoSansGeorgian-Regular.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Noto Sans Georgian"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/NotoSansGeorgian-Bold.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F; }
.link-card h3 { font-family: "Roboto", "Noto Sans Georgian", var(--sans); font-weight: 700; letter-spacing: .03em; font-size: 1.1rem; }
.nsg { font-family: "Noto Sans Georgian", var(--sans); }

/* მუქ თემაში ლოგოს ყავისფერი წარწერა თეთრ მომრგვალებულ ფონზე დგას, რომ ჩანდეს */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo img { background: #fff; border-radius: .8rem; padding: .15rem .5rem; box-sizing: content-box; } }
:root[data-theme="dark"] .logo img { background: #fff; border-radius: .8rem; padding: .15rem .5rem; box-sizing: content-box; }
.hero-h1 { font-family: "Roboto", "Noto Sans Georgian", var(--sans); font-weight: 700; }

/* მენიუს ღილაკი: მხოლოდ სამი ხაზი, რგოლის გარეშე */
.nav-menu .acc-btn { border: 0; background: transparent; box-shadow: none; border-radius: .6rem; margin-left: -10px; }
.nav-menu .acc-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

/* მთავარი გვერდი: ბოლო ბარათსა და ფუტერს შორის ისეთივე სივრცეა, როგორიც ბარათებს შორის */
.cards-sec:last-child { padding-bottom: 1rem; }

/* საუბრები (forum) */
.fo-img { display: block; max-width: 100%; max-height: 420px; width: auto; height: auto; border-radius: 12px; border: 2px solid var(--line); margin: .5rem 0; object-fit: contain; }
.fo-prev { margin-top: .5rem; }
.fo-hidden { opacity: .6; }
.fo-topic { display: block; text-decoration: none; color: inherit; }
.fo-topic h3 { font-family: var(--sans); letter-spacing: 0; font-size: 1.1rem; margin: .35rem 0 .25rem; overflow-wrap: anywhere; }
.fo-topic p { overflow-wrap: anywhere; }

/* საუბრები: ჩათის სტილის თემა */
.fo-chat { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0; }
.fo-day { align-self: center; margin: 0; font-size: .85rem; padding: .2rem .8rem; border-radius: 999px; background: var(--card); border: 2px solid var(--line); }
.fo-msg { display: flex; gap: .6rem; align-items: flex-end; max-width: 88%; }
.fo-msg.theirs { align-self: flex-start; }
.fo-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.fo-msg.op { max-width: 100%; }
.fo-col { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.fo-msg.mine .fo-col { align-items: flex-end; }
.fo-meta { margin: 0 .4rem; font-size: .85rem; }
.fo-bub { padding: .7rem 1rem; border-radius: 1.2rem; border: 2px solid var(--line); background: var(--card); overflow-wrap: anywhere; }
.fo-bub p { margin: 0; }
.fo-msg.theirs .fo-bub { border-bottom-left-radius: .3rem; }
.fo-msg.mine .fo-bub { border-bottom-right-radius: .3rem; background: var(--p1); }
.fo-msg.op .fo-bub { background: var(--sunsoft); }
.fo-msg .fo-img { margin: .5rem 0 0; max-height: 320px; }
.fo-msg .chips { margin: 0; gap: .2rem .6rem; }
.fo-msg .link-btn { min-height: 32px; font-size: .85rem; }
.fo-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--line); background: var(--p2); }
.fo-av.p1 { background: var(--p1); } .fo-av.p3 { background: var(--p3); } .fo-av.p4 { background: var(--p4); }
.fo-composer { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: .4rem; padding: .7rem .7rem calc(.7rem + env(safe-area-inset-bottom, 0px)); margin: 0 -.2rem; background: var(--bg); border-top: 2px solid var(--line); }
.fo-as { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.fo-as input { width: auto; flex: 1; min-width: 0; padding: .25rem .7rem; min-height: 32px; font-size: .9rem; }
.fo-row { display: flex; align-items: flex-end; gap: .5rem; }
.fo-row textarea { flex: 1; min-width: 0; resize: none; border-radius: 1.4rem; padding: .7rem 1rem; max-height: 9rem; }
.fo-attach, .fo-send { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 2px solid var(--line); background: var(--card); color: var(--ink); padding: 0; }
.fo-send { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.fo-send:disabled { opacity: .6; }
.fo-attach input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.fo-attach:has(input:focus-visible), .fo-send:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.fo-thumb { max-height: 90px; display: inline-block; margin: 0 .6rem 0 0; vertical-align: middle; }
.fo-composer .msg:empty { display: none; }
.fo-composer .msg { margin: 0; }
@media (max-width: 480px) { .fo-msg { max-width: 94%; } }
.fo-attach .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fo-like { display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; padding: 0 .5rem; border-radius: 999px; border: 2px solid transparent; background: none; color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.fo-like:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.fo-like[aria-pressed="true"] { color: #C2415B; border-color: currentColor; }
:root[data-theme="dark"] .fo-like[aria-pressed="true"] { color: #F08AA0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fo-like[aria-pressed="true"] { color: #F08AA0; } }
.fo-msg .chips { align-items: center; }
.fo-quote { display: flex; flex-direction: column; gap: .1rem; width: 100%; text-align: left; padding: .35rem .6rem; margin: 0 0 .5rem; font: inherit; font-size: .85rem; color: inherit; cursor: pointer; background: color-mix(in srgb, var(--ink) 8%, transparent); border: 0; border-left: 4px solid var(--line); border-radius: .5rem; }
.fo-quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.fo-replying { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .7rem; font-size: .85rem; border-left: 4px solid var(--line); background: var(--card); border-radius: .5rem; }
.fo-replying span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-flash .fo-bub { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ანგარიშის მოთხოვნის ნიშანი (ბავშვის/მშობლის სივრცე, სერვისები) */
.lk { display: inline-flex; flex: none; opacity: .6; }
.link-card { position: relative; }
.link-card .lk { position: absolute; top: .9rem; right: .95rem; }
.link-card.locked h3 { padding-right: 1.9rem; }
.acc-item .lk { margin-inline-start: auto; }

/* მთავარი გვერდი: ასაკის არჩევა „შემეცნების“ თავზე */
.land-age { max-width: 15.4rem; margin: 0 0 1.4rem; }
.land-age select { font-weight: 700; }
