/* ============================================================
   tabra.ru — современный минимализм
   Белое поле, чёрный текст, розовый как единственный акцент.
   ============================================================ */

@import url('/fonts/fonts.css');

:root {
  --bg: #ffffff;
  --surface: #f8f8fa;
  --surface-2: #f3f3f6;
  --ink: #121215;
  --ink-soft: #3c3c43;
  --muted: #6b6b73;
  --muted-light: #9a9aa3;
  --line: #ececf0;
  --line-strong: #dedee4;

  --pink: #ff4e87;
  --pink-hover: #f03a76;
  --pink-soft: #ffedf3;
  --pink-deep: #c21e58;

  --green-soft: #eaf6ef;
  --green-deep: #2e6b49;
  --danger: #c0361f;
  --danger-soft: #fdeeea;

  --display: 'Manrope', 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: var(--display);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(18, 18, 21, .04);
  --shadow-card: 0 1px 2px rgba(18, 18, 21, .04), 0 12px 32px -24px rgba(18, 18, 21, .3);
  --shadow-pop: 0 20px 50px -30px rgba(18, 18, 21, .45);
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(38px, 5.2vw, 68px); }
h2 { font-size: clamp(27px, 3.1vw, 42px); }
h3 { font-size: 21px; letter-spacing: -.025em; }
h4 { font-size: 16px; letter-spacing: -.01em; }

p { margin: 0; }

::selection { background: var(--pink); color: #121215; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

/* --------------------------- каркас --------------------------- */

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

.section { padding: 80px 0; }
.section--tight { padding: 44px 0; }

.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.stack-8 { display: grid; gap: 8px; }
.stack-12 { display: grid; gap: 12px; }
.stack-16 { display: grid; gap: 16px; }
.stack-24 { display: grid; gap: 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }

.link {
  color: var(--pink-deep);
  font-weight: 500;
  text-decoration: none;
  transition: color .16s ease;
}
.link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------- шапка --------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-head__row {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.wordmark {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.wordmark::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  margin-left: 3px;
  margin-top: 10px;
}
.wordmark:hover { color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 14.5px;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color .16s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--ink); font-weight: 500; }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
}

.site-head__side { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.city {
  font-size: 13.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.city::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--pink);
  color: var(--ink);
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease;
}
.btn:hover { background: var(--pink-hover); }
.btn:active { transform: translateY(1px); }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: #fff; border-color: var(--ink); }

.btn--soft { background: var(--pink-soft); color: var(--pink-deep); border-color: transparent; }
.btn--soft:hover { background: #ffe0ea; }

.btn--accent { background: var(--pink); color: var(--ink); }
.btn--accent:hover { background: var(--pink-hover); }

.btn--danger { background: #fff; color: var(--danger); border-color: var(--line-strong); }
.btn--danger:hover { background: var(--danger-soft); border-color: #f0c7bd; }

.btn--sm { padding: 8px 16px; font-size: 13.5px; }
.btn--lg { padding: 15px 30px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn[disabled] {
  background: var(--surface-2);
  border-color: transparent;
  color: var(--muted-light);
  pointer-events: none;
}

/* -------------------------- главная -------------------------- */

.hero { padding: 76px 0 56px; }

.hero__intro { max-width: 900px; margin: 0 auto; text-align: center; }

.hero h1 { margin-bottom: 18px; }
.hero__lead { font-size: 17px; color: var(--muted); max-width: 58ch; margin: 0 auto; }

/* строка поиска: поля в одну линию, подписи внутри */

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px auto;
  align-items: stretch;
  gap: 4px;
  margin-top: 34px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.search-bar__field {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 18px;
  border-radius: 14px;
  transition: background .14s ease, box-shadow .14s ease;
}
.search-bar__field:first-child { padding-left: 14px; }
.search-bar__field--metro { border-left: 1px solid var(--line); border-radius: 0 14px 14px 0; }
.search-bar__field:focus-within {
  background: var(--pink-soft);
  box-shadow: inset 0 0 0 1px var(--pink);
}

.search-bar__label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .14s ease;
}
.search-bar__field:focus-within .search-bar__label { color: var(--pink-deep); }

.search-bar__input {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  outline: 0;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
}
.search-bar__input:focus-visible { outline: 0; }
.search-bar__input::placeholder { color: var(--muted-light); }

.search-bar__select {
  appearance: none;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6b73' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
}

.search-bar__submit {
  min-height: 54px;
  padding: 0 28px;
  margin-left: 6px;
  border-radius: 16px;
  font-size: 14.5px;
}

.hero__quick {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero__quick-label { font-size: 12.5px; color: var(--muted-light); }
.hero__quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero__quick-links a {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-soft);
  transition: background .16s ease, color .16s ease;
}
.hero__quick-links a:hover { background: var(--pink-soft); color: var(--pink-deep); }

/* ------------- быстрый вход: мастера, салоны и услуги ------------ */

.quick-nav {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-nav__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding-top: 32px;
  padding-bottom: 32px;
}

.quick-nav__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 38px;
  border-left: 1px solid var(--line-strong);
}
.quick-nav__col:first-child { padding-left: 0; border-left: 0; }
.quick-nav__col:last-child { padding-right: 0; }

.quick-nav__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.quick-nav__title { font-size: 22px; letter-spacing: -.03em; }
.quick-nav__title a { transition: color .16s ease; }
.quick-nav__title a:hover { color: var(--pink-deep); }
.quick-nav__count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.quick-nav__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.quick-nav__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-soft);
  transition: color .14s ease;
}
.quick-nav__list a:hover { color: var(--pink-deep); }
.quick-nav__meta {
  flex: none;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color .14s ease;
}
.quick-nav__list a:hover .quick-nav__meta { color: var(--ink); }

.quick-nav__all {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--pink-deep);
  transition: color .16s ease;
}
.quick-nav__all:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------- секции -------------------------- */

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-head p { color: var(--muted); margin-top: 10px; max-width: 54ch; font-size: 15px; }
.section-head .link { font-size: 14px; }

/* ------------------------ строки-списки --------------------- */

.menu-list { display: grid; }
.menu-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 20px;
  padding: 17px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: background .16s ease;
}
.menu-row:hover { background: var(--surface); }
.menu-row__name { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.menu-row__meta { font-size: 13px; color: var(--muted); text-align: right; }
.menu-row__price { font-family: var(--display); font-size: 15px; font-weight: 600; min-width: 100px; text-align: right; font-variant-numeric: tabular-nums; }

.menu-cols { columns: 2; column-gap: 56px; }
.menu-cols .menu-row { break-inside: avoid; }

/* --------------------------- сети --------------------------- */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* -------------------------- карточки ------------------------ */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.card--hover { transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.card--hover:hover { box-shadow: var(--shadow-pop); border-color: transparent; transform: translateY(-2px); }

.cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--pink-soft);
}
.cover span {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}

.cover--rose   { background: #ffe8ef; }
.cover--mint   { background: #eaf4ee; }
.cover--sand   { background: #f5efe4; }
.cover--lilac  { background: #f0eaf8; }
.cover--peach  { background: #ffefe6; }
.cover--sky    { background: #e8f1f8; }
.cover--sage   { background: #eef2e7; }
.cover--ink    { background: #f0f0f3; }

.salon-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); }
.salon-card .cover { border-radius: var(--r-lg) 0 0 var(--r-lg); }

.salon-card__body { padding: 16px 18px 15px; display: grid; gap: 7px; min-width: 0; }
.salon-card__title { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.salon-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.salon-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 4px;
  font-size: 13px;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}
.tag--brand { background: var(--pink-soft); color: var(--pink-deep); }
.tag--accent { background: var(--surface-2); color: var(--ink-soft); }

.rating {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.rating::before { content: "★"; color: var(--pink); font-size: 12px; }
.rating--lg { font-size: 24px; }
.rating--lg::before { font-size: 15px; }

.stars { color: var(--pink); letter-spacing: 2px; font-size: 13px; }

.pro-card { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 18px; align-items: center; }
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  background: var(--pink-soft) !important;
  flex: none;
}
.avatar--lg { width: 80px; height: 80px; font-size: 26px; }
.avatar--xl { width: 104px; height: 104px; font-size: 34px; }
.pro-card__body { min-width: 0; display: grid; gap: 3px; }
.pro-card__body > div:first-child { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }

/* ------------------------ прайс-лист ------------------------ */

.price-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 12px;
}
.price-head h4 { font-family: var(--display); font-size: 17px; font-weight: 600; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.price-row:hover .price-row__name { color: var(--pink-deep); }
.price-row__name { font-weight: 500; transition: color .16s ease; }
.price-row__sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.price-row__leader { flex: 1; min-width: 24px; }
.price-row__amount {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 8px;
}
.price-row__action { flex: none; }
.price-row__action.btn {
  background: transparent;
  border: 0;
  padding: 0 0 0 14px;
  color: var(--pink-deep);
  font-size: 13.5px;
  font-weight: 500;
}
.price-row__action.btn:hover { background: transparent; color: var(--ink); }

/* совместимость */
.service-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.service-row:last-child { border-bottom: 0; }
.service-row > div:first-child { flex: 1; min-width: 0; }
.service-row .price {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.service-group { padding: 4px 0 12px; }

/* -------------------------- фильтры ------------------------- */

.filters { padding: 22px 24px; display: grid; gap: 16px; }
.filters__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 14px;
  align-items: end;
}

.field { display: grid; gap: 7px; }
.field > label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--muted-light); }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  outline: 0;
  font-size: 14.5px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-light); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
}
.textarea { min-height: 104px; resize: vertical; }
.input--code {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .3em;
  text-align: center;
  padding: 15px 10px 15px 20px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.form-grid .span-2 { grid-column: span 2; }

.field > .btn { justify-self: start; }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--pink); width: 16px; height: 16px; }

/* ------------------------- талон записи --------------------- */

.booking-widget {
  position: sticky;
  top: 96px;
  padding: 26px 24px 24px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.booking-widget > h3 { font-size: 22px; }

.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.slot {
  padding: 10px 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 13.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.slot:hover:not([disabled]) { border-color: var(--ink); }
.slot.is-selected { background: var(--pink); border-color: var(--pink); color: var(--ink); font-weight: 600; }
.slot[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* -------------------------- страница ------------------------ */

.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; color: var(--muted-light);
  padding: 24px 0 0;
}
.breadcrumbs a:hover { color: var(--pink-deep); }

.salon-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
  gap: 32px;
  align-items: start;
  padding: 26px 0 0;
}

.salon-title { display: flex; gap: 20px; align-items: flex-start; }
.salon-title h1 { font-size: clamp(28px, 3.1vw, 40px); }

.info-list { display: grid; gap: 11px; font-size: 14.5px; }
.info-list div { display: flex; gap: 10px; align-items: flex-start; }
.info-list .ico { width: 18px; opacity: .5; flex: none; }

/* отзывы */
.review { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.review:first-of-type { border-top: 0; }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__author { font-weight: 600; font-size: 14.5px; }
.review__body { color: var(--ink-soft); font-size: 15px; max-width: 68ch; }

.rating-bars { display: grid; gap: 8px; }
.rating-bar {
  display: grid; grid-template-columns: 34px 1fr 30px;
  gap: 12px; align-items: center;
  font-size: 12.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rating-bar__track { height: 4px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.rating-bar__fill { height: 100%; background: var(--pink); border-radius: 999px; }

/* -------------------------- панели -------------------------- */

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel__head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
}
.panel__head h3 { font-size: 20px; }
.panel__body { padding: 22px 24px; }

/* ------------------------- кабинеты ------------------------- */

.cabinet {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding: 40px 0 80px;
  align-items: start;
}

.sidebar { position: sticky; top: 96px; display: grid; gap: 12px; }
.sidebar__profile { padding: 18px; display: flex; gap: 12px; align-items: center; }
.sidebar__nav { display: grid; gap: 2px; padding: 8px; }
.sidebar__nav a {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .16s ease, color .16s ease;
}
.sidebar__nav a:hover { background: var(--surface); }
.sidebar__nav a.is-active { background: var(--pink-soft); color: var(--pink-deep); font-weight: 600; }
.sidebar__nav .ico { display: none; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  display: grid;
  gap: 2px;
}
.stat b {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 12.5px; color: var(--muted); }

.booking {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.booking:first-of-type { border-top: 0; }
.booking__date { text-align: center; }
.booking__date b { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.booking__date span { font-size: 11.5px; color: var(--muted); }
.booking__main { display: grid; gap: 3px; min-width: 0; }
.booking__main .title { font-weight: 500; }

.status {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}
.status--new { background: var(--pink-soft); color: var(--pink-deep); }
.status--confirmed { background: var(--green-soft); color: var(--green-deep); }
.status--done { background: var(--surface-2); color: var(--ink-soft); }
.status--cancelled { background: var(--surface); color: var(--muted-light); text-decoration: line-through; }

/* таблицы */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

/* вкладки — сегментированный контрол */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  flex-wrap: wrap;
}
.tabs a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  color: var(--muted);
  transition: background .16s ease, color .16s ease;
}
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-xs); }

/* пагинация */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background .16s ease, color .16s ease;
}
.pagination a:hover { background: var(--pink-soft); color: var(--pink-deep); }
.pagination .is-active { background: var(--ink); color: #fff; }

/* --------------------------- служебное ---------------------- */

.alert { padding: 13px 16px; border-radius: var(--r-sm); font-size: 14px; }
.alert--error { background: var(--danger-soft); color: #8f2a19; }
.alert--ok { background: var(--green-soft); color: var(--green-deep); }
.alert--info { background: var(--surface); color: var(--ink-soft); }

.empty {
  padding: 46px 24px;
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 10px;
  place-items: center;
}
.empty .ico { display: none; }

.code-hint {
  background: var(--pink-soft);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--pink-deep);
}
.code-hint b { font-family: var(--display); font-size: 18px; letter-spacing: .14em; }

/* -------------------------- авторизация --------------------- */

.auth {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 56px 20px 72px;
  background: radial-gradient(700px 380px at 50% -10%, var(--pink-soft), transparent 70%);
}

.auth__card {
  width: min(440px, 100%);
  padding: 36px 32px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-pop);
}
.auth__logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.05em;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
}
.auth__logo::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--pink);
  margin-left: 3px;
  margin-top: 8px;
}
.auth__card h1 { font-size: 30px; }

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
}
.role-tabs label { position: relative; cursor: pointer; }
.role-tabs input { position: absolute; opacity: 0; }
.role-tabs span {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 9px 6px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--muted);
  transition: background .16s ease, color .16s ease;
}
.role-tabs em { font-style: normal; font-size: 11px; color: var(--muted-light); }
.role-tabs input:checked + span { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-xs); }
.role-tabs input:checked + span em { color: var(--pink-deep); }

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

.site-foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 88px; padding: 56px 0 30px; }
.site-foot a { color: var(--ink-soft); }
.site-foot a:hover { color: var(--pink-deep); }
.site-foot .wordmark { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.foot-grid h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 14px; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.foot-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted-light);
}

/* -------------------------- отзывы -------------------------- */

.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.reviews__head p { color: var(--muted); margin-top: 10px; max-width: 54ch; font-size: 15px; }

.reviews__nav { display: flex; flex: none; gap: 8px; }
.reviews__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.reviews__arrow:hover:not(:disabled) { border-color: var(--ink); }
.reviews__arrow:active:not(:disabled) { background: var(--surface); }
.reviews__arrow:disabled { opacity: .28; cursor: default; }

.reviews__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; border-radius: 8px; }

.review-card {
  flex: 0 0 min(380px, 82vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.review-card__stars { color: var(--pink); font-size: 13px; letter-spacing: 3px; }
.review-card__text { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.review-card__by { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--muted); }
.review-card__by b { color: var(--ink); font-weight: 600; }

.cta-band {
  background: var(--pink-soft);
  padding: 48px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 18ch; }
.cta-band p { color: var(--ink-soft); margin-top: 10px; max-width: 46ch; font-size: 15px; }
.cta-band .btn--ghost { background: rgba(255, 255, 255, .7); border-color: transparent; }
.cta-band .btn--ghost:hover { background: #fff; border-color: transparent; }

/* ------------------------ правовые страницы ------------------------ */

.legal { max-width: 74ch; padding: 36px 0 0; }
.legal h1 { font-size: clamp(30px, 4vw, 46px); }
.legal__meta { margin-top: 14px; font-size: 13.5px; color: var(--muted-light); }
.legal__summary {
  margin: 26px 0 10px;
  padding: 20px 22px;
  background: var(--surface);
  border-radius: var(--r);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.legal__summary p { margin: 0; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -.02em; }
.legal p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.legal ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.legal li::marker { color: var(--pink); }
.legal b { color: var(--ink); font-weight: 600; }
/* ------------------------- адаптив -------------------------- */

@media (max-width: 1080px) {
  .hero { padding: 56px 0 40px; }
  .search-bar { grid-template-columns: minmax(0, 1fr) 200px auto; margin-top: 28px; }
  .search-bar__submit { padding: 0 22px; }
  .quick-nav__col { padding: 0 26px; }
  .salon-hero { grid-template-columns: 1fr; }
  .booking-widget { position: static; }
  .cabinet { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: static; }
  .sidebar__nav { display: flex; overflow-x: auto; }
  .sidebar__nav a { white-space: nowrap; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu-cols { columns: 1; }
}

@media (max-width: 900px) {
  .quick-nav__grid { grid-template-columns: 1fr; padding-top: 6px; padding-bottom: 6px; }
  .quick-nav__col {
    padding: 22px 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
  .quick-nav__col:first-child { padding-top: 16px; border-top: 0; }
  .quick-nav__col:last-child { padding-bottom: 18px; }
  .quick-nav__all { margin-top: 0; padding-top: 12px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 40px 0 32px; }
  .search-bar {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 24px;
    padding: 8px;
    border-radius: 18px;
  }
  .search-bar__field { padding: 9px 12px; border-radius: 12px; }
  .search-bar__field:first-child { padding-left: 12px; }
  .search-bar__field--metro {
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: 12px;
  }
  .search-bar__submit { margin: 8px 4px 4px; min-height: 48px; }
  .hero__quick { margin-top: 16px; }
  .site-head__row { min-height: 62px; gap: 14px; }
  .site-nav { display: none; }
  .wordmark { font-size: 22px; }
  .section { padding: 48px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .salon-card { grid-template-columns: 72px minmax(0, 1fr); }
  .salon-card .cover span { font-size: 24px; }
  .booking { grid-template-columns: 62px minmax(0, 1fr); }
  .booking > :last-child { grid-column: 1 / -1; justify-self: start; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .menu-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .menu-row__meta { grid-column: 1 / -1; text-align: left; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .salon-title { flex-direction: column; gap: 14px; }
  .auth__card { padding: 28px 22px 24px; }
  .price-row__action { display: none; }
  .city { display: none; }
  .cta-band { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
