:root {
  --ink: #18212b;
  --muted: #66707d;
  --line: #dfe3ea;
  --surface: #f6f4ef;
  --panel: #fffaf1;
  --storm: #101820;
  --teal: #244f5e;
  --gold: #c79d4b;
  --gold-soft: #f2e7ce;
  --rose: #9d3d50;
  --shadow: 0 18px 48px rgba(25, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 330px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 14px 28px;
  background: rgba(246, 244, 239, 0.92);
  border-bottom: 1px solid rgba(223, 227, 234, 0.9);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 318px;
  height: 116px;
  object-fit: contain;
  display: block;
}

nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.portal-link,
.primary,
.secondary,
.language-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 900;
}

.portal-link,
.primary {
  background: var(--storm);
  color: white;
  border: 1px solid var(--storm);
}

.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.language-toggle {
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  cursor: pointer;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  padding: 80px 28px 48px;
  background: #111820;
}

.hero-bg {
  position: absolute;
  inset: 0;
  filter: saturate(0.92);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, 0.9), rgba(6, 8, 12, 0.46) 46%, rgba(6, 8, 12, 0.18)),
    linear-gradient(0deg, rgba(6, 8, 12, 0.46), rgba(6, 8, 12, 0.04) 48%, rgba(6, 8, 12, 0.24));
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 620px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.55;
}

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

.hero-dots {
  display: flex;
  gap: 9px;
  margin-top: 28px;
}

.hero-dots span {
  width: 34px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.34);
  transition: background 220ms ease, width 220ms ease;
}

.hero-dots span.is-active {
  width: 54px;
  background: var(--gold);
}

.band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transform: translateY(-28px);
}

.stats article,
.section,
.event-grid article,
.feature-list div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.stats article {
  padding: 18px;
}

.stats span,
.feature-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stats strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 32px auto;
  padding: 34px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-grid article {
  position: relative;
  padding: 24px;
  display: grid;
  gap: 15px;
  align-content: start;
  min-height: 300px;
  overflow: hidden;
}

.event-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #d8a35e, #2f827d);
}

.event-grid h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.08;
}

.event-grid p,
.about p:not(.eyebrow),
.contact p,
.split p {
  color: var(--muted);
  line-height: 1.7;
}

.event-grid span {
  color: var(--teal);
  font-weight: 900;
}

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef6f5;
  color: #28615d;
  font-size: 13px;
  line-height: 1.2;
}

.event-action-row {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.event-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.event-type {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: #7b5a1d;
  font-size: 12px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.studio-portal-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(26, 31, 36, 0.1);
  border-radius: 10px;
  background: linear-gradient(135deg, #fffaf1, #f6f0e5);
  box-shadow: 0 18px 44px rgba(26, 31, 36, 0.08);
}

.studio-portal-strip div {
  display: grid;
  gap: 8px;
}

.studio-portal-strip h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.studio-portal-strip p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.studio-portal-strip .secondary {
  flex: 0 0 auto;
  border-color: rgba(26, 31, 36, 0.14);
  color: var(--ink);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list div {
  padding: 18px;
  box-shadow: none;
}

.feature-list strong {
  display: block;
  margin-bottom: 6px;
}

.about {
  background:
    radial-gradient(circle at 92% 12%, rgba(47, 130, 125, 0.12), transparent 30%),
    linear-gradient(135deg, #fffaf1, #ffffff);
  padding: 48px 54px;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  align-content: center;
  align-items: center;
  gap: 34px;
}

.about h2 {
  max-width: 760px;
}

.about p:not(.eyebrow) {
  max-width: 880px;
}

.about-points {
  display: grid;
  gap: 12px;
}

.about-points span {
  display: block;
  padding: 14px 16px;
  border-left: 4px solid #d8a35e;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(26, 31, 36, 0.07);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 36px auto 0;
  padding: 24px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 18px;
  }

  .brand img {
    width: min(280px, 100%);
    height: auto;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  nav {
    justify-content: flex-start;
    overflow: auto;
  }

  .stats,
  .event-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .studio-portal-strip {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .contact,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
.admin-toggle {
  border: 1px solid rgba(219, 174, 109, 0.42);
  border-radius: 8px;
  padding: 11px 15px;
  background: #191f24;
  color: #fff7e7;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-dialog {
  width: min(880px, calc(100vw - 28px));
  max-height: 92vh;
  border: 0;
  border-radius: 12px;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  overflow: auto;
}

.admin-dialog::backdrop {
  background: rgba(6, 8, 12, 0.62);
  backdrop-filter: blur(3px);
}

.admin-panel {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.admin-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.admin-tab.is-active {
  background: #191f24;
  color: #fff7e7;
  border-color: rgba(219, 174, 109, 0.54);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: grid;
}

.admin-head,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.export-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.import-settings-label {
  cursor: pointer;
}

.import-settings-label input {
  display: none;
}

.admin-head h2 {
  font-size: 30px;
}

.icon-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.admin-note {
  color: var(--muted);
  line-height: 1.6;
}

.admin-section {
  display: grid;
  gap: 18px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.admin-section.admin-tab-panel {
  display: none;
}

.admin-section.admin-tab-panel.is-active {
  display: grid;
}

.admin-subsection {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.admin-subsection h3 {
  font-size: 18px;
}

.admin-fields {
  display: grid;
  gap: 14px;
}

.admin-fields.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-fields label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.admin-fields input,
.admin-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  resize: vertical;
}

.schedule-admin-list {
  display: grid;
  gap: 14px;
}

.schedule-admin-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.schedule-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-actions {
  display: flex;
  gap: 8px;
}

.mini-actions button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.admin-slides,
.admin-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.admin-slides label {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-weight: 900;
}

.admin-slides input {
  width: 100%;
  font: inherit;
  color: var(--muted);
}

.admin-previews article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0d11;
}

.admin-previews img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.admin-previews span {
  display: block;
  padding: 10px 12px;
  color: #fff7e7;
  font-size: 13px;
  font-weight: 900;
}

.gallery-actions {
  padding: 0 10px 10px;
}

.gallery-actions button:last-child {
  color: #8b1d1d;
}

.hero-tagline {
  margin-top: 14px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.gallery-section {
  background: #0d1116;
  color: white;
}

.gallery-section .section-head h2 {
  color: white;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.photo-strip figure {
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #07090c;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 700ms ease;
}

.photo-strip figure:hover img {
  transform: scale(1.04);
}

.event-grid article {
  position: relative;
  overflow: hidden;
}

.event-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gold);
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.connect-section {
  background: #0d1116;
  color: white;
}

.connect-section .section-head h2 {
  color: white;
}

.connect-card {
  display: grid;
  grid-template-columns: minmax(380px, 1.3fr) minmax(320px, 0.7fr);
  gap: 32px;
  align-items: stretch;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 160, 105, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.contact-panel {
  display: grid;
  align-content: center;
  gap: 26px;
  padding: 8px 18px 8px 0;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
  max-width: 560px;
}

.contact-panel .primary {
  justify-self: start;
  border-radius: 999px;
  padding: 16px 20px;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0;
}

.contact-media {
  display: grid;
  align-content: center;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

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

.social-grid article {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 0;
  min-height: 0;
  text-align: center;
}

.connect-section .social-grid article {
  background: transparent;
  color: white;
}

.social-grid img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.social-grid article > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.social-grid p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.4;
  font-size: 12px;
  margin: 0;
}

.social-grid strong {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.connect-section .event-type {
  display: none;
}

.connect-section .social-grid h3 {
  color: white;
  font-size: 15px;
}

.connect-section .event-register {
  color: #f6c9a1;
  justify-self: center;
  padding: 0;
  background: transparent;
}

.rule-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.rule-card p {
  color: var(--muted);
  line-height: 1.65;
}

.partners-section {
  background: #fffdf8;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.partners-grid article {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.partners-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-status {
  width: fit-content;
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e9f1f0;
  color: #28615d;
  font-size: 12px;
  font-weight: 900;
}

.event-status.status-open {
  background: #e3f5e8;
  color: #226238;
}

.event-status.status-closed {
  background: #f3e4df;
  color: #8b2c1f;
}

.event-register {
  width: fit-content;
  border-radius: 999px;
  padding: 11px 14px;
  background: #191f24;
  color: #fff7e7;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.event-register:hover {
  background: #2f827d;
}

.admin-fields select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.admin-fields .inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: end;
  min-height: 44px;
}

.admin-fields .inline-check input {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
  }

  .brand img {
    width: min(240px, 72vw);
  }

  nav {
    justify-content: flex-start;
    gap: 16px;
    padding-bottom: 2px;
    font-size: 13px;
  }

  .header-actions {
    gap: 8px;
  }

  .portal-link,
  .primary,
  .secondary,
  .language-toggle,
  .admin-toggle {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 78vh;
    padding: 54px 20px 38px;
  }

  .hero-bg::after {
    background:
      linear-gradient(90deg, rgba(6, 8, 12, 0.88), rgba(6, 8, 12, 0.42) 62%, rgba(6, 8, 12, 0.2)),
      linear-gradient(0deg, rgba(6, 8, 12, 0.62), rgba(6, 8, 12, 0.05) 52%, rgba(6, 8, 12, 0.2));
  }

  h1 {
    font-size: 42px;
    line-height: 1;
  }

  h2 {
    font-size: 30px;
  }

  .lead {
    margin-top: 16px;
    font-size: 16px;
  }

  .hero-tagline {
    font-size: 14px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .band,
  .section,
  .studio-portal-strip,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: translateY(-18px);
  }

  .stats article {
    padding: 15px;
  }

  .stats strong {
    font-size: 22px;
  }

  .section {
    margin: 24px auto;
    padding: 24px;
  }

  .section-head {
    display: grid;
    align-items: start;
    gap: 8px;
  }

  .about {
    grid-template-columns: 1fr;
    padding: 36px 26px;
    min-height: 0;
    gap: 24px;
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .event-grid article {
    min-height: 0;
  }

  .rules-list {
    grid-template-columns: 1fr;
  }

  .connect-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }

  .contact-panel {
    padding: 0;
  }

  .contact-panel .primary {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 17px;
  }

  .contact-media {
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .social-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .social-grid img {
    width: min(100px, 100%);
    height: auto;
    align-self: center;
  }

  .photo-strip figure {
    min-height: 220px;
  }

  .admin-slides,
  .admin-previews,
  .admin-fields.two-col {
    grid-template-columns: 1fr;
  }

  .admin-dialog {
    width: calc(100vw - 18px);
    max-height: 94vh;
  }

  .admin-panel {
    padding: 20px;
    gap: 16px;
  }

  .admin-head,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions button {
    width: 100%;
  }

  .admin-head .icon-close {
    align-self: flex-end;
  }
}
