@font-face {
  font-family: Inter;
  src: url("inter-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("inter-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #16222b;
  --dark: #111c25;
  --dark-deep: #0c161e;
  --on-dark: #f5f1e9;
  --muted: #52606b;
  --dim: #c6cdd0;
  --paper: #f7f5ef;
  --accent: #ff8659;
  --orange-dark: #a93918;
  --rule: #d9dad4;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 Inter, system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
h1, h2 { letter-spacing: -.052em; line-height: 1.04; }
h3 { letter-spacing: -.028em; line-height: 1.22; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid #3677aa;
  outline-offset: 3px;
}
.dark-page a:focus-visible, .opening a:focus-visible, .registration-copy a:focus-visible {
  outline-color: var(--accent);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(100% - 80px, 1240px); margin-inline: auto; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 11px 20px; border: 1px solid transparent;
  border-radius: 5px; text-decoration: none; line-height: 1.25; font-weight: 700;
  text-align: center; transition: background .15s, border-color .15s;
}
.button-primary { background: var(--accent); color: #171a1c; }
.button-primary:hover { background: #ffab87; }
.button-outline { border-color: #768087; }
.button-outline:hover { border-color: currentColor; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; text-decoration: none; line-height: 1.2; }
.brand img { border-radius: 5px; }
.site-header, .opening, .registration, .dark-page { color: var(--on-dark); background: var(--dark); }
.nav { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 72px; border-bottom: 1px solid #ffffff2b; position: relative; z-index: 1; }
.nav nav { display: flex; align-items: center; gap: 30px; }
.nav nav a:not(.button) { text-decoration: none; color: var(--dim); }
.nav nav a:not(.button):hover { color: white; }
.nav .button { min-height: 42px; font-size: .94rem; }
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #111c25 28%, #111c25 42%, #111c25d6 54%, #111c252a 78%, #111c2533),
              linear-gradient(0deg, #111c25, #111c2500 41%, #111c251a 88%, #111c25bf);
}
.hero-photo { position: absolute; z-index: -2; right: 0; top: 0; width: 66%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-inner { position: relative; padding-block: clamp(24px, 4.7svh, 52px) clamp(22px, 4.7svh, 48px); }
.event-label { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.event-label span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { max-width: 1010px; font-size: clamp(3rem, min(5.5vw, 10svh), 5.2rem); margin-top: clamp(13px, 2.2svh, 21px); text-wrap: initial; }
.hero-subject, .hero h1 em { display: block; }
.hero h1 em { color: var(--accent); font-style: normal; white-space: nowrap; }
.hero-summary { max-width: 560px; font-size: clamp(1.07rem, 1.6vw, 1.33rem); line-height: 1.5; margin-top: clamp(14px, 2.4svh, 22px); color: var(--dim); }
.hero .button { margin-top: clamp(16px, 2.8svh, 26px); min-height: 50px; padding-inline: 25px; }
.event-details { display: grid; grid-template-columns: 1.03fr 1fr 1fr; border-top: 1px solid #ffffff36; padding-block: 17px 22px; }
.event-details > div { padding-inline: 24px; border-left: 1px solid #ffffff36; }
.event-details > div:first-child { padding-left: 0; border-left: 0; }
.event-details strong { display: block; font-size: clamp(1.08rem, 2.15vw, 1.7rem); letter-spacing: -.035em; line-height: 1.3; }
.event-details span { display: block; color: var(--dim); margin-top: 5px; }
.section { padding-block: 86px; scroll-margin-top: 18px; }
.section-intro { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 40px; }
.section h2, .registration h2 { font-size: clamp(2.55rem, 5.6vw, 4.5rem); }
.section-intro p { color: var(--muted); font-size: 1.125rem; max-width: 465px; }
.topics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: 38px; }
.topics-grid article { border-top: 1px solid #b9bebd; padding: 22px 6px 25px 0; }
.topics-grid h3 { font-size: clamp(1.18rem, 2vw, 1.5rem); text-wrap: initial; }
.topics-grid p { margin-top: 8px; color: var(--muted); max-width: 315px; }
.speaker-section { background: #e9ebe7; }
.speakers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); margin-top: 33px; }
.portrait { background: #d6dad7; aspect-ratio: 5/5.35; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-ella { background: #c7cdd0; }
.portrait-ella img { object-position: 50% 17%; transform: scale(1.12); transform-origin: 50% 20%; }
.portrait-tatyana img { object-position: 53% 30%; }
.portrait-nadezhda img { object-position: 48% 23%; }
.portrait-andrius img { object-position: 50% 24%; }
.speaker .role { font-size: .88rem; font-weight: 700; color: var(--orange-dark); margin: 17px 0 6px; }
.speaker h3 { font-size: clamp(1.22rem, 2.2vw, 1.67rem); text-wrap: initial; }
.speaker p:last-child { margin-top: 10px; color: var(--muted); }
.registration { padding-block: 87px; scroll-margin-top: 0; }
.registration-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(40px, 7vw, 108px); align-items: center; }
.registration-copy h2 { margin: 22px 0; }
.registration-copy > p:last-child { max-width: 460px; font-size: 1.23rem; color: var(--dim); }
.form { background: var(--paper); color: var(--ink); padding: 33px; border-radius: 6px; }
.form h3 { font-size: 1.65rem; margin-bottom: 15px; }
.form label { display: block; margin-top: 15px; margin-bottom: 6px; font-size: .94rem; font-weight: 700; }
.form label span { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: .88rem; }
.form input:not([type=checkbox]), .form select, .field {
  width: 100%; min-width: 0; min-height: 46px; padding: 8px 11px;
  background: #fff; color: var(--ink); border: 1px solid #aab2b6; border-radius: 4px;
}
.form select, .field-select {
  appearance: none; padding-right: 33px;
  background-image: linear-gradient(45deg, transparent 50%, #54606a 50%), linear-gradient(135deg, #54606a 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 17px; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--orange-dark); flex: none; }
.consent label { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 400; }
.form .button { display: flex; width: 100%; margin-top: 19px; }
.form-error, .field-error { color: #a92d19; font-weight: 700; font-size: .9rem; }
.form-error { margin: 10px 0; }
.field-error { margin: 4px 0; }
[aria-invalid=true] { border-color: #a92d19 !important; }
.site-footer { background: var(--dark-deep); color: var(--dim); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 21px; }
.notice { padding-block: 48px 70px; }
.notice .event-label { margin: 69px 0 18px; }
.notice h1, .plain h1 { font-size: clamp(2.5rem, 6.5vw, 5rem); text-wrap: initial; }
.notice h1 + p { color: var(--dim); max-width: 490px; margin: 20px 0; font-size: 1.2rem; }
.notice-help { margin-top: 13px; color: var(--dim); font-size: .9rem; }
.plain { max-width: 850px; padding-block: 44px 80px; }
.plain h1 { margin: 25px 0 31px; }
.plain h2 { font-size: 1.7rem; margin-top: 23px; }
.plain h2 + p { margin-top: 9px; }
.back { color: var(--muted); }
.admin-header { background: var(--dark); color: var(--on-dark); }
.admin-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 16px; }
.admin-page { padding-block: 34px 70px; }
.admin-page h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin: 14px 0 20px; }
.admin-page h2 { font-size: 1.65rem; margin: 0 0 15px; }
.admin-page section { margin-top: 27px; }
.admin-stats, .admin-overview { display: grid; gap: 12px; }
.admin-stats { grid-template-columns: repeat(3, 1fr); }
.admin-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat, .admin-panel { border: 1px solid var(--rule); border-radius: 6px; padding: 18px; background: #fff; }
.stat b { display: block; font-size: 2rem; }
.stat span { color: var(--muted); }
.counts { list-style: none; padding: 0; margin: 0; }
.counts li { display: flex; justify-content: space-between; gap: 10px; padding-block: 7px; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.filters { display: grid; grid-template-columns: 1.3fr 1fr 1.15fr auto auto; gap: 8px; align-items: end; margin-bottom: 16px; }
.filters label, .lead-form label { display: block; font-weight: 700; font-size: .94rem; }
.table-box { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: #e9ebe7; }
tr:last-child td { border-bottom: 0; }
.table-box a { font-weight: 700; }
.empty { padding: 24px 17px; color: var(--muted); }
.login-panel, .lead-panel { max-width: 660px; }
.login-panel { margin-inline: auto; padding-top: 55px; }
.lead-panel dl { display: grid; grid-template-columns: 130px 1fr; margin: 15px 0; }
.lead-panel dt, .lead-panel dd { border-bottom: 1px solid var(--rule); padding: 9px 0; margin: 0; overflow-wrap: anywhere; }
.lead-panel dt { font-weight: 700; }
.lead-form textarea { min-height: 100px; resize: vertical; }
.lead-form label { margin: 10px 0; }
.lead-form .button { margin-top: 17px; }
.admin-header button { background: transparent; color: inherit; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 50px); }
  .speakers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 31px; }
  .portrait { aspect-ratio: 6/5; }
  .hero-photo { width: 71%; }
  .hero::after { background: linear-gradient(90deg,#111c25 17%,#111c25ec 38%,#111c2567 76%), linear-gradient(0deg,#111c25,transparent 49%,#111c2570); }
  .registration-grid { gap: 33px; }
  .form { padding: 24px; }
  .contact-grid, .filters { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 34px); }
  .nav { min-height: 64px; }
  .nav nav { gap: 0; }
  .nav nav a:not(.button) { display: none; }
  .nav .button { padding: 8px 10px; min-height: 38px; font-size: .84rem; }
  .brand { gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .hero-photo { width: 100%; height: 77%; opacity: .8; object-position: 62% 52%; }
  .hero::after { background: linear-gradient(0deg,#111c25 28%,#111c25c2 58%,#111c256e), linear-gradient(90deg,#111c25bb,#111c2512); }
  .hero-inner { padding-block: clamp(20px, 4.3svh, 33px) clamp(18px, 3.6svh, 27px); }
  .hero h1 { font-size: clamp(2rem, 10.1vw, 3.6rem); margin-top: 13px; }
  .hero-summary { margin-top: 13px; }
  .hero .button { margin-top: 17px; min-height: 46px; }
  .event-label { font-size: .8rem; letter-spacing: .06em; }
  .event-details { grid-template-columns: 1fr 1fr; gap: 11px; padding-block: 13px 18px; }
  .event-details > div { padding-inline: 12px 0; }
  .event-details > div:first-child { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid #ffffff36; }
  .event-details > div:nth-child(2) { border: 0; padding: 0; }
  .event-details span { font-size: .86rem; }
  .section, .registration { padding-block: 51px; }
  .section-intro, .registration-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-intro p, .registration-copy > p:last-child { font-size: 1rem; }
  .topics-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .topics-grid article { padding-block: 17px; }
  .speakers-grid { gap: 25px 14px; margin-top: 24px; }
  .portrait { aspect-ratio: 4/4.5; }
  .speaker p:last-child { font-size: .92rem; line-height: 1.52; }
  .speaker .role { margin-top: 10px; }
  .registration-copy h2 { margin-block: 12px; }
  .form { padding: 21px 15px; margin-top: 9px; }
  .form h3 { margin-bottom: 10px; }
  .admin-stats, .admin-overview { grid-template-columns: 1fr; }
  .lead-panel dl { grid-template-columns: 95px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
