/* ==========================================================================
   TDCA — Türkmenistanyň Döwlet çeperçilik akademiýasy
   Minimal / clean. Font: Fira Sans.
   ========================================================================== */
:root {
  /* color tokens */
  --bg: #ffffff;
  --bg-soft: #f6f6f5;
  --fg: #0b0b0c;
  --fg-2: #3a3a3d;
  --muted: #6a6a70;          /* 5.3:1 on white */
  --line: #e9e9e7;
  --line-2: #d9d9d6;
  --dark: #0b0b0c;
  --on-dark: #ffffff;
  --on-dark-2: #a3a3a8;
  --green: #108730;          /* brand green (4.7:1 on white) */
  --green-soft: #e8f3ec;
  --danger: #b42318;
  /* soft icon tints: pale fill + deep stroke of the same hue */
  --tint-green-bg: #e7f4ec;  --tint-green-fg: #108730;
  --tint-blue-bg: #e8f0fb;   --tint-blue-fg: #1e4fae;
  --tint-amber-bg: #fcf1df;  --tint-amber-fg: #a15c07;
  --tint-rose-bg: #fbe9ec;   --tint-rose-fg: #a8324a;
  --tint-violet-bg: #efeafb; --tint-violet-fg: #5b3fb0;

  /* type */
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* spacing (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 56px;
  --top-h: 84px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -6px rgba(0, 0, 0, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 200ms;
  --z-header: 40;
  --z-menu: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "kern";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg);
  padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.kicker { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: var(--s3); }
.h2 {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -.022em; max-width: 18ch;
  text-wrap: balance;
}
.muted { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; touch-action: manipulation;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--dark { background: var(--green); color: #fff; }   /* primary buttons are brand green */
.btn--dark:hover { background: #0d7228; }
.btn--ghost { border-color: var(--line-2); color: var(--fg); background: var(--bg); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--light { background: var(--on-dark); color: var(--dark); }
.btn--light:hover { background: #e7e7e5; }

.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--fg); }
.link svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link:hover svg { transform: translateX(3px); }
/* hover = brand green, no underline (site-wide rule for text links) */
.link { transition: color var(--dur) var(--ease); }
.link:hover { color: var(--green); }

/* ---------- header (two rows) ----------
   Top row (name + year emblem) scrolls away; the bar with nav and languages
   stays: the header is sticky with a negative top equal to the top row. */
.site-header {
  position: sticky; top: calc(-1 * var(--top-h)); z-index: var(--z-header);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease);
}
/* Blur lives on ::before: backdrop-filter on the header itself would become the
   containing block for the position:fixed mobile menu and collapse it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-top__inner { position: relative; height: var(--top-h); display: flex; align-items: center; gap: var(--s5); }
/* divider between the two header rows: as wide as the content, not the container padding */
.header-top__inner::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-right: auto; }
.brand__mark { width: 52px; height: 52px; flex: none; }
.brand__name {
  max-width: 34ch; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: .06em;
  text-transform: uppercase; text-wrap: balance;
}
.year { display: flex; align-items: center; gap: 14px; }
.year__text { text-align: right; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; }
.year__text span { display: block; }
.year__mark { width: 56px; height: 56px; flex: none; }

.header-inner { position: relative; height: var(--header-h); display: flex; align-items: center; gap: var(--s5); }
/* same content-width divider under the menu row; once the header is stuck, the full-width border takes over */
.header-inner::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line); transition: opacity var(--dur) var(--ease); }
.site-header.is-scrolled .header-inner::after { opacity: 0; }
.nav { margin-right: auto; }
.nav__list { display: flex; gap: 4px; margin-left: -12px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  font-size: 14.5px; color: var(--fg-2); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--fg); background: var(--bg-soft); }
.nav__link[aria-current="true"] { color: var(--green); font-weight: 600; }
/* reserve the bold width up front so the row does not shift when the active item changes */
.nav__link { flex-direction: column; justify-content: center; }
.nav__link::after { content: attr(data-text); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; pointer-events: none; user-select: none; }
.nav .lang--menu { display: none; }
.nav .year--menu { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--s2); }
.lang { display: inline-flex; gap: 2px; }
.lang button {
  min-width: 36px; min-height: 36px; padding: 0 8px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: var(--muted); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { color: var(--fg); background: var(--bg-soft); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.75px; background: var(--fg); border-radius: 2px; position: relative;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.nav .mobile-cta { display: none; }

/* ---------- hero: banner carousel ---------- */
.hero { padding: var(--s4) 0 0; }
.banner {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; background: #1b2420;
  min-height: var(--banner-h, 560px); display: grid; grid-template-columns: minmax(0, 1fr);
  align-items: end; gap: var(--s6); padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 64px) 120px; color: #fff;
}
.banner__slides { position: absolute; inset: 0; z-index: -2; }
.banner__slide { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; transition: opacity 900ms var(--ease); }
.banner__slide.is-active { opacity: 1; }
.banner__slide img {
  width: 100%; height: 100%; object-fit: cover; transform-origin: var(--o, 50% 50%);
  transform: scale(var(--z, 1.12));
}
/* Slow drift on the active slide; starts from the crop zoom so frames never show */
.banner__slide.is-active img { animation: drift 5s linear both; }
@keyframes drift { from { transform: scale(var(--z, 1.12)); } to { transform: scale(calc(var(--z, 1.12) * 1.06)); } }
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 12, 10, .78) 0%, rgba(8, 12, 10, .5) 42%, rgba(8, 12, 10, .05) 75%),
    linear-gradient(0deg, rgba(8, 12, 10, .7) 0%, rgba(8, 12, 10, 0) 38%);
}
.banner__content { max-width: 620px; }
.banner__kicker { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85); margin-bottom: var(--s4); }
.banner__title { font-size: clamp(38px, 5.6vw, 68px); font-weight: 600; line-height: 1.03; letter-spacing: -.03em; text-wrap: balance; }
.banner__lead { margin-top: var(--s5); font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 46ch; }
.banner__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.btn--glass { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .8); }
.banner .btn:focus-visible, .banner__tab:focus-visible { outline-color: #fff; }

.banner__nav {
  position: absolute; left: clamp(24px, 5vw, 64px); right: clamp(24px, 5vw, 64px); bottom: 36px;
  display: flex; align-items: center; gap: var(--s4);
}
.banner__tabs { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.banner__tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0 0;
  text-align: left; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .7);
  transition: color var(--dur) var(--ease);
}
.banner__tab:hover, .banner__tab[aria-current="true"] { color: #fff; }
.banner__bar { display: block; width: 100%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.banner__bar i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.banner__tab.is-done .banner__bar i { transform: scaleX(1); }
.banner__tab[aria-current="true"] .banner__bar i { animation: progress var(--slide-ms, 4000ms) linear forwards; }
.banner.is-paused .banner__tab[aria-current="true"] .banner__bar i,
.banner.is-paused .banner__slide.is-active img { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- key figures: plain type on white, hairlines only ---------- */
.figs {
  margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.figs > div { display: flex; flex-direction: column; padding: var(--s5); position: relative; isolation: isolate; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
/* a small embroidery motif in each cell's corner: tree, flower, cross-stitch in turn */
.figs > div::after {
  content: ""; position: absolute; top: 18px; right: 18px; z-index: -1; width: 46px; aspect-ratio: 1; pointer-events: none;
  background: var(--orn-c); opacity: var(--orn-o);
  -webkit-mask: var(--orn-m) center / contain no-repeat; mask: var(--orn-m) center / contain no-repeat;
}
.figs > div:nth-child(3n+1) { --orn-m: url(../assets/orn/tree.svg); --orn-c: var(--k-gold); --orn-o: .45; }
.figs > div:nth-child(3n+2) { --orn-m: url(../assets/orn/sun.svg); --orn-c: var(--k-red); --orn-o: .3; }
.figs > div:nth-child(3n) { --orn-m: url(../assets/orn/stitch.svg); --orn-c: var(--k-ink); --orn-o: .2; }
.figs > div:nth-child(3n)::after { width: 34px; top: 24px; right: 24px; }
/* number first, then its label: reads right in every language ("3 факультета") */
.figs dd { display: contents; }
.figs__num { order: -1; }
.figs dt { margin-top: var(--s3); font-size: 15px; font-weight: 500; color: var(--fg); }
.figs__num {
  display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 300;
  line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
/* fixed two-line slot pinned to the cell bottom; text sits on its bottom edge,
   so every description ends on the same line (same rule as the news list) */
.figs__desc {
  display: flex; align-items: flex-end; margin-top: auto; padding-top: 2px; min-height: calc(2 * 1.45em + 2px);
  font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 22ch;
}

/* Source photos carry baked-in banners/frames. Each image is cropped with
   --z (zoom) and --o (transform-origin): origin at the bottom pushes a top banner
   out of frame, origin at the top pushes a bottom banner out. */
.photo { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-soft); }
.photo img, .tcard img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--z, 1.12)); transform-origin: var(--o, 50% 50%);
  transition: transform 600ms var(--ease);
}
.photo--card { aspect-ratio: 4 / 3; }
.photo--news { aspect-ratio: 16 / 10; }
.photo--news img { --z: 1.3; }

.ui-card {
  background: var(--bg); border-radius: var(--r); box-shadow: var(--shadow-card); border: 1px solid rgba(0, 0, 0, .06);
  padding: 14px;
}
.ui-card__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 2px 4px 10px; border-bottom: 1px solid var(--line); }
.ui-card__head img { border-radius: 50%; background: var(--green); }
.ui-list li { display: flex; gap: 12px; align-items: center; padding: 10px 4px; }
.ui-list li + li { border-top: 1px solid var(--line); }
.ui-list b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.ui-list small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.ui-ico { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--bg-soft); display: grid; place-items: center; }
.ui-ico svg { width: 16px; height: 16px; }


/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--line { border-top: 1px solid var(--line); }
.split-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.split-head > .btn { justify-self: end; }
/* the lead paragraph sits on the container's right edge, right-aligned (like the year slogan) */
.split-head > .muted { justify-self: end; text-align: right; }

/* about cards */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.pcard h3 { margin-top: var(--s4); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pcard p { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.pcard:hover .photo--card img { transform: scale(calc(var(--z, 1.12) + .04)); }

/* faculties grid with hairlines */
.grid-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: var(--s6) var(--s5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.cell__ico { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: var(--s5); }
.cell__ico svg { width: 20px; height: 20px; }
.cell h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.cell__meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.depts { margin-top: var(--s5); display: grid; gap: 4px; }
.depts dt { font-size: 14.5px; font-weight: 500; margin-top: var(--s3); }
.depts dt:first-child { margin-top: 0; }
.depts dd { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.cell .link { margin-top: auto; padding-top: var(--s5); align-self: flex-start; }
.cell { position: relative; isolation: isolate; overflow: hidden; }
.cell::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; z-index: -1; width: 220px; aspect-ratio: 1;
  background: var(--orn-c); opacity: var(--orn-o); pointer-events: none;
  -webkit-mask: var(--orn-m) center / contain no-repeat; mask: var(--orn-m) center / contain no-repeat;
}
.cell:nth-child(1) { --orn-m: url(../assets/orn/tree.svg); --orn-c: var(--k-gold); --orn-o: .3; }
.cell:nth-child(2) { --orn-m: url(../assets/orn/sun.svg); --orn-c: var(--k-red); --orn-o: .16; }
.cell:nth-child(3) { --orn-m: url(../assets/orn/stitch.svg); --orn-c: var(--k-ink); --orn-o: .1; }
.cell:nth-child(3)::after { width: 170px; right: -24px; bottom: -24px; }

/* admission feature */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature .muted { margin-top: var(--s4); }
.steps { margin-top: var(--s6); display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); align-items: center; }
.steps b { display: block; font-size: 15.5px; font-weight: 500; line-height: 1.4; }
.steps li > div > span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* shared soft-tinted icon tile (admission steps + stats panel) */
.steps__ico, .stat__ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint-bg, var(--bg-soft)); color: var(--tint-fg, var(--fg));
}
.steps__ico svg, .stat__ico svg { width: 20px; height: 20px; }
.steps li:nth-child(1) .steps__ico { --tint-bg: var(--tint-green-bg); --tint-fg: var(--tint-green-fg); }
.steps li:nth-child(2) .steps__ico { --tint-bg: var(--tint-blue-bg); --tint-fg: var(--tint-blue-fg); }
.steps li:nth-child(3) .steps__ico { --tint-bg: var(--tint-amber-bg); --tint-fg: var(--tint-amber-fg); }
.row-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.feature__visual { position: relative; }
.feature__visual--panel {
  display: grid; place-items: center; padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 48px);
  border-radius: var(--r-lg); background: var(--bg-soft);
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 18px 18px;
}
.feature__card { width: min(460px, 100%); }
.status-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: 11px 4px; }
.status-list li + li { border-top: 1px solid var(--line); }
.status-list b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.status-list small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.pill {
  font-style: normal; flex: none; font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 999px;
  background: var(--bg-soft); color: var(--fg-2); border: 1px solid var(--line);
}
.pill--green { background: var(--green-soft); color: var(--green); border-color: transparent; }

/* student life tall cards */
.tall3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.tcard { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate; background: #222; }
.tcard img { position: absolute; inset: 0; z-index: -2; }
.tcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 65%, rgba(0, 0, 0, .85) 100%); }
.tcard:hover img { transform: scale(calc(var(--z, 1.12) + .05)); }
.tcard__body { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 2px; }
.tcard__label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .92); margin-bottom: 4px; }
.tcard__label svg { width: 12px; height: 12px; }
.tcard b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.tcard small { font-size: 14px; color: rgba(255, 255, 255, .92); }
.linkrow { margin-top: var(--s5); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.linkrow li { display: flex; }
.linkrow a {
  flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3);
  min-height: 72px; padding: var(--s3) var(--s4); border-radius: var(--r-lg); background: var(--bg-soft);
  font-size: 15px; font-weight: 500; line-height: 1.35; transition: background-color var(--dur) var(--ease);
}
.linkrow a:hover { background: var(--line); }
.linkrow .steps__ico { width: 40px; height: 40px; border-radius: 10px; }
.linkrow .steps__ico svg { width: 18px; height: 18px; }
.linkrow li:nth-child(1) .steps__ico { --tint-bg: var(--tint-blue-bg); --tint-fg: var(--tint-blue-fg); }
.linkrow li:nth-child(2) .steps__ico { --tint-bg: var(--tint-amber-bg); --tint-fg: var(--tint-amber-fg); }
.linkrow li:nth-child(3) .steps__ico { --tint-bg: var(--tint-rose-bg); --tint-fg: var(--tint-rose-fg); }
.linkrow li:nth-child(4) .steps__ico { --tint-bg: var(--tint-green-bg); --tint-fg: var(--tint-green-fg); }
.linkrow .ext { width: 16px; height: 16px; color: var(--muted); transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.linkrow a:hover .ext { color: var(--fg); transform: translate(2px, -2px); }

/* quote */
.quote { display: flex; justify-content: center; text-align: center; }
.quote__body { max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.quote__body img { width: 80px; height: 80px; }
.quote blockquote { margin-top: var(--s5); }
.quote blockquote p { font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; line-height: 1.3; letter-spacing: -.018em; text-wrap: pretty; }
.quote figcaption { margin-top: var(--s5); font-size: 14.5px; color: var(--muted); }

/* news */
/* news: one large story | small photo story + text-only list */
.lang-note { margin: calc(-1 * var(--s4)) 0 var(--s5); font-size: 14px; color: var(--muted); }
.news-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.news-grid time { display: block; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-grid h3 { transition: color var(--dur) var(--ease); }
.news-grid a:hover h3 { color: var(--green); }
.photo--nbig { aspect-ratio: 16 / 10; }
.photo--nbig img { --z: 1.3; }
.nbig:hover .photo img { transform: scale(calc(var(--z) + .04)); }
.nbig { display: block; }
.nbig__body { margin-top: var(--s5); }
.nbig h3 { margin-top: 6px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.22; letter-spacing: -.018em; text-wrap: balance; }
.nbig p { margin-top: var(--s3); font-size: 15.5px; color: var(--muted); line-height: 1.6; max-width: 60ch; }
.nside { display: grid; }
.nitem { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: var(--s4); align-items: stretch; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.nside > li:first-child .nitem { padding-top: 0; }
.photo--nthumb { aspect-ratio: 4 / 3; border-radius: var(--r); }
.photo--nthumb img { --z: 1.3; }
.nitem .photo { align-self: start; }
.nitem:hover .photo img { transform: scale(calc(var(--z) + .04)); }
/* text column matches the photo height; the description sits on its bottom edge */
.nitem > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.nitem h3 { margin-top: 2px; font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.nitem p { margin-top: auto; padding-top: 4px; min-height: calc(2 * 1.45em + 4px); font-size: 14px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

/* gallery: photos left, videos right */
.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.gal__col { display: flex; flex-direction: column; min-width: 0; }
.gal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.gal__head h3 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.gal__head .btn svg { width: 16px; height: 16px; }
.gal__photos { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(120px, 1fr)); gap: 10px; }
.gal__ph { display: block; border-radius: var(--r); }
.gal__ph--big { grid-column: span 2; grid-row: span 2; }
.gal__ph:hover img { transform: scale(calc(var(--z, 1.12) + .05)); }
.gal__ph--more { position: relative; }
.gal__ph--more span {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  background: rgba(11, 11, 12, .48); color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -.01em;
}
.vid { display: block; }
.vid__thumb { position: relative; display: block; border-radius: var(--r); }
.vid--big .vid__thumb { aspect-ratio: 16 / 9; }
/* play: dark glass disc with a thin white ring and a solid triangle */
.vid__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; translate: -50% -50%;
  display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: rgba(11, 11, 12, .32); border: 1.5px solid rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* triangle drawn ~1px right of centre on purpose: optical centre of a play glyph */
.vid__play svg { display: block; width: 22px; height: 22px; transition: transform var(--dur) var(--ease); }
.vid:hover .vid__play svg { transform: scale(1.25); }
.vid:hover .vid__thumb img { transform: scale(calc(var(--z, 1.12) + .05)); }
.vid__time { position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(11, 11, 12, .7); color: #fff; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.vid__title { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; transition: color var(--dur) var(--ease); }
.vid:hover .vid__title { color: var(--green); }
.vid--big .vid__title { margin-top: var(--s3); }
/* two smaller videos side by side under the big one, text under each thumbnail */
.vid__list { margin-top: var(--s5); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.vid--row { display: block; }
.vid--row .vid__thumb { aspect-ratio: 16 / 9; margin-bottom: var(--s3); }
.vid--row .vid__play { width: 46px; height: 46px; }
.vid--row .vid__play svg { width: 16px; height: 16px; }
.vid--row .vid__title { font-size: 15px; }
.vid__meta { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* numbers: three bright tiles in the icon tints */
.numbers { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.ntile {
  display: flex; flex-direction: column; min-height: 240px; padding: var(--s5);
  border-radius: var(--r-lg); background: var(--tint-bg);
}
.ntile .steps__ico { background: var(--bg); margin-bottom: auto; }
.ntile dd {
  order: 1; margin: var(--s6) 0 0; font-size: clamp(44px, 5vw, 64px); font-weight: 500; line-height: 1;
  letter-spacing: -.035em; color: var(--tint-fg); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ntile dt { order: 2; margin-top: var(--s2); font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.ntile:nth-child(1) { --tint-bg: var(--tint-green-bg); --tint-fg: var(--tint-green-fg); }
.ntile:nth-child(2) { --tint-bg: var(--tint-blue-bg); --tint-fg: var(--tint-blue-fg); }
.ntile:nth-child(3) { --tint-bg: var(--tint-amber-bg); --tint-fg: var(--tint-amber-fg); }

/* ---------- Turkmen ornaments (embroidery colours, kept faint) ----------
   Motifs from Turkmen keşde: goçak agajy (ram-horn tree), gün (radiating flower),
   basgançak (stepped zigzag), keşde ýyldyzy (cross-stitch diamond). */
:root { --k-red: #b3263a; --k-gold: #d9a018; --k-ink: #23201f; }
.orn { display: block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; pointer-events: none; }
/* FAQ: three large ram-horn trees (gold, black, red) in the space right under the heading */
.orn--trees { width: 100%; max-width: 420px; aspect-ratio: 176 / 74; margin-top: var(--s7); opacity: .55; pointer-events: none;
  background: url(../assets/orn/tree-trio.svg) left center / contain no-repeat; }
/* FAQ: left column stretches to the list height; the ornament sits centred in the free space under the heading */
.faq > .reveal:first-child { display: flex; flex-direction: column; align-self: stretch; }

.numhead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.orn--band { height: 22px; margin-bottom: 14px; opacity: .35; background: url(../assets/orn/steps.svg) left center / 48px 22px repeat-x; }
.ntile { position: relative; overflow: hidden; isolation: isolate; }
.ntile::after {
  content: ""; position: absolute; top: 18px; right: 18px; z-index: -1; width: 80px; aspect-ratio: 1;
  background: var(--orn-c); opacity: var(--orn-o);
  -webkit-mask: var(--orn-m) center / contain no-repeat; mask: var(--orn-m) center / contain no-repeat;
}
.ntile:nth-child(1) { --orn-m: url(../assets/orn/tree.svg); --orn-c: var(--k-gold); --orn-o: .4; }
.ntile:nth-child(2) { --orn-m: url(../assets/orn/sun.svg); --orn-c: var(--k-red); --orn-o: .24; }
.ntile:nth-child(3) { --orn-m: url(../assets/orn/stitch.svg); --orn-c: var(--k-ink); --orn-o: .2; }
.ntile:nth-child(3)::after { width: 56px; top: 26px; right: 26px; }
/* quote: cross-stitch field that fades out behind the text */
.section--orn { position: relative; isolation: isolate; overflow: hidden; }
.section--orn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .28;
  background: url(../assets/orn/stitch-field.svg) center / 120px 120px repeat;
  -webkit-mask: radial-gradient(ellipse 60% 70% at center, transparent 42%, #000 95%);
  mask: radial-gradient(ellipse 60% 70% at center, transparent 42%, #000 95%);
}

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s3) 0; font-size: 16px; font-weight: 500;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform var(--dur) var(--ease); }
.faq__list details[open] summary svg { transform: rotate(45deg); }
.faq__list summary span { transition: color var(--dur) var(--ease); }
.faq__list summary:hover span, .faq__list summary:hover svg { color: var(--green); }
.faq__list details > p, .faq__list details > ul { padding: 0 var(--s6) var(--s5) 0; font-size: 15px; color: var(--muted); line-height: 1.65; }
.ticks { display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: stretch; }
.clist { margin-top: var(--s6); border-top: 1px solid var(--line); }
.clist > div { display: grid; grid-template-columns: 160px 1fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.clist dt { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.clist dt svg { width: 16px; height: 16px; }
.clist dd { font-size: 15.5px; }
.clist a { transition: color var(--dur) var(--ease); }
.clist a:hover { color: var(--green); }

.map { position: relative; margin: 0; min-height: 420px; height: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* footer: light, one row (brand | links | contacts), embroidery clasp on the top line */
.site-footer {
  position: relative; background: var(--bg); border-top: 1px solid var(--line); color: var(--fg); padding-top: var(--s3);
}
/* 'clasp' on the top line: three cross-stitch diamonds — gold, red, gold */
.footer-clasp { position: absolute; left: 50%; top: 0; translate: -50% -50%; display: flex; align-items: center; gap: 10px; padding-inline: 14px; background: var(--bg); }
.footer-clasp i { display: block; width: 22px; height: 22px; -webkit-mask: url(../assets/orn/stitch.svg) center / contain no-repeat; mask: url(../assets/orn/stitch.svg) center / contain no-repeat; }
.footer-clasp i:nth-child(odd) { width: 12px; height: 12px; background: var(--k-gold); opacity: .8; }
.footer-clasp i:nth-child(2) { background: var(--k-red); opacity: .75; }
.footer-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s6); padding-block: var(--s5); }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; flex: none; }
.footer-brand span { max-width: 30ch; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; }
.footer-nav a, .footer-contacts a, .footer-bottom a { font-size: 14.5px; color: var(--fg-2); transition: color var(--dur) var(--ease); }
.footer-nav a:hover, .footer-contacts a:hover, .footer-bottom a:hover { color: var(--green); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-contacts { display: grid; justify-items: end; gap: 2px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding-block: var(--s4);
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.footer-bottom a { font-size: 13px; color: var(--muted); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --top-h: 68px; --header-h: 0px; }
  .site-header { top: 0; }
  html { scroll-padding-top: calc(var(--top-h) + 12px); }
  .menu-toggle { display: inline-flex; margin-right: -10px; }
  .header-top__inner { gap: var(--s3); }
  .header-top__inner::after { display: none; }
  .header-inner { height: 0; }
  .header-inner::after { display: none; }
  .header-actions { display: none; }
  .brand { gap: 10px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 12px; letter-spacing: .04em; max-width: 24ch; }
  /* tablet/phone: the year slogan + emblem live inside the burger menu */
  .header-top .year { display: none; }
  /* year emblem + slogan open the menu, framed by two hairlines */
  .nav .year--menu { display: flex; align-items: center; gap: 10px; margin: calc(-1 * var(--s4)) 0 var(--s2); padding-block: var(--s4); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .year--menu .year__mark { width: 40px; height: 40px; }
  /* same size/type as the academy name in the mobile header: emblem, then text */
  .year--menu .year__text { text-align: left; font-size: 12px; letter-spacing: .04em; }
  .nav .lang--menu { display: inline-flex; margin-top: var(--s5); }
  .nav .lang--menu button { min-width: 48px; min-height: 44px; font-size: 14px; }
  .nav {
    position: fixed; inset: var(--menu-top, var(--top-h)) 0 0 0; z-index: var(--z-menu); margin: 0;
    background: var(--bg); padding: var(--s4) var(--gutter) var(--s7); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; margin-left: 0; }
  .nav__link { display: flex; align-items: flex-start; min-height: 56px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 500; color: var(--fg); }
  .nav__link:hover { background: none; }
  .nav .mobile-cta { display: inline-flex; width: 100%; margin-top: var(--s6); min-height: 48px; }

  .figs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .figs > div { grid-column: span 2; }
  .figs > div:nth-child(n+4) { grid-column: span 3; }
  .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
  .tall3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
  .linkrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* touch: every link/button gets a ≥44px hit area (visual size unchanged) */
  .gal__head .btn, .split-head > .btn { min-height: 44px; }
  .footer-nav a { min-height: 44px; }
  .footer-contacts a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-contacts { gap: 0; }
  .clist dd a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  /* footer on tablets: brand + contacts on one row, section links on their own row below */
  .footer-row { grid-template-columns: auto auto; justify-content: space-between; row-gap: var(--s3); }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin-left: -2px; }
  .footer-bottom { align-items: center; }
}

/* wide phones / small tablets in portrait: flatter landscape banner */
@media (min-width: 481px) and (max-width: 720px) {
  .banner { aspect-ratio: 16 / 9; }
}

/* tablet portrait and below: stacked layouts */
@media (max-width: 900px) {
  .feature, .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .orn--trees { display: none; }
  .grid-lines { grid-template-columns: minmax(0, 1fr); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .gal { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .nbig .photo--nbig { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  .split-head { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .split-head > .btn { justify-self: start; }
  .split-head > .muted { justify-self: start; text-align: left; }
  /* even line lengths read better than balanced on narrow screens */
  .h2 { text-wrap: pretty; }
  .row-actions { flex-direction: column; align-items: stretch; }
  .row-actions .btn { justify-content: center; }
  .cell::after { width: 150px; right: -30px; bottom: -30px; }
  .cell:nth-child(3)::after { width: 120px; right: -18px; bottom: -18px; }
  .cards3, .tall3, .numbers { grid-template-columns: minmax(0, 1fr); }
  .numhead { grid-template-columns: minmax(0, 1fr); }
  .orn--band { display: none; }
  .ntile::after { width: 64px; }
  .ntile { min-height: 0; }
  .ntile dd { margin-top: var(--s5); }
  .nitem { grid-template-columns: 112px minmax(0, 1fr); gap: var(--s3); }
  .gal__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 120px; }
  .gal__ph--big { grid-column: 1 / -1; grid-row: span 2; }
  .gal__ph--more { display: none; }
  .tcard { aspect-ratio: 4 / 3; }
  .linkrow { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: var(--s2); }
  /* phone: landscape banner — only the kicker (name · 1994) and the title; no lead, no buttons */
  /* slide bars sit near the bottom edge; text sits just above them */
  .banner { min-height: 0; aspect-ratio: 4 / 3; border-radius: var(--r-lg); padding: var(--s5) var(--s5) 44px; }
  .banner__lead, .banner__actions { display: none; }
  .banner__kicker { margin-bottom: var(--s2); font-size: 12.5px; }
  .banner__title { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.08; }
  .banner::after { background: linear-gradient(0deg, rgba(8, 12, 10, .86) 0%, rgba(8, 12, 10, .55) 55%, rgba(8, 12, 10, .25) 100%); }
  .banner__nav { left: var(--s5); right: var(--s5); bottom: 4px; gap: var(--s3); }
  /* bar at the bottom of the 44px tap area (labels are hidden on phones) */
  .banner__tab { justify-content: flex-end; padding: 0 0 14px; }
  .banner__tabs { gap: var(--s2); }
  .banner__tab > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs > div, .figs > div:nth-child(n+4) { grid-column: span 1; padding: var(--s4); }
  .figs > div:last-child { grid-column: 1 / -1; }
  .figs__num { font-size: 40px; }
  .clist > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-row { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: var(--s4); }
  .footer-contacts { justify-items: center; }
  .footer-nav { grid-row: auto; justify-content: center; margin-left: 0; gap: 0 22px; }
  .footer-brand span { text-align: left; max-width: 27ch; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: var(--s2); }
  .faq__list details > p, .faq__list details > ul { padding-right: 0; }
  .lang button { min-width: 34px; padding: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
