/* ===== Токены ===== */
:root {
  --bg: #FBF7F1;
  --bg-tint: #F4EEE4;
  --card: #FFFFFF;
  --ink: #2B185D;
  --ink-70: rgba(43, 24, 93, .72);
  --ink-50: #6B5F8E; /* ≥4.5:1 на белом и на фоне */
  --line: rgba(43, 24, 93, .12);
  --accent: #D2276F;
  --accent-hover: #B81F5E;
  --accent-soft: #FBE3EC;
  --accent-ink: #B01E5C; /* малиновый для текста на светлом, ≥4.5:1 */

  --c-dombra: #A3421B;  --c-dombra-soft: #F8E3D8;
  --c-guitar: #9A5B00;  --c-guitar-soft: #FBEFD3;
  --c-vocal: #B01E5C;   --c-vocal-soft: #FBE1EB;
  --c-piano: #3B2A8C;   --c-piano-soft: #E4E0F6;
  --c-violin: #8E1F3A;  --c-violin-soft: #F3DDE2;
  --c-art: #0B6B66;     --c-art-soft: #D7F0EE;
  --c-dance: #B83A28;   --c-dance-soft: #FCE2DD;
  --c-studio: #7A3FD1;  --c-studio-soft: #ECE1FA;

  --font-display: 'Unbounded', 'Unbounded KZ', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', 'Manrope KZ', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(43, 24, 93, .06), 0 12px 32px -12px rgba(43, 24, 93, .18);
  --shadow-lg: 0 30px 60px -24px rgba(43, 24, 93, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

/* ===== Сброс ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Казахские буквы для Unbounded (Ғ Қ Ң Ө Ү Ұ Һ Ә), собраны из деталей самого шрифта; лицензия OFL — fonts/OFL.txt */
@font-face { font-family: 'Unbounded KZ'; font-weight: 500; font-display: swap; src: url('../fonts/unbounded-kz-500.woff2') format('woff2'); unicode-range: U+0492-0493, U+049A-049B, U+04A2-04A3, U+04AE-04B1, U+04BA-04BB, U+04D8-04D9, U+04E8-04E9; }
@font-face { font-family: 'Unbounded KZ'; font-weight: 600; font-display: swap; src: url('../fonts/unbounded-kz-600.woff2') format('woff2'); unicode-range: U+0492-0493, U+049A-049B, U+04A2-04A3, U+04AE-04B1, U+04BA-04BB, U+04D8-04D9, U+04E8-04E9; }
@font-face { font-family: 'Unbounded KZ'; font-weight: 700; font-display: swap; src: url('../fonts/unbounded-kz-700.woff2') format('woff2'); unicode-range: U+0492-0493, U+049A-049B, U+04A2-04A3, U+04AE-04B1, U+04BA-04BB, U+04D8-04D9, U+04E8-04E9; }
/* в Manrope нет Ғғ Ққ Ңң Ұұ Әә — они дорисованы из деталей самого Manrope (OFL), остальные казахские буквы в нём есть */
@font-face { font-family: 'Manrope KZ'; font-weight: 400; font-display: swap; src: url('../fonts/manrope-kz-400.woff2') format('woff2'); unicode-range: U+0492-0493, U+049A-049B, U+04A2-04A3, U+04B0-04B1, U+04D8-04D9; }
@font-face { font-family: 'Manrope KZ'; font-weight: 500; font-display: swap; src: url('../fonts/manrope-kz-500.woff2') format('woff2'); unicode-range: U+0492-0493, U+049A-049B, U+04A2-04A3, U+04B0-04B1, U+04D8-04D9; }
@font-face { font-family: 'Manrope KZ'; font-weight: 600; font-display: swap; src: url('../fonts/manrope-kz-600.woff2') format('woff2'); unicode-range: U+0492-0493, U+049A-049B, U+04A2-04A3, U+04B0-04B1, U+04D8-04D9; }
@font-face { font-family: 'Manrope KZ'; font-weight: 700; font-display: swap; src: url('../fonts/manrope-kz-700.woff2') format('woff2'); unicode-range: U+0492-0493, U+049A-049B, U+04A2-04A3, U+04B0-04B1, U+04D8-04D9; }
@font-face { font-family: 'Manrope KZ'; font-weight: 800; font-display: swap; src: url('../fonts/manrope-kz-800.woff2') format('woff2'); unicode-range: U+0492-0493, U+049A-049B, U+04A2-04A3, U+04B0-04B1, U+04D8-04D9; }

/* ===== Типографика ===== */
/* В Manrope нет казахских букв (ә, ң, ғ, ү, ұ, қ, ө, һ) — для казахского текста Roboto; заголовки на ru/en — Unbounded + Unbounded KZ */
:root:lang(kk) { --font-display: 'Roboto', system-ui, sans-serif; --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif; }
:lang(kk) h1, :lang(kk) h2, :lang(kk) h3, :lang(kk) .h2-sm { font-weight: 700; letter-spacing: -.015em; }
.kz-font { font-family: 'Roboto', system-ui, sans-serif !important; letter-spacing: -.01em; }
.kz-font--inline { font-weight: 400; letter-spacing: 0; } /* Roboto 400 визуально ≈ Manrope 500 */
h1, h2, h3, .h2-sm { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(32px, 5.2vw, 64px); }
h2 { font-size: clamp(28px, 3.8vw, 48px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); }
.h2-sm { font-size: clamp(22px, 2.6vw, 32px); }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #FFB3CF; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ===== Раскладка ===== */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head--sm { margin-top: clamp(56px, 7vw, 96px); margin-bottom: 32px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section__head--gap { margin-top: clamp(56px, 7vw, 96px); }
.section__lead { margin-top: 16px; font-size: 18px; color: var(--ink-70); }
.section__lead a { color: var(--accent-ink); font-weight: 700; }
.center { text-align: center; margin-top: 40px; }

/* ===== Кнопки ===== */
.btn {
  --bg-btn: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--bg-btn); color: #fff;
  font: 700 16px/1.1 var(--font-body); text-decoration: none; text-align: center;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent {
  --bg-btn: var(--accent);
  background: linear-gradient(110deg, var(--accent) 0%, #A92FA0 45%, var(--c-studio) 75%, var(--accent) 100%) 0 50% / 220% 100%;
  box-shadow: 0 10px 24px -12px rgba(122, 63, 209, .55);
  transition: transform .35s var(--ease), background-position .6s var(--ease), box-shadow .35s var(--ease);
}
.btn--accent:hover { background-position: 70% 50%; box-shadow: 0 16px 32px -14px rgba(122, 63, 209, .65); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn--ghost-light { background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .18); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn.is-loading { color: transparent; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Пульс — включается JS классом .is-pulsing */
.btn.is-pulsing::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(210, 39, 111, .55); animation: pulse 1.4s var(--ease);
}
@keyframes pulse { to { box-shadow: 0 0 0 16px rgba(210, 39, 111, 0); } }

/* ===== Поля ===== */
.field { display: block; }
.field__label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink-70); }
.field input {
  width: 100%; min-height: 56px; padding: 0 20px;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff;
  font-size: 17px; font-weight: 600; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--ink-50); font-weight: 500; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(43, 24, 93, .1); }
.mask-wrap { position: relative; display: block; }
.mask-ghost {
  position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; pointer-events: none;
  white-space: pre; color: rgba(43, 24, 93, .38);
}
.mask-ghost[hidden] { display: none; }
.mask-ghost__typed { color: transparent; }
.footer__form .mask-ghost { color: rgba(255, 255, 255, .42); }
.field input.is-invalid { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(210, 39, 111, .12); }

/* ===== Появление (только когда JS включил анимации) ===== */
.js-anim .reveal { opacity: 0; transform: translateY(32px); }

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