/* =========================================================
   СТИЛИ ОТДЕЛЬНЫХ БЛОКОВ СТРАНИЦ
   ========================================================= */

/* ---------- Главная: первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  padding: 96px 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 54px;
  color: var(--white);
  margin-bottom: 20px;
}

.hero__text {
  font-size: 19px;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 32px;
}

.hero__text p + p {
  margin-top: 1em;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

/* ---------- Цифры опыта ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fact {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.fact__num {
  display: block;
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 6px;
}

.fact__label { color: var(--muted); font-size: 16px; }

/* ---------- Текстовая колонка ---------- */
.prose { max-width: 62ch; }
.prose p { margin-bottom: 1.1em; }

/* ---------- Две карточки-развилки ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.split__card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.split__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.split__card h3 {
  font-size: 25px;
  color: var(--dark);
  margin-bottom: 10px;
}

.split__card p {
  color: var(--muted);
  margin-bottom: 24px;
}

.split__more {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent-2);
}

/* ---------- Услуги и цены ---------- */
.services { display: grid; gap: 20px; }

.service {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
}

.service h3 {
  font-size: 23px;
  color: var(--dark);
  margin-bottom: 6px;
}

.service p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* Плашка «выбор клиентов» рядом с названием услуги */
.service__badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.service__badge::before {
  content: "★ ";
  color: var(--accent-2);
}

.service__price {
  text-align: right;
  white-space: nowrap;
}

.service__sum {
  display: block;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  color: var(--dark);
}

.service__time {
  font-size: 14px;
  color: var(--muted);
}

/* Ряд кнопок внутри обычного блока */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Шаги записи ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }

.steps li {
  position: relative;
  padding-left: 56px;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
}

/* ---------- Видео ---------- */
.video {
  margin: 32px 0 0;
  max-width: 62ch;        /* по ширине текста рядом */
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__caption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Фотографии кабинета ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

/* Первое фото — горизонтальное, во всю ширину */
.gallery figure:first-child {
  grid-column: 1 / -1;
}

/* Чтобы общий вид не занимал целый экран — срезаем лишний потолок и пол */
.gallery figure:first-child img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 60%;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Адрес кабинета ---------- */
.place {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.place__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
}

.place__card h3 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 12px;
}

.place__card ul li {
  margin-bottom: 10px;
  color: var(--muted);
}

.place__card strong { color: var(--text); }

/* ---------- Призыв записаться ---------- */
.cta {
  text-align: center;
  background: var(--warm-bg);
  border-radius: 28px;
  padding: 52px 40px;
  box-shadow: var(--shadow);
}

.cta h2 {
  font-size: 32px;
  color: var(--dark);
}

.cta p {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 28px;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Телефон под кнопками: воздух сверху, без лишней пустоты снизу */
.cta .note {
  margin-top: 20px;
  margin-bottom: 0;
}

/* ---------- Карточка курса на странице массажистам ---------- */
.course-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  background: var(--warm-bg);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.course-card h2 {
  font-size: 32px;
  color: var(--dark);
}

.course-card__price {
  font-size: 19px;
  margin-bottom: 26px;
}

.course-card__price strong {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--dark);
}

.course-card__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 16px;
}

.course-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(132, 98, 60, .18);
}

/* ---------- Плашка «скоро будет больше» ---------- */
.soon {
  border: 2px dashed rgba(132, 98, 60, .35);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: var(--muted);
  background: var(--card-bg);
}
