/* ═══════════════════════════════════════════
/ Nest design tokens
/ ═══════════════════════════════════════════ */
:root {
  --bg: #fffdf7;
  --card: #ffffff;
  --border-light: #e5ddd0;
  --border-warm: #d9cfc0;
  --border-hair: #f0e8d8;

  --peach: #feacba;
  --peach-deep: #f98da0;
  --peach-soft: #fff0ec;
  --yellow: #fcfbcd;
  --yellow-soft: #fefdea;

  --text: #1e1a16;
  --text-2: #5c554c;
  --text-3: #7d756b;

  --green: #6aad58;
  --green-bg: #eef7ec;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(60, 45, 30, 0.04);
  --shadow-md: 0 6px 22px rgba(60, 45, 30, 0.08);

  --maxw: 1280px;
  --pad: 32px;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}

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

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

.ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.link {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-warm);
  padding-bottom: 1px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.link:hover {
  color: var(--text);
  border-color: var(--peach);
}

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.1s;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--peach);
  color: var(--text);
}
.btn--primary:hover {
  background: var(--peach-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-light);
}
.btn--ghost:hover {
  background: var(--yellow-soft);
  color: var(--text);
  border-color: var(--border-warm);
}

.btn--outline {
  background: var(--card);
  color: var(--text);
  border-color: var(--border-warm);
  height: 44px;
  padding: 0 26px;
}
.btn--outline:hover {
  background: var(--yellow-soft);
  border-color: var(--peach);
}

.btn--danger {
  background: transparent;
  color: var(--peach-deep);
  border-color: var(--peach-deep);
}
.btn--danger:hover {
  background: var(--peach-deep);
  color: var(--card);
}

.btn--sm {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

.iconbtn {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  color: var(--text-2);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.iconbtn:hover {
  background: var(--peach-soft);
  color: var(--peach-deep);
  border-color: var(--peach);
}
.iconbtn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: var(--peach-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--r-pill);
}

/* ═══ Topbar ═══ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 247, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hair);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand__mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border-radius: 10px;
  color: var(--peach-deep);
}
.brand__mark svg {
  width: 20px;
  height: 20px;
}
.brand__mark--sm {
  width: 26px;
  height: 26px;
}
.brand__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.city {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 14px;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.city:hover {
  border-color: var(--peach);
  color: var(--text);
}

.topsearch {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  padding-left: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.topsearch:focus-within {
  border-color: var(--peach);
  box-shadow: 0 0 0 3px var(--peach-soft);
}
.topsearch__ico {
  color: var(--text-3);
}
.topsearch input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  border: 0;
  background: none;
  outline: none;
}
.topsearch input::placeholder {
  color: var(--text-3);
}
.topsearch__btn {
  height: 34px;
  margin-right: 4px;
  padding: 0 18px;
  background: var(--peach);
  border: 0;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.topsearch__btn:hover {
  background: var(--peach-deep);
}

.topnav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--text-2);
}
.topnav a {
  transition: color 0.15s;
}
.topnav a:hover {
  color: var(--text);
}

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

.topbar__user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.topbar__avatar--placeholder {
  display: grid;
  place-items: center;
  background: var(--peach-soft);
  color: var(--peach-deep);
  font-size: 14px;
  font-weight: 600;
}
.topbar__user-name {
  font-size: 14px;
  color: var(--text-2);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
}
.burger span {
  width: 15px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
}

/* ═══ Mobile menu (burger drawer) ═══ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 30, 22, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.2s;
}
.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
}
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--card);
  box-shadow: -8px 0 30px rgba(40, 28, 18, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-hair);
}
.mobile-menu__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.mobile-menu__close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--text-2);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.mobile-menu__close:hover {
  background: var(--yellow-soft);
  color: var(--text);
}
.mobile-menu__close:active {
  background: var(--peach-soft);
}
.mobile-menu__body {
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu__nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r-md);
  transition:
    background 0.15s,
    color 0.15s,
    padding-left 0.15s;
}
.mobile-menu__nav a::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: var(--r-pill);
  background: var(--peach);
  transform: translateY(-50%);
  transition: height 0.18s ease;
}
.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible {
  background: var(--yellow-soft);
  padding-left: 20px;
}
.mobile-menu__nav a:hover::before,
.mobile-menu__nav a:focus-visible::before {
  height: 18px;
}
.mobile-menu__nav a:active {
  background: var(--peach-soft);
}
.mobile-menu__footer {
  margin-top: auto;
  padding: 18px 4px 4px;
  border-top: 1px solid var(--border-hair);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--yellow-soft);
  border-radius: var(--r-md);
}
.mobile-menu__login,
.mobile-menu__logout {
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (min-width: 1101px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ═══ Filter bar ═══ */
.filterbar {
  position: sticky;
  top: 67px;
  z-index: 30;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hair);
}
.filterbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px var(--pad);
  display: flex;
  align-items: center;
  gap: 20px;
}

.chips {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  height: 32px;
  padding: 0 14px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.chip:hover {
  border-color: var(--peach);
  color: var(--text);
}
.chip.is-active {
  background: var(--yellow);
  border-color: #f2efab;
  color: var(--text);
}

.filterbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch__track {
  width: 34px;
  height: 20px;
  background: var(--border-light);
  border-radius: var(--r-pill);
  padding: 2px;
  display: block;
  transition: background 0.18s;
}
.switch__knob {
  display: block;
  width: 16px;
  height: 16px;
  background: var(--card);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s;
}
.switch input:checked + .switch__track {
  background: var(--peach);
}
.switch input:checked + .switch__track .switch__knob {
  transform: translateX(14px);
}
.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--peach-deep);
  outline-offset: 2px;
}
.switch__label {
  font-size: 13px;
  color: var(--text-2);
}

.select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.select__label {
  font-size: 13px;
  color: var(--text-3);
}
.select select {
  height: 32px;
  padding: 0 28px 0 12px;
  background: var(--card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%237d756b' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 10px center / 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  font-size: 13px;
  appearance: none;
  cursor: pointer;
}
.select select:hover {
  border-color: var(--peach);
}

/* ═══ Page & sections ═══ */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--pad) 64px;
}

.section {
  padding-top: 44px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.section__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.section__more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.navbtn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  color: var(--text-2);
  transition:
    border-color 0.15s,
    color 0.15s;
}
.navbtn:hover {
  border-color: var(--peach);
  color: var(--text);
}

.empty {
  margin: 0;
  margin-top: 16px;
  padding: 28px;
  background: var(--card);
  border: 1px dashed var(--border-warm);
  border-radius: var(--r-md);
  color: var(--text-2);
  text-align: center;
}

/* ═══ Placeholder media (пока нет фото из БД) ═══ */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--yellow-soft);
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(255, 255, 255, 0.75), transparent 60%), var(--ph-a, var(--peach-soft));
  background-blend-mode: screen;
}
.ph--0 {
  --ph-a: linear-gradient(140deg, #fff0ec, #fcd9d1);
}
.ph--1 {
  --ph-a: linear-gradient(140deg, #fefdea, #f6e6c8);
}
.ph--2 {
  --ph-a: linear-gradient(140deg, #f4eef8, #e6dcf0);
}
.ph--3 {
  --ph-a: linear-gradient(140deg, #eef5f2, #d8e8e0);
}
.ph--4 {
  --ph-a: linear-gradient(140deg, #fdeef2, #f8cdd8);
}
.ph--5 {
  --ph-a: linear-gradient(140deg, #f7f2ea, #ead9c2);
}
.ph > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══ Rail (горизонтальный скролл) ═══ */
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 2px 6px;
  margin: -2px -2px 0;
}
.rail::-webkit-scrollbar {
  display: none;
}

/* ═══ Карточка подборки ═══ */
.collection {
  flex: 0 0 262px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  text-align: left;
  padding: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.collection:hover {
  border-color: var(--peach);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.collection__cover {
  height: 172px;
  overflow: hidden;
  background: var(--border-hair);
}
.collection__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection__body {
  padding: 14px 16px 16px;
}
.collection__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.collection__meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

/* ── Каталог подборок (grid) ── */
.grid--collections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.collection-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.collection-card:hover {
  border-color: var(--peach);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.collection-card__cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--border-hair);
}
.collection-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-card__body {
  padding: 14px 16px 16px;
}
.collection-card__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.collection-card__count {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}
@media (max-width: 860px) {
  .grid--collections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .grid--collections {
    grid-template-columns: 1fr;
  }
}

/* ═══ Мозаика работ ═══ */
.mosaic {
  columns: 4 220px;
  column-gap: 16px;
}

.work {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 16px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  text-align: left;
  position: relative;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.work:hover {
  border-color: var(--peach);
  box-shadow: var(--shadow-md);
}
.work__media-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.work__media-btn:active {
  opacity: 0.9;
}
.work__media {
  width: 100%;
}
.work__media.ph {
  border-radius: 0;
}
.work__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 50%;
  color: var(--text-3);
  backdrop-filter: blur(4px);
  transition:
    color 0.15s,
    transform 0.1s;
}
.work__fav:hover {
  color: var(--peach-deep);
}
.work__fav.is-on {
  color: var(--peach-deep);
}
.work__fav:active {
  transform: scale(0.9);
}
.work__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-hair);
}
.work__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.work__who {
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  display: flex;
}
.work__name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work__salon {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work__tag {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ═══ Рейтинг ═══ */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
.rating svg {
  width: 13px;
  height: 13px;
  color: var(--peach-deep);
}
.rating__count {
  font-weight: 400;
  color: var(--text-3);
}

/* ═══ Сетки ═══ */
.grid {
  display: grid;
  gap: 16px;
}
.grid--masters {
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
}
.grid--salons {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* ═══ Карточка мастера ═══ */
.master {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.master:hover {
  border-color: var(--peach);
  box-shadow: var(--shadow-md);
}

.master__top {
  display: flex;
  gap: 12px;
  padding: 16px 16px 12px;
}
.master__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.master__id {
  min-width: 0;
  flex: 1 1 auto;
}
.master__name {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 600;
}
.master__role {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-3);
}
.master__salon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-2);
}
.master__salon svg {
  width: 13px;
  height: 13px;
  color: var(--text-3);
}
.master__salon img {
  width: 20px;
  height: auto;
}

.master__works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.master__works .ph {
  aspect-ratio: 1 / 1;
}
.master__works button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.master__facts {
  display: flex;
  border-top: 1px solid var(--border-hair);
}
.master__fact {
  flex: 1 1 0;
  padding: 10px 12px;
  text-align: center;
}
.master__fact + .master__fact {
  border-left: 1px solid var(--border-hair);
}
.master__fact-value {
  font-size: 14px;
  font-weight: 600;
}
.master__fact-label {
  font-size: 11px;
  color: var(--text-3);
}

.master__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-hair);
}
.slot {
  font-size: 13px;
  color: var(--text-2);
}
.slot--free {
  color: var(--green);
  font-weight: 500;
}

/* ═══ Карточка салона ═══ */
.salon {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.salon:hover {
  border-color: var(--peach);
  box-shadow: var(--shadow-md);
}
.salon__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  color: inherit;
}
.salon__link:hover ~ .salon__body .salon__name {
  color: var(--peach-deep);
}
.salon .btn {
  pointer-events: none;
}

.salon__cover {
  position: relative;
  height: 172px;
}
.salon__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.salon__badge svg {
  width: 12px;
  height: 12px;
  color: var(--green);
}

.salon__body {
  padding: 14px 16px;
}
.salon__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.salon__name {
  display: flex;
  align-items: center;
  gap: 4px;
}
.salon__name h3 {
  display: flex;
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}
.salon__name img {
  width: 20px;
  height: auto;
}
.salon__addr {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}
.salon__metro {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-2);
}
.salon__metro::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--peach-deep);
}

.salon__masters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-hair);
}
.stack {
  display: flex;
}
.stack > * {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--card);
  margin-left: -8px;
}
.stack > *:first-child {
  margin-left: 0;
}
.stack__more {
  display: grid;
  place-items: center;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 600;
}
.salon__masters-text {
  font-size: 13px;
  color: var(--text-2);
}

.salon__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-hair);
}
.price {
  font-size: 14px;
}
.price b {
  font-weight: 600;
}
.price span {
  color: var(--text-3);
  font-size: 13px;
}

/* ═══ Лайтбокс ═══ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox[hidden] {
  display: none;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 30, 22, 0.5);
  backdrop-filter: blur(3px);
}
.lightbox__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  width: min(940px, 100%);
  max-height: min(680px, 92vh);
  background: var(--card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(40, 28, 18, 0.28);
}
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  color: var(--text-2);
  backdrop-filter: blur(4px);
}
.lightbox__close:hover {
  color: var(--text);
}
.lightbox__media {
  min-height: 320px;
  background: var(--yellow-soft);
}
.lightbox__media .ph {
  width: 100%;
  height: 100%;
  min-height: 320px;
}
.lightbox__side {
  padding: 24px;
  overflow-y: auto;
  border-left: 1px solid var(--border-hair);
}

.lb-master {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.lb-master__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.lb-master__name {
  font-size: 16px;
  font-weight: 600;
}
.lb-master__salon {
  font-size: 13px;
  color: var(--text-3);
}

.lb-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
.lb-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-3);
}

.lb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.lb-tag {
  padding: 4px 10px;
  background: var(--yellow-soft);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--text-2);
}

.lb-rows {
  border-top: 1px solid var(--border-hair);
  margin-bottom: 20px;
}
.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-hair);
  font-size: 14px;
}
.lb-row span {
  color: var(--text-3);
}
.lb-row b {
  font-weight: 600;
}

.lb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  padding: 8px 12px;
}

/* ═══ Тост ═══ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 95;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: var(--text);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.2s ease-out;
}
.toast[hidden] {
  display: none;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

/* ═══ Подвал ═══ */
.footer {
  border-top: 1px solid var(--border-hair);
  background: var(--card);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer__brand p {
  margin: 12px 0 0;
  max-width: 340px;
  font-size: 14px;
  color: var(--text-3);
}
.footer__brand img {
  height: 32px;
  width: auto;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__col h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}
.footer__col a {
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.15s;
}
.footer__col a:hover {
  color: var(--text);
}

/* ═══ Скелетоны ═══ */
.skeleton {
  background: linear-gradient(90deg, #f7f1e6 25%, #fdf9f0 50%, #f7f1e6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
  border-radius: var(--r-md);
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ═══ Адаптив ═══ */
@media (max-width: 1100px) {
  .topnav {
    display: none;
  }
  .topbar__actions--wrapper {
    display: flex;
    gap: 8px;
    justify-content: space-between;
  }
  .lightbox {
    padding: 0;
  }
  .lightbox__panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .lightbox__media {
    min-height: 0;
    max-height: 45vh;
  }
  .lightbox__media .ph {
    min-height: 200px;
  }
  .lightbox__side {
    border-left: 0;
    border-top: 1px solid var(--border-hair);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    overscroll-behavior: contain;
  }
}

@media (max-width: 860px) {
  :root {
    --pad: 20px;
  }
  .topbar__actions--wrapper {
    display: flex;
    gap: 8px;
    justify-content: space-between;
  }
  /* .topbar__actions .btn--ghost {
    display: none;
  } */
  .filterbar__right {
    display: none;
  }
  .section__title {
    font-size: 24px;
  }
  .mosaic {
    columns: 2 150px;
    column-gap: 12px;
  }
  .work {
    margin-bottom: 12px;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .topbar__user-name {
    display: none;
  }
}

@media (max-width: 620px) {
  .topbar__inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .topsearch {
    order: 5;
    flex-basis: 100%;
  }
  .city span {
    display: none;
  }
  .city {
    padding: 0 10px;
  }
  .filterbar {
    top: 108px;
  }
  .grid--salons,
  .grid--masters {
    grid-template-columns: 1fr;
  }
  .collection {
    flex-basis: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rail {
    scroll-behavior: auto;
  }
}

/* ═══════════════════════════════════════════
   Детальные страницы (salon.html / master.html)
   ═══════════════════════════════════════════ */

.page--detail {
  padding-top: 24px;
}
.page--detail .mosaic,
.page--catalog .mosaic {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.page--detail .mosaic .work,
.page--catalog .mosaic .work {
  margin-bottom: 0;
}
@media (max-width: 860px) {
  .page--detail .mosaic,
  .page--catalog .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 620px) {
  .page--detail .mosaic,
  .page--catalog .mosaic {
    grid-template-columns: minmax(0, 1fr);
  }
}

.detail-loading {
  display: block;
}

/* ═══════════════════════════════════════════
   Каталоги (/masters, /salons, /works)
   ═══════════════════════════════════════════ */

.page--catalog {
  padding-top: 24px;
  padding-bottom: 48px;
}
.catalog {
  max-width: var(--maxw);
  margin: 0 auto;
}
.catalog__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.catalog__title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  margin: 0;
}
.catalog__count {
  font-size: 14px;
  color: var(--text-3);
}
.catalog__search {
  flex: 1 1 100%;
  margin-bottom: 24px;
}

/* ── Пагинация ── */
.catalog__more {
  text-align: center;
  margin-top: 24px;
}

/* ── Страница поиска: секции ── */
.search-section {
  margin-top: 40px;
}

/* ── Страница профиля ── */
.profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 8px;
}
.profile__main {
  display: flex;
  align-items: center;
  gap: 18px;
}
.profile__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.profile__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}
.profile__meta {
  margin: 4px 0 10px;
  color: var(--text-3);
  font-size: 14px;
}
.profile__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--yellow-soft);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-2);
}
.tagline svg {
  width: 13px;
  height: 13px;
  color: var(--text-3);
}

.profile__stats {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.stat b {
  font-size: 20px;
  font-weight: 600;
}
.stat span {
  font-size: 12px;
  color: var(--text-3);
}
.profile__edit[hidden] {
  display: none;
}
.profile__edit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 8px;
}
.profile__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile__label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
.profile__input {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: var(--sans);
  color: var(--text-1);
  background: var(--bg);
  transition: border-color 0.15s;
}
.profile__input:focus {
  outline: none;
  border-color: var(--peach);
}
.profile__edit-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
}
@media (max-width: 620px) {
  .profile__edit {
    grid-template-columns: 1fr;
  }
}
.profile__verified {
  margin-left: 4px;
  color: var(--green, #2c8a4a);
  font-size: 12px;
}
.tagline--pending {
  background: var(--yellow-soft);
  color: var(--text-3);
  border-color: var(--border-hair);
  opacity: 0.7;
}
.profile__verify {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 8px;
}
.profile__verify[hidden] {
  display: none;
}
.profile__verify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.profile__verify-code {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.profile__verify-code[hidden] {
  display: none;
}
.profile__verify-msg {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-3);
  min-height: 20px;
}
.search-section__count {
  font-size: 14px;
  color: var(--text-3);
}
.topbar__user-link {
  display: flex;
  align-items: center;
}
@media (max-width: 620px) {
  .profile__info {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .profile__details {
    text-align: center;
  }
}
.search-section:first-of-type {
  margin-top: 0;
}
.search-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.search-section__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}
.search-section__more {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.search-section__more:hover {
  color: var(--peach-deep);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-2);
  background: var(--card);
  transition:
    border-color 0.15s,
    color 0.15s;
}
.pagination__link:hover {
  border-color: var(--peach);
  color: var(--text);
}
.pagination__link--current {
  background: var(--peach);
  border-color: var(--peach);
  color: var(--text);
  font-weight: 600;
  cursor: default;
}
.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--text-3);
}

@media (max-width: 860px) {
  .catalog__title {
    font-size: 24px;
  }
}
@media (max-width: 620px) {
  .pagination__link {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

/* ── Хлебные крошки ── */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
}
.crumbs a {
  color: var(--text-3);
  transition: color 0.15s;
}
.crumbs a:hover {
  color: var(--text);
}
.crumbs span[aria-current] {
  color: var(--text-2);
}

/* ── Галерея салона ── */
.gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4px;
  height: 340px;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.gallery__main {
  height: 100%;
}
.gallery__main .ph {
  width: 100%;
  height: 100%;
}
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.gallery__grid .ph {
  width: 100%;
}

/* ── Hero (шапка мастера/салона) ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding-bottom: 8px;
}
.hero__main {
  display: flex;
  gap: 20px;
}
.hero__avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.hero__id {
  min-width: 0;
}
.hero__topline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__logo {
  width: 30px;
  height: auto;
}
.hero__name {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero__name--serif {
  font-family: var(--serif);
}
.hero__role {
  margin: 4px 0 10px;
  color: var(--text-3);
  font-size: 15px;
}
.hero__salon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-warm);
  padding-bottom: 1px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
a.hero__salon:hover {
  color: var(--text);
  border-color: var(--peach);
}
.hero__salon svg {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}
.hero__salon img {
  width: 20px;
  height: auto;
}
.hero__about {
  margin: 14px 0 0;
  max-width: 560px;
  color: var(--text-2);
  line-height: 1.6;
}

.hero__facts {
  display: flex;
  gap: 28px;
  margin-top: 18px;
}
.fact {
  display: flex;
  flex-direction: column;
}
.fact b {
  font-size: 20px;
  font-weight: 600;
}
.fact span {
  font-size: 13px;
  color: var(--text-3);
}

.hero--salon .hero__main {
  display: block;
}

.salon__badge--inline {
  position: static;
  display: inline-flex;
  margin: 12px 0 0;
  background: var(--green-bg);
  color: var(--green);
}

/* ── Инфо-сетка салона ── */
.infogrid {
  margin-top: 18px;
  max-width: 460px;
  border-top: 1px solid var(--border-hair);
}
.infogrid__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-hair);
  font-size: 14px;
}
.infogrid__row span {
  color: var(--text-3);
}
.infogrid__row b {
  font-weight: 500;
  text-align: right;
}

/* ── Карточка записи (sticky) ── */
.hero__book {
  position: sticky;
  top: 88px;
}
.bookcard {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.bookcard__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bookcard__price span {
  color: var(--text-3);
  font-size: 14px;
}
.bookcard__price b {
  font-size: 22px;
  font-weight: 600;
}
.bookcard__slot {
  padding: 10px 12px;
  margin-bottom: 14px;
  background: var(--yellow-soft);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-2);
}
.bookcard__slot.is-free {
  background: var(--green-bg);
  border-color: #d9ecd2;
  color: var(--green);
}
.bookcard__cta {
  width: 100%;
  height: 46px;
  margin-bottom: 8px;
}
.bookcard__fav {
  width: 100%;
}
.bookcard__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

.section__count {
  font-size: 14px;
  color: var(--text-3);
}

/* ── Прайс-лист ── */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.pricelist {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pricelist__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}
.pricelist__row + .pricelist__row {
  border-top: 1px solid var(--border-hair);
}
.pricelist__name {
  font-size: 15px;
  font-weight: 500;
}
.pricelist__group {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.pricelist__price {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Отзывы ── */
.reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 16px;
}
.review__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.review__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}
.review__avatar .ph {
  width: 100%;
  height: 100%;
}
.review__author {
  font-size: 14px;
  font-weight: 500;
}
.review__date {
  font-size: 12px;
  color: var(--text-3);
}
.review__text {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
  font-size: 14px;
}
.review__head .stars {
  margin-left: auto;
}
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars__i {
  color: var(--border-warm);
}
.stars__i svg {
  width: 13px;
  height: 13px;
}
.stars__i.is-on {
  color: var(--peach-deep);
}

/* ── Форма отзыва ── */
.review-form {
  margin-top: 24px;
}
.review-form__gate {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 24px;
}
.review-form__gate-text {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}
.review-form__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 24px;
}
.review-form__label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
.review-form__rating {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-form__stars {
  display: inline-flex;
  gap: 4px;
}
.review-form__star {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--border-warm);
  transition: color 0.15s;
}
.review-form__star:hover,
.review-form__star.is-on {
  color: var(--peach-deep);
}
.review-form__star svg {
  width: 22px;
  height: 22px;
}
.review-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.review-form__textarea {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: var(--sans);
  color: var(--text-1);
  background: var(--bg);
  transition: border-color 0.15s;
  resize: vertical;
  min-height: 80px;
}
.review-form__textarea:focus {
  outline: none;
  border-color: var(--peach);
}
.review-form__actions {
  display: flex;
  gap: 12px;
}
.review-form__msg {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

/* ── Карточка мастера как ссылка ── */
.master--link {
  cursor: pointer;
}
.master--link .btn {
  pointer-events: none;
}
.master__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  color: inherit;
}
.master__link:hover ~ .master__top .master__name a {
  color: var(--peach-deep);
}

/* ── 404 ── */
.notfound {
  text-align: center;
  padding: 80px 20px;
}
.notfound h1 {
  font-family: var(--serif);
  font-size: 30px;
  margin: 0 0 8px;
}
.notfound p {
  color: var(--text-3);
  margin: 0 0 20px;
}

/* ── Адаптив детальных страниц ── */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__book {
    position: static;
  }
  .cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 860px) {
  .gallery {
    height: 260px;
  }
  .hero__main {
    gap: 16px;
  }
  .hero__avatar {
    width: 84px;
    height: 84px;
  }
  .hero__name {
    font-size: 24px;
  }
}
@media (max-width: 620px) {
  .gallery {
    grid-template-columns: 1fr;
    height: auto;
  }
  .gallery__main {
    height: 220px;
  }
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    height: 140px;
  }
  .hero__main {
    flex-direction: column;
  }
  .hero__facts {
    gap: 20px;
  }
  .pricelist__row {
    grid-template-columns: 1fr auto;
  }
  .pricelist__row .btn {
    grid-column: 1 / -1;
  }
}

/* ── Ссылки внутри карточек (переход на детальные страницы) ── */
.master__name a {
  transition: color 0.15s;
}
.master__name a:hover {
  color: var(--peach-deep);
}
a.master__salon {
  transition: color 0.15s;
}
a.master__salon:hover {
  color: var(--text);
}
.salon__name a {
  transition: color 0.15s;
}
.salon__name a:hover {
  color: var(--peach-deep);
}
a.salon__cover {
  display: block;
}
a.lb-master {
  text-decoration: none;
  transition: opacity 0.15s;
}
a.lb-master:hover {
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════
   ДОБАВЛЕНО: личный кабинет (заказы) + страница «Ваша запись».
   Ничего из существующего не переопределяется. Намеренно НЕ трогаю
   ваши .profile / .profile__avatar / .profile__name — оставлены
   ваши версии. Здесь только новые селекторы.
   ═══════════════════════════════════════════════════════════════ */

/* ── Кабинет: контактные плашки и метрики (доп. к вашему профилю) ── */
.tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--yellow-soft);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-2);
}
.tagline svg {
  width: 13px;
  height: 13px;
  color: var(--text-3);
}
.profile__stats {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.stat b {
  font-size: 20px;
  font-weight: 600;
}
.stat span {
  font-size: 12px;
  color: var(--text-3);
}

/* ── Кабинет: карточки заказов/визитов ── */
.orders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.order {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
}
.order__when {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--yellow-soft);
  border-bottom: 1px solid var(--border-hair);
}
.order__date {
  font-weight: 600;
}
.order__time {
  color: var(--text-2);
}
.order__when .badge {
  margin-left: auto;
}
.badge {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
}
.badge.is-upcoming {
  background: var(--peach-soft);
  color: var(--peach-deep);
}
.badge.is-done {
  background: var(--green-bg);
  color: var(--green);
}
.badge.is-muted {
  background: #f2ede4;
  color: var(--text-3);
}
.order__body {
  padding: 14px 16px;
}
.order__master {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.order__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.order__name {
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s;
}
.order__name:hover {
  color: var(--peach-deep);
}
.order__salon {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.15s;
}
.order__salon:hover {
  color: var(--text-2);
}
.order__services {
  list-style: none;
  margin: 0;
  padding: 0;
}
.order__services li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-2);
}
.order__services b {
  color: var(--text);
  font-weight: 500;
}
.order__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--border-hair);
}
.order__total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.order__total span {
  color: var(--text-3);
  font-size: 13px;
}
.order__total b {
  font-size: 16px;
  font-weight: 600;
}
.paytag {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
}
.paytag.is-hold {
  background: var(--peach-soft);
  color: var(--peach-deep);
}
.paytag.is-awaiting {
  background: #fff4e0;
  color: #c48a2e;
}
.paytag.is-paid {
  background: var(--green-bg);
  color: var(--green);
}
.paytag.is-muted {
  background: #f2ede4;
  color: var(--text-3);
}

/* ═══════════════════════════════════════════
   Страница «Ваша запись» (booking.html)
   ═══════════════════════════════════════════ */
.body--booking {
  background: var(--bg);
}
.slimbar {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px var(--pad) 0;
}
.slimbar__tag {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.booking {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px var(--pad) 64px;
}
.ticket {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.ticket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--peach-soft), var(--yellow-soft));
  border-bottom: 1px solid var(--border-hair);
}
.ticket__when {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ticket__date {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}
.ticket__time {
  font-size: 18px;
  color: var(--text-2);
}
.ticket__code {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-2);
}
.ticket__masters {
  display: flex;
  flex-direction: row;
}
/* .ticket__masters .ticket__master + .ticket__master {
  padding-top: 0;
} */
.ticket__master {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
}
.ticket__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.ticket__master-id {
  flex: 1 1 auto;
  min-width: 0;
}
.ticket__name {
  font-size: 16px;
  font-weight: 600;
  transition: color 0.15s;
}
.ticket__name:hover {
  color: var(--peach-deep);
}
.ticket__role {
  font-size: 13px;
  color: var(--text-3);
}
.ticket__place {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 22px;
  padding: 14px 0;
  border-top: 1px solid var(--border-hair);
  transition: opacity 0.15s;
}
.ticket__place:hover {
  opacity: 0.8;
}
.ticket__place-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--yellow-soft);
  border-radius: var(--r-sm);
  color: var(--peach-deep);
}
.ticket__place-icon svg {
  width: 18px;
  height: 18px;
}
.ticket__place-name {
  font-weight: 500;
  font-size: 15px;
}
.ticket__place-addr {
  font-size: 13px;
  color: var(--text-3);
}
.ticket__services {
  padding: 6px 22px 18px;
}
.ticket__srow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-hair);
}
.ticket__srow b {
  color: var(--text);
  font-weight: 500;
}
.ticket__srow-staff,
.ocard__srow-staff {
  color: var(--text-3);
  font-size: 12px;
}
.ticket__srow--total {
  border-bottom: 0;
  padding-top: 12px;
  font-size: 16px;
}
.ticket__srow--total span {
  color: var(--text);
  font-weight: 500;
}
.ticket__srow--total b {
  font-weight: 600;
}
.paybox {
  margin: 4px 22px 0;
  padding: 22px;
  background: var(--yellow-soft);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-md);
  text-align: center;
}
.paybox.is-ok {
  background: var(--green-bg);
  border-color: #d9ecd2;
}
.paybox.is-muted {
  background: #f5f0e8;
}
.paybox__title {
  font-size: 17px;
  font-weight: 600;
}
.paybox__hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-3);
}
.paybox__qr {
  width: 200px;
  height: 200px;
  margin: 18px auto 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border-hair);
  border-radius: var(--r-md);
}
.paybox__qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.paybox__amount {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
}
.paybox__cta {
  width: 100%;
  height: 46px;
}
.paybox__receipt {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-3);
}
.paybox__check {
  color: var(--green);
  margin: 8px auto 0;
  width: 48px;
}
.paybox__check svg {
  width: 48px;
  height: 48px;
}
.ticket__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 22px 8px;
}

.ticket__actions .btn {
  flex: 1 1 calc(50% - 4px);
  min-width: calc(50% - 4px);
  white-space: normal;
  text-align: center;
}

/* .ticket__actions .btn--danger {
  flex: 1 1 100%;
  min-width: 100%;
} */
@media (min-width: 621px) {
  .ticket__actions .btn--danger {
    flex: 1 1 0;
  }
}
.ticket__note {
  margin: 0;
  padding: 4px 22px 20px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* ── Адаптив кабинета и записи ── */
@media (max-width: 620px) {
  .orders {
    grid-template-columns: 1fr;
  }
  .profile__stats {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .paybox__qr {
    width: 180px;
    height: 180px;
  }
}

@media print {
  .slimbar__tag,
  .ticket__actions,
  .ticket__note,
  .paybox__cta {
    display: none;
  }
  .ticket {
    box-shadow: none;
    border-color: var(--border-warm);
  }
  body {
    background: #fff;
  }
}

/* ── Запись: телефон салона, клиент, длительность ── */
.ticket__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 22px;
  padding: 10px 0;
  border-top: 1px solid var(--border-hair);
  font-size: 14px;
  color: var(--text-2);
}
.ticket__contact svg {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  flex: 0 0 auto;
}
.ticket__contact a {
  transition: color 0.15s;
}
.ticket__contact a:hover {
  color: var(--text);
}
.ticket__srow--meta {
  border-bottom: 0;
  color: var(--text-3);
  font-size: 13px;
  padding-top: 4px;
}
.ticket__srow--meta b {
  color: var(--text-2);
  font-weight: 500;
}
.ticket__client {
  margin: 0 22px;
  padding: 14px 0;
  border-top: 1px solid var(--border-hair);
}
.ticket__client-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.ticket__client-name {
  font-weight: 500;
  font-size: 15px;
}
.ticket__client-phone {
  display: inline-block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.15s;
}
.ticket__client-phone:hover {
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   Карточки записей в профиле (.ocard)
   Upcoming: дата-блок + мастер/услуги + итого/статус/кнопка
   History:  то же, приглушённее
   ═══════════════════════════════════════════════════════════════ */
.ocard {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.ocard:hover {
  border-color: var(--peach);
  box-shadow: var(--shadow-sm);
}

/* ── Левая колонка: дата / время / длительность ── */
.ocard__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  border-right: 1px solid var(--border-hair);
  min-width: 88px;
  text-align: center;
}
.ocard__date {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}
.ocard__time {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 2px;
}
.ocard__dur {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
}

/* ── Центр: мастер + салон + услуги ── */
.ocard__body {
  padding: 16px 18px;
  min-width: 0;
}
.ocard__masters {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}
.ocard__masters .ocard__master + .ocard__master {
  margin-top: 0;
}
.ocard__master {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ocard__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
}
.ocard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ocard__master-id {
  min-width: 0;
}
.ocard__name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: color 0.15s;
}
.ocard__name:hover {
  color: var(--peach-deep);
}
.ocard__role {
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ocard__salon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.15s;
}
.ocard__salon:hover {
  color: var(--text);
}
.ocard__salon-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}
.ocard__services {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ocard__srow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-2);
}
.ocard__srow b {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Правая колонка: итого + статус + кнопка ── */
.ocard__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 20px;
  border-left: 1px solid var(--border-hair);
  min-width: 140px;
}
.ocard__total {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.ocard__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* ── Upcoming-акцент: дата-блок тёплый ── */
.ocard--upcoming .ocard__left {
  background: linear-gradient(135deg, var(--peach-soft), var(--yellow-soft));
}

/* ── History: приглушённая версия ── */
.ocard--history .ocard__left {
  background: var(--yellow-soft);
}
.ocard--cancelled {
  opacity: 0.7;
}
.ocard--cancelled .ocard__left {
  background: #f5f0e8;
}

/* ── Сетка карточек ── */
.ocards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Адаптив ── */
@media (max-width: 860px) {
  .ocard {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .ocard__right {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-left: 0;
    border-top: 1px solid var(--border-hair);
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .ocard {
    grid-template-columns: 1fr;
  }
  .ocard__left {
    flex-direction: row;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--border-hair);
    padding: 12px 16px;
    min-width: 0;
  }
  .ocard__dur {
    margin-top: 0;
    margin-left: auto;
  }
  .ocard__body {
    padding: 14px 16px;
  }
  .ocard__right {
    padding: 12px 16px;
  }
}
