/* ============================================================
   Студия «Лакова», Тольятти — основные стили
   Палитра: белый фон, чёрный текст, чёрная шапка
   ============================================================ */

:root {
  --accent: #111111;
  --ink-hover: #000000;
  --ink-strong: #000000;
  --surface: #f7f7f7;
  --surface-2: #ededed;
  --line: #e3e3e3;
  --ink: #111111;
  --muted: #5c5c5c;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 24px 54px rgba(0, 0, 0, 0.13);
  --container: 1160px;
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-title: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 14px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ink-hover);
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Шапка ---------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #111111;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #111111;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header .logo {
  color: var(--white);
}

.header .logo:hover {
  color: rgba(255, 255, 255, 0.72);
}

/* На тёмном фоне (шапка и подвал) значок лака делаем светлым, иначе он сливается. */
.header .logo__mark,
.logo--light .logo__mark {
  background: linear-gradient(160deg, #ffffff 0%, #bdbdbd 100%);
  box-shadow: none;
}

.logo__mark {
  width: 16px;
  height: 22px;
  border-radius: 8px 8px 6px 6px / 12px 12px 5px 5px;
  background: linear-gradient(160deg, var(--accent) 0%, #3a3a3a 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.logo--light {
  color: var(--white);
}

.logo--light:hover {
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--white);
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.25s ease;
}

.nav a:hover {
  color: rgba(255, 255, 255, 0.72);
}

.nav a:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.header__phone:hover {
  color: rgba(255, 255, 255, 0.72);
}

.header .btn--primary {
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.header .btn--primary:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- Кнопки ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
}

.btn--primary:hover {
  background: var(--ink-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

.btn--ghost {
  background: var(--white);
  color: var(--accent);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------------- Первый экран ---------------- */

.hero {
  position: relative;
  padding: 74px 0 84px;
  background:
    radial-gradient(760px 420px at 88% -10%, var(--surface-2) 0%, rgba(255, 255, 255, 0) 68%),
    var(--white);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 7px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-hover);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(38px, 5vw, 62px);
  margin-bottom: 20px;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__lead {
  max-width: 520px;
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero__stat dt {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-strong);
}

.hero__stat dd {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.hero__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hand {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  height: 150px;
  padding: 0 24px 22px;
  background: linear-gradient(150deg, #f2f2f2 0%, #ffffff 100%);
}

.hand__nail {
  width: 26px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #4a4a4a 0%, var(--accent) 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.hand__nail--1 { height: 44px; opacity: 0.55; }
.hand__nail--2 { height: 62px; opacity: 0.7; }
.hand__nail--3 { height: 74px; }
.hand__nail--4 { height: 62px; opacity: 0.7; }
.hand__nail--5 { height: 40px; opacity: 0.5; }

.hero__card-body {
  padding: 24px 26px 28px;
}

.hero__card-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.slots {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.slots li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.slots li:last-child {
  border-bottom: none;
}

.slots span {
  color: var(--muted);
}

.slots b {
  color: var(--ink-strong);
}

/* ---------------- Секции ---------------- */

.section {
  padding: 84px 0;
}

.section--tinted {
  background: var(--surface);
}

.section__head {
  max-width: 700px;
  margin: 0 auto 46px;
  text-align: center;
}

.section__title {
  font-size: clamp(30px, 3.6vw, 44px);
}

.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

/* Прайс: карточки идут по две в ряд. Если их нечётное количество,
   последняя остаётся одна — ставим её по центру, а не у левого края. */
.grid--services {
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}

.grid--services > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: 100%;
  max-width: calc(50% - 12px);
  margin: 0 auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #c4c4c4;
  box-shadow: var(--shadow-hover);
}

.card h3 {
  font-size: 23px;
}

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

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

.icon {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background-color: var(--surface);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}

.icon--sparkle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z'/%3E%3Cpath d='M18 16l.8 2.2L21 19l-2.2.8L18 22l-.8-2.2L15 19l2.2-.8z'/%3E%3C/svg%3E");
}

.icon--clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 1.9'/%3E%3C/svg%3E");
}

.icon--heart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.2-4.5-7.2-9.4A4.1 4.1 0 0 1 12 8a4.1 4.1 0 0 1 7.2 2.6C19.2 15.5 12 20 12 20z'/%3E%3C/svg%3E");
}

.icon--star {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.4 5.9.8-4.3 4.1 1 5.9-5.2-2.8-5.2 2.8 1-5.9L3.5 9.7l5.9-.8z'/%3E%3C/svg%3E");
}

/* ---------------- Прайс ---------------- */

.card--price {
  display: flex;
  flex-direction: column;
}

.card__title {
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--surface-2);
  font-size: 25px;
  text-align: center;
}

.pricelist {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}

.pricelist__subtitle {
  margin: 22px 0 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Шапка с уровнями мастеров. Колонки те же, что и у строк услуг ниже,
   поэтому цены встают ровно под своими подписями. */
.pricelist__levels {
  display: grid;
  grid-template-columns: 1fr repeat(var(--cols), minmax(46px, auto));
  column-gap: 10px;
  padding: 0 10px 6px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}

.pricelist__levels span:not(:first-child) {
  text-align: right;
}

.pricelist__row {
  border-bottom: 1px dashed var(--line);
}

.pricelist__row:last-child {
  border-bottom: none;
}

/* Вся строка — кнопка, открывающая форму записи с этой услугой. */
.pricelist__link {
  display: grid;
  grid-template-columns: 1fr repeat(var(--cols), minmax(46px, auto));
  align-items: baseline;
  column-gap: 10px;
  width: 100%;
  padding: 11px 10px;
  margin: 0 -10px;
  border: none;
  border-radius: 10px;
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pricelist__link:hover,
.pricelist__link:focus-visible {
  background: var(--surface);
  outline: none;
}

.pricelist__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.pricelist__price {
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.pricelist__notes {
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pricelist__notes li + li {
  margin-top: 4px;
}

/* «Записаться →» занимает всю ширину строки под названием и ценами.
   По умолчанию почти не видна, проявляется при наведении — чтобы
   не зашумлять длинный прайс, но подсказывать, что строка кликабельна. */
.pricelist__cta {
  grid-column: 1 / -1;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  opacity: 0.55;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.pricelist__link:hover .pricelist__cta,
.pricelist__link:focus-visible .pricelist__cta {
  color: var(--ink);
  opacity: 1;
}

.note {
  max-width: 720px;
  margin: 34px auto 0;
  padding: 18px 26px;
  border: 1px dashed #cccccc;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* ---------------- Этапы ---------------- */

.step {
  padding: 26px 22px;
  border-left: 2px solid var(--surface-2);
}

.step__number {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.55;
}

.step h3 {
  font-size: 21px;
}

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

/* ---------------- Мастера ---------------- */

.card--master {
  text-align: center;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(150deg, #f0f0f0 0%, #d6d6d6 100%);
  color: var(--ink-strong);
  font-family: var(--font-title);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.card--master h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.master__role {
  margin: 0 0 4px;
  color: var(--accent) !important;
  font-size: 14px;
  font-weight: 600;
}

.master__exp {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.master__about {
  font-size: 15px;
  color: var(--muted);
}

/* ---------------- Отзывы ---------------- */

.card--review {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.review__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

/* Кружок над отзывом — фото или, пока его нет, инициалы на сером фоне. */
.review__avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.review__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #f0f0f0 0%, #d6d6d6 100%);
  color: var(--ink-strong);
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 600;
}

.stars {
  letter-spacing: 3px;
}

.star {
  color: var(--line);
  font-size: 18px;
}

.star--on {
  color: #111111;
}

.card--review p {
  flex: 1;
  color: var(--ink);
  font-size: 16px;
}

.review__author {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-strong);
  font-weight: 600;
  font-size: 15px;
}

/* ---------------- Адреса ---------------- */

.card--salon h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.salon__address {
  margin: 0 0 6px !important;
  color: var(--ink) !important;
  font-size: 17px !important;
  font-weight: 600;
}

.salon__landmark {
  margin-bottom: 18px !important;
  font-size: 14px !important;
}

.salon__meta {
  margin: 0 0 18px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.salon__meta dt {
  font-size: 13px;
  color: var(--muted);
}

.salon__meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.salon__meta a {
  color: var(--ink-strong);
}

.link-arrow {
  font-weight: 600;
  font-size: 15px;
}

.link-arrow::after {
  content: " →";
}

/* ---------------- Форма записи ---------------- */

.booking {
  background:
    radial-gradient(620px 340px at 12% 0%, var(--surface-2) 0%, rgba(255, 255, 255, 0) 70%),
    var(--white);
}

.booking__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.booking__text .section__title,
.booking__text .section__sub {
  text-align: left;
}

.booking__contact {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.booking__contact a {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink-strong);
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 30px;
  box-shadow: var(--shadow);
}

.form__row {
  margin-bottom: 18px;
}

.form__row label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

.form__row label small {
  color: var(--muted);
  font-weight: 400;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form textarea {
  resize: vertical;
  min-height: 84px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.10);
}

.form input.is-invalid {
  border-color: #d5486f;
  box-shadow: 0 0 0 4px rgba(213, 72, 111, 0.1);
}

.form__status {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.form__status.is-ok {
  color: #2f8a5b;
}

.form__status.is-error {
  color: #d5486f;
}

.form__policy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ---------------- Всплывающая форма записи ---------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px;
  padding: 32px 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal__close:hover {
  background: var(--surface-2);
}

.modal__title {
  margin: 0 0 4px;
  font-size: 26px;
  padding-right: 30px;
}

.modal__service {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.modal__service:empty {
  display: none;
}

.modal .form {
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* ---------------- Подвал ---------------- */

.footer {
  background: var(--ink-strong);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 26px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer a:hover {
  color: var(--white);
}

.footer__tagline {
  margin: 16px 0 6px;
  font-size: 15px;
}

.footer__hours {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 15px;
}

.footer__title {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 19px;
}

.footer__address {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------- Страница 404 ---------------- */

.error-page {
  padding: 110px 0;
  text-align: center;
}

.error-page__code {
  font-family: var(--font-title);
  font-size: 96px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

/* ---------------- Акции ---------------- */

.card--promo {
  position: relative;
  padding-top: 34px;
}

.promo__badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 600;
}

.card--promo h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

/* Одна акция — не растягиваем её на всю ширину и не жмём в узкую колонку:
   показываем компактной карточкой по центру, но крупнее обычной. */
.card--promo:only-child {
  grid-column: 1 / -1;
  max-width: 460px;
  margin: 0 auto;
  padding: 42px 40px 40px;
  text-align: center;
}

.card--promo:only-child .promo__badge {
  margin-bottom: 20px;
  padding: 10px 24px;
  font-size: 30px;
}

.card--promo:only-child h3 {
  font-size: 30px;
  margin-bottom: 12px;
}

.card--promo:only-child p {
  font-size: 17px;
  line-height: 1.6;
}

/* ---------------- О салоне (карусель) ---------------- */

.about {
  padding: 84px 0;
  background: #111111;
  color: var(--white);
}

.section__head--light .section__title {
  color: var(--white);
}

.section__head--light .section__sub {
  color: rgba(255, 255, 255, 0.62);
}

/* Слайды — фото во весь блок, текст поверх него. Каждый слайд лежит
   друг на друге (position: absolute) и появляется плавным кроссфейдом,
   пока фон медленно и почти незаметно увеличивается — эффект Кен Бёрнса,
   он и даёт то самое ощущение «плавности», а не жёсткого перелистывания. */
.carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition: opacity 1.1s ease, visibility 0s linear 0s;
}

.slide__bg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 7s ease-out;
}

.slide.is-active .slide__bg {
  transform: scale(1.1);
}

.slide__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 42%,
    rgba(0, 0, 0, 0.05) 75%
  );
}

.slide__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 620px;
  padding: 40px 46px 46px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.slide.is-active .slide__body {
  opacity: 1;
  transform: translateY(0);
}

.slide__number {
  display: block;
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.slide__title {
  font-size: 32px;
  color: var(--white);
  margin-bottom: 12px;
}

.slide__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
}

.carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.carousel__arrow:hover {
  background: var(--white);
  color: #111111;
  border-color: var(--white);
}

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

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: background 0.2s ease, width 0.25s ease, border-radius 0.25s ease;
}

.carousel__dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.carousel__dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: var(--white);
}

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

@media (max-width: 1000px) {
  .slide__body {
    padding: 32px 30px;
  }

  .slide__title {
    font-size: 26px;
  }

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

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

  .hero__inner,
  .booking__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    background: #111111;
    border-bottom: 1px solid #111111;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .burger {
    display: flex;
  }

  .header__phone {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 58px 0;
  }

  .about {
    padding: 58px 0;
  }

  /* На узком экране фото и текст не помещаются рядом в один кадр 16:9 —
     делаем блок выше, чтобы у текста внизу было достаточно места. */
  .carousel__viewport {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
  }

  .slide__body {
    max-width: none;
    padding: 24px 20px 28px;
  }

  .slide__title {
    font-size: 24px;
  }

  .carousel__controls {
    gap: 16px;
  }

  .hero {
    padding: 48px 0 62px;
  }

  .grid--3,
  .grid--4,
  .grid--services {
    grid-template-columns: 1fr;
  }

  .grid--services > :last-child:nth-child(odd) {
    max-width: none;
  }

  /* На телефоне колонки уровней рядом с названием не помещаются: убираем
     общую шапку, а к каждой цене подписываем её уровень прямо в строке —
     иначе непонятно, какая цена к какому мастеру относится. */
  .pricelist__levels {
    display: none;
  }

  .pricelist__link {
    grid-template-columns: 1fr;
    row-gap: 3px;
  }

  .pricelist__name {
    margin-bottom: 2px;
  }

  .pricelist__price {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    font-weight: 600;
  }

  .pricelist__price[data-level]::before {
    content: attr(data-level);
    color: var(--muted);
    font-weight: 400;
    font-size: 13px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__stat dt {
    font-size: 24px;
  }

  .form {
    padding: 26px 20px;
  }

  .btn {
    width: 100%;
  }

  .btn--sm {
    width: auto;
  }
}
