:root {
  --bg-primary: #080808;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --border: rgba(255, 255, 255, 0.06);
  --danger: #ff5d5d;
  --success: #43c27a;
  --info: #5e8cff;
  --warning: #e0b547;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 70px;
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font: 400 16px/1.6 "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s var(--easing), box-shadow 0.2s var(--easing), background 0.2s var(--easing);
}

/* select: принудительно тёмный фон + кастомная SVG-стрелка, чтобы
   браузер Windows не перекрашивал элемент своей системной темой */
select {
  width: 100%;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 6px;
  background-color: #1a1a1a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  color: #ffffff;
  padding: 8px 36px 8px 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s var(--easing), box-shadow 0.2s var(--easing);
}

select option {
  background: #1a1a1a;
  color: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.08);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.65);
  border-radius: 999px;
  border: 2px solid var(--bg-primary);
}

.hidden {
  display: none !important;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 30%);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading__eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.section-heading__title,
.block-title,
.footer-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.section-heading__title {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading__text,
.footer-text {
  margin: 16px 0 0;
  color: var(--text-secondary);
}

.block-title {
  font-size: 20px;
  letter-spacing: 2px;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 500;
  transition: transform 0.2s var(--easing), box-shadow 0.2s var(--easing), background 0.2s var(--easing), border-color 0.2s var(--easing), color 0.2s var(--easing);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button--small {
  min-height: 42px;
  padding-inline: 18px;
}

.button--large {
  min-height: 56px;
  padding-inline: 28px;
}

.button--gold {
  background: var(--gold);
  color: #090909;
}

.button--gold:hover {
  background: var(--gold-light);
}

.button--ghost {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.button--ghost:hover {
  background: var(--gold);
  color: #090909;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-logo__name {
  color: var(--gold);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
}

.site-logo__line {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.site-nav__link,
.mobile-menu__link,
.footer-links a,
.footer-links span {
  position: relative;
  color: var(--text-secondary);
  transition: color 0.2s var(--easing);
}

.site-nav__link::after,
.mobile-menu__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s var(--easing);
}

.site-nav__link:hover,
.site-nav__link.is-active,
.mobile-menu__link:hover,
.footer-links a:hover {
  color: var(--gold);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.burger-button span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text-primary);
  transition: transform 0.2s var(--easing), opacity 0.2s var(--easing);
}

.burger-button span + span {
  margin-top: 7px;
}

.burger-button.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger-button.is-active span:nth-child(2) {
  opacity: 0;
}

.burger-button.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(8, 8, 8, 0.98);
  border-bottom: 1px solid var(--border);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--easing), transform 0.25s var(--easing), visibility 0.25s var(--easing);
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 28px;
}

.mobile-menu__link {
  width: 100%;
  padding: 16px 0;
  font-size: 22px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.mobile-menu__button {
  width: min(320px, 100%);
  margin-top: 24px;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - var(--header-height));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__label {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 6px;
}

.hero__title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__title span {
  color: var(--gold);
}

.hero__subtitle {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 3vw, 24px);
}

.typewriter-caret {
  display: inline-block;
  width: 2px;
  height: 28px;
  margin-left: 8px;
  background: var(--gold);
  animation: blink 0.8s steps(1) infinite;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 1;
  transform: translateX(-50%);
}

.hero__scroll span {
  display: block;
  width: 20px;
  height: 34px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 999px;
  position: relative;
}

.hero__scroll span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
  animation: bounceArrow 1.8s infinite;
}

.price-card,
.review-form-card,
.contacts-card,
.map-card,
.master-card,
.review-card,
.admin-stat,
.admin-auth__card,
.admin-table-wrap,
.admin-toolbar {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.price-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px;
}

.price-group + .price-group {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.price-group__title {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.price-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 10px;
  transition: background 0.2s var(--easing);
}

.price-item:hover {
  background: rgba(201, 168, 76, 0.04);
}

.price-item__name,
.price-item__price {
  white-space: nowrap;
}

.price-item__dots {
  flex: 1;
  height: 1px;
  background-image: radial-gradient(circle, rgba(201, 168, 76, 0.35) 1px, transparent 1px);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  background-position: left center;
}

.price-item__price {
  color: var(--gold);
}

.masters-grid,
.reviews-grid {
  display: grid;
  gap: 20px;
}

.masters-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.master-card,
.review-card {
  padding: 28px 24px;
  transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing), border-color 0.3s var(--easing);
}

.master-card:hover,
.review-card:hover,
.admin-stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(201, 168, 76, 0.08), var(--shadow);
}

.master-card__avatar {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border: 2px solid var(--gold-dim);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  transition: border-color 0.3s var(--easing);
}

.master-card:hover .master-card__avatar {
  border-color: var(--gold);
}

.master-card__name {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.master-card__role,
.master-card__exp {
  text-align: center;
}

.master-card__role {
  margin: 10px 0 6px;
  color: var(--text-secondary);
  font-size: 14px;
}

.master-card__exp {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
}

.review-card__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.review-card__name {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
}

.review-card__date {
  color: var(--text-secondary);
  font-size: 13px;
}

.review-card__stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
}

.review-card__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.review-card__reply {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.review-card__reply-label {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.review-card__reply-text {
  margin: 0;
  color: var(--text-secondary);
}

.review-form-card {
  margin-top: 28px;
  padding: 28px 24px;
}

.review-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 10px;
}

.field--compact {
  min-width: 200px;
}

.field__label {
  color: var(--text-secondary);
  font-size: 14px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--gold);
}

.form-message--error {
  color: var(--danger);
}

.rating-stars {
  display: flex;
  gap: 10px;
}

.rating-stars button {
  width: 34px;
  height: 34px;
  padding: 0;
  color: rgba(201, 168, 76, 0.28);
  transition: color 0.2s var(--easing), transform 0.2s var(--easing);
}

.rating-stars button:hover {
  transform: translateY(-2px);
}

.rating-stars button.is-active {
  color: var(--gold);
}

.rating-stars svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 20px;
}

.contacts-card,
.map-card {
  min-height: 100%;
  padding: 28px 24px;
}

.contact-item + .contact-item {
  margin-top: 18px;
}

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(201, 168, 76, 0.08);
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  stroke-width: 1.8;
}

.contact-item__label {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.map-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, rgba(201, 168, 76, 0.07), transparent);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--text-secondary);
  font-family: "Montserrat", sans-serif;
  letter-spacing: 4px;
}

.map-card__marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 10px rgba(201, 168, 76, 0.12);
}

.site-footer {
  padding: 56px 0 24px;
  background: #050505;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.site-logo--footer {
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--gold);
  transition: transform 0.2s var(--easing), border-color 0.2s var(--easing), background 0.2s var(--easing);
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.35);
}

.social-links svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.reveal-section,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger > *.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--easing), visibility 0.25s var(--easing);
}

.booking-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.booking-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
  transform: scale(0.95);
  transition: transform 0.25s var(--easing);
  max-height: min(86vh, 760px);
  overflow: auto;
}

.booking-modal.is-open .booking-modal__dialog {
  transform: scale(1);
}

.booking-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.booking-modal__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--text-primary);
}

.booking-modal__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.booking-modal__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.booking-modal__progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  padding-right: 48px;
}

.booking-modal__dot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-modal__dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  transition: all 0.2s var(--easing);
}

.booking-modal__dot span {
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
}

.booking-modal__dot.is-done::before {
  border-color: var(--gold);
}

.booking-modal__dot.is-current::before {
  background: var(--gold);
  border-color: var(--gold);
}

.booking-modal__dot.is-current span,
.booking-modal__dot.is-done span {
  color: var(--text-primary);
}

.booking-step__title {
  margin: 0 0 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 600;
}

.booking-step__text {
  margin: -6px 0 24px;
  color: var(--text-secondary);
}

.booking-grid {
  display: grid;
  gap: 12px;
}

.booking-grid--services,
.booking-grid--masters,
.time-slots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.select-card,
.calendar-day,
.time-slot,
.summary-card,
.success-card,
.admin-action-button,
.status-button {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s var(--easing), border-color 0.2s var(--easing), background 0.2s var(--easing), box-shadow 0.2s var(--easing);
}

.select-card {
  position: relative;
  padding: 16px;
  text-align: left;
}

.select-card:hover,
.calendar-day:hover:not(:disabled),
.time-slot:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, 0.55);
}

.select-card.is-selected,
.calendar-day.is-selected,
.time-slot.is-selected {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.2);
}

.select-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: transparent;
  font-size: 14px;
}

.select-card.is-selected .select-card__check {
  color: #090909;
  background: var(--gold);
  border-color: var(--gold);
}

.select-card__title,
.summary-card__value {
  font-weight: 500;
}

.select-card__meta,
.summary-card__label,
.slot-status,
.admin-muted {
  color: var(--text-secondary);
  font-size: 13px;
}

.booking-modal__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.booking-modal__actions .button {
  flex: 1;
}

.calendar {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.calendar__header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.calendar__title {
  text-align: center;
  font-weight: 500;
}

.calendar-nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.calendar-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar__weekdays,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar__weekdays {
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.calendar-day {
  min-height: 46px;
  padding: 0;
  color: var(--text-primary);
}

.calendar-day--ghost {
  visibility: hidden;
}

.calendar-day.is-today {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.calendar-day:disabled,
.time-slot:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.time-picker-title {
  margin: 20px 0 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.time-slots {
  display: grid;
  gap: 10px;
}

.time-slot {
  min-height: 68px;
  padding: 12px 10px;
  text-align: center;
}

.time-slot__time {
  display: block;
  font-weight: 500;
}

.summary-card {
  margin-top: 20px;
  padding: 16px;
  border-color: rgba(201, 168, 76, 0.28);
}

.summary-card__row + .summary-card__row {
  margin-top: 10px;
}

.success-card {
  padding: 12px 0 6px;
  background: transparent;
  border: 0;
}

.success-card__icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
}

.success-card__icon circle,
.success-card__icon path {
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
}

.success-card__icon path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck 0.7s 0.15s forwards;
}

.success-card__icon circle {
  opacity: 0.2;
}

.success-card__title {
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  text-align: center;
}

.success-card__text {
  margin: 0 auto;
  max-width: 360px;
  text-align: center;
  color: var(--text-secondary);
}

.admin-page {
  background: linear-gradient(180deg, #070707, #0d0d0d);
}

.admin-auth {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.admin-auth__card {
  width: min(100%, 440px);
  padding: 32px;
}

.admin-auth__title {
  margin-top: 8px;
}

.admin-auth__text {
  margin: 12px 0 24px;
  color: var(--text-secondary);
}

.admin-auth__card.is-error {
  animation: shake 0.35s ease-in-out;
}

.admin-app {
  min-height: 100vh;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.admin-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

.admin-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.admin-tab {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s var(--easing);
}

.admin-tab.is-active {
  color: #090909;
  background: var(--gold);
  border-color: var(--gold);
}

.admin-main {
  padding: 34px 0 60px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat {
  padding: 20px;
  transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
}

.admin-stat__label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.admin-stat__value {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
}

.admin-stat--accent .admin-stat__value {
  color: var(--gold);
}

.admin-stat--warning .admin-stat__value {
  color: var(--warning);
}

.admin-stat.is-pulsing {
  animation: pulse 1.8s infinite;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding: 20px;
  margin-bottom: 16px;
}

.admin-toolbar__group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}

.admin-table th,
.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.admin-table th {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.badge--new {
  background: rgba(94, 140, 255, 0.16);
  color: #8cb0ff;
}

.badge--confirmed,
.badge--approved {
  background: rgba(67, 194, 122, 0.16);
  color: #70d89a;
}

.badge--completed {
  background: rgba(255, 255, 255, 0.08);
  color: #c9c9c9;
}

.badge--cancelled,
.badge--rejected {
  background: rgba(255, 93, 93, 0.16);
  color: #ff8e8e;
}

.badge--pending {
  background: rgba(224, 181, 71, 0.16);
  color: #f1cb69;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-button,
.admin-action-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--text-primary);
}

.status-button:hover,
.admin-action-button:hover {
  border-color: rgba(201, 168, 76, 0.55);
}

.reply-editor {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.reply-editor__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes bounceArrow {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, 8px);
    opacity: 0.4;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-5px);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(224, 181, 71, 0.18), var(--shadow);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(224, 181, 71, 0), var(--shadow);
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1024px) {
  .footer-grid,
  .contacts-layout,
  .masters-grid,
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .section {
    padding: 74px 0;
  }

  .site-nav,
  .header-actions .button--small {
    display: none;
  }

  .burger-button {
    display: inline-block;
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .hero__subtitle {
    min-height: 56px;
  }

  .price-card,
  .review-form-card,
  .contacts-card,
  .map-card,
  .booking-modal__dialog,
  .admin-auth__card {
    padding: 22px 18px;
  }

  .booking-modal__progress {
    grid-template-columns: repeat(4, auto);
    overflow: auto;
  }

  .booking-grid--services,
  .booking-grid--masters,
  .time-slots,
  .footer-grid,
  .contacts-layout,
  .masters-grid,
  .reviews-grid,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .booking-modal__actions,
  .reply-editor__actions,
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-header__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 14px 0;
  }

  .admin-tabs {
    width: 100%;
  }

  .admin-tab {
    flex: 1;
  }

  .hero__actions,
  .section-action {
    width: 100%;
  }

  .hero__actions .button,
  .section-action .button {
    width: 100%;
  }
}
