@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0c0c0c;
  --bg-card: #111111;
  --accent: #fb4921;
  --accent-strong: #ff6a3a;
  --text: #f4f4f4;
  --muted: #b6b6b6;
  --border: rgba(251, 73, 33, 0.2);
  --shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at top left, rgba(251, 73, 33, 0.12), transparent 45%),
    radial-gradient(circle at 20% 40%, rgba(251, 73, 33, 0.08), transparent 40%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  background: linear-gradient(130deg, rgba(251, 73, 33, 0.06), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(251, 73, 33, 0.12), transparent 50%);
  opacity: 0.8;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

.site-header {
  position: relative;
  z-index: 5;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(251, 73, 33, 0.2);
}

.banner {
  width: 100%;
  max-height: 180px;
  overflow: hidden;
  border-bottom: 1px solid rgba(251, 73, 33, 0.2);
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(251, 73, 33, 0.25);
  background: rgba(10, 10, 10, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner.hidden {
  display: none;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  flex-wrap: wrap;
  position: relative;
}

.header-bar > * {
  position: relative;
  z-index: 1;
}

.brand-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-tagline {
  color: var(--accent);
  font-size: 0.95rem;
  margin-top: 6px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.header-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(251, 73, 33, 0.35);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.header-link.icon-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.header-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.header-link:hover {
  color: var(--accent);
  border-color: rgba(251, 73, 33, 0.6);
  background: rgba(251, 73, 33, 0.12);
}

.menu-icon {
  width: 18px;
  height: 2px;
  background: var(--accent);
  position: relative;
  display: block;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 0;
  position: relative;
  z-index: 1;
}

.sidebar {
  border-right: 1px solid rgba(251, 73, 33, 0.2);
  background: rgba(6, 6, 6, 0.9);
  padding: 24px 24px 32px;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  margin: 4px 0;
}

.nav .nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  display: block;
  flex: 1;
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(251, 73, 33, 0.16);
  color: var(--accent);
}

.nav .submenu {
  margin-left: 16px;
  border-left: 1px solid rgba(251, 73, 33, 0.2);
  padding-left: 12px;
}

.nav li.collapsible > .submenu {
  display: none;
}

.nav li.collapsible.expanded > .submenu {
  display: block;
}

.submenu-toggle {
  border: 1px solid rgba(251, 73, 33, 0.4);
  background: transparent;
  color: var(--accent);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.submenu-toggle:hover {
  background: rgba(251, 73, 33, 0.16);
  color: var(--accent-strong);
}

.nav .submenu a {
  font-size: 0.95rem;
  color: var(--muted);
}

.nav .submenu a:hover,
.nav .submenu a.active {
  color: var(--accent);
}

.sidebar-footer {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.content {
  padding: 40px clamp(24px, 4vw, 80px) 80px;
}

.hero {
  background: linear-gradient(135deg, rgba(251, 73, 33, 0.12), rgba(17, 17, 17, 0.9));
  border: 1px solid rgba(251, 73, 33, 0.2);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow);
  margin-top: 32px;
  animation: fadeUp 0.8s ease both;
}

.hero-eyebrow {
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.hero-title {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-body {
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}

.hero-events {
  margin-top: 18px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.hero-events-block {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.9), rgba(5, 5, 5, 0.75));
  border: 1px solid rgba(251, 73, 33, 0.22);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero-events h3,
.hero-events-block h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.hero-events p {
  margin: 0;
  color: var(--muted);
}

.hero-events-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.hero-events-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(251, 73, 33, 0.15);
  padding-bottom: 4px;
}

.hero-events-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-events-list.detailed li {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(120px, 0.7fr) 2fr;
  align-items: baseline;
}

.hero-events-list .event-date {
  color: var(--text);
  font-weight: 600;
  min-width: 96px;
}

.hero-events-list .event-time {
  color: var(--accent);
  font-weight: 600;
}

.hero-events-list .event-title {
  color: var(--muted);
  text-align: right;
}

.page-agenda {
  margin-top: 24px;
}

.page-agenda .hero-events-list li {
  align-items: center;
  padding-bottom: 6px;
}

.page-agenda .hero-events-list {
  padding-left: 0;
}

.page-agenda .hero-events-list .event-date,
.page-agenda .hero-events-list .event-title {
  line-height: 1.2;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 22px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button.btn {
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.btn.icon-button {
  padding: 10px 14px;
  min-width: 44px;
}

.btn-icon {
  font-size: 1.1em;
  line-height: 1;
}

.btn-icon svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
}

.btn.primary {
  background: var(--accent);
  color: #080808;
  box-shadow: 0 12px 30px rgba(251, 73, 33, 0.4);
}

.btn.ghost {
  border: 1px solid rgba(251, 73, 33, 0.5);
  color: var(--accent);
}

.btn:hover {
  transform: translateY(-2px);
}

.scroll-top {
  position: fixed;
  right: -12px;
  bottom: calc(28px + var(--cookie-offset, 0px));
  width: 60px;
  height: 54px;
  border-radius: 999px 0 0 999px;
  border: 1px solid rgba(251, 73, 33, 0.35);
  background: rgba(9, 9, 9, 0.92);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(10px, 12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 30;
}

.scroll-top .btn-icon {
  display: inline-flex;
  margin-left: 8px;
}

.scroll-top svg {
  opacity: 0.7;
  width: 1.4em;
  height: 1.4em;
}

.scroll-top.visible {
  opacity: 1;
  transform: translate(10px, 0);
  pointer-events: auto;
}

.scroll-top.visible:hover {
  transform: translate(4px, -3px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
}

.scroll-top:focus-visible {
  outline: 2px solid rgba(251, 73, 33, 0.6);
  outline-offset: 3px;
}

.page {
  background: linear-gradient(135deg, rgba(251, 73, 33, 0.12), rgba(17, 17, 17, 0.9));
  border: 1px solid rgba(251, 73, 33, 0.2);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  min-height: 280px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
}

.page.animate {
  animation: fadeUp 0.7s ease forwards;
}

body.shell-animate .site-header {
  animation: shellFadeDown 0.45s ease both;
}

body.shell-animate .sidebar.open {
  animation: shellFadeLeft 0.45s ease both;
}

.page h2 {
  margin-top: 0;
  color: var(--accent);
}

.page p {
  line-height: 1.7;
  color: var(--muted);
  text-align: justify;
}

.page ul {
  padding-left: 20px;
  color: var(--muted);
}

.page li {
  margin: 2px 0;
}

.page .table-wrap {
  margin: 20px 0;
  overflow-x: auto;
}

.page table {
  width: 100%;
  border-collapse: collapse;
  min-width: 250px;
}

.page th,
.page td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(251, 73, 33, 0.2);
  text-align: left;
  color: var(--muted);
}

.page th {
  color: var(--text);
  border-bottom: 1px solid rgba(251, 73, 33, 0.45);
  font-weight: 600;
}

.page tbody tr:nth-child(odd) {
  background: rgba(251, 73, 33, 0.05);
}

.page img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.page .video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 20px 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: var(--shadow);
}

.page .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.instagram-embed {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.instagram-embed .instagram-media {
  margin: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 540px !important;
}

.instagram-grid {
  display: grid;
  gap: 18px;
  margin: 20px 0;
}

.instagram-grid .instagram-embed {
  margin: 0;
  justify-content: stretch;
}

.instagram-grid .instagram-media {
  max-width: 100% !important;
}

a {
  color: var(--accent);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shellFadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shellFadeLeft {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: calc(var(--header-offset, 0px) + env(safe-area-inset-top, 0px)) 0 0 0;
    height: calc(100vh - var(--header-offset, 0px) - env(safe-area-inset-top, 0px));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 10;
    padding-top: 24px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .content {
    padding: 32px 24px 80px;
  }
}

@media (max-width: 640px) {
  .header-bar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    flex-basis: 100%;
  }

  .header-links {
    width: auto;
    margin-left: 0;
    order: 2;
  }

  .menu-toggle {
    order: 3;
  }

  .content {
    padding: 24px 16px 64px;
  }

  .hero {
    padding: 24px;
  }

  .page .table-wrap {
    overflow: visible;
  }

  .page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .page thead {
    display: none;
  }

  .page tbody {
    display: block;
  }

  .page tr {
    display: block;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(251, 73, 33, 0.2);
    background: rgba(15, 15, 15, 0.9);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
    max-width: 100%;
  }

  .page th,
  .page td {
    border-bottom: none;
  }

  .page td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(251, 73, 33, 0.14);
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .page td:last-child {
    border-bottom: none;
  }

  .page td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .hero-events-list.detailed li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-events-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hero-events-list .event-title {
    text-align: left;
  }

  .page-agenda .hero-events-list li {
    align-items: flex-start;
  }

  .page-agenda .hero-events-list .event-title {
    text-align: left;
  }

  .hero-events {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cookie-banner .btn {
    width: 100%;
  }

  .scroll-top {
    right: -10px;
    bottom: calc(18px + var(--cookie-offset, 0px));
  }
}

@media (min-width: 900px) {
  .instagram-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}
