/* საჯარო გვერდები (კურსი, დონეები, სიტყვები, როგორ მუშაობს, კონფიდენციალურობა, წესები), აპის „რვეულის“ სტილით:
   წერტილოვანი ფურცელი, თეთრი ფურცლები, გელის კალმის მელანი, ფერადი მარკერები, წითელი მთავარი ღილაკი */
@font-face { font-family: "Noto Sans Georgian"; src: url(fonts/noto-sans-georgian-1.woff2) format("woff2");
             font-weight: 400 800; font-stretch: 62.5% 100%; font-display: swap; } /* SIL Open Font License */
:root { --paper:#fff; --dot:#d5dae5; --card:#fff; --line:#e3e6ee; --ink:#1c2333; --mute:#5b6476; --red:#e0262b; --red-ink:#c81e24;
        --hl:#ffc6dc; --hl2:#fff09a; --hl3:#bff0d8; --hl4:#cfe3ff; --mark:#ff6fa4; --lift:rgb(28 35 51 / .07); color-scheme: light; }
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; padding: 0 14px 48px; color: var(--ink);
       background: var(--paper) radial-gradient(var(--dot) 1.1px, transparent 1.6px) 0 0 / 22px 22px;
       font: 400 17px/1.65 "Noto Sans Georgian", system-ui, sans-serif; }
::selection { background: var(--hl); }
:focus-visible { outline: 2.5px solid var(--mark); outline-offset: 2px; }
a { color: var(--ink); text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
main { max-width: 760px; margin: 0 auto; padding: 10px 26px 30px; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
       box-shadow: 0 1px 2px var(--lift), 0 10px 28px -14px var(--lift); overflow-wrap: break-word; }
main p, main li { max-width: 68ch; }
h1, h2, h3 { font-weight: 800; line-height: 1.25; text-wrap: balance; }
/* სათაური მარკერით */
/* სათაური მარკერით: თითო ხაზს თავისი მომრგვალებული ზოლი აქვს და ტექსტთან ერთად მთავრდება */
.mk { padding: 0 .18em; background: var(--hl); border-radius: .35em .6em .45em .25em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h2 .mk { background: var(--hl4); }
h1 { font-size: 30px; margin: 18px 0 10px; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 2px; }
.lead { font-size: 18px; }
.muted { color: var(--mute); font-size: 15px; }
hr { border: none; border-top: 1.5px dashed var(--line); margin: 30px 0; }
.i { width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.emo { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-weight: 400; }

/* ზედა ზოლი, მენიუ და ღილაკები, როგორც აპში */
.top { max-width: 760px; margin: 0 auto 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
       padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo .en { display: block; font-size: 11px; font-weight: 800; letter-spacing: .16em; line-height: 1.3; color: var(--red-ink); }
.logo b { display: block; font-size: 17px; font-weight: 800; line-height: 1.15; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; font-weight: 700;
       text-decoration: none; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red .i { fill: currentColor; stroke-width: 1.4; }
.btn.red:hover { background: #bd1d22; }
.tabs { max-width: 760px; margin: 0 auto 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 4px; padding: 4px;
        background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.tabs a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 8px; text-align: center;
          text-decoration: none; color: var(--mute); font-size: 14px; font-weight: 700; line-height: 1.25; border-radius: 12px; }
.tabs a:hover { color: var(--ink); background: #f3f5f9; }
.tabs a[aria-current] { color: var(--ink); background: var(--hl); }
/* სარჩევი: ფერადი სტიკერები */
.toc { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.toc a { padding: 4px 11px; text-decoration: none; border-radius: 99px; background: var(--hl2); }
.toc a:nth-child(4n+2) { background: var(--hl3); } .toc a:nth-child(4n+3) { background: var(--hl4); } .toc a:nth-child(4n) { background: var(--hl); }
.toc a:hover { outline: 1.5px solid var(--ink); }
table { width: 100%; border-collapse: collapse; margin: 8px 0; font-variant-numeric: tabular-nums; }
th { text-align: left; padding: 8px 10px; font-size: 13px; font-weight: 700; color: var(--mute); border-bottom: 1.5px solid var(--line); }
td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
tr:nth-child(even) td { background: #f7f8fb; }
pre { padding: 12px 14px; background: #f3f5f9; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto;
      font: 13px/1.55 ui-monospace, Consolas, "Courier New", monospace; }
.foot { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 13px; color: var(--mute); }
.foot a { color: var(--mute); }
.foot .by { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.foot .legal { margin-top: 8px; }
/* პარტნიორის პატარა რეკლამა (CodeQuest) */
.pt { max-width: 520px; margin: 0 auto 18px; text-align: left; }
.pt-ad { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--card); color: var(--ink);
         text-decoration: none; border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s; }
.pt-ad:hover { border-color: #3d5afe; }
.pt-ad svg { flex: none; }
.pt-t { display: grid; min-width: 0; }
.pt-t b { font-size: 17px; line-height: 1.25; }
.pt-t em { font-style: normal; font-size: 13px; line-height: 1.4; color: var(--mute); }
.pt-tag { position: absolute; top: -10px; right: 12px; padding: 1px 8px; background: var(--hl2); color: var(--ink); font-size: 11px; font-weight: 800; border-radius: 99px; }
@media (max-width: 560px) {
  body { font-size: 16px; }
  main { padding: 6px 16px 24px; }
  h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
