/*
 * wmarka_euk — дочерний шаблон сайта Экономико-юридического колледжа Астаны.
 * Шрифты Geologica и Golos Text (кириллица, казахские буквы, латиница), палитра «печать»:
 * фиолетовый #4334a6, графит #191b28, золото #f2b33d. Блоки главной — из прототипа euk 1.1.0.
 */

/* Шрифты: Geologica (переменный, заголовки) и Golos Text (текст), лицензия SIL OFL 1.1.
   Только кириллица, расширенная кириллица (казахские буквы) и латиница. */
/* geologica-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/geologica-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* geologica-cyrillic-wght-normal */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/geologica-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
/* geologica-latin-wght-normal */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/geologica-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* golos-text-cyrillic-ext-400-normal */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/golos-text-cyrillic-ext-400-normal.woff2) format('woff2'), url(../fonts/golos-text-cyrillic-ext-400-normal.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* golos-text-cyrillic-400-normal */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/golos-text-cyrillic-400-normal.woff2) format('woff2'), url(../fonts/golos-text-cyrillic-400-normal.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
/* golos-text-latin-400-normal */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/golos-text-latin-400-normal.woff2) format('woff2'), url(../fonts/golos-text-latin-400-normal.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* golos-text-cyrillic-ext-500-normal */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/golos-text-cyrillic-ext-500-normal.woff2) format('woff2'), url(../fonts/golos-text-cyrillic-ext-500-normal.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* golos-text-cyrillic-500-normal */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/golos-text-cyrillic-500-normal.woff2) format('woff2'), url(../fonts/golos-text-cyrillic-500-normal.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
/* golos-text-latin-500-normal */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/golos-text-latin-500-normal.woff2) format('woff2'), url(../fonts/golos-text-latin-500-normal.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* golos-text-cyrillic-ext-600-normal */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/golos-text-cyrillic-ext-600-normal.woff2) format('woff2'), url(../fonts/golos-text-cyrillic-ext-600-normal.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* golos-text-cyrillic-600-normal */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/golos-text-cyrillic-600-normal.woff2) format('woff2'), url(../fonts/golos-text-cyrillic-600-normal.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
/* golos-text-latin-600-normal */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/golos-text-latin-600-normal.woff2) format('woff2'), url(../fonts/golos-text-latin-600-normal.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* =========================================================================
   Экономико-юридический колледж Астаны — стили поверх UIkit 3
   Образ: официальный документ. Печать штемпельной краской, гильош
   как на защищённых бланках, много воздуха, никаких прописных.
   ========================================================================= */

/* ---------- Токены ---------- */
:root {
  --paper: #f6f7fb;
  --surface: #ffffff;
  --ink: #191b28;
  --ink-2: #4b5064;
  --ink-3: #5f6479;
  --line: #e1e3ec;
  --line-2: #c9ccda;
  --stamp: #4334a6;         /* штемпельная краска */
  --stamp-ink: #33278a;
  --stamp-soft: #ecebfa;
  --stamp-tint: #f2f1fc;
  --on-stamp: #ffffff;
  --ok: #18744a;
  --err: #b42318;
  --wa: #167a43;
  --gold: #f2b33d;          /* акцент: золото, только для грантовых отметок */
  --on-gold: #191b28;
  --g-op: .17;
  --font-head: 'Geologica', 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 76px;
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #111219;
  --surface: #191a25;
  --ink: #ecedf6;
  --ink-2: #b9bdcd;
  --ink-3: #9a9eb2;
  --line: #2a2c3b;
  --line-2: #3b3e52;
  --stamp: #aea3ff;
  --stamp-ink: #c6beff;
  --stamp-soft: #26224a;
  --stamp-tint: #17162c;
  --on-stamp: #14112b;
  --ok: #5fd394;
  --err: #ff8f85;
  --wa: #39b56f;
  --g-op: .24;
  color-scheme: dark;
}

/* ---------- Никаких прописных ----------
   UIkit по умолчанию набирает прописными кнопки, меню, метки и подписи.
   Правило снимает это везде разом, включая будущие компоненты. */
*, *::before, *::after { text-transform: none !important; }
.uk-button, .uk-navbar-nav > li > a, .uk-subnav > * > :first-child, .uk-label,
.uk-nav-header, .uk-tab > * > a, .uk-card-badge, .uk-table th { letter-spacing: normal; }

/* ---------- Основа ---------- */
html {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  scroll-behavior: smooth;
}
@media (max-width: 639px) { html { font-size: 16px; } }
body { background: var(--paper); color: var(--ink-2); }
[id] { scroll-margin-top: 96px; }
h1, h2, h3, h4, h5, h6, .tm-h3 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.015em;
}
h2 { font-size: clamp(1.85rem, 1.15rem + 2.3vw, 3rem); line-height: 1.08; margin: 0 0 .5em; font-weight: 650; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .45em; }
*+h1, *+h2, *+h3, *+h4 { margin-top: 0; }
p, ul, ol, dl, figure, blockquote, fieldset { margin: 0 0 1em; }
*+p, *+ul, *+ol, *+dl, *+figure, *+blockquote, *+fieldset { margin-top: 0; }
a { color: var(--stamp); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--stamp-ink); }
::selection { background: var(--stamp); color: var(--on-stamp); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 4px; }
img, svg { aspect-ratio: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.tm-skip {
  position: absolute; left: 16px; top: -120px; z-index: 1100;
  background: var(--stamp); color: var(--on-stamp); padding: 12px 18px; border-radius: 10px; font-weight: 600;
}
.tm-skip:focus { top: 12px; color: var(--on-stamp); }
.tm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tm-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
main:focus { outline: none; }

/* ---------- Кнопки ---------- */
.uk-button {
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.2;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.uk-button-large { min-height: 56px; padding: 15px 28px; font-size: 17px; border-radius: 12px; }
.uk-button-primary { background: var(--stamp); color: var(--on-stamp); border: 1.5px solid var(--stamp); }
.uk-button-primary:hover, .uk-button-primary:focus-visible, .uk-button-primary:active { background: var(--stamp-ink); border-color: var(--stamp-ink); color: var(--on-stamp); }
.uk-button-default { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.uk-button-default:hover, .uk-button-default:focus-visible, .uk-button-default:active { background: transparent; color: var(--ink); border-color: var(--ink); }
.tm-button-wa { background: var(--wa); color: #fff; border: 1.5px solid var(--wa); }
.tm-button-wa:hover, .tm-button-wa:focus-visible { background: color-mix(in srgb, var(--wa) 86%, #000); color: #fff; }
[data-theme="dark"] .tm-button-wa, [data-theme="dark"] .tm-button-wa:hover { color: #0b1a10; }

/* ---------- Шапка ---------- */
.tm-header {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.tm-header.tm-header-stuck { border-bottom-color: var(--line); }
.tm-navbar .uk-navbar-item, .tm-navbar .uk-navbar-nav > li > a { min-height: var(--header-h); font-family: var(--font-body); }
.tm-navbar .uk-navbar-left, .tm-navbar .uk-navbar-right { gap: 12px; flex-wrap: nowrap; }
.tm-nav { gap: 4px !important; }
.tm-nav > li > a {
  color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 0 10px; position: relative; white-space: nowrap;
}
.tm-nav > li > a:hover, .tm-nav > li:hover > a { color: var(--ink); }
.tm-nav > li.uk-active > a { color: var(--stamp); }
.tm-nav > li.uk-active > a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 20px; height: 2px; border-radius: 2px; background: currentColor;
}
.tm-logo { color: var(--stamp); gap: 12px; padding: 0; text-decoration: none; }
.tm-logo:hover { color: var(--stamp); text-decoration: none; }
.tm-logo-mark { width: 44px; height: 44px; flex: none; }
.tm-logo-mark text, .tm-root-mark text { font-family: var(--font-head); font-size: 10.5px; font-weight: 700; fill: currentColor; }
.tm-logo-text { display: flex; flex-direction: column; line-height: 1.15; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.tm-logo-text span + span { color: var(--ink-2); font-weight: 500; }
.tm-tools { gap: 10px; padding: 0; color: var(--ink); }
.tm-lang { display: flex; gap: 2px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 3px; }
.tm-lang a { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 11px; border-radius: 999px; line-height: 1.2; text-decoration: none; }
.tm-lang a:hover { color: var(--ink); text-decoration: none; }
.tm-lang a[aria-current] { background: var(--ink); color: var(--paper); }
.tm-icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; flex: none;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; padding: 0;
}
.tm-icon-btn:hover { border-color: var(--ink); }
[data-theme="light"] .tm-i-sun, [data-theme="dark"] .tm-i-moon { display: none; }
/* Меню из пяти пунктов, WhatsApp, тема и кнопка заявки помещаются в строку с 1440 px; уже — меню в панели */
.tm-nav { display: none !important; }
@media (min-width: 1440px) { .tm-nav { display: flex !important; } .tm-burger { display: none; } }
.tm-logo-text span { white-space: nowrap; }
.tm-header-cta { white-space: nowrap; }
.tm-wa-btn { color: var(--wa); text-decoration: none; }
.tm-wa-btn:hover { color: var(--wa); border-color: var(--wa); }
@media (max-width: 639px) {
  .uk-container { padding-left: 20px; padding-right: 20px; }
  .tm-logo { gap: 10px; }
  .tm-logo-text { font-size: 12.5px; }
  .tm-navbar .uk-navbar-left, .tm-navbar .uk-navbar-right { gap: 8px; }
  .tm-logo-text span { white-space: nowrap; }
  .tm-logo-mark { width: 38px; height: 38px; }
  .tm-tools { gap: 6px; }
  .tm-lang a { padding: 6px 9px; }
  .tm-theme-btn { display: none; }
}
@media (max-width: 359px) { .tm-logo-text { display: none; } }

/* ---------- Мобильное меню ---------- */
.tm-offcanvas.uk-offcanvas-bar { background: var(--surface); color: var(--ink-2); width: 320px; padding: 64px 28px 32px; }
.tm-offcanvas .uk-close { color: var(--ink); top: 14px; right: 14px; }
.tm-offcanvas :focus-visible { outline-color: var(--stamp); }
.tm-offcanvas-nav > li > a { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--ink); padding: 10px 0; }
.tm-offcanvas-nav > li > a:hover { color: var(--stamp); }
.tm-offcanvas .uk-button-primary { background: var(--stamp); color: var(--on-stamp); }
.tm-offcanvas-cta { margin-top: 28px; }
.tm-offcanvas-contacts { margin-top: 28px; }
.tm-offcanvas-theme {
  margin-top: 16px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; border-radius: 10px; border: 1.5px solid var(--line-2); background: transparent; color: var(--ink);
  font: 600 16px/1.2 var(--font-body); cursor: pointer;
}
.tm-offcanvas-theme:hover { border-color: var(--ink); }
.tm-offcanvas-contacts a { color: var(--ink); display: inline-flex; gap: 10px; align-items: center; font-weight: 600; }

/* ---------- Первый экран ---------- */
.tm-hero { position: relative; isolation: isolate; padding: clamp(36px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); overflow: hidden; }
.tm-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.tm-hero-bg img { position: absolute; right: 0; top: 0; width: min(76%, 1240px); height: 100%; object-fit: cover; object-position: left bottom; }
.tm-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper) 30%, color-mix(in srgb, var(--paper) 72%, transparent) 52%, color-mix(in srgb, var(--paper) 18%, transparent) 100%);
}
[data-theme="dark"] .tm-hero-bg img { opacity: .5; filter: saturate(.7) brightness(.8); }
.tm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.tm-hero-title {
  font-size: clamp(2.05rem, .9rem + 4.7vw, 4.7rem); line-height: 1.02; font-weight: 700; letter-spacing: -.03em;
  margin: 0 0 .42em; text-wrap: balance;
}
.tm-hero-sub { font-family: var(--font-head); font-size: clamp(1.15rem, 1rem + .75vw, 1.6rem); line-height: 1.3; font-weight: 500; color: var(--ink); max-width: 32ch; margin-bottom: .85em; letter-spacing: -.01em; }
.tm-hero-lead { font-size: 1.1rem; max-width: 52ch; margin-bottom: 2em; }
.tm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tm-hero-openday { margin: 22px 0 0; }
.tm-hero-openday a { font-weight: 600; text-decoration: underline; }
.tm-hero-seal { position: relative; display: grid; place-items: center; width: 100%; max-width: 500px; aspect-ratio: 1; justify-self: center; }
.tm-guilloche {
  position: absolute; inset: -10%; background: var(--stamp); opacity: var(--g-op);
  -webkit-mask: url("../images/guilloche.svg") center / contain no-repeat; mask: url("../images/guilloche.svg") center / contain no-repeat;
}
.tm-seal { position: relative; width: 80%; height: auto; color: var(--stamp); transform: rotate(-9deg); overflow: visible; }
.tm-seal-line { fill: none; stroke: currentColor; }
.tm-seal text { fill: currentColor; font-family: var(--font-head); }
.tm-seal-ring { font-size: 21px; font-weight: 600; }
.tm-seal-year { font-size: 78px; font-weight: 700; letter-spacing: -.02em; }
.tm-seal-small { font-size: 19px; font-weight: 600; letter-spacing: .03em; }
@media (prefers-reduced-motion: no-preference) {
  .tm-seal { animation: tm-press .8s cubic-bezier(.2, 1.15, .35, 1) .25s both; }
  .tm-guilloche { animation: tm-fade 1.4s ease .8s both; }
}
@keyframes tm-press {
  0% { opacity: 0; transform: rotate(-20deg) scale(1.45); }
  55% { opacity: 1; transform: rotate(-8deg) scale(.96); }
  100% { opacity: 1; transform: rotate(-9deg) scale(1); }
}
@keyframes tm-fade { from { opacity: 0; } to { opacity: var(--g-op); } }
.tm-facts {
  list-style: none; padding: 22px 28px; margin: clamp(40px, 5vw, 72px) 0 0; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px;
}
.tm-facts li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; color: var(--ink); line-height: 1.4; }
.tm-i-seal { width: 30px; height: 30px; color: var(--stamp); stroke-width: 1.6; transform: rotate(-8deg); }
@media (max-width: 959px) {
  .tm-hero-grid { grid-template-columns: 1fr; }
  .tm-hero-bg img { width: 100%; height: 55%; top: auto; bottom: 0; object-position: 60% bottom; }
  .tm-hero-bg::after { background: linear-gradient(180deg, var(--paper) 50%, color-mix(in srgb, var(--paper) 60%, transparent) 100%); }
  .tm-facts { padding: 18px 20px; }
  .tm-hero-seal { max-width: 260px; justify-self: start; margin-top: 8px; }
  .tm-facts { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Секции ---------- */
.tm-section { padding: clamp(64px, 8vw, 120px) 0; }
.tm-section-surface { background: var(--surface); }
.tm-head { margin-bottom: clamp(32px, 4vw, 56px); }
.tm-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.tm-head h2 { margin-bottom: .35em; }
.tm-head-split > h2 { margin-bottom: 0; }
.tm-lead { font-size: 1.1rem; max-width: 56ch; margin-bottom: 0; }
#documents .tm-lead, #faq .tm-lead { margin-bottom: 1.6em; }
.tm-note { margin: 36px 0 0; color: var(--ink-3); font-size: .94rem; max-width: 72ch; display: flex; gap: 8px; align-items: flex-start; }
.tm-muted { color: var(--ink-3); }

/* Переключатель «после 9 / после 11 класса» */
.tm-seg { border: 1.5px solid var(--line-2); border-radius: 999px; padding: 4px; margin: 0; display: inline-flex; gap: 2px; background: var(--paper); min-width: 0; }
.tm-seg input, .tm-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tm-seg label { padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; line-height: 1.2; white-space: nowrap; }
.tm-seg input:checked + label { background: var(--ink); color: var(--paper); }
.tm-seg input:focus-visible + label, .tm-chips input:focus-visible + label { outline: 3px solid var(--stamp); outline-offset: 2px; }
@media (max-width: 419px) { .tm-seg label { padding: 10px 14px; font-size: 14px; } }

/* ---------- Специальности ---------- */
.tm-spec {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
  transition: border-color .2s ease, transform .2s ease;
}
.tm-spec:hover { border-color: var(--stamp); transform: translateY(-2px); }
.tm-spec-top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.tm-spec-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--stamp-soft); color: var(--stamp); display: grid; place-items: center; flex: none; }
.tm-spec-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm-spec-code { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tm-badge { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--on-gold); background: var(--gold); border-radius: 999px; padding: 5px 13px; line-height: 1.25; transform: rotate(-3deg); }
.tm-spec-name { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15; margin-bottom: .3em; font-weight: 650; }
.tm-spec-qual { color: var(--ink-2); font-weight: 500; margin-bottom: .8em; }
.tm-spec-desc { color: var(--ink); margin-bottom: 28px; }
.tm-spec-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tm-term { margin: 0; display: flex; flex-direction: column; }
.tm-term-label { font-size: 14px; color: var(--ink-3); }
.tm-term-value { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; border-radius: 6px; }
.tm-term-value.is-changed { animation: tm-flash .7s ease; }
@keyframes tm-flash { 0% { background: var(--stamp-soft); box-shadow: 0 0 0 6px var(--stamp-soft); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }

/* ---------- Почему мы ---------- */
.tm-why { list-style: none; padding: 0; margin-bottom: 0; }
.tm-why-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--stamp-soft); color: var(--stamp); display: grid !important; place-items: center; margin-bottom: 18px; }
.tm-why h3 { font-size: 1.25rem; }
.tm-why p { margin: 0; max-width: 34ch; }

/* ---------- Документы ---------- */
.tm-docs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.tm-docs li { display: flex; gap: 18px; align-items: flex-start; }
.tm-docs-seal { width: 50px; height: 50px; flex: none; color: var(--stamp); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-8deg); }
.tm-docs h3 { font-size: 1.15rem; }
.tm-docs p { margin: 0; }
@media (max-width: 639px) { .tm-docs { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Студенческая жизнь ---------- */
.tm-filter { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tm-filter a { display: block; padding: 9px 18px; border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; }
.tm-filter a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.tm-filter .uk-active a { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tm-gallery { list-style: none; padding: 0; }
.tm-gallery a { display: block; color: inherit; text-decoration: none; }
.tm-gallery figure { margin: 0; }
.tm-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--stamp-soft); }
.tm-gallery figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.tm-gallery a:hover figcaption { color: var(--stamp); }
.tm-more { margin: 40px 0 0; }
.tm-more a, .tm-more-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Отзывы ---------- */
.tm-review { margin: 0; height: 100%; display: flex; flex-direction: column; }
.tm-stars { display: flex; gap: 4px; color: var(--stamp); margin-bottom: 18px; }
.tm-stars svg { width: 20px; height: 20px; fill: currentColor; }
.tm-review blockquote { margin: 0 0 18px; padding: 0; font-style: normal; font-size: 1.15rem; line-height: 1.55; color: var(--ink); font-family: var(--font-body); }
.tm-review blockquote p { margin: 0; }
.tm-review figcaption { margin-top: auto; color: var(--ink-3); font-size: 15px; }

/* ---------- Новости ---------- */
.tm-news { position: relative; }
.tm-news img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin-bottom: 16px; background: var(--stamp-soft); }
.tm-news time { display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.tm-news h3 { font-size: 1.2rem; line-height: 1.35; font-weight: 600; margin: 0; }
.tm-news h3 a { color: var(--ink); text-decoration: none; }
.tm-news h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.tm-news:hover h3 a { color: var(--stamp); text-decoration: underline; }

/* ---------- Вопросы ---------- */
.tm-faq-direct { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin: 0; }
.tm-faq-direct a { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tm-faq-direct a:hover { color: var(--stamp); }
.tm-accordion { margin: 0; padding: 0; list-style: none; }
.tm-accordion > li { border-top: 1px solid var(--line); margin: 0 !important; }
.tm-accordion > li:last-child { border-bottom: 1px solid var(--line); }
.tm-accordion .uk-accordion-title {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; line-height: 1.35; color: var(--ink);
  padding: 22px 48px 22px 0; display: block; position: relative; text-decoration: none; letter-spacing: -.01em;
}
.tm-accordion .uk-accordion-title:hover { color: var(--stamp); text-decoration: none; }
.tm-accordion .uk-accordion-title::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background:
    linear-gradient(var(--stamp), var(--stamp)) center / 12px 2px no-repeat,
    linear-gradient(var(--stamp), var(--stamp)) center / 2px 12px no-repeat,
    var(--stamp-soft);
  transition: transform .2s ease;
}
.tm-accordion .uk-open > .uk-accordion-title::after {
  background: linear-gradient(var(--stamp), var(--stamp)) center / 12px 2px no-repeat, var(--stamp-soft);
}
.tm-accordion .uk-accordion-content { margin: 0; padding: 0 48px 24px 0; }
.tm-accordion .uk-accordion-content p { margin: 0; }

/* ---------- Заявка ---------- */
.tm-apply { background: var(--stamp-tint); }
.tm-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 48px); }
.tm-panel h2 { margin-bottom: .3em; }
.tm-panel .tm-lead { margin-bottom: 32px; }
.tm-purpose { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.tm-purpose legend, .tm-form .uk-form-label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-chips label { padding: 10px 18px; border: 1.5px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; line-height: 1.2; }
.tm-chips label:hover { border-color: var(--ink); color: var(--ink); }
.tm-chips input:checked + label { border-color: var(--stamp); color: var(--stamp); background: var(--stamp-soft); }
.tm-form .uk-input, .tm-form .uk-select:not([multiple]):not([size]) {
  height: 54px; border-radius: 12px; border: 1.5px solid var(--line-2); background-color: var(--paper); color: var(--ink); font-size: 16px; padding: 0 16px;
}
.tm-form .uk-select:not([multiple]):not([size]) {
  padding-right: 44px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%238a8ea3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center; background-repeat: no-repeat;
}
.tm-form .uk-select option { color: var(--ink); background: var(--surface); }
.tm-form .uk-input:focus, .tm-form .uk-select:focus {
  border-color: var(--stamp); background-color: var(--surface); color: var(--ink); outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--stamp) 22%, transparent);
}
.tm-form .uk-input::placeholder { color: var(--ink-3); }
.tm-form .uk-input[aria-invalid="true"] { border-color: var(--err); }
.tm-err { color: var(--err); font-size: 14px; margin: 6px 0 0; font-weight: 500; }
.tm-err-send { margin-top: 14px; }
.tm-consent { margin: 22px 0 26px; }
.tm-consent label { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.tm-form .uk-checkbox { width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-2); background-color: var(--paper); flex: none; }
.tm-form .uk-checkbox:focus { border-color: var(--stamp); }
.tm-form .uk-checkbox:checked {
  background-color: var(--stamp); border-color: var(--stamp);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='m6 11.5 3.5 3.5 6.5-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
[data-theme="dark"] .tm-form .uk-checkbox:checked {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='m6 11.5 3.5 3.5 6.5-7' fill='none' stroke='%2314112b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tm-consent .uk-checkbox[aria-invalid="true"] { border-color: var(--err); }
.tm-submit[aria-busy="true"] { opacity: .75; cursor: progress; }
@media (max-width: 639px) { .tm-submit { width: 100%; } }
.tm-done:focus { outline: none; }
.tm-done-seal { width: 64px; height: 64px; color: var(--ok); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-8deg); margin-bottom: 14px; }
.tm-done h3 { font-size: 1.6rem; }
.tm-done-demo { font-size: 14px; color: var(--ink-3); background: var(--paper); border-radius: 12px; padding: 12px 14px; }

/* Контакты рядом с формой */
.tm-contacts { position: sticky; top: 110px; }
.tm-h3 { font-size: 1.5rem; font-weight: 650; margin: 0 0 24px; }
.tm-contact-list { margin: 0 0 24px; }
.tm-contact-list > li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 20px; margin: 0 0 20px !important; border-bottom: 1px solid color-mix(in srgb, var(--stamp) 18%, var(--line)); }
.tm-contact-label { font-size: 14px; color: var(--ink-3); }
.tm-contact-list a { font-weight: 600; font-size: 1.08rem; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.tm-contact-list a:hover { color: var(--stamp); }
.tm-contact-list span:not(.tm-contact-label) { color: var(--ink); }
.tm-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 959px) { .tm-contacts { position: static; } }

/* ---------- Подвал ---------- */
.tm-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--paper); font-size: 15px; }
.tm-footer h2 { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 14px; letter-spacing: 0; line-height: 1.4; }
.tm-footer p { margin: 0; max-width: 36ch; }
.tm-footer-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 650; color: var(--ink); margin-bottom: 10px !important; letter-spacing: -.01em; line-height: 1.25; }
.tm-footer a { color: var(--ink-2); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.tm-footer a:hover { color: var(--ink); text-decoration: underline; }
.tm-footer .uk-list > li + li { margin-top: 8px; }
.tm-copy { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tm-copy p { max-width: none; }
.tm-footer .tm-lang a { display: inline-block; text-decoration: none; }
.tm-footer .tm-lang a[aria-current] { color: var(--paper); }

/* ---------- Окна специальностей ---------- */
.tm-modal { background: color-mix(in srgb, #0d0e16 62%, transparent); }
.tm-modal .uk-modal-dialog { background: var(--surface); border-radius: 22px; width: 720px; color: var(--ink-2); }
.tm-modal .uk-modal-body { padding: clamp(28px, 5vw, 52px); }
.tm-modal .uk-modal-close-default { top: 16px; right: 16px; color: var(--ink); }
.tm-modal-title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); margin: 0 0 .25em; }
.tm-modal h3 { margin-top: 28px; font-size: 1.15rem; }
.tm-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 8px; }
.tm-terms > div { background: var(--paper); border-radius: 14px; padding: 14px 18px; }
.tm-terms dt { font-weight: 500; font-size: 14px; color: var(--ink-3); }
.tm-terms dd { margin: 2px 0 0; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.tm-learn { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.tm-learn li { position: relative; padding-left: 22px; }
.tm-learn li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--stamp); }
.tm-modal .uk-button-primary { margin-top: 12px; }
@media (max-width: 639px) { .tm-terms, .tm-learn { grid-template-columns: 1fr; } }

/* ---------- Корневая страница выбора языка ---------- */
.tm-root { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; box-sizing: border-box; margin: 0; }
.tm-root-main { max-width: 560px; text-align: center; }
.tm-root-mark { width: 88px; height: 88px; color: var(--stamp); transform: rotate(-9deg); margin-bottom: 24px; }
.tm-root-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.12; margin: 0 0 .3em; letter-spacing: -.02em; }
.tm-root-title[aria-hidden] { color: var(--ink-2); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
.tm-root-choose { display: flex; justify-content: center; gap: 16px; margin: 28px 0 16px; color: var(--ink-3); }
.tm-root-langs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tm-root-lang {
  min-width: 180px; padding: 16px 24px; border-radius: 14px; background: var(--stamp); color: var(--on-stamp);
  font-weight: 600; font-size: 1.1rem; text-decoration: none;
}
.tm-root-lang + .tm-root-lang { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.tm-root-lang:hover { color: var(--on-stamp); background: var(--stamp-ink); text-decoration: none; }
.tm-root-lang + .tm-root-lang:hover { color: var(--ink); background: transparent; border-color: var(--ink); }


/* =========================================================================
   wmarka: фирменные цвета вместо синего UIkit и мелочи шапки
   ========================================================================= */
.uk-navbar-nav > li > a { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink-2); }
.uk-navbar-nav > li:hover > a, .uk-navbar-nav > li > a:hover { color: var(--ink); }
.uk-navbar-nav > li.uk-active > a { color: var(--stamp); }
.uk-navbar-dropdown { border-radius: 14px; box-shadow: 0 18px 40px rgba(25, 27, 40, .12); }
.uk-navbar-dropdown-nav > li.uk-active > a, .uk-navbar-dropdown-nav > li > a:hover { color: var(--stamp); }
.uk-logo img { width: clamp(170px, 18vw, 230px); height: auto; }
.uk-text-primary { color: var(--stamp) !important; }
.uk-label, .uk-badge, .uk-card-badge { background: var(--stamp); color: var(--on-stamp); }
.uk-subnav-pill > .uk-active > a, .uk-pagination > .uk-active > * { background: var(--stamp); color: var(--on-stamp); border-radius: 999px; }
.uk-section-primary, .uk-tile-primary, .uk-card-primary.uk-card-body, .uk-card-primary > :not([class*="uk-card-media"]) { background: var(--stamp); }
.uk-section-secondary, .uk-tile-secondary { background: #211a55; }
.uk-section-muted { background: var(--paper); }
.uk-heading-bullet::before { border-left-color: var(--gold); border-left-width: 4px; }
.uk-input:focus, .uk-select:focus, .uk-textarea:focus { border-color: var(--stamp); }
.uk-checkbox:checked, .uk-radio:checked { background-color: var(--stamp); }
.uk-dotnav > .uk-active > * { background: var(--stamp); border-color: var(--stamp); }
.uk-breadcrumb > * > * { font-size: 14px; }
.wm-gallery img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
/* Блоки главной идут без обёртки wmarka: собственные секции прототипа */
.tm-hero { margin-top: 0; }

/* =========================================================================
   Первый экран без печати: текст на светлом листе, ниже во всю ширину — акварель учебного корпуса,
   написанная с фото главного здания; блок фактов лежит на нижнем крае рисунка
   ========================================================================= */
.tm-hero { padding-bottom: clamp(24px, 3vw, 40px); }
.tm-hero-grid { grid-template-columns: 1fr; }
.tm-hero-text { max-width: 780px; }
.tm-hero-bg img { inset: auto 0 0 0; width: 100%; height: auto; max-height: none; object-fit: contain; object-position: center bottom; opacity: 1; filter: none; }
.tm-hero-bg::after { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 42%, color-mix(in srgb, var(--paper) 55%, transparent) 58%, transparent 74%); }
.tm-facts { margin-top: clamp(150px, 27vw, 420px); }
.tm-hero-pic { display: none; }
@media (max-width: 959px) {
  .tm-hero-bg { display: none; }
  .tm-hero-pic { display: block; width: calc(100% + 40px); max-width: none; height: auto; margin: 28px -20px -36px; }
  .tm-facts { margin-top: 0; position: relative; }
}

/* =========================================================================
   Изюминка 1. Двуязычная лента: каждое понятие сразу на русском и казахском.
   Бежит медленно, на наведении замирает; при «уменьшить движение» стоит на месте
   ========================================================================= */
.tm-ribbon { background: #211a55; color: #fff7de; overflow: hidden; border-top: 3px solid var(--gold); }
.tm-ribbon-track { display: flex; width: max-content; animation: tm-ribbon 70s linear infinite; }
.tm-ribbon:hover .tm-ribbon-track { animation-play-state: paused; }
.tm-ribbon-run { display: flex; align-items: center; gap: 28px; padding: 18px 14px; }
.tm-ribbon-pair { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.tm-ribbon-pair b { font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.tm-ribbon-pair i { font-style: normal; font-size: 15px; color: #c9c2f2; }
.tm-ribbon-star { width: 18px; height: 18px; fill: var(--gold); flex: none; }
@keyframes tm-ribbon { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tm-ribbon-track { animation: none; width: auto; flex-wrap: wrap; }
  .tm-ribbon-run + .tm-ribbon-run { display: none; }
  .tm-ribbon-run { flex-wrap: wrap; justify-content: center; }
}

/* =========================================================================
   Изюминка 2. Восьмиконечная звезда с эмблемы — знак заголовков разделов
   ========================================================================= */
.tm-head h2, .tm-panel > h2, #documents h2, #faq h2 { position: relative; padding-left: 1.05em; }
.tm-head h2::before, .tm-panel > h2::before, #documents h2::before, #faq h2::before {
  content: ""; position: absolute; left: 0; top: .2em; width: .62em; height: .62em; background: var(--gold);
  clip-path: polygon(50% 0, 61% 26%, 85% 15%, 74% 39%, 100% 50%, 74% 61%, 85% 85%, 61% 74%, 50% 100%, 39% 74%, 15% 85%, 26% 61%, 0 50%, 26% 39%, 15% 15%, 39% 26%);
  transform: rotate(-8deg);
}

/* =========================================================================
   Изюминка 3. Решётка звёзд под заявкой — как орнамент на бланке
   ========================================================================= */
.tm-apply {
  background-color: var(--stamp-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cpath d='M48 20l6 14 14-6-6 14 14 6-14 6 6 14-14-6-6 14-6-14-14 6 6-14-14-6 14-6-6-14 14 6z' fill='none' stroke='%234334a6' stroke-opacity='.10' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 96px 96px;
}

/* Новости: обложки с цифрой — без обрезки краёв, подпись источника тише текста */
.wm-source { font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 28px; }

/* Заголовки компонентов UIkit и карточек wmarka — тем же шрифтом, что заголовки разделов */
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6, .uk-card-title, .uk-article-title,
.uk-heading-small, .uk-heading-medium, .uk-heading-bullet, .uk-heading-line { font-family: var(--font-head); letter-spacing: -.01em; }

/* =========================================================================
   Акварели на сайте: карточки специальностей и блок «Почему выбирают нас»
   ========================================================================= */
.tm-spec { padding-top: 0; overflow: hidden; }
.tm-spec-pic { margin: 0 calc(-1 * clamp(24px, 3vw, 40px)) 26px; aspect-ratio: 3 / 2; overflow: hidden; background: #f3ece0; }
.tm-spec-pic img, .tm-why-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tm-spec:hover .tm-spec-pic img { transform: scale(1.035); }
.tm-why-pic { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; margin-bottom: 20px; background: #f3ece0;
  box-shadow: 0 1px 0 rgba(25, 27, 40, .04), 0 14px 30px -18px rgba(33, 26, 85, .35); }
.tm-why li:hover .tm-why-pic img { transform: scale(1.03); }
.tm-why-pic + .tm-why-icon { display: none !important; }
@media (prefers-reduced-motion: reduce) { .tm-spec-pic img, .tm-why-pic img { transition: none; } }

/* Общежитие после ремонта: акварели в галерее страницы */
.wm-dorm figure { margin: 0; }
.wm-dorm figcaption { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* =========================================================================
   Анонс лонгрида на главной: тёмная полоса, четыре ремесла, обложка фильма
   ========================================================================= */
.tm-lr { background: #211a55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 26l7 17 17-7-7 17 17 7-17 7 7 17-17-7-7 17-7-17-17 7 7-17-17-7 17-7-7-17 17 7z' fill='none' stroke='%23f2b33d' stroke-opacity='.09' stroke-width='1.2'/%3E%3C/svg%3E");
  color: #f3eee6; padding: clamp(56px, 7vw, 104px) 0; overflow: hidden; }
.tm-lr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tm-lr-kicker { color: var(--gold); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin: 0 0 14px; }
.tm-lr-title { color: #fff; font-size: clamp(2.1rem, 1.2rem + 3vw, 3.6rem); line-height: 1.02; margin: 0 0 18px; font-weight: 650; letter-spacing: -.02em; padding: 0; }
.tm-lr-title::before { display: none; }
.tm-lr-title em { display: block; font-style: italic; font-weight: 400; color: #d8d0ff; }
.tm-lr-dek { color: #d9d3ea; font-size: 1.1rem; max-width: 34em; margin: 0 0 26px; }
.tm-lr-crafts { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.tm-lr-crafts li { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #f3eee6; font-weight: 500; }
.tm-lr-crafts img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid rgba(242, 179, 61, .55); }
.tm-lr-crafts span { text-align: center; }
.tm-lr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tm-lr-read { background: var(--gold); color: #191b28; border: 0; }
.tm-lr-read:hover, .tm-lr-read:focus-visible { background: #ffc552; color: #191b28; }
.tm-lr-watch { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.tm-lr-watch:hover, .tm-lr-watch:focus-visible { color: #fff; border-color: #fff; }
.tm-lr-play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.tm-lr-poster { position: relative; display: block; border-radius: 18px; overflow: hidden; transform: rotate(-1.2deg);
  box-shadow: 0 0 0 10px #f6f1e7, 0 40px 80px -30px rgba(0, 0, 0, .6); transition: transform .4s ease; }
.tm-lr-poster:hover { transform: rotate(0deg) scale(1.01); }
.tm-lr-poster:hover .tm-lr-bigplay { background: var(--gold); }
.tm-lr-poster:hover .tm-lr-bigplay::after { border-left-color: #211a55; }
.tm-lr-poster img { display: block; width: 100%; height: auto; }
.tm-lr-bigplay { position: absolute; left: 22px; bottom: 18px; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(33, 26, 85, .88); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.tm-lr-bigplay::after { content: ""; position: absolute; left: 28px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--gold); }
.tm-lr-dur { position: absolute; right: 14px; bottom: 12px; background: rgba(25, 27, 40, .78); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
@media (max-width: 959px) { .tm-lr-grid { grid-template-columns: 1fr; } .tm-lr-poster { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tm-lr-poster, .tm-lr-poster:hover { transition: none; transform: none; } }
.wm-film { margin: 0 0 24px; }
.wm-film video { width: 100%; border-radius: 16px; background: #efe8db; aspect-ratio: 16 / 9; display: block; }
.wm-film figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); }

/* =========================================================================
   Страницы специальностей 2026: квалификации, факты, курсы, фото одного формата
   ========================================================================= */
.sp-page h2 { margin-top: 48px; }
.sp-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; }
.sp-badge { display: inline-block; background: #fff4c4; color: #5f4f00; font-size: 13px; font-weight: 600; border-radius: 6px; padding: 3px 9px; vertical-align: middle; }
.sp-quals { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sp-quals li { border: 1px solid var(--line, #e3e5eb); border-radius: 12px; padding: 16px 20px; display: grid; gap: 4px; }
.sp-q { font-weight: 700; font-size: 1.1rem; }
.sp-term { color: var(--ink-2); font-size: 15px; }
.sp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 24px 0 0; }
.sp-facts div { background: var(--paper, #f4f5f8); border-radius: 12px; padding: 16px 18px; }
.sp-facts dt { font-size: 13px; color: var(--ink-3, #7b8090); font-weight: 600; text-transform: none; }
.sp-facts dd { margin: 4px 0 0; }
.sp-card { border: 1px solid var(--line, #e3e5eb); border-radius: 12px; padding: 20px; }
.sp-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.sp-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.sp-path { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.sp-path li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.sp-step { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--violet, #39307f); color: #fff; font-weight: 700; }
.sp-path b { display: block; } .sp-path p { margin: 2px 0 0; color: var(--ink-2); }
.sp-photos figure { margin: 0; }
.sp-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.sp-photos figcaption { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.sp-cta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; background: var(--paper, #f4f5f8); border-radius: 16px; padding: 28px; }
.sp-cta h2 { margin: 0 0 8px; } .sp-cta p { margin: 0 0 6px; } .sp-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* одинаковые фото во всех карточках главной */
.tm-spec-pic img, .tm-why-pic img, .wm-mod-section img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.sp-quals .sp-badge { justify-self: start; }
.sp-code { font-size: 13px; color: var(--ink-3, #7b8090); font-variant-numeric: tabular-nums; }
.sp-num dt { font-size: 40px; line-height: 1; font-weight: 800; color: var(--violet, #39307f); }
.sp-num dd { margin-top: 8px; }
