:root {
  --background: #f6f3ee;
  --surface: #ebe5dd;
  --ink: #292522;
  --muted: #6f6963;
  --accent: #9d6f58;
  --line: #d7d0c7;
  --font: "Manrope", Arial, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

.header {
  position: relative;
  z-index: 20;
  background: var(--background);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  position: relative;
  z-index: 11;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

.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;
}

.intro {
  padding: 100px 0 112px;
}

.label {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  margin-bottom: 36px;
  font-size: clamp(54px, 9vw, 92px);
  font-weight: 500;
  line-height: 1;
}

.intro__text {
  max-width: 650px;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 18px;
}

.intro__text p {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 36px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.program {
  padding: 104px 0;
  background: var(--surface);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 64px;
}

.section-heading h2,
.price-layout h2,
.contacts h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 500;
  line-height: 1.08;
}

.section-heading > p:last-child {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
}

.lesson-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.lesson {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 40px;
  padding: 44px 0 48px;
  border-bottom: 1px solid var(--line);
}

.lesson__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.lesson__number {
  color: var(--accent);
  font-weight: 600;
}

.lesson__duration {
  color: var(--muted);
}

.lesson__content {
  max-width: 620px;
}

.lesson__content h3 {
  margin-bottom: 16px;
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 500;
  line-height: 1.2;
}

.lesson__content p {
  margin-bottom: 14px;
}

.lesson__content .note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.price-section {
  padding: 104px 0;
}

.price-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
}

.price-layout h2 {
  margin-bottom: 0;
  white-space: nowrap;
}

.price-details {
  padding-top: 34px;
}

.price-details > p {
  margin-bottom: 28px;
  color: var(--muted);
}

.price-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.price-details li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.contacts {
  padding: 104px 0 96px;
  background: var(--surface);
  color: var(--ink);
}

.contacts__inner {
  max-width: 920px;
}

.contacts .contacts__title {
  max-width: 960px;
  margin-bottom: 34px;
  font-family: var(--display);
  font-size: clamp(53px, 8.3vw, 102px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.contacts__title > span,
.contacts__title em {
  display: block;
}

.contacts__mobile-line {
  display: none !important;
}

.contacts__title em {
  width: 100%;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 500;
  text-align: center;
}

.contacts__lead {
  max-width: 590px;
  margin-bottom: 48px;
  color: var(--muted);
}

.contact-links {
  border-top: 1px solid var(--line);
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: color 160ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--accent);
}

.contact-links a span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: 24px 0;
  background: var(--ink);
  color: #8f8781;
  border-top: 1px solid #403a36;
  font-size: 12px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 36px, 620px);
  }

  .header__inner {
    min-height: 64px;
    padding-right: env(safe-area-inset-right);
  }

  .nav--desktop {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] {
    background: var(--surface);
    border-radius: 50%;
  }

  .menu-toggle:hover,
  .menu-toggle:active {
    color: var(--accent);
  }

  .menu-toggle:focus-visible,
  .mobile-menu__nav a:focus-visible,
  .mobile-menu__socials a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }

  .menu-toggle__line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: block;
    pointer-events: none;
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu.is-open {
    display: block;
    pointer-events: auto;
  }

  .mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(41, 37, 34, 0.46);
    opacity: 0;
    transition: opacity 360ms ease;
  }

  .mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(230px, 62vw, 360px);
    min-height: 100dvh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 24px 0 0 24px;
    box-shadow: -18px 0 50px rgba(41, 37, 34, 0.12);
    transform: translateX(100%);
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
  }

  .mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
  }

  .mobile-menu__inner {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: calc(104px + env(safe-area-inset-top));
    padding-right: calc(18px + env(safe-area-inset-right));
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  .mobile-menu__nav {
    display: grid;
    border-top: 1px solid var(--line);
  }

  .mobile-menu__nav a {
    min-height: 62px;
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(31px, 9vw, 42px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.1;
    transition: color 160ms ease, padding-left 160ms ease;
  }

  .mobile-menu__nav a:hover,
  .mobile-menu__nav a:active {
    padding-left: 7px;
    color: var(--accent);
  }

  .mobile-menu__socials {
    display: flex;
    gap: 12px;
    margin-top: auto;
  }

  .mobile-menu__socials a {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    align-items: center;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  .mobile-menu__socials a:hover,
  .mobile-menu__socials a:active {
    color: var(--background);
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
  }

  .mobile-menu__socials svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.7;
  }

  .mobile-menu__socials .icon-whatsapp {
    fill: currentColor;
    stroke: none;
  }

  .intro {
    padding: 72px 0 80px;
  }

  h1 {
    margin-bottom: 28px;
    font-size: clamp(50px, 18vw, 72px);
  }

  .intro__text {
    font-size: 16px;
  }

  .program,
  .price-section,
  .contacts {
    padding: 72px 0;
  }

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

  .section-heading h2,
  .price-layout h2,
  .contacts h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .contacts .contacts__title {
    margin-bottom: 28px;
    font-size: clamp(40px, 11vw, 44px);
    line-height: 0.96;
    text-align: center;
  }

  .contacts__title > span {
    font-size: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-align: center;
    white-space: normal;
  }

  .contacts__desktop-line {
    display: none !important;
  }

  .contacts__mobile-line {
    display: block !important;
  }

  .contacts__title .contacts__dash {
    display: block;
    width: auto;
    margin-top: 10px;
    font-size: 0.72em;
    line-height: 1;
    text-align: center;
  }

  .contacts__title em {
    margin-top: 10px;
    font-size: 1.08em;
  }

  .lesson {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 0 38px;
  }

  .lesson__meta {
    flex-direction: row;
    justify-content: space-between;
  }

  .price-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .price-details {
    padding-top: 0;
  }
}

body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

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

  .nav a,
  .contact-links a,
  .menu-toggle,
  .menu-toggle__line,
  .mobile-menu__backdrop,
  .mobile-menu__panel,
  .mobile-menu__nav a,
  .mobile-menu__socials a {
    transition: none;
  }
}
