/* Mini App: брутальный монохром + красный акцент.
   Палитра и композиция повторяют сайт-референс: крупная типографика,
   тонкие линии, чёрные блоки и красные акценты. */

:root {
  --ink: #f2f2f2;        /* primary text (light on dark) */
  --paper: #0a0a0a;      /* page background */
  --block: #000000;      /* solid contrast blocks */
  --on-block: #ffffff;   /* text on those blocks */
  --card: #141414;       /* raised surfaces */
  --light-btn: #f4f4f4;  /* inverted (white) buttons */
  --red: #ff2748;
  --red-dark: #b30d24;
  --muted: #9a9a9a;
  --line: #232323;
  --dash: #333333;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  overscroll-behavior-y: none;
}

body {
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  background: var(--paper);
}

@media (min-width: 620px) {
  body {
    background: #000000;
  }
  .app {
    max-width: 480px;
    margin: 0 auto;
    border-left: 1px solid #1c1c1c;
    border-right: 1px solid #1c1c1c;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  }
  .tabbar {
    max-width: 480px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    border-left: 1px solid #1c1c1c;
    border-right: 1px solid #1c1c1c;
  }
  .flow,
  .success,
  .menu {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }
  .menu {
    position: fixed;
    inset: 0;
    transform: none;
    max-width: none;
  }
  .menu-panel {
    margin-left: auto;
  }
}

/* ------------------------------------------------------------------ */
/* Верхняя панель                                                      */
/* ------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #2a2a2a;
}

.topbar-call {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 0;
  background: var(--light-btn);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.logo {
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.09em;
  color: var(--red);
  line-height: 1;
  user-select: none;
}

.topbar > .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.burger {
  width: 40px;
  height: 32px;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.burger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--ink);
  transition: transform 0.2s, width 0.2s;
}

.burger span:nth-child(2) {
  width: 18px;
}

.burger:active span {
  width: 24px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--block);
  color: var(--on-block);
  padding: 34px 20px 26px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -74px;
  top: 44px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 39, 72, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

.hero-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a9a9a9;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(43px, 12.4vw, 62px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title em {
  color: var(--red);
  font-style: italic;
}

.hero-text {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  max-width: 34ch;
  color: #c6c6c6;
  font-size: 13px;
  line-height: 1.55;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding-top: 14px;
  padding-right: 108px;
  border-top: 1px solid #2b2b2b;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f8f8f;
}

.hero-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

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

.btn {
  border: 1px solid transparent;
  padding: 13px 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-light {
  background: var(--light-btn);
  color: #0a0a0a;
}

.btn-ghost {
  background: transparent;
  color: var(--on-block);
  border-color: #4a4a4a;
}

.btn-black {
  background: var(--light-btn);
  color: #0a0a0a;
}

.btn-red {
  background: var(--red);
  color: var(--on-block);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: #2a2a2a;
}

.btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Бегущая строка                                                      */
/* ------------------------------------------------------------------ */

.ticker {
  background: var(--block);
  color: var(--on-block);
  border-top: 1px solid #2a2a2a;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 26s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #d4d4d4;
}

.ticker-item::after {
  content: "✦";
  color: var(--red);
  font-size: 10px;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

.section {
  padding: 30px 20px 6px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 10px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-index {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
}

.section-title h2 {
  margin: 0;
  font-size: 34px;
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 900;
  text-transform: uppercase;
}

.section-hint {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 3px;
}

.services-list {
  margin-top: 4px;
}

.cat {
  margin-top: 22px;
}

.cat:first-child {
  margin-top: 14px;
}

.cat-title {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
}

.service-row {
  width: 100%;
  border: 0;
  border-bottom: 1px dashed var(--dash);
  background: none;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  text-align: left;
  color: var(--ink);
}

.service-row:active {
  background: #1a1a1a;
}

.service-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.service-price {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.service-sub {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.service-sub .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
}

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

.masters-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 14px -20px 0;
  padding: 0 20px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.masters-list::-webkit-scrollbar {
  display: none;
}

.master-card {
  position: relative;
  flex: 0 0 76%;
  min-height: 292px;
  scroll-snap-align: start;
  background: var(--card);
  color: var(--on-block);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid #232323;
}

.master-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 39, 72, 0.2), transparent 42%),
    radial-gradient(circle at 22% 88%, rgba(255, 255, 255, 0.09), transparent 46%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px);
  pointer-events: none;
}

.master-initials {
  position: absolute;
  right: -8px;
  bottom: 54px;
  font-size: 118px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.master-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.master-label {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8d8d8d;
}

.master-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #4a4a4a;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #1c1c1c;
}

.master-info {
  position: relative;
  z-index: 1;
}

.master-name {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}

.master-title {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5a5a5;
}

.master-btn {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  width: 100%;
  border: 0;
  background: var(--light-btn);
  color: #0a0a0a;
  padding: 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Контакты на главной                                                 */
/* ------------------------------------------------------------------ */

.section-contact {
  padding-bottom: 10px;
}

.contact-panel {
  margin-top: 16px;
  background: var(--block);
  color: var(--on-block);
  padding: 20px;
}

.contact-line {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #2b2b2b;
  font-size: 13px;
  line-height: 1.45;
}

.contact-line:last-child {
  border-bottom: 0;
}

.contact-line .label {
  flex: 0 0 66px;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d8d8d;
  padding-top: 3px;
}

.contact-line a {
  color: var(--on-block);
  text-decoration: none;
  border-bottom: 1px solid #555;
}

.contact-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.contact-actions .btn {
  flex: 1;
}

/* ------------------------------------------------------------------ */
/* Футер                                                               */
/* ------------------------------------------------------------------ */

.footer {
  padding: 26px 20px calc(84px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ------------------------------------------------------------------ */
/* FAB и таббар                                                        */
/* ------------------------------------------------------------------ */

.fab {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid #b30d24;
  background: var(--red);
  color: var(--on-block);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  box-shadow: 0 12px 34px rgba(255, 39, 72, 0.45);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.fab:active {
  transform: scale(0.94);
}

.fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid #2a2a2a;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tab {
  position: relative;
  border: 0;
  background: none;
  color: #8d8d8d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 0;
}

.tab svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.tab.is-active {
  color: var(--ink);
}

.tab.is-active::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24%;
  right: 24%;
  height: 2px;
  background: var(--red);
}

/* ------------------------------------------------------------------ */
/* Меню                                                                */
/* ------------------------------------------------------------------ */

.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  justify-content: flex-end;
  animation: fade-in 0.18s ease;
}

.menu-panel {
  width: 88%;
  max-width: 390px;
  height: 100%;
  background: #0b0b0b;
  border-left: 1px solid #262626;
  color: var(--on-block);
  padding: 22px 22px calc(26px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  animation: slide-in 0.24s cubic-bezier(0.22, 0.8, 0.24, 1);
  overflow-y: auto;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-menu {
  color: var(--on-block);
}

.logo-menu::first-letter {
  color: var(--red);
}

.menu-close {
  width: 38px;
  height: 38px;
  border: 1px solid #3a3a3a;
  background: none;
  color: var(--on-block);
  font-size: 15px;
}

.menu-links {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
}

.menu-links button {
  border: 0;
  border-bottom: 1px solid #2a2a2a;
  background: none;
  color: var(--on-block);
  text-align: left;
  padding: 15px 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.menu-links button:active {
  color: var(--red);
}

.menu-info {
  margin-top: auto;
  padding-top: 28px;
  font-size: 12px;
  line-height: 1.7;
  color: #a2a2a2;
}

.menu-info a {
  color: var(--on-block);
  text-decoration: none;
  border-bottom: 1px solid #444;
}

.menu-info .red {
  color: var(--red);
}

/* ------------------------------------------------------------------ */
/* Поток записи                                                        */
/* ------------------------------------------------------------------ */

.flow {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  animation: flow-in 0.26s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.flow-head {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #2a2a2a;
  background: var(--paper);
}

.flow-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.flow-step {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.flow-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 20px 130px;
}

.flow-question {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-sub {
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.flow-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  border-top: 1px solid #2a2a2a;
  padding: 12px 20px calc(12px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.foot-sum {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foot-sum small {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-sum strong {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.foot-sum span {
  font-size: 10px;
  color: var(--muted);
}

.flow-foot .btn {
  min-width: 140px;
  padding: 15px 18px;
}

/* Поиск */

.search-wrap {
  position: relative;
  margin-bottom: 18px;
}

.search-input {
  width: 100%;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: var(--card);
  padding: 12px 16px 12px 40px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: #2a2a2a;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: #9a9a9a;
  fill: none;
  stroke-width: 1.8;
}

/* Список выбора */

.pick-cat {
  margin: 18px 0 2px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pick-row {
  width: 100%;
  border: 0;
  border-bottom: 1px dashed var(--dash);
  background: none;
  text-align: left;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
}

.pick-row:active {
  background: #1a1a1a;
}

.pick-main {
  min-width: 0;
}

.pick-name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.pick-meta {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
}

.pick-price {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pick-check {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #4a4a4a;
  border-radius: 50%;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.pick-row.is-selected .pick-check {
  background: var(--red);
  border-color: var(--red);
}

.pick-row.is-selected .pick-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Мастера в потоке */

.master-row {
  width: 100%;
  border: 0;
  border-bottom: 1px dashed var(--dash);
  background: none;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  color: var(--ink);
}

.master-row .master-avatar {
  background: var(--light-btn);
  border-color: var(--light-btn);
  color: #0a0a0a;
  flex: none;
}

.master-row .pick-main {
  flex: 1;
}

.master-row .arrow {
  font-size: 18px;
  color: #b0b0b0;
}

/* Даты */

.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -20px 8px;
  padding: 2px 20px 10px;
  scrollbar-width: none;
}

.date-strip::-webkit-scrollbar {
  display: none;
}

.date-chip {
  flex: 0 0 62px;
  min-height: 78px;
  border: 1px solid #2a2a2a;
  background: var(--card);
  color: var(--ink);
  padding: 9px 3px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.date-chip .dw {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.date-chip .dn {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.date-chip .dm {
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
}

.date-chip.is-active {
  background: var(--light-btn);
  border-color: var(--light-btn);
  color: #0a0a0a;
}

.date-chip.is-active .dw,
.date-chip.is-active .dm {
  color: #4a4a4a;
}

.date-chip.is-disabled {
  opacity: 0.32;
  pointer-events: none;
}

.date-chip .today-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 2px;
}

/* Время */

.slots-block {
  margin-top: 18px;
}

.slot-group {
  margin-bottom: 18px;
}

.slot-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.slot-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 7px;
}

.time-chip {
  border: 1px solid #2a2a2a;
  background: var(--card);
  color: var(--ink);
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.time-chip.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--on-block);
}

.slots-empty {
  border: 1px dashed #333333;
  padding: 26px 18px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* Форма */

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid #3a3a3a;
  background: none;
  padding: 9px 0 11px;
  font-size: 18px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color 0.15s;
}

.field input:focus {
  border-color: var(--red);
}

.field input::placeholder {
  color: #6d6d6d;
}

.summary {
  border: 1px solid #2a2a2a;
  padding: 15px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.65;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.summary-row .k {
  color: var(--muted);
  flex: none;
}

.summary-row .v {
  text-align: right;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px dashed var(--dash);
  margin-top: 10px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 15px;
}

/* ------------------------------------------------------------------ */
/* Экран успеха                                                        */
/* ------------------------------------------------------------------ */

.success {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--block);
  color: var(--on-block);
  overflow-y: auto;
  padding: calc(30px + env(safe-area-inset-top, 0px)) 22px calc(30px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.25s ease;
}

.success-inner {
  width: 100%;
  max-width: 400px;
}

.success-mark {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  animation: pop 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.success-mark svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: fade-in 0.4s 0.15s ease both;
}

.success-kicker {
  margin: 0 0 10px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a5a5a5;
}

.success-title {
  margin: 0 0 24px;
  font-size: 54px;
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-weight: 900;
  text-transform: uppercase;
}

/* Длинное слово «ПОДТВЕРЖДЕНИЯ» не влезает в мобильную ширину. */
.success-title.is-long {
  font-size: 33px;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.success-price {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.success-card .booking-status {
  margin-top: 14px;
}

.success-address {
  margin-top: 16px;
}

.success-card {
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 18px 0;
  font-size: 13px;
  line-height: 1.8;
  color: #cfcfcf;
}

.success-card strong {
  color: #fff;
  font-weight: 600;
}

.success-btn {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
}

.success-link {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 0;
  background: none;
  color: #9a9a9a;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Мои записи                                                          */
/* ------------------------------------------------------------------ */

.view {
  padding: 26px 20px calc(100px + var(--safe-bottom));
}

.view-head {
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.view-head h2 {
  margin: 8px 0 0;
  font-size: 46px;
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-card {
  border: 1px solid #2a2a2a;
  padding: 16px;
  margin-bottom: 14px;
}

.booking-card.is-pending {
  border-color: #4a4a4a;
  border-left: 3px solid var(--red);
}

.booking-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 9px;
  border: 1px solid #2f2f2f;
  background: #171717;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.booking-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.booking-status.is-pending {
  color: var(--red);
  border-color: #45202a;
  background: #1a1013;
}

.booking-status.is-confirmed {
  color: #6ee7a8;
  border-color: #1d3a2b;
  background: #0f1a14;
}

.booking-status-note {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted);
}

.booking-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.booking-date {
  font-size: 38px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-date small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.booking-time {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.booking-service {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--dash);
  font-size: 14px;
  font-weight: 600;
}

.booking-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.booking-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.booking-price {
  font-size: 15px;
  font-weight: 800;
}

.booking-cancel {
  border: 0;
  background: none;
  color: var(--red);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty {
  border: 1px dashed #333333;
  padding: 34px 20px;
  text-align: center;
}

.empty-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.empty-text {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Контакты (вкладка)                                                  */
/* ------------------------------------------------------------------ */

.contacts-hero {
  background: var(--block);
  color: var(--on-block);
  padding: 24px 20px;
  margin: 0 -20px 18px;
}

.contacts-hero h3 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}

.contacts-hero p {
  margin: 0;
  color: #b9b9b9;
  font-size: 12px;
  line-height: 1.6;
}

.info-block {
  margin-top: 22px;
}

.info-block h4 {
  margin: 0 0 10px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--dash);
  font-size: 13px;
}

.info-row:first-of-type {
  border-top: 1px dashed var(--dash);
}

.info-row span:first-child {
  color: var(--muted);
  flex: none;
}

.info-row a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #4a4a4a;
}

.info-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.info-actions .btn {
  flex: 1;
}

/* ------------------------------------------------------------------ */
/* Тост                                                                */
/* ------------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  transform: translate(-50%, 14px);
  z-index: 120;
  max-width: calc(100% - 40px);
  background: var(--light-btn);
  color: #0a0a0a;
  padding: 12px 18px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: var(--red);
  color: #ffffff;
}

/* ------------------------------------------------------------------ */
/* Анимации                                                            */
/* ------------------------------------------------------------------ */

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes flow-in {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.4);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track {
    animation: none;
  }
}

/* Загрузка */

.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--block);
  color: var(--on-block);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.3s;
}

.boot.is-done {
  opacity: 0;
  pointer-events: none;
}

.boot-logo {
  font-size: 58px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.09em;
  color: var(--red);
}

.boot-line {
  width: 110px;
  height: 2px;
  background: #2a2a2a;
  overflow: hidden;
}

.boot-line::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--red);
  animation: boot-slide 1s ease-in-out infinite;
}

@keyframes boot-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}
