@font-face {
  font-family: "Instrument Sans";
  src: url("../apps/rota-antrix/assets/instrumentsans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../apps/rota-antrix/assets/bricolagegrotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #10162d;
  --ink: #161e34;
  --blue: #00a2ff;
  --blue-light: #8dd5ff;
  --blue-text: #005a96;
  --orange: #e69138;
  --muted: #4e5970;
  --line: #dce2ec;
  --surface: #f5f7fb;
  font: 16px/1.55 "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { display: flex; min-height: 100vh; flex-direction: column; margin: 0; }
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #1688e2; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.047em;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.7rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.24rem, 2.2vw, 1.55rem); letter-spacing: -.025em; }
.wrap { width: min(1190px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.header {
  border-bottom: 1px solid #ffffff19;
  color: white;
  background: var(--navy);
}
.navbar, .foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  padding-block: 15px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 800 1.6rem/1 "Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing: -.069em;
  text-decoration: none;
}
.brand-mark {
  width: 19px;
  height: 21px;
  background: var(--blue);
  clip-path: polygon(50% 0,100% 100%,72% 100%,50% 51%,28% 100%,0 100%);
}
nav { display: flex; flex-wrap: wrap; gap: 5px; }
nav a {
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  color: #dce6f7;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover, nav a[aria-current] { color: white; background: #ffffff15; }
nav a[aria-current] { box-shadow: inset 0 -2px var(--blue); }
.footer { color: #e0e9fa; background: var(--navy); }
.foot-inner { padding-block: 24px; }
.footer-email { font-size: .91rem; overflow-wrap: anywhere; }

.button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: white;
  background: var(--navy);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.button:hover { filter: brightness(1.1); }
.button.primary { color: #08172c; background: var(--blue); }
.button.outline { color: var(--ink); background: transparent; border-color: #cbd4e2; }
.button.ghost { color: white; background: #ffffff08; border-color: #ffffff6e; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.section { padding-block: clamp(42px, 7vw, 86px); }
.section-title { margin-bottom: 23px; }
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 15px; background: white; }
.card p { margin-top: 10px; color: var(--muted); }
.card h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
.area { display: flex; align-items: flex-start; flex-direction: column; text-decoration: none; }
.area:hover { border-color: #168ddd; }
.area-line { width: 34px; height: 4px; margin-bottom: 18px; border-radius: 4px; background: var(--blue); }
.area:nth-of-type(2) .area-line { background: var(--orange); }
.area:nth-of-type(3) .area-line { background: #5261ce; }
.jump { margin-top: auto; padding-top: 17px; color: var(--blue-text); font-weight: 700; }

.home {
  padding: clamp(29px, 4.8vw, 61px) 0 29px;
  color: white;
  background: radial-gradient(ellipse at 85% -15%, #243b62 0, transparent 58%), var(--navy);
}
.home-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px 45px;
  margin-bottom: clamp(24px, 4.2vw, 40px);
}
.home-intro h1 { font-size: clamp(2.55rem, 5.95vw, 5.25rem); }
.home-intro em { color: var(--blue-light); font-style: normal; }
.home-intro > p {
  flex: 0 1 33ch;
  padding: 0 0 6px;
  color: #d3def2;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}
.carousel {
  overflow: hidden;
  border: 1px solid #ffffff32;
  border-radius: 24px;
  background: #192742;
}
.feature {
  min-height: 368px;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  background: #162848;
}
.feature-course { background: #242547; }
.feature-karaoke { background: #1c285a; }
.feature-routes { background: #153343; }
.feature-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(25px, 4.4vw, 55px);
}
.category {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.feature-copy .category { margin: 0 0 14px; color: var(--blue-light); }
.feature-course .category { color: #ffcc9a; }
.feature-routes .category { color: #9aebec; }
.feature-copy h2 { max-width: 15ch; font-size: clamp(2rem, 3.95vw, 3.8rem); }
.feature-copy > p:not(.category) { max-width: 41ch; margin-top: 14px; color: #e1ebfb; }
.feature-copy .button { margin-top: 22px; }
.feature-image { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.carousel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 12px clamp(12px, 2.7vw, 24px);
  border-top: 1px solid #ffffff28;
}
.slide-selectors, .slide-arrows { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.slide-selectors button, .slide-arrows button {
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d8e5fa;
  background: transparent;
  font-size: .86rem;
  font-weight: 600;
}
.slide-selectors button:hover, .slide-arrows button:hover { color: white; background: #ffffff20; }
.slide-selectors button[aria-pressed="true"] { border-color: #8dd5ff73; color: white; background: #8dd5ff14; }
.slide-arrows button { width: 42px; padding: 0; border-color: #ffffff44; font-size: 1.18rem; }
.slide-arrows #slide-rotation { width: auto; padding-inline: 11px; font-size: .86rem; }
.explore { padding-top: clamp(30px, 5vw, 66px); }

.page-top {
  overflow: hidden;
  padding-block: clamp(44px, 7.5vw, 92px);
  color: white;
  background: radial-gradient(ellipse at 80% 0%, #263a66, transparent 70%), var(--navy);
}
.page-top h1 { max-width: 16ch; }
.page-top p { max-width: 58ch; margin-top: 18px; color: #d5def0; font-size: 1.1rem; }
.page-top .actions { margin-top: 22px; }
.return { display: inline-block; margin-bottom: 17px; color: #cef0ff; font-size: .92rem; }
.app-card { padding: 0; overflow: hidden; }
.app-card > img { width: 100%; height: clamp(175px, 22vw, 258px); object-fit: cover; }
.app-card-body { padding: clamp(19px, 3vw, 30px); }
.app-card .actions { margin-top: 20px; }
.app-detail { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(25px, 5vw, 65px); }
.app-detail img { width: 100%; max-height: 330px; object-fit: cover; border-radius: 16px; }

.brief-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 26px; }
.subsection { margin-top: 24px; }
form label { display: block; margin-bottom: 6px; font-size: .94rem; font-weight: 700; }
input, textarea, select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #bfcadc;
  border-radius: 7px;
  color: var(--ink);
  background: white;
}
textarea { min-height: 86px; resize: vertical; }
.field + .field { margin-top: 13px; }
.form-actions { margin-top: 15px; }
.status { margin-top: 9px; color: var(--muted); font-size: .91rem; }
.status:empty { display: none; }
#brief-result { margin-top: 11px; }

.course { background: #fbf9f5; }
.course-hero {
  background: radial-gradient(ellipse at 90% 20%, #f4dabf 0, transparent 67%), #fbf0df;
  border-bottom: 1px solid #e9d9c7;
}
.course-hero-inner {
  min-height: 575px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(26px, 6.5vw, 87px);
  padding-block: clamp(35px, 6.4vw, 82px);
}
.course-lead > .category { margin-bottom: 15px; color: #884918; }
.course-lead h1 { font-size: clamp(2.72rem, 6vw, 5.65rem); }
.course-lead h1 em { color: #914b18; font-style: normal; }
.course-lead > p:not(.category) { max-width: 43ch; margin-top: 19px; color: #37415b; font-size: clamp(1rem, 1.75vw, 1.2rem); }
.course-lead .actions { margin-top: 24px; }
.course-lead p.course-audience { margin-top: 13px; font-size: .9rem; }
.course-button { min-height: 50px; padding-inline: 19px; color: white; background: #142846; }
.course-portrait {
  overflow: hidden;
  margin: 0;
  border: 1px solid #78502b45;
  border-radius: 22px;
  background: #fffdf9;
  box-shadow: 0 18px 45px #6138151c;
}
.course-portrait img {
  width: 100%;
  height: clamp(280px, 32.5vw, 445px);
  object-fit: cover;
  object-position: center 35%;
}
.course-portrait figcaption { display: flex; flex-direction: column; gap: 3px; padding: 16px 20px; }
.course-portrait figcaption strong { font: 750 1.28rem/1.15 "Bricolage Grotesque", system-ui, sans-serif; }
.course-portrait figcaption span { color: #4b5972; font-size: .91rem; }
.section-intro { margin-bottom: 24px; }
.section-intro p { max-width: 58ch; margin-top: 10px; color: #4e5970; }
.course-step { border-top: 3px solid var(--orange); }
.course-band { padding-block: clamp(27px, 5vw, 55px); color: white; background: #142846; }
.course-about {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 13px 40px;
}
.course-about p { max-width: 63ch; color: #dce7f7; font-size: 1.06rem; }
.course-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; gap: 19px 38px; }
.course-questions h2 { margin-bottom: 19px; }
details { border-top: 1px solid #d8cfbf; }
details:last-child { border-bottom: 1px solid #d8cfbf; }
summary { padding: 13px 5px; cursor: pointer; font-weight: 700; }
details p { padding: 0 5px 15px; color: #4e5970; }
.course-invite { padding: clamp(22px, 3.7vw, 39px); border: 1px solid #eedac0; border-radius: 15px; background: #faeddc; }
.course-invite h2 { font-size: clamp(1.65rem, 3.5vw, 2.55rem); }
.course-invite p { margin: 9px 0 18px; color: #4e5970; }

@media (max-width: 820px) {
  .wrap { width: calc(100% - 40px); }
  .home-intro { align-items: start; flex-direction: column; gap: 12px; }
  .home-intro > p { flex: auto; max-width: 52ch; padding: 0; }
  .wide-only { display: none; }
  .feature { min-height: 340px; }
  .course-hero-inner { gap: 27px; }
}
@media (max-width: 690px) {
  .feature, .course-hero-inner, .course-about, .course-bottom, .app-detail, .brief-grid { grid-template-columns: minmax(0, 1fr); }
  .grid.three { grid-template-columns: minmax(0, 1fr); }
  .feature-image { height: clamp(190px, 50vw, 295px); }
  .course-hero-inner { min-height: 0; }
  .course-portrait img { height: clamp(255px, 63vw, 390px); }
}
@media (max-width: 530px) {
  .wrap { width: calc(100% - 30px); }
  .navbar { justify-content: flex-start; padding-block: 13px; }
  .navbar nav { flex-basis: 100%; }
  nav a { padding: 7px 9px; font-size: .86rem; }
  .grid.two { grid-template-columns: minmax(0, 1fr); }
  .carousel { border-radius: 17px; }
  .slide-selectors button { min-height: 38px; padding: 5px 8px; }
  .slide-arrows button { min-height: 38px; }
  .feature-copy { padding: 22px; }
  .course-audience { max-width: 100%; }
}
