/* ===== Base ===== */
:root {
  --ink: #2F3A2E;
  --ink-hover: #232B21;
  --ink-link-hover: #1F251C;
  --white: #ffffff;
  --line-15: rgba(47, 58, 46, 0.15);
  --line-20: rgba(47, 58, 46, 0.2);
  --muted-68: rgba(47, 58, 46, 0.68);
  --muted-55: rgba(47, 58, 46, 0.55);
  --text-85: rgba(47, 58, 46, 0.85);
  --tint-04: rgba(47, 58, 46, 0.04);
  --tint-06: rgba(47, 58, 46, 0.06);
  --font-display: Montserrat, sans-serif;
  --font-body: Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-link-hover); text-decoration: underline; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; }

@media (max-width: 767px) {
  .d-only { display: none !important; }
  body { padding-bottom: 110px; }
}
@media (min-width: 768px) {
  .m-only { display: none !important; }
}

/* ===== Reusable ===== */
.container { max-width: 1280px; margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 120px) 20px; }
.section--dark { background: var(--ink); color: var(--white); }
.section--tint { background: var(--tint-04); }
.section--center { text-align: center; }
.section--center .container { display: flex; flex-direction: column; align-items: center; }

.overline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-68);
  margin-bottom: 12px;
}
.section--dark .overline { color: rgba(255, 255, 255, 0.5); }

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.15;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--ink-hover); color: var(--white); }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--tint-06); color: var(--ink); }
.btn--outline-white { border: 1px solid var(--white); color: var(--white); padding: 0 28px; letter-spacing: 0; }
.btn--outline-white:hover { background: var(--ink); color: var(--white); }

.text-link { font-size: 15px; font-weight: 500; color: var(--ink); }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 64px;
  padding: 0 clamp(20px, 4vw, 40px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.header.is-scrolled { background: var(--white); border-bottom-color: var(--line-15); }
.header__nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; }
.header__nav a { color: var(--ink); text-decoration: none; }
.header__nav a:hover { color: var(--ink-link-hover); }
.header__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--white) !important;
  letter-spacing: .02em;
  opacity: 0;
  transition: opacity .3s;
}
.header__cta:hover { background: var(--ink-hover); }
.header.is-scrolled .header__cta { opacity: 1; }

/* ===== Hero ===== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 20px 64px;
  position: relative;
}
.hero__stamp { width: clamp(200px, 26vw, 340px); height: auto; margin-bottom: 32px; }
.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  border-top: 1px solid var(--line-20);
  border-bottom: 1px solid var(--line-20);
  padding: 18px 0;
  width: 100%;
  max-width: 420px;
}
.countdown__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.countdown__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 4px;
  width: 100%;
}
.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 0 clamp(6px, 3vw, 14px);
}
.cd-item + .cd-item { border-left: 1px solid var(--line-20); }
.cd-item__v {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 3.4vw, 46px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.cd-item__l {
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-55);
  white-space: nowrap;
}
.hero__meta {
  font-size: clamp(8px, 2.6vw, 13px);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-68);
  margin-bottom: 16px;
  white-space: nowrap;
}
.hero__title {
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  max-width: 14ch;
}
.hero__tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 32px;
}
.hero__price { font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 34px); margin-bottom: 24px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 480px;
}
.hero__actions .btn { flex: 1 1 200px; }

/* ===== Stats ===== */
.stats { border-top: 1px solid var(--line-15); border-bottom: 1px solid var(--line-15); background: var(--white); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  text-align: center;
}
@media (max-width: 767px) { .stat-grid { grid-template-columns: repeat(2, 1fr) !important; } }
.stat-cell { padding: 32px 16px; border-left: 1px solid var(--line-15); border-top: 1px solid var(--line-15); }
.stat-cell__n { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.stat-cell__l { font-size: 13px; color: var(--muted-68); margin-top: 4px; }

/* ===== Senses ===== */
.senses .overline { margin-bottom: 40px; }
.senses__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.sense { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 20px; }
.sense__en { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.15; margin-bottom: 12px; }
.sense__ua { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); max-width: 34ch; }

/* ===== Format ===== */
.format .h2 { margin-bottom: 48px; }
.format__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.format-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.format-card__icon {
  width: 88px;
  height: 110px;
  border: 1.5px solid var(--ink);
  border-radius: 44px 44px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.format-card__icon svg { display: inline-flex; }
.format-card__title { font-size: clamp(18px, 1.4vw, 22px); font-weight: 500; }
.format-card__desc { font-size: 15px; line-height: 1.6; color: var(--muted-68); max-width: 30ch; }

/* ===== Tickets ===== */
.tickets { background: var(--tint-06); }
.tickets__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}
.tickets__left { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tickets__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.ticket {
  background: var(--white);
  border: 1px solid var(--line-15);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ticket__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ticket__tag { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-68); }
.ticket__badge { font-size: 12px; font-weight: 500; padding: 4px 10px; background: var(--ink); color: var(--white); }
.ticket__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.ticket__early { font-family: var(--font-display); font-size: clamp(34px, 3.2vw, 48px); line-height: 1.1; }
.ticket__full { font-size: 17px; color: var(--muted-68); text-decoration: line-through; }
.ticket__disc { font-size: 12px; font-weight: 500; border: 1px solid var(--ink); color: var(--ink); padding: 3px 8px; }
.ticket__includes {
  border-top: 1px solid var(--line-15);
  padding-top: 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ticket__inc { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }
.ticket__inc span:first-child { color: var(--ink); }
.ticket .btn { margin-top: auto; display: flex; width: 100%; }
.tickets__notes { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted-68); }

/* earlyActive: скидка видна только при классе .is-early на секции */
.early-only { display: none; }
.tickets.is-early .early-only { display: block; }
.tickets.is-early .ticket__price .early-only { display: block; }

/* ===== Speakers / Partners ===== */
.placeholder-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 8px;
}
.placeholder-sub {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 32px;
}
.slots { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 32px; }
.slot {
  border: 1.5px solid var(--line-15);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}
.slot--speaker { width: 180px; aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; }
.slot--partner { width: 180px; height: 96px; }
.slot span { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-68); }
.placeholder-h2 { margin: 0 0 16px; max-width: 26ch; }
.speakers .placeholder-h2 { font-size: clamp(16px, 5.5vw, 40px); white-space: nowrap; }
.placeholder-text { font-size: 15px; line-height: 1.6; color: var(--muted-68); max-width: 52ch; margin: 0 0 32px; }
.partners { border-top: 1px solid var(--line-15); }

/* ===== Location ===== */
.location__row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
}
.location .overline { color: rgba(255, 255, 255, 0.6); }
.location .h2 { margin-bottom: 12px; }
.location__addr { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }

/* ===== Code of conduct ===== */
.code { border-top: 1px solid var(--line-15); padding: clamp(48px, 7vw, 80px) 20px; }
.code .container { max-width: 720px; }
.code .h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin-bottom: 16px; }
.code__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.code__toggle:hover { color: var(--ink-hover); }
.code__chev { display: inline-flex; transform: rotate(0deg); transition: transform .25s; }
.code.is-open .code__chev { transform: rotate(180deg); }
.code__body {
  display: none;
  margin-top: 28px;
  flex-direction: column;
  gap: 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-85);
}
.code.is-open .code__body { display: flex; }
.code-h { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-top: 8px; }
.code-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: var(--white); padding: 56px 20px 40px; }
.footer .container { display: flex; flex-direction: column; gap: 40px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: flex-end; }
.footer__social-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer__social a { color: var(--white); font-size: 14px; }
.footer__social a:hover { color: var(--white); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 16px 28px; font-size: 13px; }
.footer__legal a { color: rgba(255, 255, 255, 0.7); }
.footer__legal a:hover { color: var(--white); }
.footer__req {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

/* ===== Sticky bar (mobile) ===== */
.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: var(--white);
  border-top: 1px solid var(--line-15);
  transform: translateY(110%);
  transition: transform .3s;
}
.sticky.is-visible { transform: translateY(0); }
.sticky[hidden] { display: none; }
.sticky__price { font-family: var(--font-display); font-size: 20px; }
.sticky .btn { height: 44px; padding: 0 28px; letter-spacing: 0; }

/* ===== Buy modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(47, 58, 46, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__box {
  background: var(--white);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-15);
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line-15);
}
.modal__kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-68);
  margin-bottom: 8px;
}
.modal__title { font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); line-height: 1.2; }
.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  flex-shrink: 0;
}
.modal__close:hover { background: var(--tint-06); color: var(--ink); }
.modal__body {
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-85);
}
.modal__body .code-h { font-size: 16px; margin-top: 4px; }
.modal__body .code-list { gap: 6px; }
.modal__foot {
  border-top: 1px solid var(--line-15);
  padding: 20px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--tint-04);
}
.agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.agree__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: background .15s;
  margin-top: 1px;
}
.agree__box svg { opacity: 0; }
.agree.is-checked .agree__box { background: var(--ink); }
.agree.is-checked .agree__box svg { opacity: 1; }
.agree__text { font-size: 14px; line-height: 1.5; }
.modal__buy { display: flex; width: 100%; opacity: .35; pointer-events: none; transition: opacity .2s; }
.modal__buy.is-enabled { opacity: 1; pointer-events: auto; }

body.is-locked { overflow: hidden; }
