:root {
  --paper: #fff8f7;
  --paper-deep: #fff0f1;
  --section-light: var(--paper);
  --section-rose: var(--paper-deep);
  --hero-light: #fffafa;
  --ink: #2d2529;
  --muted: #585156;
  --line: rgba(132, 18, 45, 0.12);
  --brand-line-rgb: 132, 18, 45;
  --white: #ffffff;
  --brand: #8e0a29;
  --brand-dark: #6f001b;
  --brand-soft: #eaa3ae;
  --blue: var(--brand);
  --teal: #009f91;
  --coral: #ff684d;
  --sun: #f6ba2f;
  --rose: #e45086;
  --violet: #6f4de2;
  --radius: 8px;
  --max: 1240px;
  --pad: 24px;
  --shadow: 0 20px 60px rgba(17, 20, 28, 0.12);
  --button-gradient: linear-gradient(180deg, #a80c31 0%, #78001d 100%);
  --section-gradient-light-rose: linear-gradient(180deg, var(--section-light) 0%, var(--section-rose) 100%);
  --section-gradient-rose-light: linear-gradient(180deg, var(--section-rose) 0%, var(--section-light) 100%);
  --card-border: rgba(var(--brand-line-rgb), 0.09);
  --panel-border: rgba(var(--brand-line-rgb), 0.08);
  --control-border: rgba(var(--brand-line-rgb), 0.1);
  --accent-border: rgba(var(--brand-line-rgb), 0.16);
  --card-inset: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  --font-ui: "Manrope", "Montserrat", Arial, sans-serif;
  --font-display: "Iosevka Charon", "Courier New", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  font-family: var(--font-ui);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(255, 248, 247, 0.32);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  pointer-events: none;
}

body::selection {
  color: var(--white);
  background: var(--brand);
}

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

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

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

button {
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  width: min(100%, 1280px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  top: 10px;
  width: min(var(--max), calc(100% - 28px));
  border-color: rgba(132, 18, 45, 0.1);
  border-radius: 28px;
  background: rgba(255, 248, 247, 0.92);
  box-shadow: 0 16px 40px rgba(132, 18, 45, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
}

.brand--header {
  min-width: 220px;
  gap: 14px;
}

.brand__mark {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.brand .brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: none;
}

.brand__copy {
  display: grid;
  gap: 1px;
  color: var(--brand);
  line-height: 1;
}

.brand__copy strong {
  color: var(--brand);
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.brand__copy span {
  color: #3d3438;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.28em;
}

.brand img {
  width: 104px;
  filter: brightness(0) saturate(100%) invert(13%) sepia(62%) saturate(3484%) hue-rotate(331deg) brightness(84%) contrast(98%);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 38px;
}

.main-nav a,
.primary-link,
.mobile-panel a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
}

.main-nav a {
  padding: 0;
  color: #30292c;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: var(--brand);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-link {
  min-width: 116px;
  justify-content: center;
  padding: 0 20px;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(180deg, #a70b30 0%, #7a001d 100%);
  box-shadow: 0 9px 18px rgba(142, 10, 41, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.2s ease;
}

.menu-button.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-button.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  top: 92px;
  left: 16px;
  right: 16px;
  z-index: 45;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  background: rgba(255, 248, 247, 0.97);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-panel a {
  padding: 0 14px;
  color: var(--brand);
  background: rgba(132, 18, 45, 0.05);
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 140px var(--pad) 72px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.92) 0, rgba(255, 248, 247, 0) 42%),
    linear-gradient(180deg, var(--hero-light) 0%, var(--section-light) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 122px;
  width: 360px;
  height: 290px;
  pointer-events: none;
  opacity: 0.75;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='360' height='290' viewBox='0 0 360 290' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23eadbe0' stroke-width='1'%3E%3Cpath d='M-12 65C45 8 94 122 151 65C207 8 257 122 313 65C369 8 418 122 475 65'/%3E%3Cpath d='M-12 80C45 23 94 137 151 80C207 23 257 137 313 80C369 23 418 137 475 80'/%3E%3Cpath d='M-12 95C45 38 94 152 151 95C207 38 257 152 313 95C369 38 418 152 475 95'/%3E%3Cpath d='M-12 110C45 53 94 167 151 110C207 53 257 167 313 110C369 53 418 167 475 110'/%3E%3Cpath d='M-12 125C45 68 94 182 151 125C207 68 257 182 313 125C369 68 418 182 475 125'/%3E%3Cpath d='M-12 140C45 83 94 197 151 140C207 83 257 197 313 140C369 83 418 197 475 140'/%3E%3C/g%3E%3C/svg%3E");
}

.hero::before {
  left: -130px;
}

.hero::after {
  right: -90px;
  transform: scaleX(-1);
}

.hero-note {
  position: absolute;
  z-index: 1;
  color: var(--brand-soft);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.9;
}

.hero-note--one {
  top: 134px;
  left: calc(50% - 18px);
}

.hero-note--two {
  top: 184px;
  left: calc(50% + 18px);
}

.hero-note--three {
  top: 146px;
  right: 74px;
}

.hero-note--four {
  top: 238px;
  right: 236px;
  font-size: 1.45rem;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  gap: 54px;
  align-items: center;
  margin: 0 auto 50px;
}

.hero__content {
  position: relative;
  max-width: 610px;
  padding-top: 6px;
  text-align: center;
}

.section-label {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__title,
.section-heading h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0;
}

.hero__title {
  margin-bottom: 18px;
  color: var(--brand);
  font-size: clamp(4.2rem, 6.2vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -4px;
}

.hero__lead {
  max-width: 490px;
  margin: 0 auto 26px;
  color: #555055;
  font-size: 1.12rem;
  line-height: 1.45;
}

.hero__cta-row {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  width: min(920px, 100%);
  margin: 0 auto;
}

.hero__cta-row::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -72px;
  z-index: 0;
  width: min(470px, 70vw);
  height: 96px;
  pointer-events: none;
  opacity: 0.56;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='470' height='96' viewBox='0 0 470 96' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23eadbe0' stroke-width='1.15' stroke-linecap='round'%3E%3Cpath d='M4 38C58 8 93 65 147 36C201 7 236 66 290 37C344 8 379 66 466 31'/%3E%3Cpath d='M4 49C58 19 93 76 147 47C201 18 236 77 290 48C344 19 379 77 466 42'/%3E%3Cpath d='M4 60C58 30 93 87 147 58C201 29 236 88 290 59C344 30 379 88 466 53'/%3E%3Cpath d='M4 71C58 41 93 98 147 69C201 40 236 99 290 70C344 41 379 99 466 64'/%3E%3C/g%3E%3C/svg%3E");
  transform: translateX(-50%);
}

.hero__cta-side {
  position: relative;
  z-index: 1;
  flex: 1 1 190px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.hero__cta-side--left {
  justify-content: flex-end;
}

.hero__cta-side--right {
  justify-content: flex-start;
}

.hero__line {
  position: relative;
  width: min(100%, 176px);
  height: 10px;
  overflow: visible;
}

.hero__line::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 50%;
  height: 5px;
  border-radius: 999px;
  filter: blur(0.45px);
  transform: translateY(-50%);
}

.hero__cta-side--left .hero__line::before {
  background: linear-gradient(90deg, rgba(132, 18, 45, 0.02), rgba(132, 18, 45, 0.24));
  clip-path: polygon(0 46%, 100% 26%, 100% 74%, 0 54%);
}

.hero__cta-side--right .hero__line::before {
  background: linear-gradient(90deg, rgba(132, 18, 45, 0.24), rgba(132, 18, 45, 0.02));
  clip-path: polygon(0 26%, 100% 46%, 100% 54%, 0 74%);
}

.hero-clef {
  flex: 0 0 auto;
  color: var(--brand-soft);
  font-family: "Segoe UI Symbol", "Noto Music", var(--font-display);
  font-size: 2rem;
  line-height: 1;
  opacity: 0.82;
}

.hero-button,
.form-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
  background: var(--button-gradient);
  box-shadow: 0 16px 24px rgba(155, 14, 48, 0.2), 0 9px 18px rgba(225, 81, 105, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-button {
  position: relative;
  z-index: 1;
  min-width: 382px;
  gap: 20px;
  font-size: 1.06rem;
}

.hero-button svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.hero-button:hover,
.form-button:hover,
.primary-link:hover {
  transform: translateY(-2px);
}

.hero__media {
  position: relative;
  width: min(100%, 468px);
  aspect-ratio: 1.23;
  justify-self: center;
  border-radius: 39% 61% 48% 52% / 42% 33% 67% 58%;
  box-shadow: 0 20px 46px rgba(132, 18, 45, 0.08);
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: -44px -42px -38px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.86;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='560' height='440' viewBox='0 0 560 440' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23eadbe0' stroke-width='1.05' stroke-linecap='round'%3E%3Cpath d='M114 28C183 -8 316 6 394 33C487 65 543 121 537 210C530 309 469 391 358 411C242 432 109 410 55 324C2 238 28 73 114 28Z'/%3E%3Cpath d='M124 43C190 9 314 21 387 47C474 78 526 130 520 212C514 304 456 377 354 396C245 416 122 396 72 317C24 239 43 86 124 43Z'/%3E%3Cpath d='M134 58C196 26 312 36 380 62C460 92 509 139 504 214C498 298 444 363 350 380C248 400 135 381 89 310C46 241 60 99 134 58Z'/%3E%3Cpath d='M144 73C202 43 309 52 373 77C447 106 493 149 488 217C483 292 432 349 346 365C252 383 149 366 107 303C68 243 77 112 144 73Z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 66%;
  border-radius: inherit;
}

.hero__directions {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 50px auto 0;
  scroll-margin-top: 112px;
}

.hero__directions-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.hero__directions-title::before,
.hero__directions-title::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.direction-grid,
.instruments-grid,
.teachers-grid,
.reviews-grid,
.entry__grid,
.entry__side {
  display: grid;
}

.direction-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.direction-card {
  position: relative;
  min-height: 122px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 15px 8px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.46);
  color: var(--brand);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.direction-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-soft);
  transform: translateX(-50%);
}

.direction-card__icon,
.direction-card svg {
  width: 40px;
  height: 40px;
}

.direction-card__icon {
  object-fit: contain;
}

.direction-card svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.direction-card strong {
  display: block;
  max-width: 112px;
  color: #191417;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.18;
}

.section {
  padding: 88px var(--pad);
}

.anchor-target {
  display: block;
  width: 0;
  height: 0;
  scroll-margin-top: 96px;
  pointer-events: none;
}

.section-shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: 3.1rem;
  line-height: 1.05;
}

.instruments,
.teachers,
.reviews,
.entry {
  position: relative;
  overflow: hidden;
}

.instruments {
  background: var(--section-gradient-light-rose);
}

.instruments__shell,
.teachers__shell,
.reviews__shell,
.entry__shell {
  position: relative;
  z-index: 1;
}

.instruments__heading,
.teachers__heading,
.reviews__heading,
.entry__heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.instruments::before,
.instruments::after,
.teachers::before,
.teachers::after,
.reviews::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 420px;
  height: 300px;
  pointer-events: none;
  opacity: 0.72;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.instruments::before,
.instruments::after,
.teachers::before,
.teachers::after {
  background-image: url("../img/decor/wave-lines.svg");
}

.instruments::before,
.instruments::after {
  opacity: 0.72;
}

.instruments::before {
  top: 60px;
  left: -150px;
}

.instruments::after {
  right: -130px;
  bottom: 80px;
  transform: scaleX(-1);
}

.instruments__heading {
  max-width: 820px;
  margin: 0 auto 34px;
}

.instruments__heading h2,
.teachers__heading h2,
.reviews__heading h2,
.entry__heading h2 {
  color: var(--brand);
  font-size: clamp(4.2rem, 7vw, 6.4rem);
  line-height: 0.92;
}

.instruments__heading h2,
.teachers__heading h2,
.reviews__heading h2 {
  text-transform: uppercase;
}

.instruments__lead {
  max-width: 660px;
}

.instruments-note,
.teachers-note,
.reviews-note {
  position: absolute;
  z-index: 1;
  color: var(--brand-soft);
  font-family: "Segoe UI Symbol", "Noto Music", var(--font-display);
  line-height: 1;
  pointer-events: none;
}

.instruments-note {
  font-size: 2.25rem;
  opacity: 0.8;
}

.instruments-note--one {
  top: 104px;
  left: calc(50% - 410px);
}

.instruments-note--two {
  top: 138px;
  right: calc(50% - 430px);
  font-size: 1.8rem;
}

.instruments-note--three {
  bottom: 118px;
  left: calc(50% + 410px);
  font-size: 1.6rem;
}

.instruments-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.instrument-card {
  position: relative;
  min-height: 284px;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 26px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
  color: var(--brand);
  box-shadow: var(--card-inset);
  overflow: visible;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.instrument-card:hover {
  border-color: rgba(132, 18, 45, 0.18);
  box-shadow: 0 18px 42px rgba(132, 18, 45, 0.09);
  transform: translateY(-6px);
}

.instrument-card::before {
  content: "";
  position: absolute;
  top: 78px;
  right: 22px;
  left: 78px;
  height: 1px;
  background: linear-gradient(90deg, rgba(132, 18, 45, 0.06), rgba(132, 18, 45, 0.16), rgba(132, 18, 45, 0));
}

.instrument-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
  transform: translateX(-50%);
}

.instrument-card__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.instrument-card__icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  transition: transform 0.24s ease;
}

.instrument-card:hover .instrument-card__icon {
  transform: translateY(-2px) rotate(-2deg);
}

.instrument-card__number {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
}

.instrument-card h3 {
  margin-bottom: 10px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: 0;
}

.instrument-card p {
  color: #514b50;
  font-size: 0.94rem;
  line-height: 1.48;
}

.instruments__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 38px;
}

.instruments__cta-line {
  width: min(190px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(132, 18, 45, 0), rgba(132, 18, 45, 0.2), rgba(132, 18, 45, 0));
}

.instruments__button {
  min-width: 320px;
}

.teachers {
  background: var(--section-gradient-rose-light);
}

.teachers::before,
.teachers::after {
  opacity: 0.58;
}

.teachers::before {
  top: 72px;
  left: -170px;
}

.teachers::after {
  right: -140px;
  bottom: 72px;
  transform: scaleX(-1);
}

.teachers__heading {
  max-width: 850px;
  margin: 0 auto 36px;
}

.teachers__heading .section-label {
  display: none;
}

.teachers__lead {
  max-width: 650px;
}

.instruments__lead,
.teachers__lead {
  margin: 18px auto 0;
  color: #555055;
  font-size: 1.08rem;
  line-height: 1.48;
}

.teachers-note {
  font-size: 2.25rem;
  opacity: 0.78;
}

.teachers-note--one {
  top: 112px;
  left: calc(50% - 420px);
}

.teachers-note--two {
  top: 132px;
  right: calc(50% - 420px);
  font-size: 1.8rem;
}

.teachers-note--three {
  top: 190px;
  left: calc(50% + 340px);
  font-size: 1.5rem;
}

.teachers-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 70px 24px;
  align-items: start;
}

.teacher-card {
  position: relative;
  min-height: 398px;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 58px;
  padding: 22px 22px 18px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--card-inset);
  overflow: visible;
}

.teacher-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
  transform: translateX(-50%);
}

.teacher-card__media {
  position: relative;
  align-self: stretch;
  width: 172px;
  min-height: 318px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid var(--panel-border);
  border-radius: 48% 52% 43% 57% / 34% 37% 63% 66%;
  background: #f2cfd3;
  box-shadow: 0 0 0 4px rgba(255, 248, 247, 0.96), 0 0 0 5px rgba(132, 18, 45, 0.1),
    0 0 0 10px rgba(132, 18, 45, 0.035);
  isolation: isolate;
  overflow: hidden;
}

.teacher-card__media::before {
  content: "";
  position: absolute;
  inset: auto -18px 0;
  z-index: 1;
  height: 64px;
  background: linear-gradient(180deg, rgba(242, 207, 211, 0), rgba(242, 207, 211, 0.96));
  pointer-events: none;
}

.teacher-card--blob-b .teacher-card__media {
  border-radius: 57% 43% 54% 46% / 42% 35% 65% 58%;
}

.teacher-card--blob-c .teacher-card__media {
  border-radius: 44% 56% 50% 50% / 32% 42% 58% 68%;
}

.teacher-card__media img {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 122%;
  max-width: none;
  height: 101%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 20px rgba(60, 18, 28, 0.08));
  transform: translateX(-50%);
}

.teacher-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 10px;
}

.teacher-card__byline {
  order: 2;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.teacher-card__byline::after {
  content: "\1D11E";
  flex: 0 0 100%;
  height: 22px;
  display: grid;
  place-items: center;
  margin-top: 4px;
  color: var(--brand-soft);
  font-family: "Segoe UI Symbol", "Noto Music", var(--font-display);
  font-size: 0.88rem;
  line-height: 1;
  background:
    linear-gradient(rgba(132, 18, 45, 0.1), rgba(132, 18, 45, 0.1)) left center / 43% 1px no-repeat,
    linear-gradient(rgba(132, 18, 45, 0.1), rgba(132, 18, 45, 0.1)) right center / 43% 1px no-repeat;
}

.teacher-card__role {
  margin: 0;
  color: #30292c;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.teacher-card__experience {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(132, 18, 45, 0.13);
  border-radius: 999px;
  background: rgba(255, 240, 241, 0.78);
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.teacher-card__experience::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 1.15L7.38 4.13L10.65 4.52L8.24 6.75L8.88 9.98L6 8.37L3.12 9.98L3.76 6.75L1.35 4.52L4.62 4.13L6 1.15Z' stroke='%238E0A29' stroke-width='1.15' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.teacher-card h3 {
  order: 1;
  max-width: 100%;
  margin-bottom: 6px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(2.08rem, 2.45vw, 2.45rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.teacher-card__features {
  order: 3;
  width: 100%;
  display: grid;
  gap: 9px;
  margin-bottom: 11px;
  list-style: none;
}

.teacher-card__features li {
  position: relative;
  min-height: 33px;
  display: flex;
  align-items: center;
  padding-left: 43px;
  color: #242025;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.22;
  text-transform: uppercase;
}

.teacher-card__features li::before {
  content: var(--feature-symbol, "");
  position: absolute;
  left: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(132, 18, 45, 0.13);
  border-radius: 50%;
  background: rgba(255, 240, 241, 0.75);
  background-image: var(--feature-icon, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  color: var(--brand);
  font-family: "Segoe UI Symbol", "Noto Music", var(--font-display);
  font-size: 1rem;
}

.teacher-card__features .icon-guitar,
.teacher-card__features .icon-acoustic {
  --feature-icon: url("../img/icons/learn-classical-guitar.svg");
}

.teacher-card__features .icon-acoustic {
  --feature-icon: url("../img/icons/learn-acoustic-guitar.svg");
}

.teacher-card__features .icon-electric {
  --feature-icon: url("../img/icons/learn-electric-guitar.svg");
}

.teacher-card__features .icon-vocal {
  --feature-icon: url("../img/icons/learn-vocal.svg");
}

.teacher-card__features .icon-piano {
  --feature-icon: url("../img/icons/learn-piano.svg");
}

.teacher-card__features .icon-theory {
  --feature-icon: url("../img/icons/learn-theory.svg");
}

.teacher-card__features .icon-trophy {
  --feature-symbol: "\2606";
}

.teacher-card__features .icon-ensemble {
  --feature-icon: url("../img/icons/teacher-orkestrovaya-rabota.svg");
}

.teacher-card__features .icon-students,
.teacher-card__features .icon-approach,
.teacher-card__features .icon-kids {
  --feature-symbol: "\25CE";
}

.teacher-card__features .icon-theatre {
  --feature-icon: url("../img/icons/teacher-akterskoe-masterstvo.svg");
}

.teacher-card__features .icon-speech {
  --feature-icon: url("../img/icons/teacher-scenicheskaya-rech.svg");
}

.teacher-card__features .icon-accordion {
  --feature-icon: url("../img/icons/teacher-bayan.svg");
}

.teacher-card__branches {
  order: 4;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 0;
}

.teacher-card__branches span {
  position: relative;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px 3px 24px;
  border: 1px solid rgba(132, 18, 45, 0.11);
  border-radius: 999px;
  background: rgba(255, 248, 247, 0.76);
  color: #5d555a;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.teacher-card__branches span::before {
  content: "";
  position: absolute;
  left: 9px;
  width: 10px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg width='10' height='13' viewBox='0 0 10 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12.1C5 12.1 9 8.32 9 4.95C9 2.73 7.21 1 5 1C2.79 1 1 2.73 1 4.95C1 8.32 5 12.1 5 12.1Z' stroke='%238E0A29' stroke-width='1.15'/%3E%3Ccircle cx='5' cy='4.95' r='1.45' stroke='%238E0A29' stroke-width='1.05'/%3E%3C/svg%3E") center / contain no-repeat;
}

.teacher-card__button {
  position: absolute;
  left: 50%;
  bottom: -66px;
  width: 172px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--button-gradient);
  color: var(--white);
  font-size: 0.96rem;
  font-weight: 500;
  box-shadow: 0 12px 20px rgba(155, 14, 48, 0.16);
  transform: translate(-50%, 0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-card__button:hover {
  transform: translate(-50%, -2px);
  box-shadow: 0 16px 24px rgba(155, 14, 48, 0.2);
}

.reviews {
  background: linear-gradient(180deg, var(--section-light) 0%, #fff6f7 48%, var(--section-light) 100%);
}

.reviews::before {
  left: -160px;
  top: 92px;
  opacity: 0.46;
  background-image: url("../img/decor/wave-lines-short.svg");
}

.reviews__heading {
  max-width: 850px;
  margin: 0 auto 40px;
}

.reviews__heading p {
  max-width: 680px;
  margin: 18px auto 0;
}

.reviews-note {
  font-size: 2.1rem;
  opacity: 0.72;
}

.reviews-note--one {
  top: 132px;
  left: calc(50% - 440px);
}

.reviews-note--two {
  top: 158px;
  right: calc(50% - 440px);
  font-size: 1.55rem;
}

.reviews__summary {
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 44px rgba(132, 18, 45, 0.07);
}

.reviews__summary > div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.reviews__rating {
  min-width: 76px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--button-gradient);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 12px 20px rgba(155, 14, 48, 0.16);
}

.reviews__summary p {
  margin: 0;
  color: #3c2930;
  font-size: 0.92rem;
  font-weight: 700;
}

.reviews__summary a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.reviews__summary a:hover {
  border-color: rgba(132, 18, 45, 0.35);
  background: rgba(255, 240, 241, 0.72);
}

.reviews-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 24px 20px 20px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
}

.review-card blockquote {
  position: relative;
  margin: 0;
  color: #30292c;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.42;
}

.review-card blockquote::before {
  content: "";
  display: block;
  width: 38px;
  height: 1px;
  margin-bottom: 16px;
  background: rgba(132, 18, 45, 0.24);
}

.review-card figcaption {
  display: grid;
  gap: 4px;
  color: #716a6e;
  font-size: 0.78rem;
}

.review-card strong {
  color: var(--brand);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.entry {
  background: var(--section-gradient-light-rose);
}

.entry__heading {
  max-width: 880px;
  margin: 0 auto 40px;
}

.entry__heading p:not(.section-label) {
  max-width: 680px;
  margin: 16px auto 0;
}

.reviews__heading p,
.entry__heading p:not(.section-label) {
  color: #5d555a;
  font-size: 1.06rem;
  line-height: 1.5;
}

.entry__grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.74fr);
  gap: 28px;
  align-items: start;
}

.entry__side {
  gap: 14px;
}

.entry__contacts,
.entry-map,
.lead-form {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 54px rgba(132, 18, 45, 0.08);
}

.entry__contacts {
  padding: 20px;
}

.entry__contacts > span {
  display: block;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.contact-strip a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(132, 18, 45, 0.12);
  border-radius: 999px;
  background: rgba(255, 248, 247, 0.82);
  color: #3c2930;
  font-size: 0.88rem;
  font-weight: 700;
}

.entry-map {
  padding: 18px;
  overflow: hidden;
}

.entry-map__head {
  display: block;
}

.entry-map__head span {
  color: #716a6e;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.branch-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 14px;
}

.branch-switch button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(132, 18, 45, 0.12);
  border-radius: 999px;
  background: rgba(255, 248, 247, 0.82);
  color: #3c2930;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.branch-switch button:hover:not(:disabled),
.branch-switch button.is-active {
  border-color: rgba(132, 18, 45, 0.42);
  background: var(--button-gradient);
  color: var(--white);
  box-shadow: 0 10px 18px rgba(155, 14, 48, 0.16);
}

.branch-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.entry-map iframe {
  display: block;
  width: 100%;
  height: 310px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: #f8ecee;
  filter: saturate(0.9) contrast(0.98);
}

.lead-form {
  display: grid;
  gap: 9px;
  padding: 26px;
}

.lead-form label {
  color: #3c2930;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead-form input:not([type="checkbox"]),
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: rgba(255, 248, 247, 0.8);
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lead-form select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand) 50%),
    linear-gradient(135deg, var(--brand) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.lead-form select option {
  background: #fff8f9;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
}

.lead-form select option:checked {
  background: #ecd2d8;
  color: var(--brand);
}

.custom-select {
  position: relative;
  z-index: 1;
  width: 100%;
}

.custom-select.is-open {
  z-index: 30;
}

.lead-form .custom-select__native {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  min-height: 0;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.custom-select__button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px 0 16px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: rgba(255, 248, 247, 0.8);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.custom-select__button::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.custom-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__native:focus + .custom-select__button,
.custom-select__button:hover,
.custom-select.is-open .custom-select__button,
.custom-select.is-invalid .custom-select__button {
  border-color: rgba(132, 18, 45, 0.42);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(132, 18, 45, 0.08);
}

.custom-select.is-open .custom-select__button::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.custom-select__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  max-height: 238px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(132, 18, 45, 0.14);
  border-radius: 18px;
  background: rgba(255, 250, 250, 0.98);
  box-shadow: 0 18px 38px rgba(132, 18, 45, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.custom-select.is-open .custom-select__list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-select__option {
  min-height: 38px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  outline: 0;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.custom-select__option:hover:not(:disabled),
.custom-select__option:focus-visible:not(:disabled) {
  background: rgba(132, 18, 45, 0.08);
  color: var(--brand);
}

.custom-select__option.is-selected:not(:disabled) {
  background: linear-gradient(180deg, rgba(168, 12, 49, 0.13), rgba(120, 0, 29, 0.08));
  color: var(--brand);
  font-weight: 700;
}

.custom-select__option:disabled {
  color: #9b8d92;
  cursor: default;
}

.lead-form textarea {
  height: 116px;
  min-height: 116px;
  max-height: 116px;
  padding: 14px 16px;
  border-radius: 16px;
  resize: none;
}

.lead-form input:not([type="checkbox"]):focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: rgba(132, 18, 45, 0.42);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(132, 18, 45, 0.08);
}

.teacher-field {
  display: grid;
  gap: 8px;
}

.teacher-field[hidden],
.form-hint[hidden] {
  display: none;
}

.teacher-field__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.teacher-field__reset {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: rgba(255, 240, 241, 0.76);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.teacher-field__reset:hover {
  border-color: rgba(132, 18, 45, 0.32);
  background: rgba(255, 232, 236, 0.92);
}

.form-hint {
  margin-top: -7px;
  color: #716a6e;
  font-size: 0.8rem;
  line-height: 1.35;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 0;
  accent-color: var(--brand);
}

.check-row span {
  display: block;
}

.check-row a {
  text-decoration: underline;
}

.form-button {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.privacy-page .site-header {
  top: 10px;
  width: min(var(--max), calc(100% - 28px));
  border-color: rgba(132, 18, 45, 0.1);
  border-radius: 28px;
  background: rgba(255, 248, 247, 0.92);
  box-shadow: 0 16px 40px rgba(132, 18, 45, 0.08);
  backdrop-filter: blur(16px);
}

.privacy-main {
  background: var(--section-gradient-light-rose);
}

.privacy-hero {
  padding: 142px var(--pad) 42px;
}

.privacy-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.privacy-back {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  padding: 0 16px;
  border: 1px solid rgba(132, 18, 45, 0.12);
  border-radius: 999px;
  background: rgba(255, 248, 247, 0.72);
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
}

.privacy-hero h1 {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6.4vw, 6.2rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0;
}

.privacy-content {
  padding: 0 var(--pad) 88px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.privacy-summary,
.privacy-card {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 54px rgba(132, 18, 45, 0.08);
}

.privacy-summary {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.privacy-summary div {
  display: grid;
  gap: 4px;
}

.privacy-summary span {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.privacy-summary p,
.privacy-summary a {
  color: #4d454a;
  font-size: 0.92rem;
  line-height: 1.4;
}

.privacy-summary a,
.privacy-card a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-card {
  display: grid;
  gap: 0;
  padding: 34px;
}

.privacy-section {
  padding: 30px 0;
  border-top: 1px solid rgba(132, 18, 45, 0.09);
}

.privacy-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.privacy-section:last-child {
  padding-bottom: 0;
}

.privacy-section h2 {
  margin-bottom: 16px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1;
}

.privacy-section p,
.privacy-section li {
  color: #3c3439;
  font-size: 0.98rem;
  line-height: 1.68;
}

.privacy-section p + p,
.privacy-section p + ul,
.privacy-section ul + p {
  margin-top: 12px;
}

.privacy-section ul {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-left: 22px;
}

.privacy-section strong {
  color: #2d2529;
  font-weight: 800;
}

.privacy-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.privacy-table th,
.privacy-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(132, 18, 45, 0.08);
  color: #3c3439;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.privacy-table tr:last-child th,
.privacy-table tr:last-child td {
  border-bottom: 0;
}

.privacy-table th {
  width: 32%;
  color: var(--brand);
  font-weight: 800;
}

.site-footer {
  padding: 48px var(--pad) 34px;
  color: var(--muted);
  background: var(--section-gradient-rose-light);
}

.site-footer__inner {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 0 auto;
}

.site-footer__intro {
  display: grid;
  gap: 12px;
}

.brand--footer {
  gap: 12px;
  width: fit-content;
}

.brand--footer .brand__mark {
  width: 50px;
  height: 50px;
}

.brand--footer .brand__copy strong {
  font-size: 1.82rem;
}

.brand--footer .brand__copy span {
  font-size: 0.72rem;
}

.site-footer__intro p {
  max-width: 560px;
  color: #5d555a;
  font-size: 0.95rem;
}

.footer-nav {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: rgba(255, 248, 247, 0.72);
  color: #3c2930;
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  border-color: rgba(132, 18, 45, 0.3);
  background: rgba(255, 240, 241, 0.92);
}

.site-footer__rating {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  padding: 1px;
  border: 1px solid rgba(132, 18, 45, 0.38);
  border-radius: 12px;
  background: rgba(132, 18, 45, 0.08);
  box-shadow: 0 10px 24px rgba(132, 18, 45, 0.1);
}

.site-footer__rating iframe {
  width: 150px;
  height: 50px;
  display: block;
  border: 0;
  border-radius: 9px;
  background: var(--white);
}

.site-footer__legal {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  color: #5d555a;
  font-size: 0.9rem;
  text-align: right;
}

.site-footer__legal a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .main-nav,
  .primary-link {
    display: none;
  }

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

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
    gap: 34px;
  }

  .hero-button {
    min-width: 336px;
  }

  .hero__cta-row {
    gap: 12px;
  }

  .hero__cta-row::before {
    top: -58px;
    width: min(380px, 62vw);
    height: 78px;
  }

  .hero__cta-side {
    flex-basis: 120px;
    gap: 10px;
  }

  .hero__line {
    width: min(100%, 112px);
  }

  .hero-clef {
    font-size: 1.7rem;
  }

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

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

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

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

  .site-footer__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-nav {
    display: flex;
  }

  .site-footer__legal {
    grid-column: auto;
    justify-content: flex-start;
    text-align: left;
  }

  .site-footer__rating {
    grid-column: auto;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  :root {
    --pad: 18px;
  }

  .hero {
    padding-top: 108px;
    padding-bottom: 34px;
  }

  .hero::before,
  .hero::after,
  .hero-note {
    opacity: 0.42;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero__media::before {
    inset: -34px -32px -30px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
    font-size: 4.5rem;
  }

  .hero__lead {
    font-size: 1.08rem;
  }

  .section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }

  .instruments__heading h2,
  .teachers__heading h2,
  .reviews__heading h2,
  .entry__heading h2 {
    font-size: 4.4rem;
  }

  .instruments-note {
    opacity: 0.55;
  }

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

  .teachers-note {
    opacity: 0.5;
  }

  .reviews-note {
    opacity: 0.46;
  }

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

  .teacher-card {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 20px 18px;
  }

  .teacher-card__media {
    width: 160px;
  }

  .direction-grid {
    gap: 16px;
  }

  .site-footer {
    padding-top: 30px;
    padding-bottom: 28px;
  }

  .privacy-hero {
    padding-top: 118px;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-summary {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 60px;
    padding: 8px 10px 8px 14px;
  }

  .privacy-page .site-header {
    width: calc(100% - 20px);
    min-height: 60px;
    padding: 8px 10px 8px 14px;
  }

  .brand--header {
    min-width: 0;
    gap: 8px;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand__copy strong {
    font-size: 1.45rem;
  }

  .brand__copy span {
    font-size: 0.56rem;
    letter-spacing: 0.22em;
  }

  .hero {
    padding-top: 94px;
    padding-bottom: 24px;
  }

  .hero__content {
    text-align: left;
  }

  .hero__title {
    font-size: 3.35rem;
    line-height: 1.02;
    text-align: left;
  }

  .hero__lead {
    margin-right: 0;
    margin-left: 0;
  }

  .hero__cta-row {
    display: grid;
    gap: 14px;
    justify-items: stretch;
  }

  .hero__cta-row::before {
    display: none;
  }

  .hero__cta-side {
    display: none;
  }

  .hero-button {
    min-width: 0;
    width: 100%;
    gap: 12px;
    font-size: 0.95rem;
  }

  .hero__media {
    width: min(100%, 360px);
  }

  .hero__directions-title {
    font-size: 1.85rem;
  }

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

  .direction-card {
    min-height: 126px;
  }

  .direction-card__icon,
  .direction-card svg {
    width: 42px;
    height: 42px;
  }

  .direction-card strong {
    font-size: 0.85rem;
  }

  .section-heading h2 {
    font-size: 1.9rem;
    line-height: 1.12;
  }

  .instruments::before,
  .instruments::after,
  .instruments-note,
  .teachers::before,
  .teachers::after,
  .teachers-note {
    display: none;
  }

  .instruments__heading h2,
  .teachers__heading h2,
  .reviews__heading h2,
  .entry__heading h2 {
    font-size: 3.35rem;
    line-height: 0.96;
  }

  .instruments__heading,
  .teachers__heading {
    margin-bottom: 24px;
  }

  .instruments__heading,
  .teachers__heading,
  .reviews__heading {
    text-align: left;
  }

  .instruments__lead,
  .teachers__lead,
  .reviews__heading p {
    margin-right: 0;
    margin-left: 0;
    font-size: 0.98rem;
  }

  .instruments-grid,
  .teachers-grid {
    grid-template-columns: 1fr;
  }

  .reviews__summary {
    align-items: stretch;
    flex-direction: column;
    margin: 18px auto 0;
  }

  .reviews__summary a {
    width: 100%;
  }

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

  .instrument-card {
    min-height: auto;
    padding: 22px 20px 24px;
  }

  .instrument-card__icon {
    width: 52px;
    height: 52px;
  }

  .instrument-card h3 {
    font-size: 1.82rem;
  }

  .instruments__cta {
    display: grid;
    gap: 14px;
  }

  .instruments__cta-line {
    display: none;
  }

  .instruments__button {
    min-width: 0;
    width: 100%;
  }

  .teacher-card {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 62px;
    padding: 22px 20px 20px;
  }

  .teacher-card__media {
    width: min(100%, 260px);
    min-height: 310px;
    margin-inline: auto;
  }

  .teacher-card__media img {
    bottom: -22px;
    width: 118%;
    height: 102%;
  }

  .teacher-card__content {
    padding-top: 0;
  }

  .teacher-card h3 {
    font-size: 2.65rem;
  }

  .teacher-card__button {
    width: 172px;
  }

  .entry__grid {
    gap: 20px;
  }

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

  .branch-switch {
    grid-template-columns: 1fr;
  }

  .entry-map iframe {
    height: 260px;
  }

  .lead-form {
    padding: 18px;
  }

  .privacy-hero {
    padding-top: 104px;
    padding-bottom: 30px;
  }

  .privacy-hero h1 {
    font-size: 3.25rem;
  }

  .privacy-content {
    padding-bottom: 68px;
  }

  .privacy-summary {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .privacy-card {
    padding: 22px 18px;
  }

  .privacy-section {
    padding: 24px 0;
  }

  .privacy-section h2 {
    font-size: 2.15rem;
  }

  .brand--footer .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand--footer .brand__copy strong {
    font-size: 1.45rem;
  }

  .brand--footer .brand__copy span {
    font-size: 0.56rem;
  }

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

  .footer-nav a {
    justify-content: center;
  }

  .site-footer__rating {
    width: 100%;
    justify-content: center;
  }

  .teacher-field__row {
    grid-template-columns: 1fr;
  }

  .teacher-field__reset {
    width: 100%;
  }

}
