:root {
  --bg: #07060b;
  --bg-2: #0f0d16;
  --line: rgba(255, 255, 255, .09);
  --text: #f2f0f7;
  --muted: #9a95a8;
  --accent: #a361ff;
  --accent-2: #c6f432;
  --radius: 20px;
  --f-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'Inter', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--f-body);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-attachment: fixed;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(60vw 50vh at 85% 0%, rgba(163, 97, 255, .28), transparent 70%),
              radial-gradient(40vw 40vh at 0% 100%, rgba(198, 244, 50, .08), transparent 70%),
              var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.small { font-size: 13px; }
.mt { margin-top: 32px; }
.label { font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
  background: rgba(7, 6, 11, .75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1 var(--f-display); text-decoration: none; }
.logo-mark { font-family: var(--f-mono); color: var(--bg); background: var(--accent); padding: 4px 6px; border-radius: 6px; font-size: 14px; }
.years { display: flex; gap: 4px; margin-left: auto; font-family: var(--f-mono); font-size: 14px; overflow-x: auto; }
.years a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.years a:hover { color: var(--text); background: var(--bg-2); }
.years a[aria-current] { color: var(--bg); background: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  font: 600 15px/1 var(--f-body); text-decoration: none; color: var(--text);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--bg); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* hero */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.pill { border: 1px solid var(--accent); color: var(--accent); padding: 5px 12px; border-radius: 999px; }
.pill-live { border-color: var(--accent-2); color: var(--accent-2); }
.hero-title {
  font: 800 clamp(56px, 13vw, 184px)/.9 var(--f-display);
  letter-spacing: -.04em; margin: 0 0 32px;
  display: flex; flex-wrap: wrap; gap: 0 .2em; text-transform: uppercase;
}
.outline { color: transparent; background: linear-gradient(100deg, #fff 0%, #cdb3ff 45%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; }
.hero-year-num { color: var(--accent-2); }
.hero-year .hero-title { font-size: clamp(44px, 9.5vw, 136px); }
.hero-lead { font-size: clamp(18px, 2vw, 22px); max-width: 760px; color: #d8d4e3; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 48px; margin-bottom: 40px; }
.fact { font: 600 20px/1.3 var(--f-display); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 56px; }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-v { font: 800 clamp(36px, 5vw, 64px)/1 var(--f-display); color: var(--accent-2); }
.stat-l { color: var(--muted); margin-top: 8px; font-size: 14px; }

/* sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.sec-head { display: flex; gap: 16px; font: 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.sec-num { color: var(--accent); }
.sec-label { color: var(--muted); }
.h2 { font: 800 clamp(32px, 5vw, 64px)/1.02 var(--f-display); letter-spacing: -.03em; margin: 0 0 48px; max-width: 900px; }
.h3 { font: 600 clamp(22px, 3vw, 32px)/1.15 var(--f-display); margin: 0 0 12px; }
.big-p { font-size: clamp(17px, 1.6vw, 20px); margin: 0; color: #d8d4e3; }

.cards2, .cards4 { display: grid; gap: 16px; }
.cards2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { margin: 8px 0 0; color: var(--muted); }
.card-t { font: 600 19px/1.25 var(--f-display); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); background: var(--bg-2); padding: 10px 18px; border-radius: 999px; font-size: 15px; }

/* chronicle */
.chronicle { display: grid; gap: 16px; }
.chron {
  position: relative; display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  text-decoration: none; transition: border-color .2s, transform .2s;
}
.chron:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); }
.chron-img { aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: #000; }
.chron-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) contrast(1.1); transition: filter .3s, transform .4s; }
.chron:hover .chron-img img { filter: none; transform: scale(1.04); }
.chron-collage { display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; }
.chron-collage img { aspect-ratio: auto; }
.chron-year { display: inline-block; font: 800 clamp(48px, 7vw, 96px)/1 var(--f-display); letter-spacing: -.04em; margin: 0; }
.chron-body { padding-right: 48px; }
.chron:hover .chron-year { color: var(--accent); }
.chron-body p { margin: 12px 0; color: #d8d4e3; max-width: 620px; }
.chron-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chron-tags span { border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.chron-arrow { position: absolute; top: 20px; right: 24px; font-size: 28px; color: var(--muted); }

/* speakers */
.speakers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.speaker {
  all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  padding: 12px 12px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  transition: border-color .2s;
}
.speaker:hover, .speaker:focus-visible { border-color: var(--accent); }
.speaker-photo { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #1a1724; margin-bottom: 10px; }
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .3s; }
.speaker:hover .speaker-photo img { filter: none; }
.speaker-name { font: 600 18px/1.2 var(--f-display); padding: 0 6px; }
.speaker-role { font-size: 13px; color: var(--muted); padding: 0 6px; }
.speaker-talk { font: 13px/1.45 var(--f-mono); color: var(--accent); padding: 8px 6px 0; border-top: 1px dashed var(--line); margin-top: 6px; }

/* program */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 32px; background: var(--bg-2); }
.tab { all: unset; cursor: pointer; padding: 10px 22px; border-radius: 999px; font: 600 14px/1 var(--f-mono); color: var(--muted); }
.tab[aria-selected="true"] { background: var(--accent); color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.slot { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.slot-time { font: 600 15px/1.5 var(--f-mono); color: var(--accent-2); }
.slot-title { font: 600 19px/1.35 var(--f-display); }
.slot-who { color: var(--muted); margin-top: 6px; font-size: 15px; }
.slot-break .slot-title { font: 500 15px/1.5 var(--f-mono); color: var(--muted); }
.slot-break .slot-time { color: var(--muted); }
.slot-more summary { cursor: pointer; font: 13px var(--f-mono); color: var(--accent); margin-top: 10px; }
.slot-more p { color: #cfcadb; max-width: 820px; }

/* ctf */
.ctf { border: 1px solid var(--accent); border-radius: var(--radius); padding: 36px; background: linear-gradient(135deg, rgba(163, 97, 255, .18), transparent 60%), var(--bg-2); }
.ctf-head p { color: #d8d4e3; max-width: 760px; }
.ctf-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.ctf-cat { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: rgba(0, 0, 0, .3); font-size: 14px; }
.ctf-flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }
.ctf-flow span:not(.arrow) { background: rgba(198, 244, 50, .1); color: var(--accent-2); padding: 6px 12px; border-radius: 8px; }
.arrow { color: var(--muted); }

/* partners */
.tier + .tier { margin-top: 40px; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.logos-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.logo-cell { display: flex; align-items: center; justify-content: center; height: 120px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.logos-sm .logo-cell { height: 100px; }
.logo-cell img { width: auto; height: auto; max-width: 100%; max-height: 104px; object-fit: contain; }
.logos-sm .logo-cell img { max-height: 88px; }
a.logo-cell:hover { border-color: var(--accent); }

/* gallery */
.gallery { columns: 3 280px; column-gap: 12px; }
.g-item { display: block; margin-bottom: 12px; border-radius: 14px; overflow: hidden; break-inside: avoid; }
.g-item img { width: 100%; transition: transform .4s; }
.g-item:hover img { transform: scale(1.03); }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 960px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item summary { cursor: pointer; font: 600 19px/1.35 var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::after { content: '+'; color: var(--accent); font-family: var(--f-mono); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: #cfcadb; margin: 14px 0 0; }

/* year nav */
.yearnav-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.yearnav-link { display: flex; flex-direction: column; text-decoration: none; }
.yearnav-link.right { text-align: right; }
.yearnav-y { font: 800 clamp(40px, 6vw, 80px)/1 var(--f-display); }

/* dialog / lightbox */
.dialog { border: 1px solid var(--accent); border-radius: var(--radius); background: var(--bg-2); color: var(--text); padding: 0; max-width: 720px; width: calc(100% - 32px); }
.dialog::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.dialog-close { all: unset; cursor: pointer; position: absolute; top: 10px; right: 16px; font-size: 32px; color: var(--muted); }
.dialog-body { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 32px; }
.dialog-body img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; }
.dialog-body h3 { font: 600 24px/1.2 var(--f-display); margin: 0 0 6px; }
.dialog-body .speaker-talk { padding-left: 0; }
.dialog-body p { color: #cfcadb; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; border-radius: 10px; }

/* footer */
.footer { padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; gap: 40px; }
.org-row { display: flex; flex-wrap: wrap; gap: 12px; }
.org-row a { display: grid; place-items: center; height: 56px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.org-row img { max-height: 36px; max-width: 140px; object-fit: contain; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 1000px) {
  .speakers, .cards4, .ctf-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chron { grid-template-columns: 1fr; }
  .chron-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar { padding: 12px 16px; gap: 12px; }
  .topbar .btn { display: none; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .cards2, .cards4, .ctf-cats { grid-template-columns: minmax(0, 1fr); }
  .speakers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 22px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .logos-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-cell { padding: 6px; height: 96px; }
  .logos-sm .logo-cell { height: 84px; }
  .logo-cell img { max-height: 84px; }
  .logos-sm .logo-cell img { max-height: 72px; }
  .yearnav-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; }
  .yearnav-y { font-size: 34px; }
  .yearnav-link .mono { font-size: 11px; }
  .topbar .logo { padding: 10px 0; }
  .hero-facts a.small { display: inline-block; padding: 8px 4px; }
  .speaker-name { font-size: 15px; }
  .slot { grid-template-columns: 1fr; gap: 6px; }
  .dialog-body { grid-template-columns: 1fr; padding: 24px; }
  .dialog-body img { max-width: 160px; }
  .ctf { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* language switcher */
.langs { display: flex; gap: 2px; font-family: var(--f-mono); font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { padding: 4px 9px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { background: var(--accent); color: #fff; }
@media (max-width: 640px) { .langs { font-size: 12px; } .langs a { padding: 9px 8px; } }
@media (max-width: 640px) { .topbar .years { display: none; } .langs { margin-left: auto; } }

/* длинные слова (казахский, немецкие составные) переносятся, а не вылезают за край */
.card p, .speaker-role, .speaker-talk, .stat-l, .chron-body p, .slot-more p { overflow-wrap: break-word; hyphens: auto; }
.hero-lead, .big-p { overflow-wrap: break-word; }
.card-t, .h2, .h3, .speaker-name, .slot-title, .chip, .fact { overflow-wrap: break-word; hyphens: manual; }
