/*
 * Ena – language school template · Abedev (abedev.com)
 *
 * Design: a friendly exercise book – lined paper, a red margin line, a yellow highlighter, ink-blue rounded
 * headings, handwritten notes (Caveat), speech bubbles that say hello in each language and sticky notes.
 * Colours, fonts and spacing are variables: change them here and the whole site follows.
 * Sections: 1 fonts · 2 tokens · 3 base · 4 header & language bubbles · 5 hero · 6 home · 7 courses & filters
 * · 8 placement test · 9 team · 10 forms · 11 footer
 */

/* 1 ─ Fonts (bundled, SIL Open Font License – see assets/fonts/OFL.txt) */
@font-face { font-family: "Ena Round"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/m-plus-rounded-1c-latin-500-normal.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, U+FEFF, U+FFFD; }
@font-face { font-family: "Ena Round"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/m-plus-rounded-1c-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ena Round"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/m-plus-rounded-1c-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Ena Round"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-500-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Ena Round"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/m-plus-rounded-1c-latin-800-normal.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, U+FEFF, U+FFFD; }
@font-face { font-family: "Ena Round"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/m-plus-rounded-1c-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ena Round"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/m-plus-rounded-1c-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Ena Round"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-700-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Ena Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/commissioner-latin-400-normal.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, U+FEFF, U+FFFD; }
@font-face { font-family: "Ena Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/commissioner-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ena Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/commissioner-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Ena Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-400-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Ena Hand"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/caveat-latin-600-normal.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, U+FEFF, U+FFFD; }
@font-face { font-family: "Ena Hand"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/caveat-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ena Hand"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/caveat-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Ena Hand"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-600-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }

/* 2 ─ Tokens */
:root {
    --marker: #ffd84d;
    --ink: #1f3c88;
    --pen: #e4574a;
    --mint: #8fd3c1;
    --lilac: #b8a7f0;
    --paper: #fdfbf3;
    --rule: #d5e1f2;
    --text-c: #26304a;
    --mid: #5d6680;
    --white: #ffffff;
    --round: "Ena Round", "M PLUS Rounded 1c", system-ui, sans-serif;
    --text: "Ena Text", "Commissioner", system-ui, sans-serif;
    --hand: "Ena Hand", "Caveat", cursive;
    --wrap: 1200px;
    --radius: 18px;
}

/* 3 ─ Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text-c); font: 400 17px/1.65 var(--text); overflow-x: hidden; }
img { display: block; max-width: 100%; }
svg { display: block; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--round); font-weight: 800; color: var(--ink); line-height: 1.12; margin: 0 0 .45em; overflow-wrap: break-word; hyphens: manual; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
:lang(ka) h1 { font-size: clamp(1.75rem, 3.8vw, 3.1rem); }
:lang(ka) h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
:lang(ka) body { font-size: 16px; }
p { margin: 0 0 1em; }
q { quotes: "\201C" "\201D"; }
q:lang(de), q:lang(ka) { quotes: "\201E" "\201C"; }
q:lang(ru) { quotes: "\00AB" "\00BB"; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 10px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.reveal { opacity: 0; transform: translateY(14px) rotate(-.4deg); transition: opacity .5s, transform .5s; }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 2px 10px; font: 500 15px/1.4 var(--round); color: var(--ink); background: linear-gradient(transparent 40%, var(--marker) 40%, var(--marker) 88%, transparent 88%); }
.lead { font-size: 1.12rem; color: var(--mid); max-width: 38em; }
.muted { color: var(--mid); }
.scribble { font: 600 1.55rem/1.2 var(--hand); color: var(--pen); transform: rotate(-2deg); margin: 18px 0 0; }
:lang(ka) .scribble { font-size: 1.1rem; font-family: var(--text); font-weight: 400; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 11px 24px; border: 3px solid var(--ink); border-radius: 999px; font: 500 16px/1.2 var(--round); text-decoration: none; cursor: pointer; text-align: center; color: var(--ink); background: var(--white); box-shadow: 0 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-marker { background: var(--marker); }
.btn-ink { background: var(--ink); color: var(--white); box-shadow: 0 4px 0 #0f1f4d; }
.btn-line { background: transparent; }
.btn-small { min-height: 42px; padding: 7px 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.more { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font: 500 16px/1.3 var(--round); color: var(--ink); text-decoration-color: var(--marker); text-decoration-thickness: 4px; text-underline-offset: 4px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding-top: 24px; }
.section--lined { background: repeating-linear-gradient(transparent 0 35px, var(--rule) 35px 37px), var(--white); border-block: 2px solid var(--rule); }
.section--marker { background: var(--marker); }
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 28px; }
.head-row > * { min-width: 0; }
.head-row h2 { margin: 0; }
.page-head { padding: clamp(40px, 6vw, 80px) 0 28px; position: relative; }
.page-head::after { content: ""; display: block; width: min(var(--wrap), 100% - 40px); margin: 32px auto 0; height: 2px; background: repeating-linear-gradient(90deg, var(--pen) 0 14px, transparent 14px 22px); }
.empty, .count { color: var(--mid); }
.flag { width: 30px; height: 20px; border-radius: 4px; box-shadow: 0 0 0 1.5px rgba(31, 60, 136, .25); overflow: hidden; flex: none; }

/* 4 ─ Header & language bubbles */
.header { position: sticky; top: 0; z-index: 30; background: rgba(253, 251, 243, .94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo > span:last-child { display: flex; flex-direction: column; font: 800 1.45rem/1 var(--round); }
.logo small { font: 400 .78rem/1.3 var(--text); color: var(--mid); margin-top: 3px; }
.logo-bubble { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 8px; background: var(--marker); border: 3px solid var(--ink); }
.logo-bubble .icon { width: 22px; height: 22px; }
.logo-img { max-height: 46px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 12px; font: 500 15px/1.2 var(--round); text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--white); }
.nav a[aria-current="page"] { background: linear-gradient(transparent 50%, var(--marker) 50%, var(--marker) 90%, transparent 90%); }
/* each language is a little speech bubble saying hello – the current one is highlighted */
.bubbles { display: flex; gap: 8px; }
.bubbles a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border: 2px solid var(--ink); border-radius: 14px 14px 14px 4px; background: var(--white); font: 500 13px/1 var(--round); text-decoration: none; color: var(--ink); transition: transform .15s; }
.bubbles a::after { content: ""; position: absolute; left: 6px; bottom: -8px; border: 6px solid transparent; border-top-color: var(--ink); border-left-color: var(--ink); }
.bubbles a:hover { transform: translateY(-2px) rotate(-2deg); }
.bubbles a[aria-current] { background: var(--marker); }
.bubbles .flag { width: 22px; height: 15px; border-radius: 3px; }
.bubbles--top span { display: none; }
.bubbles--top a { padding: 5px 6px; }
.bubbles--top a[aria-current] span { display: inline; }
.bubbles--top a[aria-current] { padding-right: 10px; }
:lang(ka) .bubbles span { font-family: var(--text); }
.note-btn { display: none; align-items: center; gap: 8px; margin-left: auto; min-height: 46px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--marker); font: 500 15px/1 var(--round); color: var(--ink); cursor: pointer; }
.note-btn .icon { transition: transform .2s; }
.note-btn[aria-expanded="true"] .icon { transform: rotate(-30deg); }
/* the mobile menu is a sticky note */
.note { position: absolute; right: 16px; top: calc(100% + 8px); width: min(320px, calc(100% - 32px)); padding: 26px 22px 22px; background: var(--marker); box-shadow: 0 18px 30px rgba(31, 60, 136, .22); transform: rotate(1.5deg); animation: stick .25s ease-out; }
.note::before { content: ""; position: absolute; left: 50%; top: -12px; width: 90px; height: 26px; margin-left: -45px; background: rgba(255, 255, 255, .55); transform: rotate(-3deg); }
.note nav { display: grid; gap: 2px; margin-bottom: 20px; }
.note nav a { padding: 8px 4px; font: 500 1.25rem/1.2 var(--round); color: var(--ink); text-decoration: none; border-bottom: 2px dashed rgba(31, 60, 136, .25); }
.note nav a[aria-current="page"] { text-decoration: underline wavy var(--pen); text-underline-offset: 6px; }
.bubbles--note { flex-wrap: wrap; gap: 14px 10px; }
@keyframes stick { from { opacity: 0; transform: rotate(6deg) translateY(-10px); } to { opacity: 1; transform: rotate(1.5deg); } }
@media (max-width: 1100px) {
    .nav, .bubbles--top { display: none; }
    .note-btn { display: inline-flex; }
}
@media (min-width: 1101px) { .note { display: none !important; } }
:lang(ka) .nav a, :lang(ru) .nav a { font-size: 14px; padding: 8px 9px; }

/* 5 ─ Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-text { min-width: 0; }
.hero-page { position: relative; aspect-ratio: 1; border-radius: 6px 26px 26px 6px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 14px 14px 0 var(--marker); transform: rotate(2deg); }
.hero-page img, .hero-page picture, .hero-page svg { width: 100%; height: 100%; object-fit: cover; }
.hero-page::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18px; z-index: 1; background: repeating-linear-gradient(var(--ink) 0 8px, transparent 8px 28px); opacity: .7; }

/* 6 ─ Home */
.lang-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.lang-grid a { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; padding: 18px 18px 16px; border: 3px solid var(--ink); border-radius: 22px 22px 22px 6px; background: var(--white); text-decoration: none; transition: transform .2s, background .2s; }
.lang-grid a::after { content: ""; position: absolute; left: 14px; bottom: -14px; border: 9px solid transparent; border-top-color: var(--ink); border-left-color: var(--ink); }
.lang-grid li:nth-child(even) a { transform: rotate(1.2deg); }
.lang-grid li:nth-child(odd) a { transform: rotate(-1deg); }
.lang-grid a:hover { background: var(--marker); transform: rotate(0) translateY(-3px); }
.lang-grid .flag { width: 42px; height: 28px; }
.lg-hello { font: 600 1.7rem/1.1 var(--hand); color: var(--pen); overflow-wrap: anywhere; }
.lg-hello:lang(ka) { font: 600 1.15rem/1.3 var(--text); }
.lg-name { font: 500 1.05rem/1.2 var(--round); color: var(--ink); }
.method { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start; }
.method-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.method-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: center; }
.method-steps span { display: grid; place-items: center; width: 56px; height: 56px; border: 3px solid var(--ink); border-radius: 50%; font: 800 1.5rem/1 var(--round); color: var(--ink); background: var(--white); }
.method-steps li:nth-child(1) span { background: var(--marker); }
.method-steps li:nth-child(2) span { background: var(--mint); }
.method-steps li:nth-child(3) span { background: var(--lilac); }
.method-steps li:nth-child(4) span { background: #ffb3a8; }
.method-steps p { margin: 0; font-size: 1.08rem; }
.test-teaser { display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto; gap: 24px 40px; align-items: center; }
.test-teaser p { margin: 0; }
.levels { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 6px; }
.levels li { display: grid; place-items: end center; width: 44px; padding-bottom: 6px; border: 3px solid var(--ink); border-radius: 10px 10px 4px 4px; background: var(--white); font: 800 14px/1 var(--round); color: var(--ink); }
.levels li:nth-child(1) { height: 40px; } .levels li:nth-child(2) { height: 54px; } .levels li:nth-child(3) { height: 68px; }
.levels li:nth-child(4) { height: 82px; } .levels li:nth-child(5) { height: 96px; } .levels li:nth-child(6) { height: 110px; background: var(--ink); color: var(--marker); }
.stickies { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.sticky { position: relative; margin: 0; padding: 30px 24px 22px; background: var(--marker); box-shadow: 0 10px 18px rgba(31, 60, 136, .15); }
.sticky:nth-child(3n+2) { background: var(--mint); transform: rotate(1.5deg); }
.sticky:nth-child(3n+3) { background: #ffcfc7; transform: rotate(-1.2deg); }
.sticky:nth-child(3n+1) { transform: rotate(-1.8deg); }
.sticky::before { content: ""; position: absolute; left: 50%; top: -11px; width: 80px; height: 24px; margin-left: -40px; background: rgba(255, 255, 255, .6); transform: rotate(2deg); }
.sticky blockquote { margin: 0 0 14px; font: 600 1.45rem/1.3 var(--hand); color: var(--ink); }
.sticky blockquote:lang(ka) { font: 400 1.02rem/1.6 var(--text); }
.sticky figcaption { font-size: .92rem; color: var(--text-c); }
.cta { padding: 0 0 clamp(56px, 8vw, 96px); }
.cta-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; padding: clamp(24px, 4vw, 44px); border: 3px solid var(--ink); border-radius: 32px 32px 32px 8px; background: var(--ink); color: var(--white); }
.cta-inner h2 { color: var(--marker); margin-bottom: .2em; }
.cta-inner p { margin: 0; opacity: .9; }
.cta-bubble { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50% 50% 50% 10px; background: var(--marker); color: var(--ink); }
.cta-bubble .icon { width: 36px; height: 36px; }
.cta .btn { box-shadow: 0 4px 0 #0b1636; border-color: var(--marker); }

/* 7 ─ Courses & filters */
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.courses--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course { display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 20px; background: var(--white); border: 2px solid var(--rule); border-left: 6px solid var(--pen); border-radius: 6px 18px 18px 6px; background-image: repeating-linear-gradient(transparent 0 31px, #eef3fa 31px 32px); transition: transform .2s, box-shadow .2s; }
.course:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(31, 60, 136, .12); }
.course-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.course-lang { font: 500 15px/1.2 var(--round); color: var(--mid); min-width: 0; }
.level { display: inline-grid; place-items: center; min-width: 40px; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 999px; font: 800 13px/1 var(--round); color: var(--ink); background: var(--white); }
.course-top .level { margin-left: auto; }
.level--a1, .level--a2 { background: var(--mint); }
.level--b1, .level--b2 { background: var(--marker); }
.level--c1, .level--c2 { background: var(--lilac); }
.course h3 { margin-bottom: 12px; }
.course-meta { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.course-meta li { display: flex; gap: 8px; align-items: flex-start; }
.course-meta .icon { margin-top: 4px; color: var(--ink); }
.starts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; font-size: .9rem; }
.starts span { color: var(--mid); margin-right: 2px; }
.starts time { padding: 2px 9px; border-radius: 999px; border: 1.5px dashed var(--ink); font: 500 13px/1.4 var(--round); color: var(--ink); white-space: nowrap; }
.course-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 2px dashed var(--rule); }
.course-price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.course-price s { color: var(--mid); font-size: .95rem; text-decoration-color: var(--pen); text-decoration-thickness: 2px; }
.course-price strong { font: 800 1.45rem/1 var(--round); color: var(--ink); }
.finder { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: 96px; display: grid; gap: 18px; padding: 22px; background: var(--white); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--marker); }
.filters fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.filters legend { width: 100%; padding: 0; margin-bottom: 8px; font: 600 1.3rem/1.1 var(--hand); color: var(--pen); }
.filters legend:lang(ka) { font: 600 .95rem/1.3 var(--text); }
.filters label { position: relative; cursor: pointer; }
.filters input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filters label > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 2px solid var(--rule); border-radius: 999px; font: 500 14px/1.2 var(--round); background: var(--paper); transition: border-color .15s, background .15s; }
.filters label > span .flag { width: 20px; height: 14px; border-radius: 2px; }
.filters label > span.level { border-color: var(--ink); }
.filters input:checked + span { border-color: var(--ink); background: var(--marker); }
.filters input:checked + span.level { box-shadow: 0 0 0 3px var(--ink); }
.filters input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.count { margin: 0 0 16px; font: 500 15px/1.3 var(--round); }

/* 8 ─ Placement test */
.exam { max-width: 760px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); background: var(--white); border: 2px solid var(--rule); border-left: 6px solid var(--pen); border-radius: 6px 24px 24px 6px; background-image: repeating-linear-gradient(transparent 0 39px, #eef3fa 39px 40px); }
.exam-bar { height: 12px; margin-bottom: 26px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; }
.exam-bar span { display: block; height: 100%; width: 0; background: var(--marker); transition: width .3s; }
.exam-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.exam-q legend { display: grid; gap: 8px; margin-bottom: 18px; padding: 0; }
.q-n { font: 600 1.35rem/1 var(--hand); color: var(--pen); }
.q-n:lang(ka) { font: 600 .95rem/1.3 var(--text); }
.q-text { font: 500 clamp(1.25rem, 2.6vw, 1.6rem)/1.35 var(--round); color: var(--ink); }
.answers { display: grid; gap: 10px; }
.answers label { cursor: pointer; }
.answers input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.answers span { display: block; padding: 13px 18px; border: 2px solid var(--rule); border-radius: 14px; background: var(--white); transition: border-color .15s, background .15s, transform .15s; }
.answers b { font-family: var(--round); color: var(--ink); margin-right: 6px; }
.answers label:hover span { border-color: var(--ink); transform: translateX(4px); }
.answers input:checked + span { border-color: var(--ink); background: var(--marker); }
.answers input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.exam-result { text-align: center; padding: 10px 0 6px; animation: stick .3s ease-out; }
.red-pen { font: 600 2rem/1.1 var(--hand); color: var(--pen); transform: rotate(-3deg); }
.red-pen:lang(ka) { font: 600 1.15rem/1.4 var(--text); }
.big-level { display: inline-grid; place-items: center; width: 140px; height: 140px; margin: 6px auto 18px; border: 4px solid var(--pen); border-radius: 50%; font: 800 3.4rem/1 var(--round); color: var(--pen); transform: rotate(-8deg); }
.exam-result .actions { justify-content: center; }
.exam-note { margin: 26px 0 0; font-size: .92rem; color: var(--mid); }

/* 9 ─ Team */
.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 28px; }
.teacher { min-width: 0; }
.polaroid { position: relative; padding: 12px 12px 44px; background: var(--white); box-shadow: 0 10px 22px rgba(31, 60, 136, .14); margin-bottom: 20px; }
.teacher:nth-child(odd) .polaroid { transform: rotate(-2deg); }
.teacher:nth-child(even) .polaroid { transform: rotate(1.6deg); }
.polaroid img, .polaroid picture, .polaroid svg { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.tape { position: absolute; left: 50%; top: -12px; width: 86px; height: 26px; margin-left: -43px; background: rgba(255, 216, 77, .75); transform: rotate(-4deg); }
.teacher h2 { font-size: 1.35rem; margin-bottom: 8px; }
.teaches { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.teacher .scribble { font-size: 1.35rem; margin-top: 4px; }
.teacher .scribble:lang(ka) { font-size: 1rem; }

/* 10 ─ Forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.panel { min-width: 0; padding: clamp(22px, 4vw, 40px); background: var(--white); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 10px 10px 0 var(--marker); }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.full { grid-column: 1 / -1; }
.field label { font: 500 14px/1.3 var(--round); color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 11px 14px; border: 2px solid var(--rule); border-radius: 12px; background: var(--paper); font: 400 16px/1.4 var(--text); color: var(--text-c); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field input[readonly] { background: #f1f4fa; }
.field textarea { min-height: 120px; resize: vertical; }
.level-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--marker); font: 500 15px/1.4 var(--round); color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.form-status { grid-column: 1 / -1; display: none; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.form-status.is-shown { display: block; }
.form-status.ok { background: #d9f2ea; color: #145c47; }
.form-status.info { background: #fff3c4; color: #6b5300; }
.form-status.error { background: #ffe1dd; color: #8c2219; }
.side { display: grid; gap: 22px; min-width: 0; }
.side-block { padding: 22px; background: var(--white); border: 2px solid var(--rule); border-radius: 20px; }
.side-block h2 { font-size: 1.3rem; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 2px dashed var(--rule); }
.hours li:last-child { border: 0; }
.faq details { border-bottom: 2px dashed var(--rule); padding: 10px 0; }
.faq details:last-child { border: 0; }
.faq summary { cursor: pointer; font: 500 16px/1.4 var(--round); color: var(--ink); }
.faq p { margin: 10px 0 0; color: var(--mid); }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.4em; }

/* 11 ─ Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .86); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.footer-name { font: 800 1.8rem/1 var(--round); color: var(--marker); margin-bottom: 14px; }
.footer-h { font: 600 1.5rem/1.1 var(--hand); color: var(--marker); margin-bottom: 12px; }
.footer-h:lang(ka) { font: 700 1rem/1.3 var(--text); }
.footer a { color: var(--white); }
.plain { list-style: none; margin: 0; padding: 0; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 50% 50% 50% 6px; }
.socials a:hover { background: var(--marker); color: var(--ink); border-color: var(--marker); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px dashed rgba(255, 255, 255, .3); font-size: .9rem; }

/* Responsive */
@media (max-width: 960px) {
    .hero-grid, .method, .contact-grid, .finder { grid-template-columns: minmax(0, 1fr); }
    .hero-page { max-width: 520px; width: 100%; justify-self: center; }
    .courses--three { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .test-teaser { grid-template-columns: minmax(0, 1fr); }
    .filters { position: static; }
    .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .wrap { width: calc(100% - 32px); }
    .form, .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .cta-inner { grid-template-columns: minmax(0, 1fr); }
    .cta-bubble { width: 56px; height: 56px; }
    .hero-page { transform: rotate(1deg); box-shadow: 8px 8px 0 var(--marker); }
    .courses, .teachers, .stickies { grid-template-columns: minmax(0, 1fr); }
    .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    .lang-grid a { padding: 14px 12px; }
    .logo > span:last-child { font-size: 1.2rem; }
    .logo small { display: none; }
    .note-btn span { display: none; }
    .levels li { width: 36px; }
    .actions .btn { flex: 1 1 auto; }
}
