/*
 * Nergi – courses & workshops template · Abedev (abedev.com)
 *
 * Design: a printed course programme – warm paper, ink and one vermilion accent, a high-contrast display serif for
 * headings, a plain sans for text and a mono for dates, seats and numbers, ruled columns and hairlines, real
 * photography. Motion is quiet: the photo settles, rows tint, details open, the ticket of a language tilts. The
 * language switch is a row of small tickets with a perforated stub; on phones the menu rises like the contents page
 * of the programme. Colours, fonts and spacing are variables. All motion stops with "reduce motion".
 */
@font-face { font-family: "Nergi Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-serif-display-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: "Nergi Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-serif-display-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: "Nergi Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-serif-display-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: "Nergi Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-serif-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: "Nergi Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-serif-display-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: "Nergi Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-serif-display-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: "Nergi Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-serif-display-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: "Nergi 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: "Nergi Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-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: "Nergi Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-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: "Nergi Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-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: "Nergi 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: "Nergi Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-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: "Nergi Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-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: "Nergi Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-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: "Nergi 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; }
@font-face { font-family: "Nergi Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fira-code-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: "Nergi Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fira-code-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: "Nergi Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fira-code-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: "Nergi Mono"; 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: "Nergi Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fira-code-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: "Nergi Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fira-code-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: "Nergi Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fira-code-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: "Nergi Mono"; font-style: normal; font-weight: 500; 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: #fbfaf6;
    --white: #fff;
    --ink: #161514;
    --accent: #c8401f;
    --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
    --accent-light: color-mix(in srgb, var(--accent) 55%, #fff);
    --muted: #5f5b55;
    --line: #e2ddd3;
    --line-dark: rgba(255, 255, 255, .16);
    --r: 2px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --serif: "Nergi Serif", Georgia, serif;
    --sans: "Nergi Sans", system-ui, sans-serif;
    --mono: "Nergi Mono", ui-monospace, monospace;
}

@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.6 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.04; letter-spacing: -.02em; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: 0; line-height: 1.25; }
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(1240px, 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: .9rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.no-scroll { overflow: hidden; }
.addr { line-height: 1.6; }

/* type: a high-contrast display serif, a plain sans and a mono for dates, seats and numbers – like a printed programme */
.display { font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: .98; letter-spacing: -.035em; font-weight: 400; }
.display em, .display b { font-style: normal; color: var(--accent); }
.display--page { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 16ch; }
.display--cta { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 400; letter-spacing: -.025em; }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
:lang(ka) .display { font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.2; letter-spacing: 0; font-weight: 600; }
:lang(ka) .display--page { font-size: clamp(1.8rem, 4vw, 3.1rem); }
:lang(ka) .display--cta { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
:lang(ka) .h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); letter-spacing: 0; font-weight: 600; }
:lang(ka) .h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.display, .h2, .h3 { overflow-wrap: break-word; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 54ch; }
.eyebrow, .small-label, .mono { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: .78rem; color: var(--muted); }
.eyebrow::before { content: "§"; color: var(--accent); font-size: 1rem; }
.small-label { display: block; margin: 0 0 8px; padding: 0; font-size: .72rem; color: var(--muted); }
:lang(ka) .eyebrow, :lang(ka) .small-label { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.kicker { display: inline-block; margin: 0 8px 0 0; font: 500 .82rem/1 var(--mono); color: var(--accent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--r); font-weight: 600; text-decoration: none; text-align: center; 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(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 7px 16px; font-size: .94rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); }
.btn-line { border-color: var(--ink); background: transparent; }
.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: .5; cursor: default; }
.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; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .93); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--ink); }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; font: 600 1.5rem/1 var(--serif); letter-spacing: -.02em; min-width: 0; }
.logo small { display: block; margin-top: 4px; font: 500 .66rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .logo small { text-transform: none; letter-spacing: 0; font-size: .75rem; }
.logo-img { max-height: 40px; width: auto; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 1.35rem/1 var(--serif); transition: transform .5s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-12deg); }
.nav { display: flex; gap: 26px; }
.nav a { position: relative; padding: 6px 0; font-weight: 600; font-size: .97rem; text-decoration: none; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); 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); }
.nav a[aria-current]::after { background: var(--accent); }
.header-cta[aria-current] { background: var(--ink); }

/* language switch: tickets with a perforated stub; the one in use is inked */
.tickets { display: flex; gap: 6px; }
.ticket { --bg: #fff; position: relative; display: inline-flex; align-items: stretch; height: 30px; border: 1px solid var(--ink); border-radius: 3px; background: var(--bg); text-decoration: none; transition: transform .3s var(--ease), background .25s, color .25s; }
.ticket-stub { position: relative; width: 16px; overflow: hidden; border-right: 1px dashed currentColor; border-radius: 2px 0 0 2px; }
.ticket .flag { width: 100%; height: 100%; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; right: -4px; width: 7px; height: 7px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); z-index: 1; }
.ticket-stub::before { top: -4px; }
.ticket-stub::after { bottom: -4px; }
.ticket-code { display: grid; place-items: center; padding: 0 8px; font: 500 .78rem/1 var(--mono); letter-spacing: .06em; }
.ticket:hover { transform: rotate(-3deg) translateY(-1px); }
.ticket[aria-current] { background: var(--ink); color: #fff; }
.ticket[aria-current] .ticket-code { color: #fff; }
.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: the contents page of a programme, rising from below – dotted leaders to page numbers */
.panel { position: fixed; inset: 0; z-index: 100; background: rgba(22, 21, 20, .35); opacity: 0; transition: opacity .3s; }
.panel.is-open { opacity: 1; }
.panel-inner { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 22px; max-height: 100%; padding: 18px 20px 26px; background: var(--paper); border-top: 3px solid var(--accent); transform: translateY(100%); transition: transform .5s 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: 10px; border-bottom: 1px solid var(--ink); }
.panel-label { font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .panel-label { text-transform: none; letter-spacing: 0; }
.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; gap: 4px; }
.panel-nav a { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; text-decoration: none; opacity: 0; transform: translateY(16px); transition: opacity .4s calc(var(--i) * 60ms + 150ms), transform .5s var(--ease) calc(var(--i) * 60ms + 150ms), color .2s; }
.panel.is-open .panel-nav a { opacity: 1; transform: none; }
.panel-text { font: 400 clamp(1.8rem, 8vw, 2.4rem)/1.1 var(--serif); letter-spacing: -.02em; min-width: 0; overflow-wrap: break-word; }
:lang(ka) .panel-text { font-size: clamp(1.25rem, 5.4vw, 1.6rem); letter-spacing: 0; font-weight: 600; }
.panel-dots { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--muted); transform: translateY(-6px); }
.panel-num { font: 500 .95rem/1 var(--mono); color: var(--accent); }
.panel-nav a[aria-current] .panel-text { color: var(--accent); }
.tickets--panel { flex-wrap: wrap; gap: 8px; }
.tickets--panel .ticket { height: 40px; }
.tickets--panel .ticket-stub { width: 22px; }
.tickets--panel .ticket-code { padding: 0 14px; font-size: .95rem; }
.panel-contact { margin: 0; color: var(--muted); line-height: 1.8; }

/* hero: text and a tall photo; underneath the courses starting soon as a timetable */
.hero { padding: clamp(40px, 6vw, 80px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-text { padding-bottom: 12px; }
.hero-text .display { margin-bottom: 24px; }
.hero .lead { margin-bottom: 30px; }
.hero-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); }
.hero-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--accent); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.8s var(--ease); }
.is-loaded .hero-photo img { transform: none; }
.soon { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--ink); }
.soon-title { display: flex; align-items: center; gap: 10px; padding: 14px 0; font: 500 .8rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .soon-title { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.soon-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.soon-list li { border-right: 1px solid var(--line); }
.soon-list li:last-child { border-right: 0; }
.soon-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) 18px; grid-template-rows: auto auto; gap: 6px 14px; align-items: start; height: 100%; padding: 18px 16px 18px 0; text-decoration: none; transition: background .3s; }
.soon-list li + li a { padding-left: 16px; }
.soon-list a:hover { background: var(--accent-soft); }
.soon-date { grid-row: 1 / 3; display: grid; justify-items: center; min-width: 54px; padding: 6px 4px; border: 1px solid var(--ink); font: 500 .74rem/1.1 var(--mono); text-transform: uppercase; }
.soon-date b { font: 400 1.9rem/1 var(--serif); }
.soon-name { font-weight: 600; line-height: 1.3; }
.soon-name small { display: block; margin-top: 4px; font-weight: 400; font-size: .86rem; color: var(--muted); }
.soon-seats { grid-column: 2; font: 500 .76rem/1.3 var(--mono); color: var(--muted); }
.soon-seats.is-low { color: var(--accent); }
.soon-list .icon { grid-column: 3; grid-row: 1; transition: transform .3s var(--ease); }
.soon-list a:hover .icon { transform: translateX(3px); color: var(--accent); }

/* facts */
.facts { margin-top: clamp(48px, 6vw, 80px); background: var(--ink); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: grid; gap: 8px; padding: 30px 24px; border-left: 1px solid var(--line-dark); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--serif); letter-spacing: -.02em; }
.fact span { font-size: .95rem; color: rgba(255, 255, 255, .72); }

/* sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding-top: clamp(24px, 3vw, 40px); }
.section--ink { background: #f2efe7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(30px, 4vw, 52px); }
.section-head--row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.section-head--row .lead { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }

/* categories as four columns of a programme */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.cats li { border-right: 1px solid var(--line); }
.cats li:last-child { border-right: 0; }
.cats a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px 22px 26px; text-decoration: none; transition: background .3s; }
.cats li:first-child a { padding-left: 0; }
.cats a:hover { background: var(--accent-soft); }
.cat-n { font: 500 .8rem/1 var(--mono); color: var(--accent); }
.cats h3 { font-size: 1.7rem; font-weight: 400; }
:lang(ka) .cats h3 { font-size: 1.3rem; font-weight: 600; }
.cats p { color: var(--muted); margin: 0; }
.cat-count { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font: 500 .8rem/1 var(--mono); text-transform: uppercase; }
:lang(ka) .cat-count { text-transform: none; }
.cats a:hover .cat-count { color: var(--accent); }

/* principles next to a photo */
.work-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); }
.work-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-photo:hover img { transform: scale(1.03); }
.rules { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.rules li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rule-n { grid-row: 1 / 3; font: 500 .85rem/1.6 var(--mono); color: var(--accent); }
.rules h3 { font-size: 1.45rem; font-weight: 400; }
:lang(ka) .rules h3 { font-size: 1.15rem; font-weight: 600; }
.rules p { margin: 4px 0 0; color: var(--muted); }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.quote { margin: 0; padding: 26px 24px 8px; border-right: 1px solid var(--line); }
.quote:first-child { padding-left: 0; }
.quote:last-child { border-right: 0; }
.quote blockquote { margin: 0 0 14px; font: 400 1.32rem/1.4 var(--serif); letter-spacing: -.01em; }
:lang(ka) .quote blockquote { font-size: 1.08rem; line-height: 1.6; }
.quote blockquote p { margin: 0; }
q { quotes: "“" "”"; }
:lang(de) q, :lang(ka) q { quotes: "„" "“"; }
:lang(ru) q { quotes: "«" "»"; }
.quote figcaption { font: 500 .78rem/1.4 var(--mono); text-transform: uppercase; color: var(--muted); }
:lang(ka) .quote figcaption { text-transform: none; }

/* call to action */
.cta { padding: clamp(56px, 8vw, 100px) 0; background: var(--accent); color: #fff; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.cta p { font-size: 1.12rem; color: rgba(255, 255, 255, .9); }

/* page head */
.page-head { padding: clamp(52px, 7vw, 100px) 0 clamp(22px, 3vw, 36px); }
.page-head .lead { margin-top: 22px; }
.page-head h1 { overflow-wrap: break-word; }
:lang(ru) .page-head h1 { hyphens: auto; }

/* course filter */
.filters { display: grid; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: .94rem; transition: background .2s, color .2s; }
.chips label:hover span { background: var(--accent-soft); }
.chips input:checked + span { background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-row { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; min-height: 46px; }
.select { display: grid; min-width: 0; }
.select .small-label { margin-bottom: 4px; }
.select select, .field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161514' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; padding-right: 38px; }
.select select { width: 100%; min-height: 48px; padding-left: 12px; border: 1px solid var(--line); border-radius: var(--r); text-overflow: ellipsis; }
.filter-count { margin: 0; }

/* the programme */
.program { margin: 0; padding: 0; list-style: none; }
.course { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 230px); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.course-date { display: grid; align-content: start; justify-items: start; gap: 2px; font: 500 .78rem/1.2 var(--mono); text-transform: uppercase; }
:lang(ka) .course-date { text-transform: none; }
.course-date .small-label { margin: 0; }
.course-date b { font: 400 3rem/1 var(--serif); letter-spacing: -.02em; }
.course-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; font: 500 .74rem/1.3 var(--mono); text-transform: uppercase; color: var(--accent); }
:lang(ka) .course-cat { text-transform: none; font-size: .82rem; }
.course-cat .icon { width: 14px; height: 14px; }
.course-main .h3 { margin-bottom: 8px; font-weight: 400; }
:lang(ka) .course-main .h3 { font-weight: 600; }
.course-meta { color: var(--muted); font-size: .95rem; margin: 0; }
.course-more { margin-top: 12px; }
.course-more summary { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; list-style: none; }
.course-more summary::-webkit-details-marker { display: none; }
.course-more summary .icon { transition: transform .3s var(--ease); }
.course-more[open] summary .icon { transform: rotate(180deg); }
.course-more[open] > :not(summary) { animation: pop .35s var(--ease); }
.course-more > p { margin-top: 14px; max-width: 64ch; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.checks { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { margin-top: 4px; color: var(--accent); }
.session-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.session-list li { counter-increment: s; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; background: #fff; }
.session-list li::before { content: counter(s) " · "; font-family: var(--mono); color: var(--accent); }
.course-side { display: grid; gap: 12px; align-content: start; justify-items: start; }
.course-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.course-price b { font: 400 2rem/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.course-price s { color: var(--muted); }
.seats { display: grid; gap: 6px; width: 100%; }
.seats-bar { position: relative; height: 4px; background: var(--line); overflow: hidden; }
.seats-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fill); background: var(--ink); }
.seats-text { font: 500 .74rem/1 var(--mono); text-transform: uppercase; color: var(--muted); }
:lang(ka) .seats-text { text-transform: none; font-size: .8rem; }
.no-match { padding: 40px 0; color: var(--muted); text-align: center; }

/* calendar */
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.cal-title { min-width: 0; flex: 1; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 400; text-transform: capitalize; }
:lang(ka) .cal-title { font-weight: 600; }
.cal-nav { order: -1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.cal-nav:hover:not(:disabled) { background: var(--ink); color: #fff; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-nav[data-cal-next] { order: -1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.cal-wd { padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 500 .72rem/1 var(--mono); text-transform: uppercase; color: var(--muted); }
.cal-blank { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 0, 0, .025) 6px 7px); }
.cal-cell { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; min-height: 108px; padding: 8px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; transition: background .2s; }
.cal-cell:hover { background: var(--accent-soft); }
.cal-cell.is-past { background: transparent; color: #a19c94; }
.cal-cell[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-num { font: 500 .85rem/1 var(--mono); margin-bottom: 3px; }
.cal-cell.is-today .cal-num { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); color: #fff; }
.cal-chip { display: block; overflow: hidden; padding: 2px 6px; border-left: 2px solid var(--ink); background: var(--paper); font-size: .74rem; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.cal-cell.has-start .cal-chip:first-of-type { border-left-color: var(--accent); }
.cal-cell.is-past .cal-chip { opacity: .55; }
.cal-more { font: 500 .7rem/1 var(--mono); color: var(--muted); }
.cal-day { margin-top: 26px; padding: 24px; border: 1px solid var(--ink); background: #fff; }
.cal-day-title { margin-bottom: 14px; font-size: 1.6rem; font-weight: 400; }
:lang(ka) .cal-day-title { font-size: 1.25rem; font-weight: 600; }
.cal-items { margin: 0; padding: 0; list-style: none; }
.cal-items li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cal-time { font: 500 .95rem/1 var(--mono); color: var(--accent); }
.cal-what small { display: block; color: var(--muted); font-size: .88rem; }
.agenda { margin: 0; padding: 0 0 0 1.2em; }

/* enrolment */
.enrol-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.block { margin: 0 0 22px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--ink); border-radius: var(--r); background: #fff; min-width: 0; }
.block > legend { float: left; width: 100%; margin-bottom: 20px; padding: 0; font: 400 1.7rem/1.1 var(--serif); letter-spacing: -.02em; }
:lang(ka) .block > legend { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; }
.block > legend + * { clear: both; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .93rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background-color: #fff; transition: border-color .2s, box-shadow .2s; }
.field select { padding-right: 38px; text-overflow: ellipsis; }
.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 var(--accent-soft); }
.stepper-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.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:not(:disabled) { background: var(--accent-soft); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 44px; text-align: center; font: 400 1.6rem/1 var(--serif); }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--muted); font-size: .93rem; }
.note .icon { margin-top: 3px; color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: .92rem; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form-status { margin-top: 14px; }
.form-status.is-shown { padding: 12px 16px; border-left: 3px solid var(--ink); background: var(--paper); font-weight: 600; }
.form-status.ok { border-color: #2e7d4f; }
.form-status.info { border-color: var(--accent); }
.form-status.error { border-color: #b3261e; color: #8c1d18; }
.enrol-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.receipt { position: relative; padding: 26px 24px 30px; background: #fff; border: 1px solid var(--ink); }
.receipt::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -9px; height: 9px; background: radial-gradient(circle at 6px 0, transparent 5px, #fff 5.5px) 0 0 / 12px 9px repeat-x; }
.receipt-name { margin: 0 0 4px; font: 400 1.7rem/1.1 var(--serif); letter-spacing: -.02em; }
:lang(ka) .receipt-name { font-size: 1.3rem; font-weight: 600; letter-spacing: 0; }
.receipt-when { color: var(--muted); }
.receipt-sessions { display: grid; gap: 2px; margin: 0 0 16px; padding: 12px 0 12px 1.4em; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-size: .92rem; }
.receipt-sessions li::marker { font-family: var(--mono); color: var(--accent); }
.receipt-lines { margin: 0 0 12px; }
.receipt-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.receipt-lines dt { color: var(--muted); }
.receipt-lines dd { margin: 0; font-family: var(--mono); white-space: nowrap; }
.receipt-total { margin-top: 6px; padding-top: 12px !important; border-top: 1px solid var(--ink); align-items: baseline; }
.receipt-total dt { color: var(--ink) !important; font-weight: 600; }
.receipt-total dd { font: 400 2.2rem/1 var(--serif) !important; letter-spacing: -.02em; color: var(--accent); }
.is-tick { animation: tick .45s var(--ease); }
@keyframes tick { from { transform: translateY(6px); opacity: .3; } }
.receipt .btn { margin: 4px 0 12px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.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 span:last-child { font-family: var(--mono); font-size: .9rem; white-space: nowrap; }

/* legal */
.legal { max-width: 760px; }
.legal h2 { margin: 36px 0 12px; font-size: 1.7rem; font-weight: 400; }
:lang(ka) .legal h2 { font-size: 1.25rem; font-weight: 600; }
.legal h2:first-child { margin-top: 0; }
.page-head h1:not(.display) { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; }
:lang(ka) .page-head h1:not(.display) { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 600; }

/* footer */
.footer { padding: clamp(48px, 6vw, 80px) 0 24px; background: var(--ink); color: rgba(255, 255, 255, .75); }
.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: 400 3rem/1 var(--serif); letter-spacing: -.03em; color: #fff; margin-bottom: 14px; }
.footer-h { margin-bottom: 14px; font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
:lang(ka) .footer-h { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.footer .plain li { padding: 3px 0; }
.footer .plain a { text-decoration: none; }
.footer .plain a:hover { text-decoration: underline; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; 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: 1160px) {
    .nav { gap: 18px; }
    .header-inner { gap: 18px; }
    .soon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .soon-list li:nth-child(2) { border-right: 0; }
    .soon-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .soon-list li:nth-child(3) a { padding-left: 0; }
    .cats, .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cats li:nth-child(2) { border-right: 0; }
    .cats li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .cats li:nth-child(3) a { padding-left: 0; }
    .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
    .filter-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .search { grid-column: 1 / -1; }
}
@media (max-width: 1020px) {
    .nav, .tickets--top, .header-cta { display: none; }
    .panel-btn { display: inline-flex; }
    .hero-grid, .split, .enrol-grid, .cta-inner, .section-head--row { grid-template-columns: minmax(0, 1fr); }
    .hero-photo { aspect-ratio: 16 / 10; }
    .work-photo { aspect-ratio: 16 / 10; }
    .enrol-side { position: static; }
    .quotes { grid-template-columns: minmax(0, 1fr); }
    .quote, .quote:first-child { padding: 24px 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
    .course { grid-template-columns: 80px minmax(0, 1fr); }
    .course-side { grid-column: 2; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; justify-items: stretch; gap: 10px 20px; }
    .cal-cell { min-height: 84px; }
}
@media (max-width: 640px) {
    .header-inner { min-height: 64px; gap: 12px; }
    .logo { font-size: 1.3rem; }
    .logo-mark { width: 36px; height: 36px; }
    .soon-list, .cats { grid-template-columns: minmax(0, 1fr); }
    .soon-list li, .cats li { border-right: 0 !important; border-top: 1px solid var(--line); }
    .soon-list li:first-child, .cats li:first-child { border-top: 0; }
    .soon-list li a, .cats li a { padding-left: 0 !important; padding-right: 0; }
    .fact { padding: 22px 0 22px 14px; }
    .fact b { font-size: 2.2rem; }
    .filter-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .filter-row .select:last-child { grid-column: 1 / -1; }
    .course { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .course-date { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; }
    .course-date b { font-size: 1.8rem; }
    .course-side { grid-column: 1; grid-template-columns: minmax(0, 1fr); justify-items: start; }
    .cal-title { flex-basis: 100%; order: -2; }
    .cal-today { margin-left: auto; }
    .cal-grid { border-left: 0; }
    .cal-wd { padding: 6px 2px; text-align: center; border-right: 0; font-size: .64rem; }
    .cal-blank { border-right: 0; }
    .cal-cell { min-height: 52px; padding: 6px 2px; align-items: center; border-right: 0; }
    .cal-chip, .cal-more { display: none; }
    .cal-cell.has-items::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
    .cal-cell.has-start::after { background: var(--accent); }
    .cal-cell.is-today .cal-num { margin: -4px 0 0; }
    .cal-day { padding: 18px 16px; }
    .cal-items li { grid-template-columns: 52px minmax(0, 1fr); }
    .cal-items li > :last-child { grid-column: 2; justify-self: start; }
    .row2 { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
    .logo small { display: none; }
    .panel-btn span { display: none; }
    .filter-row { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .btn { padding: 12px 16px; }
    .block, .receipt, .card { padding-left: 16px; padding-right: 16px; }
    .cal-title { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hero-photo img { transform: none; }
    @view-transition { navigation: none; }
}
