:root {
  --aubergine: #3f1763;
  --grape: #61238a;
  --orchid: #a66ad2;
  --rose: #d993a8;
  --apricot: #e8b26f;
  --mint: #9bc7b8;
  --cream: #fff8ee;
  --paper: #fffdf8;
  --ink: #261331;
  --muted: #756276;
  --line: rgba(63, 23, 99, 0.16);
  --shadow: 0 24px 70px rgba(63, 23, 99, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 14%, rgba(166, 106, 210, 0.12), transparent 23%),
    radial-gradient(circle at 92% 8%, rgba(232, 178, 111, 0.14), transparent 24%),
    linear-gradient(180deg, #fff7ec 0%, #fffdf8 46%, #fff 100%);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 11% 74%, rgba(166, 106, 210, 0.12), transparent 20%),
    radial-gradient(circle at 88% 68%, rgba(217, 147, 168, 0.12), transparent 21%);
  opacity: 0.9;
  z-index: -1;
}

body::after {
  content: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

main {
  flex: 1 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin: 10px clamp(10px, 2vw, 24px) 0;
  padding: 10px clamp(14px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 251, 244, 0.92);
  box-shadow: 0 12px 34px rgba(63, 23, 99, 0.07);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-grid;
  justify-items: center;
  color: var(--aubergine);
  line-height: 0.88;
  white-space: nowrap;
}

.brand-tl {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 4vw, 58px);
  font-style: italic;
  font-weight: 700;
}

.brand-name {
  margin-top: -7px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(24px, 2.4vw, 33px);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 34px);
  color: var(--aubergine);
  font-weight: 700;
}

.main-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.main-nav a:hover,
body[data-page="schedule"] .main-nav a[href="timeplan.html"],
body[data-page="signup"] .main-nav a[href="pamelding.html"],
body[data-page="prices"] .main-nav a[href="priser.html"],
body[data-page="news"] .main-nav a[href="nyheter.html"],
body[data-page="about"] .main-nav a[href="om-oss.html"] {
  color: var(--grape);
  border-color: var(--rose);
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.language-switch button {
  width: 42px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--aubergine);
  cursor: pointer;
  font-weight: 800;
}

.language-switch button.active {
  background: var(--aubergine);
  color: white;
}

.menu-toggle {
  display: none;
}

.studio-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 120px);
  padding: clamp(76px, 9vw, 126px) clamp(18px, 6vw, 86px) clamp(86px, 10vw, 150px);
  overflow: hidden;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  max-width: 780px;
  color: white;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--grape);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.studio-hero h1,
.page-hero h1,
.section-heading h2 {
  margin: 0;
  color: var(--aubergine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(54px, 8vw, 118px);
  font-weight: 700;
  line-height: 0.92;
}

.studio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 10, 48, 0.88) 0%, rgba(63, 23, 99, 0.64) 36%, rgba(63, 23, 99, 0.22) 72%, rgba(255, 248, 238, 0.04) 100%),
    linear-gradient(180deg, rgba(255, 248, 238, 0.04) 0%, rgba(255, 248, 238, 0.14) 52%, #fff7ec 94%, #fff7ec 100%),
    url("hero-studio-7319683.jpg") center / cover;
  z-index: -2;
}

.studio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(63, 23, 99, 0.78) 0%, rgba(63, 23, 99, 0.46) 7%, rgba(63, 23, 99, 0) 22%),
    radial-gradient(circle at 22% 42%, rgba(255, 248, 238, 0.16), transparent 28%),
    linear-gradient(180deg, transparent 42%, rgba(255, 247, 236, 0.18) 62%, rgba(255, 247, 236, 0.78) 86%, #fff7ec 100%);
  pointer-events: none;
  z-index: -1;
}

.studio-hero h1 {
  color: white;
  max-width: 760px;
  text-shadow:
    0 12px 28px rgba(21, 7, 30, 0.48),
    0 2px 4px rgba(21, 7, 30, 0.24);
}

.studio-hero h1::after {
  border-color: rgba(255, 248, 238, 0.62);
}

.studio-hero p:not(.eyebrow) {
  max-width: 620px;
  color: #fff8ef;
  text-shadow:
    0 8px 24px rgba(21, 7, 30, 0.68),
    0 2px 5px rgba(21, 7, 30, 0.5);
}

.studio-hero .button.secondary {
  background: rgba(255, 253, 248, 0.94);
}

.studio-hero h1::after,
.section-heading h2::after {
  content: "";
  display: block;
  width: min(320px, 62vw);
  height: 18px;
  margin-top: 10px;
  border-bottom: 2px solid rgba(217, 147, 168, 0.55);
  border-radius: 50%;
}

.page-hero p:not(.eyebrow),
.welcome-band p {
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 600;
  line-height: 1.6;
}

.studio-hero p:not(.eyebrow) {
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 600;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button.primary {
  background: var(--aubergine);
  color: white;
  box-shadow: 0 16px 34px rgba(63, 23, 99, 0.18);
}

.button.secondary,
.button.ghost {
  border-color: var(--line);
  background: white;
  color: var(--aubergine);
}

.button.compact {
  min-height: 40px;
  padding: 0 15px;
  font-size: 14px;
}

.welcome-band {
  margin: 24px clamp(18px, 6vw, 86px) 0;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(63, 23, 99, 0.13);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.66);
  box-shadow: 0 12px 36px rgba(63, 23, 99, 0.05);
}

.welcome-band p {
  max-width: 980px;
  margin: 0;
}

.classes-section,
.page-main {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 6vw, 86px);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2,
.page-hero.compact h1 {
  font-size: clamp(48px, 6vw, 86px);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 30px;
}

.class-card,
.form-panel,
.calculator,
.price-table-wrap,
.about-card,
.contact-card,
.schedule-shell {
  border: 1.5px solid rgba(63, 23, 99, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 42px rgba(63, 23, 99, 0.08);
}

.class-card {
  overflow: hidden;
  position: relative;
}

.class-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 92px;
  pointer-events: none;
}

.course-placeholder {
  min-height: 430px;
  display: grid;
  place-items: center;
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 64px;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(63, 23, 99, 0.18);
}

.course-image {
  display: block;
  width: 100%;
  height: 430px;
  border-bottom: 1.5px solid rgba(63, 23, 99, 0.18);
  background: #efe1f5;
  object-fit: cover;
  object-position: center;
}

.class-card:nth-child(2) .course-image {
  object-position: center 50%;
}

.class-card:nth-child(3) .course-image {
  object-position: center 50%;
}

.class-card:nth-child(4) .course-image {
  object-position: center 50%;
}

.class-card:nth-child(1) .course-image {
  object-position: center 45%;
}

.class-card:nth-child(6) .course-image {
  object-position: center 50%;
}

.class-card:nth-child(1) .course-placeholder { background: linear-gradient(135deg, #7b4bb0, #d993a8); }
.class-card:nth-child(2) .course-placeholder { background: linear-gradient(135deg, #b25180, #e8b26f); }
.class-card:nth-child(3) .course-placeholder { background: linear-gradient(135deg, #5e3f8c, #9bc7b8); }
.class-card:nth-child(4) .course-placeholder { background: linear-gradient(135deg, #8c356f, #c99ce2); }
.class-card:nth-child(5) .course-placeholder { background: linear-gradient(135deg, #365a77, #d993a8); }
.class-card:nth-child(6) .course-placeholder { background: linear-gradient(135deg, #557f72, #e8b26f); }

.card-body {
  padding: 16px 18px 18px;
  background: rgba(255, 253, 248, 0.98);
}

.card-body h3 {
  margin: 0 0 10px;
  color: var(--aubergine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  line-height: 1;
}

.card-body p {
  min-height: 66px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-actions .button.primary {
  min-width: 78px;
}

.card-actions .button.ghost {
  background: transparent;
}

.page-hero {
  max-width: 860px;
  margin-bottom: 34px;
}

.split-page {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(560px, 820px);
  gap: clamp(30px, 4vw, 64px);
  align-items: start;
  justify-content: center;
}

.split-page .page-hero {
  position: sticky;
  top: 130px;
  margin-bottom: 0;
  padding-top: 18px;
}

.split-page .page-hero h1 {
  font-size: clamp(58px, 5.5vw, 92px);
}

.split-page .page-hero p:not(.eyebrow) {
  max-width: 390px;
  font-size: clamp(17px, 1.15vw, 20px);
}

.form-panel,
.calculator,
.price-table-wrap,
.schedule-shell,
.about-card,
.contact-card {
  padding: clamp(20px, 3vw, 30px);
}

.form-panel {
  width: 100%;
  padding: clamp(24px, 2.6vw, 42px);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--aubergine);
  font-weight: 800;
}

.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 14px 15px;
  min-height: 50px;
}

textarea {
  resize: vertical;
}

.form-panel .button {
  margin-top: 20px;
}

.form-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.price-tool {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 26px;
  align-items: start;
}

.calculator {
  display: grid;
  gap: 18px;
}

.price-result {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 12px;
  background: var(--aubergine);
  color: white;
}

.price-result span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.price-result strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  line-height: 1;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-mobile-cards {
  display: none;
}

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

.price-table th {
  color: var(--aubergine);
}

.news-list {
  display: grid;
  gap: 0;
  max-width: 1040px;
  margin-inline: auto;
  border-top: 1px solid rgba(63, 23, 99, 0.16);
  border-bottom: 1px solid rgba(63, 23, 99, 0.16);
}

.news-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(63, 23, 99, 0.16);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-feed-head time {
  color: var(--aubergine);
  letter-spacing: 0;
  text-transform: none;
}

.news-feed-items {
  display: grid;
}

.news-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding: clamp(26px, 4.6vw, 48px) 0;
  border-bottom: 1px solid rgba(63, 23, 99, 0.12);
}

.news-card:last-child {
  border-bottom: 0;
}

.news-date {
  padding-top: 9px;
  color: var(--grape);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.news-copy {
  max-width: 720px;
}

.news-card h2 {
  margin: 0 0 12px;
  color: var(--aubergine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 650;
  line-height: 1.75;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 26px;
}

.about-card h2,
.contact-card h2 {
  margin: 0 0 14px;
  color: var(--aubergine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.contact-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-card a {
  color: var(--grape);
  font-weight: 800;
}

.course-page {
  width: min(1520px, 100%);
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--grape);
  font-weight: 800;
}

.back-link::before {
  content: "<";
  margin-right: 8px;
}

.course-detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(380px, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

.course-detail-image-wrap,
.course-detail-placeholder,
.course-detail-copy {
  border: 1.5px solid rgba(63, 23, 99, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 42px rgba(63, 23, 99, 0.08);
  overflow: hidden;
}

.course-detail-image {
  display: block;
  width: 100%;
  height: min(620px, 64vh);
  object-fit: cover;
  object-position: center;
}

body[data-course="bachata"] .course-detail-image {
  object-position: center 50%;
}

body[data-course="lady-style"] .course-detail-image {
  object-position: center 50%;
}

body[data-course="lady-latina"] .course-detail-image {
  object-position: center 50%;
}

body[data-course="barnedans"] .course-detail-image {
  object-position: center 45%;
}

body[data-course="pilates"] .course-detail-image {
  object-position: center 50%;
}

.course-detail-placeholder {
  display: grid;
  min-height: min(720px, 68vh);
  place-items: center;
  background: linear-gradient(135deg, #7b4bb0, #d993a8);
  color: white;
}

.course-detail-placeholder span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(90px, 10vw, 180px);
  font-weight: 700;
}

.course-detail-copy {
  padding: clamp(24px, 3.4vw, 42px);
}

.course-detail-copy h1 {
  margin: 0 0 20px;
  color: var(--aubergine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.95;
}

.course-summary {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 600;
  line-height: 1.65;
}

.course-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.course-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(63, 23, 99, 0.14);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.72);
  color: var(--grape);
  font-size: 14px;
  font-weight: 800;
}

.course-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.course-info-panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(63, 23, 99, 0.13);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: 0 10px 28px rgba(63, 23, 99, 0.04);
}

.course-info-panel-wide {
  grid-column: 1 / -1;
}

.course-info-panel h2 {
  margin: 0 0 14px;
  color: var(--aubergine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
}

.course-info-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

.course-info-panel p:last-child {
  margin-bottom: 0;
}

.course-info-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.schedule-toolbar h2 {
  margin: 0;
  color: var(--aubergine);
  font-size: clamp(22px, 3vw, 34px);
}

.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--aubergine);
  cursor: pointer;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.schedule-grid-wrap {
  overflow-x: auto;
}

.mobile-schedule {
  display: none;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 74px repeat(7, minmax(150px, 1fr));
  min-width: 1120px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.time-rail,
.day-head,
.day-column {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.day-head,
.time-rail {
  padding: 12px 10px;
  background: #fff8f1;
  color: var(--aubergine);
  font-weight: 800;
}

.time-rail {
  display: grid;
  grid-template-rows: repeat(12, 72px);
  padding: 0;
  font-size: 13px;
}

.time-rail span {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.day-column {
  position: relative;
  min-height: 720px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 71px, rgba(63, 23, 99, 0.12) 72px);
}

.schedule-event {
  position: absolute;
  left: 8px;
  right: 8px;
  min-height: 46px;
  border-radius: 10px;
  padding: 9px 10px;
  background: var(--grape);
  color: white;
  box-shadow: 0 8px 20px rgba(63, 23, 99, 0.16);
  overflow: hidden;
}

.schedule-event strong,
.schedule-event span {
  display: block;
}

.schedule-event strong {
  font-size: 13px;
}

.schedule-event span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
}

.helper-text {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 34px;
  align-items: center;
  margin-top: 42px;
  padding: 11px clamp(18px, 6vw, 86px) 11px clamp(6px, 1.2vw, 18px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(217, 147, 168, 0.16), transparent 38%),
    var(--aubergine);
  color: white;
}

.footer-brand {
  color: white;
}

.footer-brand .brand-tl {
  font-size: clamp(38px, 3.2vw, 52px);
}

.footer-brand .brand-name {
  margin-top: -6px;
  font-size: clamp(22px, 2.1vw, 29px);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 24px;
  font-style: normal;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.footer-contact a:hover {
  color: white;
}

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

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .studio-hero,
  .split-page,
  .price-tool,
  .about-grid,
  .course-detail-layout {
    grid-template-columns: 1fr;
  }

  .split-page {
    justify-content: stretch;
  }

  .split-page .page-hero {
    position: static;
    padding-top: 0;
  }

  .split-page .page-hero p:not(.eyebrow) {
    max-width: 760px;
  }

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

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

  .footer-contact {
    justify-content: flex-start;
  }
}

@media (min-width: 1900px) {
  .course-placeholder {
    min-height: 720px;
  }

  .course-image {
    height: 720px;
  }

  .class-card:nth-child(3) .course-image {
    object-position: center 50%;
  }
}

@media (max-width: 640px) {
  .site-header {
    margin: 6px;
    border-radius: 18px;
    gap: 12px;
    padding: 8px 10px;
  }

  .brand-tl {
    font-size: 38px;
  }

  .brand-name {
    font-size: 22px;
  }

  .language-switch button {
    width: 36px;
  }

  .main-nav {
    gap: 16px;
    margin: 0 -2px;
    font-size: 14px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .studio-hero,
  .classes-section,
  .page-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .studio-hero h1,
  .page-hero h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .page-hero {
    margin-bottom: 22px;
  }

  .page-hero p:not(.eyebrow),
  .studio-hero p:not(.eyebrow),
  .welcome-band p {
    font-size: 16px;
    line-height: 1.55;
  }

  .class-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .class-grid {
    gap: 18px;
  }

  .course-placeholder {
    min-height: 320px;
    font-size: 48px;
  }

  .course-image {
    height: 320px;
  }

  .card-body h3 {
    font-size: 28px;
  }

  .card-body p {
    min-height: 0;
  }

  .form-panel {
    padding: 18px;
    border-radius: 12px;
  }

  .form-grid {
    gap: 14px;
  }

  label {
    gap: 6px;
    font-size: 14px;
  }

  input,
  select,
  textarea {
    min-height: 46px;
    padding: 12px;
  }

  textarea {
    min-height: 118px;
  }

  .course-detail-image,
  .course-detail-placeholder {
    height: auto;
    min-height: 360px;
    max-height: none;
  }

  .course-detail-copy {
    padding: 20px;
  }

  .course-summary {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.6;
  }

  .course-highlights {
    gap: 8px;
    margin-bottom: 22px;
  }

  .course-highlights span {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .course-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }

  .course-info-panel {
    padding: 18px;
  }

  .button {
    width: 100%;
  }

  .schedule-shell {
    padding: 14px;
    border-radius: 12px;
  }

  .schedule-toolbar {
    gap: 10px;
  }

  .schedule-toolbar h2 {
    font-size: 18px;
    text-align: center;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }

  .schedule-grid {
    grid-template-columns: 62px repeat(7, minmax(132px, 1fr));
    min-width: 986px;
  }

  .day-head {
    padding: 10px 8px;
    font-size: 12px;
  }

  .time-rail {
    font-size: 12px;
  }

  .site-footer {
    margin-top: 28px;
  }
}

@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at 0% 12%, rgba(166, 106, 210, 0.11), transparent 26%),
      linear-gradient(180deg, #fff7ec 0%, #fffdf8 52%, #fff 100%);
  }

  body[data-page="home"] main {
    background:
      radial-gradient(ellipse at 50% 700px, rgba(217, 147, 168, 0.14), transparent 260px),
      linear-gradient(
        180deg,
        transparent 0,
        transparent 500px,
        #fff7ec 620px,
        #fff7ef 760px,
        #fff6f2 900px,
        #fff8f4 1040px,
        #fffdf8 1220px,
        #fff 100%
      );
  }

  .site-header {
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    align-items: center;
    min-height: 76px;
    margin: 9px 8px;
    padding: 9px 11px 9px 18px;
    border-radius: 19px;
    box-shadow: 0 14px 34px rgba(63, 23, 99, 0.08);
  }

  .brand {
    justify-self: start;
  }

  .brand-tl {
    font-size: clamp(38px, 10.7vw, 47px);
  }

  .brand-name {
    margin-top: -7px;
    font-size: clamp(22px, 6.3vw, 27px);
  }

  .language-switch {
    justify-self: end;
    padding: 4px;
    border-color: rgba(97, 35, 138, 0.2);
    background: rgba(255, 255, 255, 0.82);
  }

  .language-switch button {
    width: 36px;
    height: 31px;
    font-size: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 54px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--aubergine);
    box-shadow: 0 10px 22px rgba(63, 23, 99, 0.08);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 0;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 244, 0.98);
    box-shadow: 0 18px 46px rgba(63, 23, 99, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 0;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 16px;
  }

  .main-nav a:hover,
  body[data-page="schedule"] .main-nav a[href="timeplan.html"],
  body[data-page="signup"] .main-nav a[href="pamelding.html"],
  body[data-page="prices"] .main-nav a[href="priser.html"],
  body[data-page="news"] .main-nav a[href="nyheter.html"],
  body[data-page="about"] .main-nav a[href="om-oss.html"] {
    background: rgba(97, 35, 138, 0.08);
    border-color: transparent;
  }

  .studio-hero {
    min-height: 540px;
    height: min(590px, calc(100svh - 82px));
    padding: 74px 16px 74px;
    align-items: center;
  }

  .studio-hero::before {
    background:
      linear-gradient(90deg, rgba(32, 10, 48, 0.86) 0%, rgba(63, 23, 99, 0.58) 62%, rgba(255, 248, 238, 0.08) 100%),
      linear-gradient(180deg, rgba(63, 23, 99, 0.34) 0%, rgba(63, 23, 99, 0.16) 34%, rgba(255, 247, 236, 0.08) 58%, rgba(255, 247, 236, 0.36) 79%, #fff7ec 100%),
      url("hero-studio-7319683.jpg") 54% 64% / cover;
  }

  .studio-hero::after {
    background:
      radial-gradient(circle at 20% 48%, rgba(255, 248, 238, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(63, 23, 99, 0.12) 0%, transparent 42%, rgba(255, 247, 236, 0.1) 64%, rgba(255, 247, 236, 0.44) 84%, #fff7ec 100%);
  }

  .studio-hero h1 {
    max-width: 305px;
    font-size: clamp(42px, 11vw, 50px);
    line-height: 0.98;
    letter-spacing: -0.01em;
  }

  .studio-hero h1::after {
    width: min(130px, 44vw);
    height: 12px;
    margin-top: 16px;
  }

  .section-heading h2::after {
    width: min(220px, 62vw);
    height: 14px;
    margin-top: 10px;
  }

  .studio-hero p:not(.eyebrow) {
    max-width: 340px;
    margin-top: 22px;
    font-size: clamp(16px, 4.2vw, 17px);
    font-weight: 500;
    line-height: 1.56;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 26px;
    max-width: 360px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 50px;
    padding: 0 12px;
    font-size: 14px;
  }

  .welcome-band {
    position: relative;
    margin: 0;
    padding: 42px 26px 58px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #fff7ec 0%, rgba(255, 247, 236, 0.72) 46%, transparent 100%);
    box-shadow: none;
    text-align: center;
    z-index: 1;
  }

  .welcome-band::before {
    content: "";
    position: relative;
    z-index: 1;
    display: block;
    width: 76px;
    height: 1px;
    margin: 0 auto 18px;
    background: linear-gradient(90deg, transparent, rgba(217, 147, 168, 0.52), transparent);
  }

  .welcome-band::after {
    content: none;
  }

  .welcome-band p::after {
    content: "";
    display: block;
    width: 76px;
    height: 1px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, transparent, rgba(217, 147, 168, 0.52), transparent);
  }

  .welcome-band p {
    position: relative;
    z-index: 1;
    max-width: 350px;
    margin: 0 auto;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
  }

  .classes-section,
  .page-main {
    padding: 56px 16px;
  }

  body[data-page="home"] .classes-section {
    position: relative;
    margin-top: 0;
    padding-top: 42px;
    background: transparent;
  }

  body[data-page="home"] .classes-section::before {
    content: none;
  }

  body[data-page="home"] .classes-section > * {
    position: relative;
    z-index: 1;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2,
  .page-hero.compact h1,
  .page-hero h1 {
    font-size: clamp(42px, 12vw, 54px);
    line-height: 0.98;
  }

  .page-hero {
    margin-bottom: 24px;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.6;
  }

  .class-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .class-card,
  .form-panel,
  .calculator,
  .price-table-wrap,
  .about-card,
  .contact-card,
  .schedule-shell {
    border-radius: 14px;
  }

  .course-placeholder,
  .course-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .course-image {
    object-fit: cover;
  }

  .class-card:nth-child(2) .course-image {
    object-position: center 50%;
  }

  .class-card:nth-child(3) .course-image {
    object-position: center 50%;
  }

  .class-card:nth-child(4) .course-image {
    object-position: center 50%;
  }

  .card-body {
    padding: 16px;
  }

  .card-body h3 {
    font-size: clamp(25px, 8vw, 30px);
  }

  .card-body p {
    min-height: 0;
    font-size: 15px;
  }

  .card-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .card-actions .button {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    padding: 0 12px;
  }

  .split-page,
  .price-tool,
  .about-grid,
  .course-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-page .page-hero {
    position: static;
    padding-top: 0;
  }

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

  .form-panel,
  .calculator,
  .price-table-wrap,
  .schedule-shell,
  .about-card,
  .contact-card {
    padding: 18px;
  }

  input,
  select,
  textarea {
    min-height: 50px;
    padding: 13px 14px;
  }

  textarea {
    min-height: 128px;
  }

  .form-panel .button,
  .calculator .button {
    width: 100%;
  }

  .price-tool {
    align-items: stretch;
  }

  .price-table {
    display: none;
  }

  .price-mobile-cards {
    display: grid;
    gap: 14px;
  }

  .price-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
  }

  .price-card h2 {
    margin: 0 0 12px;
    color: var(--aubergine);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 28px;
  }

  .price-card dl {
    display: grid;
    gap: 9px;
    margin: 0;
  }

  .price-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(63, 23, 99, 0.1);
  }

  .price-card dt {
    color: var(--muted);
    font-weight: 700;
  }

  .price-card dd {
    margin: 0;
    color: var(--aubergine);
    font-weight: 800;
    white-space: nowrap;
  }

  .schedule-shell > .schedule-toolbar,
  .schedule-grid-wrap {
    display: none;
  }

  .schedule-shell {
    margin-left: 0;
    margin-right: 0;
  }

  .mobile-schedule {
    display: block;
  }

  .mobile-day-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
  }

  .mobile-day-toolbar h2 {
    margin: 0;
    color: var(--aubergine);
    font-size: 18px;
    text-align: center;
  }

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

  .mobile-event-card,
  .empty-state {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 26px rgba(63, 23, 99, 0.06);
  }

  .mobile-event-card {
    border-left: 5px solid var(--grape);
  }

  .mobile-event-time {
    color: var(--grape);
    font-weight: 800;
    font-size: 14px;
  }

  .mobile-event-card h2 {
    margin: 6px 0 4px;
    color: var(--aubergine);
    font-size: 22px;
  }

  .mobile-event-card p,
  .empty-state {
    color: var(--muted);
    font-weight: 700;
  }

  .news-list {
    max-width: none;
    border-color: rgba(63, 23, 99, 0.14);
  }

  .news-feed-head {
    padding: 13px 0;
    font-size: 12px;
  }

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

  .news-date {
    padding-top: 0;
    font-size: 12px;
  }

  .news-card h2 {
    margin-bottom: 9px;
    font-size: 32px;
  }

  .news-card p {
    font-size: 15px;
    line-height: 1.65;
  }

  .about-card h2,
  .contact-card h2 {
    font-size: 31px;
  }

  .contact-card a,
  .footer-contact a {
    overflow-wrap: anywhere;
  }

  .course-detail-image,
  .course-detail-placeholder {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .course-detail-copy {
    padding: 20px;
  }

  .course-detail-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 28px;
    padding: 10px 16px;
    text-align: center;
  }

  .footer-brand {
    display: none;
  }

  .footer-contact {
    display: none;
  }

  .button,
  .icon-button,
  .language-switch button,
  .menu-toggle,
  .main-nav a {
    -webkit-tap-highlight-color: transparent;
  }

  .button:active,
  .icon-button:active,
  .menu-toggle:active {
    transform: translateY(1px);
  }

  .button:focus-visible,
  .icon-button:focus-visible,
  .menu-toggle:focus-visible,
  .language-switch button:focus-visible,
  .main-nav a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 3px solid rgba(166, 106, 210, 0.45);
    outline-offset: 3px;
  }
}

@media (max-width: 340px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .studio-hero {
    min-height: 528px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .studio-hero h1 {
    max-width: 292px;
  }
}

@media (max-width: 360px) {
  .news-feed-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .news-card h2 {
    font-size: 29px;
  }

  .card-actions {
    flex-wrap: wrap;
  }

  .card-actions .button {
    flex-basis: 100%;
  }
}
