/* Сайт halykevents.kz — один файл стилей на все страницы. */
:root {
  --bg: #030e0e;
  --card: #0f1f22;
  --card-2: #2a3643;
  --line: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #adb3c6;
  --accent: #3be2bc;
  --accent-hover: #62ead0;
  --accent-ink: #050e07;
  --teal-1: #01988d;
  --teal-2: #015555;
  --r-s: 16px;
  --r: 26px;
  --r-l: 40px;
  --wrap: 1160px;
  --gutter: 20px;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Orbitron", "Roboto", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* Декоративные линии выходят за край — режем их, не создавая горизонтальную прокрутку */
main { overflow-x: hidden; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0 0; position: relative; }
.section-title { font-size: 48px; line-height: 1.15; font-weight: 700; }
.section-title.center { text-align: center; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 64px; padding: 0 56px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 18px/1.2 var(--font); text-decoration: none; border: 2px solid var(--accent);
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.outline { background: transparent; color: var(--text); padding: 0 40px; }
.btn.outline:hover { background: rgba(61, 220, 184, 0.12); }
.btn.small { min-height: 48px; padding: 0 28px; font-size: 16px; }
.btn .plus { font-size: 28px; font-weight: 300; line-height: 1; }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta-row { display: flex; justify-content: center; padding-top: 72px; }

/* Шапка */
.header { position: relative; z-index: 5; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; }
.logo img { width: 196px; height: auto; }
.nav { display: flex; gap: 48px; }
.nav a, .lang a, .lang span { font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:hover, .lang a:hover { color: var(--accent); }
.lang { display: flex; gap: 20px; align-items: center; }
.lang .current { color: var(--muted); }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; padding: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; margin: 0 auto; background: currentColor; position: relative; border-radius: 2px; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

/* Меню на телефоне */
.menu-panel {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  display: none; flex-direction: column; padding: 20px var(--gutter) 40px;
}
.menu-panel.open { display: flex; }
.menu-panel .top { display: flex; align-items: center; justify-content: space-between; }
.menu-panel .top img { width: 140px; }
.menu-close { width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.08); color: #fff; border-radius: 12px; font-size: 26px; cursor: pointer; }
.menu-panel nav { display: flex; flex-direction: column; align-items: center; gap: 28px; margin: 80px 0 40px; }
.menu-panel nav a { font-size: 22px; font-weight: 500; text-decoration: none; }
.menu-panel .btn { align-self: center; }
.menu-panel .lang { justify-content: center; margin-top: 32px; }

/* Герой */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/img/common/promo.webp") no-repeat left -160px top -120px / 1112px auto;
  opacity: .55;
  /* Линии плавно гаснут к низу героя, а не обрываются по краю */
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.hero.meetup::before { background-position: left -260px top -60px; opacity: .9; }
.hero.meetup::after {
  content: ""; position: absolute; right: -180px; bottom: -380px; width: 704px; height: 950px; pointer-events: none;
  background: url("/assets/img/common/cub-r.webp") no-repeat center / contain; opacity: .8;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 60%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 60%);
}
.hero-body { position: relative; z-index: 2; text-align: center; padding-top: 120px; padding-bottom: 110px; display: flex; flex-direction: column; align-items: center; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; }
.tag, .badge {
  border: 1px solid rgba(255,255,255,.85); border-radius: 999px;
  padding: 3px 14px; font-size: 14px; font-weight: 500; line-height: 22px;
}
.hero h1 { margin-top: 32px; font-size: 72px; line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; }
.hero .lead { margin-top: 28px; max-width: 800px; font-size: 26px; line-height: 1.35; }
.hero .btn { margin-top: 64px; min-width: 280px; }

/* Календарь */
.calendar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 48px; }
.event-card {
  position: relative; min-height: 400px; border-radius: var(--r); padding: 24px;
  display: flex; flex-direction: column; text-decoration: none;
  background: linear-gradient(0.436turn, var(--teal-1) 0%, var(--teal-2) 100%);
  transition: transform .2s;
}
a.event-card:hover { transform: translateY(-4px); }
.event-card .date {
  width: 86px; height: 86px; border-radius: var(--r-s); background: #030e0e; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-num); line-height: 1.1;
}
.event-card .date b { font-size: 26px; font-weight: 700; }
.event-card .date span { font-size: 14px; font-weight: 600; margin-top: 4px; }
.event-card h3 { margin-top: auto; font-size: 24px; line-height: 1.17; font-weight: 500; }
.event-card p { margin-top: 16px; font-size: 15px; line-height: 1.35; min-height: 60px; }
.event-card.current { background: #fff; color: #1c1c1c; }
.event-card.current .date { background: #222222; }
.event-card.current { color: #222222; }
.event-card .arrow { position: absolute; top: 28px; right: 28px; width: 26px; }
.event-card.future { background: var(--card); }
.event-card.future .date { background: var(--card-2); }
.event-card.future p { color: var(--muted); }

/* О проекте / о митапе */
.about-card {
  position: relative; background: var(--card); border-radius: var(--r-l);
  padding: 100px; overflow: visible;
}
.about-card .lead { margin-top: 40px; max-width: 760px; font-size: 26px; line-height: 1.4; font-weight: 500; }
.about-card .text { margin-top: 28px; max-width: 740px; color: var(--muted); font-size: 18px; line-height: 1.45; display: grid; gap: 20px; }
.about-card h3 { margin-top: 64px; font-size: 22px; font-weight: 500; }
.dots { list-style: none; margin-top: 24px; display: grid; gap: 18px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.dots li { position: relative; padding-left: 20px; }
.dots li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.dots.two { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 60px; }
/* Вопросы и ответы на главной: вопросы идут плотнее, чем разделы «О проекте» */
.faq h3 { margin-top: 40px; }
.faq .text { margin-top: 12px; }
/* Коротко о докладах на страницах митапов */
.talk-notes h3 { margin-top: 40px; }
.talk-notes .text { margin-top: 12px; }
.about-card .talk-source { margin-top: 40px; font-size: 14px; }
/* Архив сезона: карточки митапов и ссылка на архив под календарём */
.archive-meetup .section-title { margin-top: 20px; }
.archive-meetup .about-card h3 { margin-top: 40px; }
.archive-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.calendar-archive { margin-top: 32px; text-align: center; font-size: 18px; }
.deco-right::after {
  content: ""; position: absolute; right: -420px; top: -40px; width: 704px; height: 950px; pointer-events: none; z-index: -1;
  background: url("/assets/img/common/cub-r.webp") no-repeat center / contain;
}

/* Спикеры */
.speakers-home { display: grid; grid-template-columns: 560px 1fr; gap: 60px; align-items: start; }
.speakers-home > * { min-width: 0; }
.speakers-home .intro h3 { margin-top: 56px; font-size: 26px; line-height: 1.35; font-weight: 500; }
.speakers-home .intro p { margin-top: 32px; color: var(--muted); font-size: 16px; }
.speakers-home .intro .btn { margin-top: 40px; }
.speaker-strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--card-2) transparent; }
.speaker-strip .speaker { flex: 0 0 240px; scroll-snap-align: start; min-height: 360px; }
.speaker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.speaker-grid.four { grid-template-columns: repeat(4, 1fr); }
.speaker {
  background: var(--card); border-radius: var(--r); padding: 40px 24px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 360px;
}
.speaker img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.speaker b { margin-top: 26px; font-size: 20px; line-height: 1.2; font-weight: 500; }
.speaker span { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.3; }

/* Программа */
.program { display: grid; gap: 20px; margin-top: 44px; }
.talk { background: var(--card); border-radius: var(--r); padding: 24px; display: grid; grid-template-columns: 86px 1fr; gap: 40px; }
.talk .num {
  width: 86px; height: 86px; border-radius: var(--r-s); background: var(--card-2);
  display: flex; align-items: center; justify-content: center; font: 700 30px var(--font-num);
}
.talk h3 { font-size: 32px; line-height: 1.25; font-weight: 400; padding-top: 18px; }
.talk .who { display: flex; align-items: center; gap: 16px; margin-top: 20px; font-size: 17px; font-weight: 500; }
.talk .who img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.hosts { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; margin-top: 20px; }
.host {
  position: relative; overflow: hidden; min-height: 180px; border-radius: var(--r); background: var(--card-2);
  display: grid; grid-template-columns: 170px 1fr; align-items: center;
}
.host::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 231px; height: 172px;
  background: url("/assets/img/common/pr-overlay.webp") no-repeat left bottom / contain;
}
.host img { position: relative; align-self: end; width: 170px; height: 166px; object-fit: cover; object-position: top center; }
.host div { position: relative; padding: 20px 24px 20px 0; }
.host b { display: block; font-size: 20px; line-height: 1.2; font-weight: 500; }
.host span { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.3; }

/* Отчёт */
.report { display: grid; grid-template-columns: 760px 1fr; gap: 40px; margin-top: 48px; }
.report.wide { grid-template-columns: 1fr; }
.video-card {
  position: relative; min-height: 520px; border-radius: var(--r); overflow: hidden;
  display: flex; align-items: flex-end; text-decoration: none; background: var(--card) center / cover no-repeat;
}
.report.wide .video-card { min-height: 360px; }
.video-card .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(20deg, rgba(14, 160, 140, .85) 0%, rgba(14, 160, 140, .25) 35%, rgba(0, 0, 0, 0) 60%); }
.video-card .play { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; padding: 30px; font-size: 24px; line-height: 1.25; font-weight: 500; max-width: 420px; }
.video-card .play i { flex: 0 0 80px; height: 80px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.video-card .play i img { width: 26px; }
.video-card:hover .play i { background: var(--accent-hover); }
.article-card { background: var(--card); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; }
.article-card img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--r-s); }
.article-card h3 { margin-top: 36px; font-size: 18px; line-height: 1.35; font-weight: 500; }
.article-card a { margin-top: auto; padding-top: 32px; color: var(--accent); font-weight: 500; text-decoration: none; display: inline-flex; gap: 10px; }
.article-card a:hover { text-decoration: underline; }

/* Галерея */
.gallery { position: relative; margin-top: 40px; border: 3px solid var(--accent); border-radius: var(--r); overflow: hidden; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 1160 / 704; object-fit: cover; scroll-snap-align: center; }
.gallery button {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #0e9a7f; color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.gallery button:hover { background: var(--accent); color: var(--accent-ink); }
.gallery .prev { left: 16px; }
.gallery .next { right: 16px; }
.gallery .counter { position: absolute; right: 16px; bottom: 14px; background: rgba(0,0,0,.55); border-radius: 999px; padding: 2px 12px; font-size: 13px; }

/* Паспорт и призы */
.perks { display: grid; gap: 40px; }
.perk { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.perk img { width: 100%; max-width: 537px; justify-self: center; }
.perk h2 { font-size: 42px; line-height: 1.17; font-weight: 500; }
.perk p { margin-top: 32px; font-size: 22px; line-height: 1.5; color: var(--muted); }

/* Партнёры и подвал */
.partners { display: flex; flex-wrap: wrap; gap: 20px; }
.partners a { width: 216px; height: 120px; border-radius: var(--r); background: #172121; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.partners a:hover { background: #1f2d2d; }
.partners img { max-width: 164px; max-height: 50px; }
.footer { padding: 48px 0 56px; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .org { display: flex; align-items: center; gap: 30px; text-decoration: none; }
.footer .org img { width: 184px; }
.footer .org span { font-size: 14px; line-height: 1.3; font-weight: 500; }
.footer .right { display: flex; align-items: center; gap: 28px; color: var(--muted); }
.footer-link { font-size: 14px; text-decoration: none; }
.footer-link:hover { color: var(--text); text-decoration: underline; }
.partners-section { padding-top: 120px; }

/* Формы заявок */
dialog.form-dialog {
  width: min(520px, calc(100% - 32px)); border: 0; border-radius: var(--r); padding: 0;
  background: var(--card); color: var(--text);
}
dialog.form-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.form-dialog .inner { padding: 48px 48px 40px; position: relative; }
.form-dialog h2 { font-size: 32px; line-height: 1.2; font-weight: 700; padding-right: 40px; }
.form-dialog .close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 22px; cursor: pointer; }
.form-dialog form { display: grid; gap: 14px; margin-top: 28px; }
.form-dialog label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form-dialog input, .form-dialog textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #0a1418; color: #fff;
  font: 400 16px/1.4 var(--font); padding: 14px 16px;
}
.form-dialog textarea { resize: vertical; min-height: 110px; }
.form-dialog input:focus, .form-dialog textarea:focus { outline: none; border-color: var(--accent); }
.form-dialog .btn { margin-top: 8px; width: 100%; }
.form-dialog .consent { font-size: 12px; line-height: 1.4; color: var(--muted); }
.form-dialog .status { min-height: 1.4em; font-size: 15px; }
.form-dialog .status.ok { color: var(--accent); }
.form-dialog .status.err { color: #ff8a80; }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Страница 404 */
.not-found { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 24px; padding-top: 80px; padding-bottom: 80px; }
.not-found h1 { font: 700 96px/1 var(--font-num); color: var(--accent); }

/* Планшет */
@media (max-width: 1100px) {
  .nav { gap: 28px; }
  .calendar { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .speakers-home { grid-template-columns: 1fr; }
  .report { grid-template-columns: 1fr; }
  .speaker-grid, .speaker-grid.four { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .about-card { padding: 64px; }
}
@media (max-width: 860px) {
  .nav, .header .lang { display: none; }
  .burger { display: block; }
  .logo img { width: 140px; }
  .section { padding-top: 80px; }
  .partners-section { padding-top: 80px; }
  .section-title { font-size: 36px; }
  .hero-body { padding-top: 72px; padding-bottom: 80px; }
  .hero h1 { font-size: 48px; }
  .hero .lead { font-size: 20px; }
  .hero .btn { margin-top: 44px; }
  .calendar { grid-template-columns: repeat(2, 1fr); }
  .speaker-grid, .speaker-grid.four { grid-template-columns: repeat(2, 1fr); }
  .about-card { padding: 40px 28px; border-radius: 28px; }
  .about-card .lead { font-size: 21px; margin-top: 28px; }
  .about-card .text { font-size: 16px; }
  .dots.two { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .perk { grid-template-columns: 1fr; gap: 24px; }
  .perk.reverse img { order: -1; }
  .perk h2 { font-size: 30px; }
  .perk p { font-size: 18px; margin-top: 18px; }
  .talk { grid-template-columns: 1fr; gap: 16px; }
  .talk h3 { font-size: 22px; padding-top: 0; }
  .talk .num { width: 64px; height: 64px; font-size: 22px; }
  .hosts { grid-template-columns: 1fr; }
  .video-card, .report.wide .video-card { min-height: 300px; }
  .video-card .play { font-size: 18px; padding: 20px; }
  .video-card .play i { flex-basis: 60px; height: 60px; }
  .deco-right::after { display: none; }
  .hero.meetup::after { right: -360px; bottom: -520px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 18px; }
  .btn { min-height: 56px; padding: 0 32px; font-size: 16px; }
  .hero .btn { min-width: 0; width: 100%; }
  .badge { border-radius: 18px; padding: 4px 14px; }
  .calendar { grid-template-columns: 1fr; }
  .event-card { min-height: 300px; }
  .speaker-grid, .speaker-grid.four { grid-template-columns: 1fr; }
  .speaker { min-height: 0; }
  .host { grid-template-columns: 120px 1fr; min-height: 150px; }
  .host img { width: 120px; height: 140px; }
  .host b { font-size: 17px; }
  .partners a { width: calc(50% - 10px); height: 96px; }
  .partners img { max-width: 120px; }
  .form-dialog .inner { padding: 40px 20px 28px; }
  .form-dialog h2 { font-size: 26px; }
  .footer .org { gap: 16px; }
  .footer .org img { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
