:root {
  --ink: #101828;
  --muted: #64748b;
  --line: #d9e2ef;
  --paper: #ffffff;
  --soft: #f5f8fc;
  --navy: #16095f;
  --blue: #3f70cb;
  --cyan: #00a3c7;
  --coral: #ef6a4d;
  --green: #28a67a;
  --gold: #f3b23c;
  --shadow: 0 18px 50px rgba(20, 38, 74, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  width: clamp(152px, 18vw, 250px);
  padding: 8px 12px;
  background: #fff;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 15px;
  font-weight: 700;
}

.main-nav > a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}

.nav-item {
  position: relative;
}

.has-mega > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: 170px repeat(3, minmax(160px, 1fr));
  gap: 22px;
  width: min(940px, calc(100vw - 36px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.mega-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: var(--soft);
}

.mega-poster img,
.mega-wide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.mega-column a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.mega-wide-image {
  overflow: hidden;
  align-self: start;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--soft);
}

.mini-mega .mega-menu {
  grid-template-columns: minmax(210px, 1fr);
  width: 300px;
  left: 0;
  transform: translate(0, 8px);
}

.mini-mega:hover .mega-menu,
.mini-mega:focus-within .mega-menu {
  transform: translate(0, 0);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 24px rgba(239, 106, 77, 0.28);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: #0b1130;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 30, 0.86), rgba(8, 12, 30, 0.42), rgba(8, 12, 30, 0.12)),
    linear-gradient(0deg, rgba(8, 12, 30, 0.42), rgba(8, 12, 30, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  padding: 28vh 0 16vh clamp(20px, 6vw, 88px);
}

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

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
}

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

.hero-contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
  margin-top: 28px;
}

.hero-contacts > a,
.hero-contacts > div {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-contacts span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 30px;
  padding: 0;
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 5vw, 64px);
  bottom: 44px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 42px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

.banner-section {
  padding: 34px clamp(18px, 4vw, 56px);
  background: #fff;
}

.banner-shell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 14px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.banner-window {
  overflow: hidden;
}

.banner-track {
  display: flex;
  gap: 16px;
  transform: translateX(calc(var(--banner-index, 0) * -25%));
  transition: transform 500ms ease;
}

.banner-slide {
  flex: 0 0 calc(25% - 12px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slick-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto 32px;
}

.section-heading h2 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading a {
  color: var(--blue);
  font-weight: 900;
}

.events-section,
.studios-section {
  background: var(--soft);
}

.news-grid,
.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.news-card,
.branch-grid article,
.studio-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.event-list {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
}

.event-row {
  display: grid;
  grid-template-columns: 128px 120px minmax(0, 1fr) 168px;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 4px solid var(--line);
}

.event-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(12, 20, 40, 0.18);
}

.event-time {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 112px;
  padding-left: 20px;
  border-left: 6px solid var(--coral);
}

.event-time span {
  display: block;
  color: var(--navy);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

.event-time small,
.event-time time {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-info h3 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 40px);
}

.event-info p:last-child {
  max-width: 720px;
  margin: 0;
  font-size: 17px;
}

.event-actions {
  display: grid;
  gap: 10px;
}

.ticket-button,
.details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
}

.ticket-button {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 24px rgba(239, 106, 77, 0.2);
}

.details-button {
  color: var(--blue);
  border: 1px solid var(--line);
  background: #fff;
}

.tag {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

.event-row a,
.branch-grid a {
  font-weight: 900;
}

.history-section {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  color: #fff;
  background: #2f2417;
}

.history-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 234, 180, 0.22), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(72, 42, 20, 0.58), transparent 42%),
    linear-gradient(90deg, rgba(35, 24, 14, 0.88), rgba(70, 43, 22, 0.58), rgba(36, 24, 14, 0.3)),
    url("assets/building.png") center / cover;
  filter: sepia(0.92) saturate(0.7) contrast(1.12) brightness(0.78);
  opacity: 1;
}

.history-bg::before,
.history-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.history-bg::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(54, 32, 14, 0.06) 0 1px, transparent 1px 7px);
  mix-blend-mode: soft-light;
}

.history-bg::after {
  background:
    radial-gradient(circle at center, transparent 48%, rgba(20, 12, 6, 0.52) 100%),
    linear-gradient(180deg, rgba(255, 231, 176, 0.15), rgba(59, 34, 15, 0.2));
}

.history-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 0 clamp(0px, 8vw, 120px);
}

.history-content h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1;
}

.history-content p:not(.eyebrow) {
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
}

.news-lead {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.news-lead img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.news-lead div {
  padding: clamp(24px, 4vw, 42px);
}

.news-lead h3 {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
}

.news-lead p {
  color: rgba(255, 255, 255, 0.78);
}

.news-card {
  padding: 26px;
}

.age-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto 18px;
}

.age-tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.age-tabs button.is-active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.studio-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.studio-card {
  display: grid;
  grid-template-rows: 160px 1fr;
  overflow: hidden;
}

.studio-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: saturate(0.85);
}

.studio-card div {
  display: grid;
  align-content: start;
  padding: 20px;
}

.studio-card h3 {
  font-size: 21px;
}

.studio-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding-left: 20px;
}

.studio-card li {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.is-hidden {
  display: none;
}

.age-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin-top: auto;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.branches-section {
  color: #fff;
  background: var(--navy);
}

.branches-section .section-heading h2,
.branches-section .section-heading a {
  color: #fff;
}

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

.branch-grid article {
  min-height: 260px;
  padding: clamp(28px, 4vw, 42px);
  color: var(--ink);
}

.team-section {
  background: var(--soft);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.team-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--line);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin: 18px 18px 8px;
  font-size: 21px;
}

.team-card p {
  min-height: 72px;
  margin: 0;
  padding: 0 18px 20px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-weight: 900;
}

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

  .main-nav {
    display: none;
  }

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

  .event-row {
    grid-template-columns: 112px 104px minmax(0, 1fr);
  }

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

  .hero-contacts {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .banner-track {
    transform: translateX(calc(var(--banner-index, 0) * -50%));
  }

  .banner-slide {
    flex-basis: calc(50% - 8px);
  }

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

  .news-lead {
    grid-column: span 2;
  }

  .news-lead {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    width: 150px;
  }

  .hero-content {
    width: 100%;
    padding: 20vh 18px 14vh;
  }

  .hero-dots {
    right: auto;
    left: 18px;
    bottom: 28px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .news-grid,
  .studio-card-grid,
  .branch-grid {
    grid-template-columns: 1fr;
  }

  .banner-shell {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .banner-track {
    transform: translateX(calc(var(--banner-index, 0) * -100%));
  }

  .banner-slide {
    flex-basis: 100%;
  }

  .slick-arrow {
    width: 38px;
    height: 38px;
  }

  .history-content {
    margin: 0;
  }

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

  .news-lead {
    grid-column: auto;
  }

  .event-row {
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: start;
  }

  .event-poster {
    grid-row: 1;
  }

  .event-time {
    min-height: auto;
    padding-left: 14px;
  }

  .event-time span {
    font-size: 36px;
  }

  .event-info,
  .event-actions {
    grid-column: 1 / -1;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }
}
