/* TALGAT’ — personal page. Premium minimalism / editorial. */


:root {
  --bg: #121315;
  --surface: #1a1b1e;
  --surface-2: #222327;
  --line: #2c2e33;
  --text: #ecebe7;
  --muted: #9b9da3;
  --accent: #2f55e4;        /* сдержанный насыщенный синий: фон кнопки, белый текст ≈ 5.6:1 */
  --accent-hover: #3a61f0;
  --accent-text: #8ea6ff;   /* синий для текста на графите ≈ 7.5:1 */
  --focus: #9fb4ff;

  --pad: clamp(20px, 5.5vw, 40px);
  --col: 600px;
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ol, ul, dl, dd, figure { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 12px 16px; background: var(--text); color: var(--bg); border-radius: 10px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--col) + var(--pad) * 2); margin-inline: auto; padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right)); }

/* ——— Top bar ——— */
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding-top: max(8px, env(safe-area-inset-top)); }
.logo { display: inline-flex; align-items: center; min-height: 44px; font: 600 19px/1 var(--display); letter-spacing: .14em; text-decoration: none; }
.logo span { color: var(--accent-text); letter-spacing: 0; margin-left: 1px; }
.top-r { display: flex; align-items: center; gap: 6px; }
.top-contact { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; font-weight: 500; text-decoration: none; }
.top-contact:hover { color: var(--accent-text); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a { display: grid; place-items: center; min-width: 52px; min-height: 44px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { background: var(--surface-2); color: var(--text); }

/* ——— Кадр белгісі: нөмір + логотиптегі көк апостроф ——— */
.k { font: 500 13px/1 var(--sans); letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.k i { font-style: normal; color: var(--accent-text); margin-left: 1px; }

/* ——— Hero ——— */
.hero { display: grid; grid-template-columns: 112px 1fr; grid-template-areas: "text text" "portrait lead" "index index"; column-gap: 20px; padding-top: clamp(16px, 4vh, 40px); padding-bottom: 72px; }
.hero-text { display: contents; }
.eyebrow { grid-area: text; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.name { grid-area: text; margin-top: 30px; margin-bottom: 24px; font: 600 clamp(42px, 12.6vw, 76px)/.95 var(--display); letter-spacing: -.035em; }
.name span { display: block; }
.name span + span { color: var(--muted); }
.portrait { grid-area: portrait; align-self: start; }
.lead { grid-area: lead; align-self: center; font: 500 clamp(18px, 5vw, 22px)/1.38 var(--sans); letter-spacing: -.01em; text-wrap: pretty; }

.ph, .portrait img { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius); object-fit: cover; }
.ph { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.ph span, .ph-wide::after { font: 600 28px/1 var(--display); letter-spacing: .04em; color: #4a4d55; }

/* Навигация вместо набора одинаковых кнопок: один список, внешние ссылки отличаются стрелкой ↗ */
.index { grid-area: index; margin-top: 32px; }
.index ol { border-top: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "k t s" "k h s"; align-items: center; column-gap: 12px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.index .k { grid-area: k; align-self: start; padding-top: 5px; }
.index .i-t { grid-area: t; font-size: 18px; font-weight: 500; line-height: 1.3; }
.index svg { grid-area: s; }
.index .i-h { grid-area: h; font-size: 14px; color: var(--muted); line-height: 1.35; }
.index svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.index a:hover .i-t { color: var(--accent-text); }
.index a[href^="#"]:hover svg { transform: translateY(2px); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text);
  font: 500 15px/1.2 var(--sans); text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: #3a3c42; }
.btn:active { transform: scale(.98); }
.btn-primary { min-height: 56px; background: var(--accent); border-color: var(--accent); color: #fff; font-size: 16px; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn svg, .link-arrow svg, .contacts svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ——— Sections ——— */
.section { padding-block: 72px; border-top: 1px solid var(--line); }
h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; font: 600 clamp(26px, 7vw, 34px)/1.1 var(--display); letter-spacing: -.02em; }

.sub { color: var(--muted); max-width: 34em; text-wrap: pretty; }
.shot { margin-bottom: 24px; }
.ph-wide { aspect-ratio: 3 / 2; }
.shot img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: var(--radius); }
.shot figcaption { margin-top: 10px; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.prose { display: grid; gap: 16px; max-width: 34em; }
.prose p:first-child { font-size: 19px; line-height: 1.5; color: var(--text); }
.prose p + p { color: var(--muted); }

.sons { margin-top: 36px; border-top: 1px solid var(--line); }
.sons li { display: flex; min-height: 56px; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 22px/1.2 var(--sans); letter-spacing: -.01em; }
.sons .n { font: 500 13px/1 var(--sans); letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 22px; }


/* ——— Videos ——— */
.videos {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 58%); gap: 10px;
  margin: 28px calc(var(--pad) * -1) 0; padding: 0 var(--pad) 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.videos::-webkit-scrollbar { display: none; }
.videos li { scroll-snap-align: start; }
.video { position: relative; display: flex; align-items: flex-end; aspect-ratio: 9 / 16; overflow: hidden; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.video:hover img { transform: scale(1.03); }
.video .cap { position: relative; font-size: 14px; font-weight: 500; line-height: 1.35; }
.video .play { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(18,19,21,.72); border: 1px solid rgba(255,255,255,.14); }
.video .play::after { content: ""; position: absolute; left: 17px; top: 14px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--text); }
.video.is-ph { border-style: dashed; }
.video.is-ph .cap { color: var(--muted); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; color: var(--accent-text); font-weight: 500; text-decoration: none; }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* ——— Support ——— */
.kaspi { margin-top: 24px; padding: 18px 0 20px; border-block: 1px solid var(--line); }
.kaspi-t { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kaspi-num { margin: 8px 0 18px; font: 600 clamp(24px, 7vw, 32px)/1.15 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kaspi:not(.has-num) .kaspi-num { margin-bottom: 0; font: 400 15px/1.5 var(--sans); color: var(--muted); }
.copy { width: 100%; }
.copy.is-done { background: var(--surface-2); border-color: var(--line); }
.thanks { margin-top: 18px; color: var(--muted); }

/* ——— Contacts ——— */
.contacts { margin-top: 24px; border-top: 1px solid var(--line); }
.contacts a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t i" "v i"; align-items: center; column-gap: 16px; min-height: 76px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.c-t { grid-area: t; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.c-v { grid-area: v; font: 600 clamp(22px, 6.4vw, 30px)/1.2 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; transition: color .2s; }
.contacts svg { grid-area: i; width: 24px; height: 24px; color: var(--muted); }
.contacts a:hover .c-v { color: var(--accent-text); }
.contacts a:hover svg { transform: translate(2px, -2px); color: var(--accent-text); }

/* ——— Footer ——— */
.footer { padding-top: 72px; padding-bottom: max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer h2 { margin-bottom: 8px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.foot-row a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-row a:hover { color: var(--text); }

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

/* ——— Tablet ——— */
@media (min-width: 640px) {
  .hero { grid-template-columns: 180px 1fr; column-gap: 32px; }
  .videos { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin-inline: 0; padding: 0; overflow: visible; }
  .kaspi { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; }
  .kaspi-t { grid-column: 1 / -1; }
  .kaspi-num { margin-bottom: 0; }
  .copy { width: auto; padding-inline: 22px; }
}

/* ——— Desktop ——— */
@media (min-width: 1024px) {
  :root { --col: 1040px; }
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "portrait text" "portrait lead" "portrait index";
    grid-template-rows: auto auto 1fr;
    column-gap: 64px; padding-top: 48px; padding-bottom: 120px;
  }
  .hero-text { display: contents; }
  .eyebrow { margin-top: 24px; }
  .name { grid-area: text; margin-top: 64px; font-size: clamp(72px, 7.4vw, 108px); }
  .lead { align-self: start; font-size: 24px; max-width: 22em; }
  .index { align-self: start; max-width: 520px; margin-top: 40px; }
  .footer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; }
  .footer > * { grid-column: 2; }
  .section { display: grid; grid-auto-rows: min-content; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; padding-block: 112px; }
  .section > * { grid-column: 2; }
  .section > h2, .footer > h2 { grid-column: 1; grid-row: 1 / span 4; align-self: start; flex-direction: column; gap: 14px; }
}
