:root {
  --ink: #101c2c;
  --ink-soft: #3f4f65;
  --paper: #f8f0e3;
  --panel: #fffaf4;
  --line: #e9dcc8;
  --brand: #b86f16;
  --brand-dark: #6f420f;
  --accent: #274d63;
  --accent-soft: #fff1d5;
  --sky: #e9f0f1;
  --shadow: 0 18px 45px rgba(16, 28, 44, 0.14);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper) 0%, #fff 58%, var(--sky) 100%);
  line-height: 1.65;
}

a { color: var(--brand); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-dark); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 223, 209, 0.85);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: white;
  box-shadow: 0 12px 24px rgba(184, 111, 22, 0.24);
}

.brand-small { display: block; font-size: 0.76rem; color: var(--ink-soft); font-weight: 600; line-height: 1; }

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  background: var(--ink);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-dark);
  background: rgba(184, 111, 22, 0.12);
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  color: #fff;
  background-image: linear-gradient(180deg, rgba(8, 16, 28, 0.44) 0%, rgba(8, 16, 28, 0.22) 46%, rgba(8, 16, 28, 0.58) 100%), url("../img/home-background.jpg"), url("../img/prague-skyline.svg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  margin-bottom: 3rem;
}

.hero-content {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0 4rem;
}

.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;
}

.hero-logo-wrap {
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-logo {
  width: min(340px, 68vw);
  max-height: 56vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.62));
}

.intro-card {
  border-top: 5px solid var(--brand);
}

.intro-card p {
  font-size: clamp(1.08rem, 2vw, 1.24rem);
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 900px;
  margin: 1.2rem 0 1rem;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.hero .lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary { background: #fff; color: var(--brand-dark); }
.button.secondary { border-color: rgba(255, 255, 255, 0.32); color: #fff; background: rgba(255, 255, 255, 0.10); }
.button.plain { background: var(--brand); color: #fff; }

main {
  min-height: 60vh;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.page-title {
  padding: 3.25rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.page-title h1,
.section h2,
.card h2,
.card h3,
.committee-card h2 {
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
}

.page-title p {
  max-width: 760px;
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card,
.notice,
.committee-card,
.speaker-card,
.paper-list,
.schedule-day,
.map-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(231, 223, 209, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.notice,
.committee-card,
.speaker-card,
.paper-list,
.schedule-day,
.map-card { padding: clamp(1.15rem, 3vw, 1.65rem); }

.card h2,
.card h3,
.committee-card h2,
.schedule-day h2 { margin-top: 0; }

.card p:last-child,
.notice p:last-child { margin-bottom: 0; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(184, 111, 22, 0.22);
  background: rgba(184, 111, 22, 0.10);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.dates-list,
.clean-list,
.topic-list,
.committee-list,
.paper-list ol,
.schedule-list {
  padding-left: 1.2rem;
}

.dates-list li,
.clean-list li,
.topic-list li,
.committee-list li,
.paper-list li,
.schedule-list li {
  margin: 0.35rem 0;
}

.date-grid {
  display: grid;
  gap: 0.85rem;
}

.date-item {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf2;
}

.date-item strong { color: var(--brand-dark); }

.section { margin-top: 2.3rem; }

.topic-list {
  columns: 2;
  column-gap: 2.2rem;
}

.committee-card h2 span {
  color: var(--accent);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.35rem;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.speaker-card { text-align: center; }

.speaker-photo {
  width: 148px;
  height: 148px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 2.5rem;
  background: radial-gradient(circle at 35% 25%, #fff 0 18%, #f9d48d 19% 38%, #274d63 39% 100%);
  border: 7px solid #fff;
  box-shadow: 0 16px 28px rgba(16, 28, 44, 0.20);
}

.paper-list ol { margin-bottom: 0; }

.schedule-day { margin-bottom: 1.25rem; }
.schedule-time { font-weight: 900; color: var(--brand-dark); }

.map-card iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 18px;
}

.footer-banner {
  margin-top: 2rem;
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.organizers-title {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
  margin-bottom: 0.85rem;
}

.organizers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.organizer {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.org-logo {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-weight: 900;
}

.org-name { font-weight: 850; }
.org-note { color: rgba(255,255,255,0.66); font-size: 0.9rem; }

.footer-meta {
  margin-top: 1rem;
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    display: none;
    padding: 0.75rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { justify-content: flex-start; }
  .grid.two,
  .grid.three,
  .speakers-grid,
  .sponsor-grid,
  .organizers { grid-template-columns: 1fr; }
  .topic-list { columns: 1; }
}

@media (max-width: 640px) {
  .date-item { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero-content { padding-top: 5.5rem; }
  .hero-logo { width: min(285px, 72vw); }
}

/* Final update: image logo in the header, left-aligned homepage logo, and registration tables */
.brand-mark {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(39, 77, 99, 0.14);
  box-shadow: 0 10px 22px rgba(16, 28, 44, 0.12);
  overflow: hidden;
}

.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hero {
  position: relative;
  background-position: center, center, center;
}

.hero-logo-wrap {
  place-items: center start;
  text-align: left;
}

.hero-logo {
  width: min(360px, 45vw);
  margin-left: clamp(0rem, 2vw, 2rem);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fffaf2;
}

.fees-table th,
.fees-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.fees-table th {
  background: rgba(39, 77, 99, 0.10);
  color: var(--accent);
  font-weight: 900;
}

.fees-table tr:last-child td {
  border-bottom: 0;
}

.fees-table td:not(:first-child),
.fees-table th:not(:first-child) {
  text-align: center;
  font-weight: 850;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.92em;
}

.registration-cta {
  display: grid;
  gap: 0.4rem;
}

.registration-cta .button {
  width: fit-content;
  margin-top: 0.6rem;
}

@media (max-width: 900px) {
  .hero-logo-wrap { place-items: center; text-align: center; }
  .hero-logo { margin-left: 0; width: min(330px, 68vw); }
}


.hero-place {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  bottom: clamp(1rem, 5vw, 3rem);
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(16, 28, 44, 0.72);
  color: #fff;
  font-weight: 850;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.footer-meta a {
  color: #fff1d5;
}

.contact-card {
  border-left: 5px solid var(--accent);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.sponsor-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(231, 223, 209, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

.sponsor-logo {
  width: 180px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 2.3rem;
  background: #fffaf2;
  border: 1px dashed rgba(184, 111, 22, 0.35);
}

.sponsor-card-gold .sponsor-logo {
  background: linear-gradient(135deg, #fffaf2, #f9d48d);
}

@media (max-width: 640px) {
  .hero-place {
    position: static;
    width: fit-content;
    margin: 0 1rem 1rem auto;
  }
}
