:root {
  --color-bg: #5a4718;
  --color-bg-deep: #3e3110;
  --color-grey: #3a3a3a;
  --color-grey-deep: #2e2e2e;
  --color-ink: #241c0e;
  --color-text: #ffffff;
  --color-accent: #ffc57a;
  --color-accent-strong: #ff9a33;
  --color-line: #c45e00;
  --color-button: #a34b00;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --shadow-volume:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -16px 24px rgba(0, 0, 0, 0.28),
    0 10px 0 #2a210e,
    0 22px 28px rgba(0, 0, 0, 0.35);
  --wrap: 1120px;
  --header-h: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  background-color: var(--color-bg);
  background-image: radial-gradient(ellipse at top, #6d5620 0%, #5a4718 42%, #463812 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--color-accent);
}

p,
ul,
ol,
figure,
blockquote {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
.section-title,
.banner__title,
.lesson__title,
.team__name,
.pyramid__year {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

::selection {
  background: var(--color-button);
  color: #fff;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.5rem 0.9rem;
  background: var(--color-button);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.4rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

.prose {
  max-width: 68ch;
}

.prose > p:first-of-type::first-letter {
  float: left;
  padding: 0.08em 0.1em 0 0;
  color: var(--color-accent-strong);
  font-family: var(--font-display);
  font-size: 4.3rem;
  font-weight: 600;
  line-height: 0.72;
}

.prose a {
  text-underline-offset: 0.18em;
}

.prose a.button {
  color: #fff;
  text-decoration: none;
}

.band {
  padding: 4.4rem 0;
}

.band--grey {
  background: var(--color-grey);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-button);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #c45e00;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-grey-deep);
  border-bottom: 2px solid var(--color-line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.55rem 1rem;
}

.header__logo {
  flex: 0 0 auto;
  line-height: 0;
}

.header__logo-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

.header__burger-lines {
  position: relative;
  display: grid;
  gap: 5px;
  width: 18px;
  height: 16px;
  align-content: center;
}

.header__burger-line {
  display: block;
  height: 2px;
  background: #fff;
  transform-origin: center;
}

.menu-open .header__burger-lines {
  display: block;
  width: 16px;
  height: 16px;
}

.menu-open .header__burger-line {
  position: absolute;
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
}

.menu-open .header__burger-line:nth-child(1) {
  transform: rotate(45deg);
}

.menu-open .header__burger-line:nth-child(2) {
  opacity: 0;
}

.menu-open .header__burger-line:nth-child(3) {
  transform: rotate(-45deg);
}

.header__panel {
  display: none;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link,
.header__phone,
.header__email,
.header__address {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: #fff;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
}

.header__email {
  color: var(--color-accent);
}

.nav__link[aria-current="page"] {
  color: var(--color-accent);
}

@media (max-width: 1199px) {
  .header__panel.is-open,
  .header__panel:target {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.4rem 1rem 1.1rem;
    background: var(--color-grey-deep);
    border-top: 2px solid var(--color-accent);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.35);
  }
}

@media (min-width: 1200px) {
  .header__inner {
    width: min(1240px, calc(100% - 2rem));
    margin-inline: auto;
    padding-inline: 0;
    flex-wrap: nowrap;
  }

  .header__burger {
    display: none;
  }

  .header__panel,
  .header__panel.is-open,
  .header__panel:target {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.85rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav {
    flex: 1;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    width: auto;
  }

  .nav__link,
  .header__phone,
  .header__email,
  .header__address {
    min-height: 0;
    font-size: 0.92rem;
  }
}

#booking {
  scroll-margin-top: 96px;
}

.banner {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 68vh;
  overflow: hidden;
}

.banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 16, 6, 0.78), rgba(24, 16, 6, 0.12) 58%);
}

.banner__content {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 3.2rem 0 3rem;
}

.banner__title {
  max-width: 11em;
  margin: 0 0 0.7rem;
  font-size: clamp(3rem, 7vw, 5.6rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.banner__lead {
  max-width: 36rem;
  margin: 0;
  font-size: 1.15rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.strengths__list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.strengths__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.25rem 1.3rem 1.4rem;
  border: 3px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #4c4c4c, #343434) padding-box,
    linear-gradient(145deg, #fff1dc, #ff9a33 34%, #c45e00 70%, #ffe7c4) border-box;
  box-shadow: var(--shadow-volume);
}

.strengths__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #2a2a2a;
  box-shadow: inset 0 0 0 2px var(--color-line), 0 8px 16px rgba(0, 0, 0, 0.28);
}

.strengths__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strengths__title {
  margin: 0;
  font-size: 2rem;
}

.strengths__text {
  margin: 0;
}

.offer__grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.offer__card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem;
  overflow: hidden;
  border: 2px solid var(--color-line);
  border-radius: 16px;
  background: #2f2f2f;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.offer__photo {
  width: 132px;
  height: 132px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.offer__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.35rem 0.4rem 0.35rem 0;
}

.offer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.stats__item {
  padding: 1rem 0.7rem 1.1rem;
  border: 2px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-grey);
  text-align: center;
}

.stats__num {
  margin: 0;
  color: var(--color-accent-strong);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
}

.stats__label {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 760px;
  margin-top: 1.4rem;
  padding: 1.2rem;
  border: 2px solid var(--color-line);
  border-radius: 18px;
  background: #2f2f2f;
  color-scheme: dark;
}

.form__grid {
  display: grid;
  gap: 0.9rem;
}

.form__field {
  display: grid;
  gap: 0.3rem;
}

.form__label {
  font-weight: 600;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: #241c0e;
  color: #fff;
  font: inherit;
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__input.is-invalid,
.form__select.is-invalid,
.form__textarea.is-invalid {
  border-color: var(--color-accent);
  background: #3a2a18;
}

.form__hint {
  margin: 0;
  color: #ffe0b8;
  font-size: 0.92rem;
}

.form__hint:empty {
  display: none;
}

.form__status {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
}

.form__status--ok {
  border: 1px solid #b7e0c2;
  background: #234232;
}

.form__status--bad {
  border: 1px solid var(--color-accent);
  background: #4a3018;
}

.form__note {
  margin: 0;
  color: #ffe7c8;
  font-size: 0.95rem;
}

.reviews__grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.reviews__item {
  margin: 0;
  padding: 1.15rem 1.2rem 1.2rem;
  border-left: 4px solid var(--color-accent-strong);
  border-radius: 0 14px 14px 0;
  background: #2e2e2e;
}

.reviews__quote {
  margin: 0;
}

.reviews__quote p {
  margin: 0;
}

.reviews__name {
  margin: 0.75rem 0 0;
  color: var(--color-accent);
  font-style: normal;
}

.story {
  display: grid;
  gap: 1.4rem;
  align-items: start;
}

.story__figure {
  margin: 0;
}

.story__photo,
.team__photo,
.lesson__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--color-line);
  border-radius: 16px;
}

.story__caption {
  margin-top: 0.45rem;
  color: var(--color-accent);
  font-size: 0.92rem;
}

.pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.pyramid__step {
  width: 100%;
  padding: 0.9rem 1rem 1rem;
  border: 2px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-grey);
  text-align: center;
}

.pyramid__year {
  margin: 0 0 0.3rem;
  color: var(--color-accent-strong);
  font-size: 2.2rem;
}

.pyramid__text {
  margin: 0;
}

.team__list {
  display: grid;
  gap: 1rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.team__card {
  padding: 0.8rem;
  border: 2px solid var(--color-line);
  border-radius: 16px;
  background: #2f2f2f;
}

.team__name {
  margin: 0.8rem 0 0.15rem;
  font-size: 2rem;
}

.team__role {
  margin: 0 0 0.45rem;
  color: var(--color-accent);
  font-weight: 600;
}

.team__bio {
  margin: 0;
}

.lessons__list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-bottom: 4.2rem;
}

.lesson-slot {
  margin: 0;
}

.lesson {
  display: grid;
  gap: 1rem;
  padding: 0.9rem;
  border: 2px solid var(--color-line);
  border-radius: 18px;
  background: var(--color-grey);
}

.lesson__title {
  margin: 0 0 0.3rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.lesson__price {
  margin: 0 0 0.8rem;
  color: var(--color-accent-strong);
  font-weight: 600;
}

.lesson__sub {
  margin: 1rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.faq {
  margin-top: 1.2rem;
}

.faq__item {
  border-bottom: 1px solid rgba(255, 181, 90, 0.45);
}

.faq__q {
  padding: 0.9rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "+";
  float: right;
  color: var(--color-accent-strong);
}

.faq__item[open] .faq__q::after {
  content: "–";
}

.faq__a p:last-child {
  margin-bottom: 0.9rem;
}

.contact-list {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list__phone {
  margin: 0;
}

.map {
  margin-top: 1rem;
  overflow: hidden;
  border: 2px solid var(--color-line);
  border-radius: 16px;
  background: #2a2a2a;
}

.map__frame {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.legal {
  padding: 3.4rem 0 4.5rem;
}

.legal h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
}

.legal__date {
  margin: 0 0 1.4rem;
  color: var(--color-accent);
}

.footer {
  padding: 2.8rem 0 2.2rem;
  background: #2a2a2a;
  border-top: 3px solid var(--color-line);
}

.footer__main,
.footer__meta,
.footer__menu,
.footer__contacts,
.footer__policies {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.footer__main {
  gap: 1.6rem;
}

.footer__logo {
  display: block;
  line-height: 0;
}

.footer__logo-img {
  width: 112px;
  height: 112px;
  object-fit: cover;
}

.footer__menu,
.footer__contacts,
.footer__policies {
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__menu a,
.footer__policies a,
.footer__contacts a {
  display: inline-block;
  max-width: 100%;
  color: var(--color-accent);
  text-decoration: none;
}

.footer__menu a:hover,
.footer__policies a:hover,
.footer__contacts a:hover,
.nav__link:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer__phone,
.footer__company,
.footer__owner,
.footer__reg,
.footer__copy {
  margin: 0;
}

.footer__company {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.footer__meta {
  gap: 0.45rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 181, 90, 0.4);
}

.footer__policies {
  margin-top: 0.35rem;
}

@media (min-width: 1200px) {
  .footer__main,
  .footer__meta {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem 2.6rem;
  }

  .footer__menu,
  .footer__contacts,
  .footer__policies {
    width: auto;
  }

  .footer__policies {
    margin-top: 0;
  }
}

.reveal {
  transition: transform 0.75s ease, opacity 0.75s ease;
}

.js .reveal[data-from="left"] {
  opacity: 0;
  transform: translateX(-56px);
}

.js .reveal[data-from="right"] {
  opacity: 0;
  transform: translateX(56px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 700px) {
  .form__grid--split {
    grid-template-columns: 1fr 1fr;
  }

  .form__field--wide {
    grid-column: 1 / -1;
  }

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

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

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

  .pyramid__step:nth-child(1) { width: 58%; }
  .pyramid__step:nth-child(2) { width: 70%; }
  .pyramid__step:nth-child(3) { width: 82%; }
  .pyramid__step:nth-child(4) { width: 92%; }
  .pyramid__step:nth-child(5) { width: 100%; }

  .offer__card {
    grid-template-columns: 180px 1fr;
  }

  .offer__photo {
    width: 180px;
    height: 180px;
  }
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .lesson {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 1.3rem;
  }

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

  .offer__grid {
    grid-template-columns: 1.2fr 0.9fr 1fr;
  }

  .offer__card--piano { grid-column: 1 / 3; }
  .offer__card--guitar { grid-column: 3 / 4; }
  .offer__card--voice { grid-column: 1 / 2; }
  .offer__card--drums { grid-column: 2 / 4; }
  .offer__card--violin { grid-column: 1 / 2; }
  .offer__card--theory { grid-column: 2 / 4; }

  .offer__card--piano,
  .offer__card--drums,
  .offer__card--theory {
    grid-template-columns: 220px 1fr;
  }

  .offer__card--piano .offer__photo,
  .offer__card--drums .offer__photo,
  .offer__card--theory .offer__photo {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 699px) {
  .banner {
    min-height: 460px;
  }

  .band {
    padding: 2.6rem 0;
  }

  .prose > p:first-of-type::first-letter {
    font-size: 3.15rem;
    line-height: 0.8;
  }

  .pyramid {
    align-items: stretch;
  }

  .pyramid__step {
    text-align: left;
  }

  .pyramid__year {
    font-size: 1.85rem;
  }

  .team__list {
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .team__card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: center;
    padding: 0.7rem;
  }

  .team__photo {
    width: 72px;
    grid-row: 1 / span 2;
  }

  .team__name {
    margin: 0;
    font-size: 1.45rem;
  }

  .team__role {
    margin: 0;
  }

  .team__bio {
    grid-column: 1 / -1;
    margin-top: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .js .reveal[data-from="left"],
  .js .reveal[data-from="right"],
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
