/* =========================================================
   Программа лонча — статический сайт
   Палитра из PDF:
   - Кремовый фон:       #F6EFE3
   - Кораллово-красный:  #E1543A / #F26A4B / #B73B26
   - Приглушённый синий: #8AA9BD / #4D6E84
   - Светло-голубой:     #C9DBE6 (плашки/grid)
   - Чёрный line-art:    #111
   ========================================================= */

:root {
  --cream: #F5EFE4;
  --cream-2: #FFFDF8;
  --coral: #EF4D3A;
  --coral-soft: #F26A4B;
  --coral-deep: #B73B26;
  --blue: #2F6685;
  --blue-soft: #8FB1BF;
  --blue-pale: #A8C3CC;
  --ink: #1A1A1A;
  --ink-soft: #444;
  --line: #E0D6C6;
  --shadow: none;
  --radius: 0px;
  --maxw: 1120px;
  --font: "Manrope", "Golos Text", "PT Root UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  background-image: url("assets/ppt-image2.webp");
  background-size: cover;
  background-repeat: no-repeat;
}

body::before {
  top: 0;
  right: 0;
  width: min(34vw, 430px);
  height: min(34vw, 430px);
  border-bottom-left-radius: 100%;
  background-position: right top;
}

body::after {
  bottom: 0;
  left: 0;
  width: min(28vw, 340px);
  height: min(28vw, 340px);
  border-top-right-radius: 100%;
  background-position: left bottom;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--coral-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  min-height: clamp(360px, 58vw, 560px);
  display: grid;
  grid-template-columns: minmax(280px, 44vw) 1fr;
  background: var(--cream);
  border-top: 6px solid var(--coral);
  overflow: hidden;
}
.hero-pattern {
  min-height: inherit;
  background-image: url("assets/ppt-image2.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: clamp(34px, 6vw, 74px) clamp(24px, 6vw, 80px);
  text-align: center;
}
.hero .eyebrow {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--coral-deep); }
.hero .subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--blue);
  font-weight: 600;
  margin: 0 0 8px;
}
.hero .meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  background: color-mix(in srgb, var(--blue-pale) 70%, white);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  color: var(--ink);
  margin-top: 14px;
}
.hero .meta strong { color: var(--coral-deep); }

@media (max-width: 820px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .hero-pattern {
    min-height: 240px;
  }
  .hero-content {
    padding: 34px 20px 24px;
  }
}

/* ---------- Day toggle ---------- */
.day-toggle {
  display: flex;
  justify-content: center;
  margin: 36px auto 8px;
  padding: 0 20px;
}
.day-toggle__group {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.day-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.day-btn[aria-selected="true"] {
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow);
}
.day-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Layout grid (TOC + content) ---------- */
.layout {
  max-width: var(--maxw);
  margin: 8px auto 0;
  padding: 16px 24px 40px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; gap: 20px; }
}
.layout--single { grid-template-columns: 1fr; }

/* sticky TOC */
.toc {
  position: sticky;
  top: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  font-size: 14px;
  backdrop-filter: blur(6px);
}
.toc h2 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink);
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.toc a:hover { background: var(--blue-pale); text-decoration: none; }
.toc a.is-active {
  background: rgba(168, 195, 204, 0.28);
  border-left-color: var(--coral);
  color: var(--coral-deep);
  font-weight: 600;
}
@media (max-width: 820px) {
  .toc {
    position: static;
    overflow-x: auto;
  }
  .toc ol { flex-direction: row; flex-wrap: nowrap; gap: 8px; }
  .toc a { white-space: nowrap; }
}

/* ---------- Program content ---------- */
.program { min-width: 0; }

.program-title {
  margin: 0 0 24px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 32px;
  color: var(--coral-deep);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.section {
  margin: 0 0 28px;
  padding: 22px 24px 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.section--accent { border-left: 0; }
.section--break {
  background: rgba(168, 195, 204, 0.78);
  border-color: transparent;
  text-align: center;
  padding: 22px;
  box-shadow: none;
}
.section--break h3 {
  margin: 0;
  font-size: 18px;
  color: var(--blue);
}
.section--break-inline h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  white-space: nowrap;
}
.section--break .time {
  display: inline-block;
  background: #fff;
  color: var(--coral-deep);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-size: 14px;
}
.section--break-inline .time {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.section-head .time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--coral-deep);
  font-size: 15px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 6px;
}
.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.section-head .moderators {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
}
.section-head .moderators strong { color: var(--ink-soft); font-weight: 700; }

/* talk item */
.talk {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.talk:last-child { border-bottom: 0; }
.talk__time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--coral-deep);
  font-size: 14px;
  padding-top: 1px;
}
.talk__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 4px;
  color: var(--ink);
}
.talk__title .speaker { color: var(--ink); }
.talk__title .topic   { color: var(--ink); font-weight: 700; }
.talk__bio {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.talk__bio strong {
  color: var(--ink);
  font-weight: 800;
}
.moderator-block {
  margin: 18px 0 6px;
  padding: 10px 14px;
  background: var(--cream);
  border-left: 0;
  border-radius: 18px;
  font-size: 13px;
  color: var(--blue);
}
.moderator-block strong { color: var(--ink-soft); }

@media (max-width: 560px) {
  .talk { grid-template-columns: 1fr; gap: 4px; }
  .talk__time { font-size: 13px; }
  .section { padding: 16px 16px 6px; }
  .section-head h2 { font-size: 18px; }
}

/* ---------- Day 2 placeholder ---------- */
.placeholder {
  text-align: center;
  padding: 60px 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px dashed var(--blue-soft);
  border-radius: 32px;
}
.placeholder__mark {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--coral);
  color: var(--coral-deep);
  font-weight: 800;
}
.placeholder h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--ink);
}
.placeholder p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--cream);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 28px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}
.footer-logo {
  width: min(150px, 42vw);
  height: auto;
  margin: 0 auto 12px;
  object-fit: contain;
}
.footer-inner small { display: block; margin-top: 0; opacity: 0.7; }

/* Visually hidden helper for accessible labels */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Hide panels not in use */
[hidden] { display: none !important; }
