:root {
  --bg: #171926;
  --surface: #212330;
  --surface-soft: #1d1f2c;
  --indigo: #2d3372;
  --text: #f0f0f4;
  --muted: #c5c5d0;
  --subtle: #8f909c;
  --accent: #9a8df0;
  --line: rgba(224, 223, 239, .22);
  --focus: #c4bbff;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); line-height: 1.48; }
a { color: inherit; }
.site-shell { min-height: 100vh; overflow: hidden; }
.container { width: min(100% - 120px, 1760px); margin: 0 auto; }
.section { padding: 148px 0; }
.section--surface { background: var(--surface-soft); }

.site-header { min-height: 116px; border-bottom: 1px solid rgba(255, 255, 255, .02); }
.site-header__inner { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: baseline; gap: 14px; color: var(--text); font-size: 1.38rem; font-weight: 700; text-decoration: none; letter-spacing: -.04em; white-space: nowrap; }
.brand__event { color: #838491; font-weight: 500; }
.brand__divider { color: #686976; font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 40px; font-size: 1.18rem; font-weight: 600; }
.site-nav > a:not(.button) { color: #d2cafa; text-decoration: none; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.058em; line-height: .98; }
h1 { max-width: 1050px; margin-bottom: 54px; font-size: clamp(4rem, 8vw, 8.9rem); font-weight: 650; }
h2 { max-width: 760px; margin-bottom: 40px; font-size: clamp(2.8rem, 4.3vw, 4.9rem); font-weight: 650; }
h3 { margin-bottom: 20px; font-size: clamp(1.65rem, 2vw, 2.2rem); font-weight: 650; }
.eyebrow { display: flex; align-items: center; gap: 18px; margin: 0 0 58px; color: var(--accent); font-size: 1.08rem; font-weight: 500; letter-spacing: .055em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 82px; height: 2px; background: currentColor; }

.hero { padding: 188px 0 64px; min-height: 1050px; }
.hero__content { max-width: 1120px; }
.hero__lead { max-width: 980px; margin: 0; color: var(--muted); font-size: clamp(1.36rem, 2.2vw, 2.06rem); font-weight: 450; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin-top: 68px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid var(--accent); border-radius: 12px; padding: 11px 20px; background: transparent; color: var(--text); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.button:hover { background: rgba(154, 141, 240, .14); }
.button--primary { background: var(--accent); color: var(--bg); }
.button--primary:hover { background: #b1a8f5; }
.button--outline { border-color: rgba(154, 141, 240, .88); }
.button--hero { min-height: 57px; font-size: 1.18rem; }
.button--small { min-height: 56px; padding: 10px 20px; font-size: 1.12rem; }
.text-link { color: var(--accent); font-size: 1.18rem; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.event-chips { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 82px; }
.event-chip { display: inline-flex; align-items: center; min-height: 46px; border: 1px solid rgba(154, 141, 240, .86); border-radius: 9px; padding: 7px 16px; color: var(--accent); font-size: 1.08rem; font-weight: 500; }
.event-chip--filled { border-color: transparent; background: #484b59; color: var(--text); }

.stats-band { background: var(--indigo); }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 38px; padding-top: 92px; padding-bottom: 92px; }
.stat { display: grid; gap: 20px; }
.stat strong { font-size: clamp(3rem, 4.3vw, 5.3rem); font-weight: 600; letter-spacing: -.07em; line-height: .9; white-space: nowrap; }
.stat span { color: #c0bddd; font-size: 1.05rem; font-weight: 600; letter-spacing: .065em; text-transform: uppercase; }

.about-section { padding-top: 150px; padding-bottom: 155px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr); gap: clamp(70px, 13vw, 270px); }
.about-intro .eyebrow { margin-bottom: 58px; }
.about-intro__text, .why-list p, .venue-copy p, .registration__lead { color: var(--muted); font-size: clamp(1.24rem, 1.7vw, 1.7rem); line-height: 1.56; }
.about-intro__text { max-width: 730px; margin-bottom: 0; }
.why-list { display: grid; align-content: start; gap: 56px; padding-top: 100px; }
.why-list p { margin: 0; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { min-height: 310px; padding: 38px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.case-card h3 { color: var(--accent); }
.case-card p, .speaker p { margin-bottom: 0; color: var(--muted); font-size: 1.15rem; }

.speakers-section { padding-top: 156px; }
.speakers-section .eyebrow { margin-bottom: 54px; }
.speakers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 82px; margin-top: 86px; }
.speaker { min-height: 390px; padding: 34px 18px 22px; border-radius: 18px; background: var(--surface); }
.speaker__photo-slot { display: grid; place-content: center; gap: 10px; width: 200px; min-height: 200px; margin: -18px 0 38px; border: 2px dashed #707180; border-radius: 14px; color: #b8b8c1; text-align: center; font-size: 1rem; }
.speaker__photo { display: block; width: 200px; height: 200px; margin: -18px 0 38px; border-radius: 14px; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.05); }
.speaker__photo-icon { font-size: 2.8rem; line-height: .7; color: #a7a7b0; }
.speaker h3 { margin: 0 0 16px; font-size: clamp(2rem, 2.8vw, 3.1rem); }

/* Партнёры. Пока логотипов нет, .partner__wordmark даёт наборную плашку с
   названием; когда появится файл, .partner__logo встаёт на её место без правки
   разметки. */
.partners-section { padding-top: 40px; padding-bottom: 130px; }
.partners-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 68px; }
.partner { display: flex; align-items: center; justify-content: center; min-width: 260px; min-height: 128px; padding: 22px 34px; border-radius: 16px; background: var(--surface); }
.partner__logo { display: block; max-width: 220px; max-height: 84px; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: .9; }
.partner__wordmark { display: grid; gap: 6px; text-align: center; }
.partner__name { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.partner__kind { color: var(--subtle); font-size: .98rem; letter-spacing: .04em; text-transform: uppercase; }

.venue-section { padding-top: 120px; padding-bottom: 160px; }
.venue-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(390px, .86fr); align-items: center; gap: clamp(58px, 7vw, 130px); }
.venue-visual { position: relative; min-height: 510px; overflow: hidden; border-radius: 20px; background: var(--surface); }
.venue-visual__photo { display: block; width: 100%; height: 510px; object-fit: cover; filter: saturate(.82) contrast(1.04) brightness(.78); }
.venue-visual__caption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 24px 28px; background: linear-gradient(transparent, rgba(18, 19, 34, .94)); color: var(--text); font-size: 1.45rem; font-weight: 650; }
.venue-visual__caption span + span { color: #d5d1e6; font-size: 1rem; font-weight: 500; }
.venue-copy .eyebrow { margin-bottom: 52px; }
.venue-copy h2 { margin-bottom: 34px; }
.venue-copy p { max-width: 650px; margin-bottom: 28px; }
.venue-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; }

.registration { border-top: 1px solid var(--line); }
.registration__layout { display: grid; grid-template-columns: minmax(330px, .74fr) minmax(0, 1.26fr); gap: clamp(60px, 10vw, 195px); align-items: start; }
.registration .eyebrow { margin-bottom: 52px; }
.registration__lead { max-width: 550px; }
.registration-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 28px; }
.form-field { min-width: 0; }
.form-field--full, .contact-field, .consent-field, .registration-form > .button, .form-note, .form-success, .form-error { grid-column: 1 / -1; }
.form-field label, .contact-field legend { display: block; margin-bottom: 12px; color: var(--muted); font-size: 1.08rem; }
.required-mark { color: var(--accent); }
.input { width: 100%; min-height: 64px; border: 2px solid rgba(222, 220, 239, .23); border-radius: 16px; padding: 13px 20px; background: transparent; color: var(--text); font: inherit; font-size: 1.15rem; }
.input::placeholder { color: #858690; }
textarea.input { min-height: 178px; resize: vertical; }
.input--error { border-color: #f4a4a9; }
.field-error { min-height: 1.35em; margin: 6px 0 0; color: #f4a4a9; font-size: .86rem; }
.field-error--empty { visibility: hidden; }
.contact-field { margin: 8px 0 0; padding: 0; border: 0; }
.contact-options { display: flex; flex-wrap: wrap; gap: 0; }
.radio-label, .checkbox-label { display: inline-flex !important; align-items: center; gap: 9px; cursor: pointer; }
.radio-label { min-height: 61px; margin: 0 !important; border: 2px solid rgba(222, 220, 239, .23); border-right-width: 0; padding: 10px 20px; font-size: 1.12rem; }
.radio-label:first-child { border-radius: 16px 0 0 16px; }
.radio-label:last-child { border-right-width: 2px; border-radius: 0 16px 16px 0; }
.radio-label input, .checkbox-label input { width: 18px; height: 18px; accent-color: var(--accent); }
.checkbox-label { align-items: flex-start; color: var(--muted); line-height: 1.35; }
.checkbox-label input { flex: 0 0 auto; margin-top: 2px; }
.registration-form > .button { justify-self: start; min-width: 236px; margin-top: 8px; }
.form-success { border-left: 3px solid var(--accent); padding: 16px; background: rgba(145, 132, 217, .12); }
.form-success p { margin-bottom: 0; color: var(--muted); }
.form-error { margin: 0; color: #f4a4a9; }
.form-note { margin: 0; color: var(--subtle); font-size: .9rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.site-footer__inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { text-underline-offset: 4px; }
.prose { max-width: 720px; }
.prose p, .muted { color: var(--muted); }
.legal-page { min-height: calc(100vh - 92px); }
/* Юридические документы — длинный текст, читаемый с экрана: заголовки разделов
   мельче лендинговых, между абзацами воздух, ссылка «на главную» отделена. */
.legal-page h1 { margin-bottom: 40px; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.legal-page h2 { margin: 44px 0 16px; font-size: 1.34rem; font-weight: 650; letter-spacing: -.01em; }
.legal-page .prose p { margin: 0 0 16px; font-size: 1.06rem; line-height: 1.62; }
.legal-page .button { margin-top: 52px; }
.legal-draft-notice { margin: 0 0 36px; padding: 18px 22px; border: 1px solid var(--accent); border-radius: 12px; background: rgba(154, 141, 240, .09); }
.legal-draft-notice p { margin: 0; color: var(--text); }

.admin-panel h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.admin-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin: 32px 0 20px; }
.admin-filters label { display: grid; gap: 6px; color: var(--muted); font-size: .9rem; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); margin: 24px 0; }
.admin-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table-wrap th, .admin-table-wrap td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table-wrap th { color: var(--muted); font-size: .8rem; font-weight: 600; }
.admin-detail { display: grid; grid-template-columns: minmax(160px, .3fr) 1fr; gap: 10px 24px; max-width: 900px; }
.admin-detail dt { color: var(--muted); }
.admin-detail dd { margin: 0; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

@media (max-width: 1080px) {
  .container { width: min(100% - 64px, 1760px); }
  .site-nav { gap: 22px; font-size: 1rem; }
  .stats-band__grid { gap: 24px; }
  .venue-grid, .about-grid, .registration__layout { gap: 64px; }
  .speakers-grid { gap: 28px; }
  .radio-label { padding-inline: 14px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 1760px); }
  .section { padding: 82px 0; }
  .site-header, .site-header__inner { min-height: 75px; }
  .brand { gap: 7px; font-size: 1.05rem; }
  .site-nav > a:not(.button) { display: none; }
  .button--small { min-height: 42px; padding: 8px 12px; font-size: .84rem; }
  .hero { min-height: auto; padding: 100px 0 72px; }
  h1 { margin-bottom: 32px; font-size: clamp(3.35rem, 15vw, 5.3rem); }
  h2 { margin-bottom: 26px; }
  .eyebrow { gap: 12px; margin-bottom: 34px; font-size: .84rem; }
  .eyebrow::before { width: 42px; }
  .hero__lead, .about-intro__text, .why-list p, .venue-copy p, .registration__lead { font-size: 1.15rem; }
  .hero__actions { gap: 20px; margin-top: 40px; }
  .event-chips { gap: 9px; margin-top: 48px; }
  .event-chip { min-height: 38px; padding: 6px 11px; font-size: .83rem; }
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); gap: 42px 20px; padding-top: 54px; padding-bottom: 54px; }
  .stat { gap: 10px; }
  .stat span { font-size: .74rem; }
  .about-grid, .venue-grid, .registration__layout { grid-template-columns: 1fr; gap: 52px; }
  .why-list { gap: 40px; padding-top: 0; }
  .case-grid, .speakers-grid { grid-template-columns: 1fr; gap: 18px; }
  .case-card { min-height: auto; padding: 27px; }
  .speakers-grid { margin-top: 48px; }
  .speaker { min-height: 0; }
  .speaker__photo-slot { width: 150px; min-height: 150px; margin-bottom: 28px; }
  .speaker__photo { width: 150px; height: 150px; margin-bottom: 28px; }
  .partners-row { gap: 16px; margin-top: 44px; }
  .partner { min-width: 0; flex: 1 1 100%; min-height: 104px; padding: 18px 22px; }
  .partner__name { font-size: 1.35rem; }
  .venue-visual { min-height: 300px; }
  .venue-visual__photo { height: 300px; }
  .venue-visual__caption { padding: 18px; font-size: 1.2rem; }
  .venue-actions { margin-top: 32px; }
  .venue-actions .button { width: 100%; }
  .registration-form { grid-template-columns: 1fr; gap: 18px; }
  .form-field, .form-field--full { grid-column: auto; }
  .input { min-height: 56px; border-radius: 12px; }
  .contact-options { gap: 8px; }
  .radio-label { min-height: 46px; border-right-width: 2px; border-radius: 10px !important; padding: 7px 11px; font-size: .94rem; }
  .admin-filters { grid-template-columns: 1fr; }
  .admin-detail { grid-template-columns: 1fr; gap: 4px; }
  .admin-detail dd { margin-bottom: 16px; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; padding: 24px 0; }
}
