/* Yamaha Corner Stone Music — восстановление из веб-архива (снимок 2023-05-17) */

:root {
  --primary: #008cb2;
  --primary-text: #00647f;   /* AA на белом */
  --primary-btn: #00738f;    /* белый текст на нём даёт ~4.7:1 */
  --primary-on-dark: #45bcdc; /* AA на тёмном фоне */
  --ink: #1b1b1b;
  --ink-soft: #666;
  --dark: #1b1b1b;
  --dark-2: #232323;
  --bg: #fff;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
  --header-h: 90px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.7 var(--font-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 2px; }
.site-header :focus-visible,
.hero :focus-visible,
.features :focus-visible,
.products :focus-visible,
.school :focus-visible,
.newsletter :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--primary-btn);
  color: #fff;
  font: 600 12px/1 var(--font-head);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 2px;
}
.btn:hover { background: #005b73; text-decoration: none; }
.btn--ghost { background: transparent; border: 2px solid #fff; padding: 10px 24px; }
.btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---------- шапка: прозрачная поверх слайдера, тёмная при скролле ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .25s, height .25s;
}
.site-header.is-stuck { background: rgba(10, 10, 10, .9); height: 70px; }

.site-header__inner {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { position: relative; z-index: 60; display: block; }
.brand img { width: 200px; height: auto; }

.nav-toggle {
  position: relative;
  z-index: 60;
  margin-left: auto;
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle__bar { display: block; height: 2px; background: #fff; margin: 5px 0; }

.primary-nav { margin-left: auto; }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0; padding: 0;
  list-style: none;
}
.primary-nav__list > li { position: relative; }
.primary-nav__list > li > a {
  display: block;
  padding: 10px 12px;
  color: #fff;
  font: 700 12px/1 var(--font-head);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.primary-nav__list > li > a:hover { color: var(--primary-on-dark); text-decoration: none; }

.has-dropdown { display: flex; align-items: center; }
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 0; height: 0;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
}

.dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 260px;
  margin: 0; padding: 8px 0;
  background: #fff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .16);
  list-style: none;
  display: none;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }
.dropdown span {
  display: block;
  padding: 8px 18px;
  color: var(--ink);
  font-size: 13px;
}

/* ---------- слайдер ---------- */

.hero { position: relative; background: #232323; }
.hero__track { position: relative; }

.hero__slide {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) 0 60px;
  color: #fff;
}
.hero__slide[hidden] { display: none; }

.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 44% 34%;
  background-repeat: no-repeat;
}
.hero__slide--1 .hero__bg { background-image: url("../img/hero-1.png"); }
.hero__slide--2 .hero__bg { background-image: url("../img/hero-2.png"); }
.hero__slide--3 .hero__bg { background-image: url("../img/hero-3.png"); }

@media (prefers-reduced-motion: no-preference) {
  .hero__slide.is-active .hero__bg { animation: hero-zoom 9s ease-out both; }
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .25);
}

.hero__body {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.hero__body > * { max-width: min(640px, 100%); margin-inline: auto; }
.hero__body--left { text-align: left; }
.hero__body--left > * { margin-inline: 0; }

.hero__body h1,
.hero__body h2 {
  font-size: clamp(28px, 4.4vw, 46px);
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.hero__body p { font-size: 17px; margin-block: 20px 0; margin-inline: auto; }
.hero__body--left p { margin-inline: 0; }
.hero__body .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.hero__body--left .hero__actions { justify-content: flex-start; }

.hero__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .3);
  border: 0; border-radius: 50%;
  color: #fff; cursor: pointer;
}
.hero__nav:hover { background: rgba(0, 0, 0, .55); }
.hero__nav svg { width: 26px; height: 26px; fill: currentColor; }
.hero__nav--prev { left: 16px; }
.hero__nav--next { right: 16px; }

.hero__controls {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.hero__dots {
  display: flex;
  gap: 2px;
  padding: 3px 6px;
  background: rgba(0, 0, 0, .45);
  border-radius: 999px;
}
.hero__pause {
  padding: 5px 12px;
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #fff;
  font: 500 11px/1.4 var(--font-head);
  letter-spacing: .04em;
  cursor: pointer;
}
.hero__pause:hover { background: rgba(0, 0, 0, .62); }
.hero__dots button {
  width: 24px; height: 24px;
  padding: 0;
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.hero__dots button::before {
  content: "";
  width: 12px; height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
}
.hero__dots button[aria-current="true"]::before { background: #fff; }

/* ---------- три преимущества ---------- */

.features { background: var(--dark); color: #fff; padding: 60px 0 50px; }
.features__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0; padding: 0;
  list-style: none;
}
.feature { display: flex; align-items: center; gap: 16px; min-width: 0; }
.feature__icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 2px solid #8f8f8f;
  border-radius: 50%;
  color: #8f8f8f;
}
.feature__icon svg { width: 24px; height: 24px; fill: currentColor; }
.feature h3 { font-size: 15px; font-weight: 600; letter-spacing: .02em; }

/* ---------- секции с карточками ---------- */

.products, .school { padding: 0 0 60px; background: var(--dark); color: #fff; }
.school { padding-bottom: 70px; }

.section-title {
  font-size: clamp(20px, 2.4vw, 26px);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: .04em;
  margin-bottom: 34px;
}

.grid { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0; }

.card { text-align: center; }
.card__media { margin: 0 0 14px; overflow: hidden; }
.card--product .card__media { height: 296px; max-width: 247px; margin-inline: auto; display: grid; place-items: center; }
.card--product .card__media img { max-height: 100%; width: auto; object-fit: contain; }
.card--course .card__media { aspect-ratio: 3 / 2; background: #eee; }
.card--course .card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__title { font-size: 14px; font-weight: 600; line-height: 1.45; }
.card__price { margin: 8px 0 0; color: var(--primary-on-dark); font-weight: 700; }

.course {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .35);
}
.course__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.course::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, .78) 100%);
}
.course__date {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  margin: 0;
  padding: 7px 9px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 600 11px/1.25 var(--font-head);
  text-align: center;
}
.course__day { display: block; font-size: 15px; }
.course__month { display: block; text-transform: uppercase; letter-spacing: .04em; }
.course__text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 18px 16px;
  color: #fff;
  text-align: center;
}
.course__title { font-size: 14px; font-weight: 700; text-transform: uppercase; line-height: 1.35; }
.course__title::after {
  content: "";
  display: block;
  width: 44px; height: 2px;
  margin: 9px auto;
  background: rgba(255, 255, 255, .5);
}
.course__excerpt { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); }

/* ---------- баннер подписки ---------- */

.newsletter {
  position: relative;
  padding: 90px 0;
  background: #1b1b1b url("../img/newsletter-bg.jpg") no-repeat center / cover;
  color: #fff;
  text-align: center;
}
.newsletter::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .68);
}
.newsletter .wrap { position: relative; }
.newsletter h2 { font-size: clamp(22px, 3vw, 32px); text-transform: uppercase; }
.newsletter p { max-width: 620px; margin: 16px auto 0; }

/* ---------- футер ---------- */

.site-footer { background: #222; color: #b7b7b7; }
.site-footer__cols {
  background: #222;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-top: 54px;
  padding-bottom: 44px;
}
.footer-col { min-width: 0; }
.footer-col h2 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-col p { margin: 0; font-size: 14px; }

.footer-list { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-list li:last-child { border-bottom: 0; }
.footer-list__name { flex: 1; color: #ddd; }
.footer-list__price { color: var(--primary-on-dark); white-space: nowrap; }
.footer-list--news time {
  flex: none;
  width: 46px;
  color: #fff;
  font: 600 12px/1.6 var(--font-head);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 2px;
  padding: 2px 0;
  height: fit-content;
}

.site-footer__bottom { background: #000; }
.site-footer__bottom .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.site-footer__bottom img { width: 120px; opacity: .85; }
.copyright { margin: 0; font-size: 13px; }

/* ---------- адаптив ---------- */

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 849px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .features__list { grid-template-columns: 1fr; }
}

@media (max-width: 549px) {
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .grid--courses { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; }

  .nav-toggle { display: block; }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    margin: 0;
    padding: 90px 24px 40px;
    background: #0a0a0a;
    overflow-y: auto;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__list > li { flex-wrap: wrap; }
  .primary-nav__list > li > a { flex: 1; padding: 14px 0; font-size: 14px; }
  .dropdown {
    position: static;
    display: block;
    width: 100%;
    background: transparent;
    border-top: 0;
    box-shadow: none;
    padding: 0 0 10px;
  }
  .has-dropdown > a::after { display: none; }
  .dropdown span { color: #bdbdbd; padding: 7px 14px; }

}

@media (max-width: 767px) {
  .hero__slide { min-height: 0; aspect-ratio: 1 / 1; padding: var(--header-h) 0 50px; }
  .hero__body, .hero__body--left { text-align: center; }
  .hero__body--left > *, .hero__body--left p { margin-inline: auto; }
  .hero__body p { font-size: 15px; }
  .hero__body .hero__actions { justify-content: center; }
  .hero__nav { display: none; }

  .grid--4 { gap: 18px; }
  .course { height: 260px; }

  .site-footer__cols { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__bottom .wrap { flex-direction: column; text-align: center; }
}
