:root {
  --black: #000000;
  --ink: #1a1a1a;
  --blue: #0386fc;
  --blue-dark: #0269c7;
  --white: #ffffff;
  --bg: #f1f3f6;
  --tint: #e3effe;
  --muted: #6b7280;
  --line: #c9d3e0;
  --subtle: #c9d3e0;
  --footer: #1a1a1a;
  --radius: 12px;
  --font: "Manrope", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; }
h2 { font-size: 38px; margin-bottom: 8px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
  background: var(--blue);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--blue-dark); }
.btn-large { padding: 20px 0; width: 400px; text-align: center; }
.btn-small { padding: 14px 0; width: 220px; text-align: center; font-size: 16px; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 96px;
}
.logo { height: 76px; width: auto; display: block; }
.logo-link { display: inline-flex; }
.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
section[id] { scroll-margin-top: 110px; }

/* ---------- Watermarks ---------- */
.wm { position: absolute; pointer-events: none; }
section, footer { position: relative; overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.hero-inner { position: relative; padding: 120px 24px 140px; z-index: 2; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  background: var(--blue);
  pointer-events: none;
}
.hero-glow-1 { width: 640px; height: 640px; right: -180px; top: -180px; opacity: 0.22; }
.hero-glow-2 { width: 440px; height: 440px; left: -150px; bottom: -150px; opacity: 0.16; }
.hero-glow-3 { width: 920px; height: 920px; right: -230px; top: -160px; opacity: 0.10; }
.wm-hero {
  right: 90px;
  top: 170px;
  width: 300px;
  opacity: 0.9;
  z-index: 1;
}
.kicker {
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 { font-size: 72px; margin-bottom: 16px; }
.hero-sub { font-size: 28px; color: var(--subtle); max-width: 900px; margin-bottom: 24px; line-height: 1.35; }
.hero-meta { font-size: 17px; font-weight: 500; color: var(--subtle); margin-bottom: 48px; }
.hero-cta { display: flex; align-items: center; gap: 24px; }
.hero-note { font-size: 15px; color: var(--subtle); }

/* ---------- About ---------- */
.about { background: var(--white); padding: 80px 0; }
.wm-light {
  right: -140px;
  top: 140px;
  width: 280px;
  opacity: 0.12;
}
.section-bg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.about-bg {
  right: -80px;
  bottom: -25px;
  top: auto;
  transform: none;
  width: 540px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%);
  mask-image: linear-gradient(to right, transparent 0, #000 15%);
}
.program-bg {
  right: -210px;
  width: 1000px;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%);
  mask-image: linear-gradient(to right, transparent 0, #000 45%);
}
.about .container, .program .container { position: relative; z-index: 1; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 760px; margin: 32px 0 48px; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.fact-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.fact-num { color: var(--blue); font-weight: 800; font-size: 22px; margin-bottom: 12px; }
.fact-card h3 { font-size: 19px; margin-bottom: 8px; }
.fact-card p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- Speakers ---------- */
.speakers { background: var(--bg); padding: 80px 0 100px; }
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.avatar-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
  margin-bottom: 24px;
  background: var(--bg);
}
.speaker-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: var(--white);
  margin-bottom: 24px;
}
.avatar-blue { background: var(--blue); }
.avatar-black { background: var(--black); }
.avatar-tint { background: var(--tint); color: var(--blue); }
.speaker-card h3 { font-size: 20px; margin-bottom: 6px; }
.speaker-card p { font-size: 15px; color: var(--muted); }

/* ---------- Program ---------- */
.program { background: var(--white); padding: 80px 0 100px; }
.program-body { margin-top: 40px; max-width: 900px; }
.program-list { list-style: none; }
.program-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.program-list li:last-child { border-bottom: none; }
.program-list time {
  color: var(--blue);
  font-weight: 600;
  font-size: 18px;
}
.program-list h3 { font-size: 18px; margin-bottom: 4px; }
.program-list p { font-size: 15px; color: var(--muted); }


/* ---------- Registration ---------- */
.registration { background: var(--black); color: var(--white); padding: 48px 0 56px; }
.wm-hero-reg {
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  opacity: 0.85;
}
.reg-sub { color: var(--subtle); font-size: 17px; margin: 8px 0 24px; }
.form-card {
  background: var(--white);
  border-radius: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 28px 20px;
  position: relative;
  z-index: 2;
}
.form-card-bitrix { min-height: 200px; }
.form-card input[type="text"] {
  display: block;
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px 20px;
  margin-bottom: 20px;
  outline: none;
}
.form-card input[type="text"]:focus { border-color: var(--blue); }
.form-card input.invalid { border-color: #e5484d; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 20px;
  cursor: pointer;
}
.consent input { margin-top: 2px; accent-color: var(--blue); }
.form-msg { font-size: 15px; font-weight: 600; margin: 16px 0 0; min-height: 22px; }
.form-msg.ok { color: #1a7f37; }
.form-msg.err { color: #e5484d; }
.privacy { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--white); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
  padding-top: 28px;
  padding-bottom: 28px;
  padding-left: 116px;
  position: relative;
}
.wm-footer {
  position: absolute;
  left: 24px;
  top: 30px;
  width: 80px;
  opacity: 0.9;
}
.footer-brand { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.footer-contacts { font-size: 14px; color: var(--subtle); }
.footer-contacts a { color: var(--subtle); text-decoration: none; }
.footer-contacts a:hover { color: var(--white); }
.footer-copy { font-size: 14px; color: var(--subtle); }

/* ---------- Fallback for narrow screens ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .section-bg { display: none; }
  .facts, .speakers-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 48px; }
  .btn-large { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .wm, .wm-light, .wm-hero, .wm-hero-reg { display: none; }
}
