/*
 * Kalami – tutoring template · Abedev (abedev.com)
 *
 * Design: calm and editorial – warm paper, ink and a single ultramarine accent, a classic serif for headings over a
 * clean sans for text, hairline rules, numbered sections and real photography instead of illustration. Motion is
 * quiet: underlines draw in, rows shift, the photo settles, the switch marker slides. The language switch is a
 * segmented control with round flags; on phones the menu is a numbered index sliding in from the right. Colours,
 * fonts and spacing are variables: change them here and the whole site follows. All motion stops with "reduce motion".
 */
@font-face { font-family: "Kalami Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-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: "Kalami Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-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: "Kalami Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-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: "Kalami Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-serif-georgian-georgian-600-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Kalami Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-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: "Kalami Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-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: "Kalami Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-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: "Kalami Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-serif-georgian-georgian-600-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Kalami Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.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: "Kalami Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/onest-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: "Kalami Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/onest-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: "Kalami Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/onest-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: "Kalami Sans"; 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: "Kalami Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/onest-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: "Kalami Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/onest-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: "Kalami Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/onest-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: "Kalami Sans"; 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; }

:root {
    --paper: #f6f5f1;
    --white: #fff;
    --ink: #14161b;
    --accent: #2846e8;
    --muted: #5d6068;
    --line: #dcd9d0;
    --line-dark: rgba(255, 255, 255, .16);
    --r: 6px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --serif: "Kalami Serif", Georgia, serif;
    --sans: "Kalami Sans", system-ui, sans-serif;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.no-scroll { overflow: hidden; }
.addr { line-height: 1.6; }

/* type */
.display { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -.03em; }
.display--page { font-size: clamp(2.3rem, 5.4vw, 4.4rem); max-width: 18ch; }
.display--cta { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.02em; }
:lang(ka) .display { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.2; letter-spacing: 0; }
:lang(ka) .display--page { font-size: clamp(1.8rem, 4vw, 3.2rem); }
:lang(ka) .h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: 0; line-height: 1.25; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: 0; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 54ch; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
:lang(ka) .eyebrow { letter-spacing: .02em; text-transform: none; font-size: .9rem; }
.kicker { display: inline-block; margin: 0 0 14px; font: 600 .82rem/1 var(--sans); letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.kicker--light { color: #8ea0ff; }
.small-label { display: block; margin: 0 0 8px; padding: 0; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .small-label { letter-spacing: 0; text-transform: none; font-size: .85rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--r); font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.more:hover { background-size: 100% 1px; }
.more .icon { transition: transform .3s var(--ease); }
.more:hover .icon { transform: translateX(4px); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 3px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(246, 245, 241, .92); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; font: 600 1.35rem/1 var(--serif); letter-spacing: -.02em; min-width: 0; }
.logo small { display: block; margin-top: 4px; font: 500 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .logo small { letter-spacing: 0; text-transform: none; }
.logo-img { max-height: 40px; width: auto; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--ink); color: #fff; font: 600 1.3rem/1 var(--serif); transition: background .25s; }
.logo:hover .logo-mark { background: var(--accent); }
.nav { display: flex; gap: 28px; }
.nav a { position: relative; padding: 6px 0; font-weight: 500; font-size: .98rem; text-decoration: none; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current] { color: var(--accent); }
.header-cta[aria-current] { background: var(--ink); }

/* language switch: a segmented control with round flags, the marker slides to the language in use */
.seg { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.seg-mark { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 999px; background: var(--ink); transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--ease); }
.seg a { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; transition: color .3s; }
.seg .flag { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.seg a:hover .flag { transform: rotate(-12deg) scale(1.12); }
.seg a[aria-current] { color: #fff; }
.seg a:not([aria-current]):hover { color: var(--accent); }
.panel-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: var(--r); background: transparent; font-weight: 600; cursor: pointer; }

/* phone menu: a numbered index of the pages, sliding in from the right */
.panel { position: fixed; inset: 0; z-index: 100; background: rgba(20, 22, 27, .4); opacity: 0; transition: opacity .3s; }
.panel.is-open { opacity: 1; }
.panel-inner { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 24px; width: min(440px, 100%); padding: 18px 20px 28px; background: var(--paper); transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto; }
.panel.is-open .panel-inner { transform: none; }
.panel-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.panel-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: var(--r); background: transparent; cursor: pointer; }
.panel-nav { display: grid; }
.panel-nav a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; opacity: 0; transform: translateX(24px); transition: opacity .4s calc(var(--i) * 60ms + 120ms), transform .5s var(--ease) calc(var(--i) * 60ms + 120ms), color .2s; }
.panel.is-open .panel-nav a { opacity: 1; transform: none; }
.panel-num { font-size: .8rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.panel-text { font: 600 1.7rem/1.15 var(--serif); letter-spacing: -.02em; overflow-wrap: anywhere; }
:lang(ka) .panel-text { font-size: 1.35rem; letter-spacing: 0; }
.panel-nav a[aria-current] { color: var(--accent); }
.panel-nav a:hover .icon { transform: translateX(4px); }
.panel-nav .icon { transition: transform .3s var(--ease); }
.seg--panel { align-self: stretch; }
.seg--panel a { min-height: 44px; font-size: .85rem; }
.panel-contact { margin-top: auto; color: var(--muted); }

/* start page */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(36px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-text .display { margin-bottom: 26px; }
.hero-text .lead { margin-bottom: 32px; }
.hero-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: #e8e5dd; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.js .hero-photo img { transform: scale(1.08); }
.js .is-loaded .hero-photo img, .hero-photo:hover img { transform: scale(1.02); }
.slot-card { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: rgba(255, 255, 255, .94); text-decoration: none; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
.slot-card:hover { transform: translateY(-3px); }
.slot-label { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .slot-label { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.slot-label .dot { width: 8px; height: 8px; border-radius: 50%; background: #1fa45a; box-shadow: 0 0 0 4px rgba(31, 164, 90, .18); }
.slot-text { font: 600 1.15rem/1.3 var(--serif); }

.numbers { border-block: 1px solid var(--line); background: #fff; }
.numbers-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.number { display: flex; flex-direction: column; gap: 6px; padding: 28px 22px; border-left: 1px solid var(--line); }
.number:first-child { border-left: 0; padding-left: 0; }
.number b { font: 600 clamp(2rem, 3.4vw, 2.8rem)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.number span { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.number--exam { padding-left: 22px; background: var(--accent); color: #fff; border-left: 0; }
.number--exam .exam-label { color: rgba(255, 255, 255, .78); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
:lang(ka) .number--exam .exam-label { letter-spacing: 0; text-transform: none; }
.number--exam b { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; }

.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--tight { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.section--line { border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #fff; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.section-head--row .lead { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 1px solid var(--ink); }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 3px; background: var(--accent); transition: width .9s var(--ease) calc(var(--i, 0) * 120ms + 200ms); }
.steps li.is-visible::before, .no-js .steps li::before { width: 56px; }
.step-n { display: block; margin-bottom: 18px; font-size: .82rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.45rem; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.section-head--side { position: sticky; top: 110px; }
.section-head--side .lead { margin: 18px 0 24px; }
.index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.index a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 20px; gap: 16px; align-items: baseline; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--ease), color .2s, background .35s; }
.index a:hover { padding-left: 14px; color: var(--accent); background: #fff; }
.index-n { font-size: .8rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.index-name { font: 600 1.45rem/1.2 var(--serif); letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
.index-meta { max-width: 240px; color: var(--muted); font-size: .85rem; line-height: 1.4; text-align: right; }
.index .icon { align-self: center; transition: transform .3s var(--ease); }
.index a:hover .icon { transform: translateX(4px); }
.quotes-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.study-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; }
.study-photo img { width: 100%; height: 100%; object-fit: cover; }
.section--dark .h2 { margin-bottom: 32px; }
.quote { margin: 0; padding: 28px 0; border-top: 1px solid var(--line-dark); }
.quote blockquote { margin: 0 0 14px; }
.quote p { margin: 0; font: italic 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.4 var(--serif); }
:lang(ka) .quote p, :lang(ru) .quote p { font-style: normal; }
.quote figcaption { color: rgba(255, 255, 255, .65); font-size: .9rem; }
.quote figcaption::before { content: "— "; }

.cta { background: var(--accent); color: #fff; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; padding-block: clamp(56px, 8vw, 104px); }
.cta-inner p { color: rgba(255, 255, 255, .85); max-width: 40ch; margin-bottom: 22px; }

/* subjects page */
.page-head { padding: clamp(40px, 7vw, 96px) 0 clamp(16px, 3vw, 32px); }
.page-head .lead { margin-top: 22px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.seg-choice { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.seg-choice label { position: relative; cursor: pointer; }
.seg-choice input { position: absolute; opacity: 0; pointer-events: none; }
.seg-choice span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .92rem; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.seg-choice label:hover span { border-color: var(--ink); }
.seg-choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-choice--full { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.seg-choice--full span { justify-content: center; width: 100%; padding: 8px 10px; text-align: center; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.toggle input { position: absolute; opacity: 0; }
.toggle-ui { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--line); transition: background .25s; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--accent); }
.toggle input:checked + .toggle-ui::after { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.subjects { margin: 0; padding: 0; list-style: none; }
.subject { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 300px); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); transition: opacity .3s, transform .4s var(--ease); }
.subject.is-out { display: none; }
.subject:target { background: linear-gradient(90deg, rgba(40, 70, 232, .06), transparent); }
.subject-n { font-size: .82rem; font-weight: 600; color: var(--accent); padding-top: 8px; font-variant-numeric: tabular-nums; }
.subject-main h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.subject-main p { color: var(--muted); max-width: 58ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 3px; font-size: .8rem; }
.tags .tag-online { border-color: var(--accent); color: var(--accent); }
.tags .icon { width: 1em; height: 1em; }
.subject-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mono-row { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mono-row a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }
.mono-row a:hover .mono-name { color: var(--accent); }
.mono { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font: 600 .78rem/1 var(--sans); letter-spacing: .04em; }
.mono--lg { width: 64px; height: 64px; font: 600 1.4rem/1 var(--serif); letter-spacing: 0; transition: background .3s; }
.no-match { padding: 24px 0; }
.tutors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 1px 0 0 1px; list-style: none; }
.tutor { margin: -1px 0 0 -1px; padding: 28px; border: 1px solid var(--line); background: var(--paper); transition: background .3s; }
.tutor:hover { background: #fff; }
.tutor:hover .mono--lg, .tutor:target .mono--lg { background: var(--accent); }
.tutor-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.tutor h3 { font-size: 1.35rem; margin-bottom: 2px; }
.tutor-top p { margin: 0; }
.tutor-subjects { font-weight: 600; color: var(--accent); }
.tutor-facts { display: grid; gap: 12px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.tutor-facts dt { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
:lang(ka) .tutor-facts dt { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.tutor-facts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 500; }
.week { display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; }
.week li { display: grid; place-items: center; min-width: 28px; height: 26px; padding: 0 3px; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.week li.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* prices page */
.price-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.rates { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.rates th, .rates td { padding: 24px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.rates th { font: 600 clamp(1.15rem, 2.2vw, 1.6rem)/1.25 var(--serif); overflow-wrap: break-word; hyphens: auto; }
.rates-n { display: inline-block; width: 44px; font: 600 .8rem/1 var(--sans); color: var(--accent); vertical-align: middle; }
.rates td { text-align: right; white-space: nowrap; }
.rates td b { display: block; font: 600 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--serif); }
.rates td small { color: var(--muted); }
.rates tr { transition: background .3s; }
.rates tr:hover { background: #fff; }
.calc { position: sticky; top: 96px; display: grid; gap: 20px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--ink); border-radius: var(--r); background: #fff; }
.calc-title { font-size: 1.7rem; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper-row .small-label { margin: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: var(--r); }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; transition: background .2s; }
.stepper button:hover { background: var(--paper); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 40px; text-align: center; font: 600 1.3rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.calc-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 20px 0; border-block: 1px solid var(--line); }
.calc-out b { display: block; font: 600 1.6rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.calc-out .calc-month { font-size: clamp(2.2rem, 4vw, 2.9rem); color: var(--accent); }
.calc-month.is-tick { animation: tick .35s var(--ease); }
@keyframes tick { from { transform: translateY(6px); opacity: .3; } }
.calc .btn { justify-self: start; }
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.package { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .3s, transform .3s var(--ease); }
.package:hover { border-color: var(--ink); transform: translateY(-3px); }
.package.is-featured { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.package .badge { position: absolute; top: -12px; left: 30px; }
.package h3 { font-size: 1.5rem; margin-bottom: 14px; }
.package-price { margin: 0; }
.package-price b { font: 600 2.6rem/1 var(--serif); letter-spacing: -.02em; }
.package-price s { margin-left: 8px; color: var(--muted); font-size: 1.1rem; }
.checks { display: grid; gap: 8px; margin: 6px 0 24px; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--accent); margin-top: 4px; }
.package .btn { margin-top: auto; }

/* trial lesson page */
.trial-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.trial { display: grid; gap: 8px; }
.block { margin: 0; padding: 28px 0 12px; border: 0; border-top: 1px solid var(--ink); min-width: 0; }
.block > legend { float: left; width: 100%; margin-bottom: 20px; font: 600 1.6rem/1.2 var(--serif); }
.block > legend .kicker { margin: 0 10px 0 0; vertical-align: middle; }
.block > legend + * { clear: both; }
.block .seg-choice { margin-bottom: 18px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(40, 70, 232, .15); }
.note { display: flex; gap: 8px; color: var(--muted); font-size: .95rem; }
.note .icon { margin-top: 3px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-size: .92rem; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.form-status { margin-top: 14px; }
.form-status.is-shown { padding: 12px 16px; border-left: 3px solid var(--ink); background: #fff; font-weight: 500; }
.form-status.ok { border-color: #1fa45a; }
.form-status.info { border-color: var(--accent); }
.form-status.error { border-color: #c4302b; color: #8f1f1b; }
.trial-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.card--summary { border-color: var(--ink); background: var(--ink); color: #fff; }
.card--summary .small-label { color: rgba(255, 255, 255, .7); }
.summary-main { font: 600 1.3rem/1.3 var(--serif); margin-bottom: 6px; }
.summary-when { margin: 0; color: #b9c4ff; font-weight: 500; }
.hours { margin: 0; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { font-weight: 600; color: var(--accent); }
.hours li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* legal */
.legal { max-width: 760px; }
.legal h2 { margin: 32px 0 10px; font-size: 1.5rem; }
.page-imprint .page-head h1, .page-privacy .page-head h1 { font-size: clamp(1.6rem, 6.4vw, 3.8rem); overflow-wrap: break-word; hyphens: auto; }

/* footer */
.footer { padding: clamp(48px, 6vw, 80px) 0 24px; background: var(--ink); color: rgba(255, 255, 255, .78); }
.footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.footer a:hover { text-decoration-color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-name { font: 600 2.4rem/1 var(--serif); color: #fff; letter-spacing: -.02em; margin-bottom: 14px; }
.footer-h { margin-bottom: 14px; font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
:lang(ka) .footer-h { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.footer .plain li { padding: 3px 0; }
.footer .plain a { text-decoration: none; }
.footer .plain a:hover { text-decoration: underline; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-dark); border-radius: 50%; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: .88rem; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1100px) {
    .nav { gap: 18px; }
    .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .number { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
    .number:nth-child(-n+2) { border-top: 0; }
    .number:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
    .number--exam { grid-column: 1 / -1; padding: 24px 22px !important; border-left: 0 !important; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .tutors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .nav, .seg--top, .header-cta { display: none; }
    .panel-btn { display: inline-flex; }
    .hero-grid, .split, .quotes-grid, .price-grid, .trial-grid, .cta-inner, .section-head--row { grid-template-columns: minmax(0, 1fr); }
    .hero-photo { aspect-ratio: 16 / 11; }
    .section-head--side, .calc, .trial-side { position: static; }
    .study-photo { aspect-ratio: 16 / 9; }
    .subject { grid-template-columns: 44px minmax(0, 1fr); }
    .subject-side { grid-column: 2; }
    .packages { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 640px) {
    .header-inner { min-height: 64px; gap: 12px; }
    .logo { font-size: 1.15rem; }
    .logo-mark { width: 36px; height: 36px; }
    .steps, .tutors { grid-template-columns: minmax(0, 1fr); }
    .numbers-grid { grid-template-columns: minmax(0, 1fr); }
    .number, .number:nth-child(even) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .number:first-child { border-top: 0; }
    .index a { grid-template-columns: 34px minmax(0, 1fr) 20px; }
    .index-meta { grid-column: 2; grid-row: 2; text-align: left; }
    .index .icon { grid-column: 3; grid-row: 1; }
    .row2 { grid-template-columns: minmax(0, 1fr); }
    .calc-out { grid-template-columns: minmax(0, 1fr); }
    .rates th, .rates td { padding: 18px 0; }
    .rates-n { width: 32px; }
    .rates th { width: 100%; }
    .rates td small { display: block; white-space: normal; }
    .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .filters { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
    .rates-n { display: none; }
    .logo small { display: none; }
    .panel-btn span { display: none; }
    .subject { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .subject-side { grid-column: 1; }
    .subject-n { padding-top: 0; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .btn { padding: 12px 18px; }
    .tutor { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    @view-transition { navigation: none; }
}
