/* =========================================================================
   styles.css — Beauty Taplink public page
   Base + layout + components. Uses CSS custom properties ONLY (see themes.css).
   Mobile-first, elegant-minimal, no inline styles anywhere, no external assets.
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

p {
  margin: 0 0 1em;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

/* ---------- Utilities --------------------------------------------------- */
.container {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Honeypot — kept in the layout for bots, hidden from humans & AT */
.hp-field {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.section {
  padding-block: clamp(40px, 8vw, 76px);
}

/* keep anchored sections clear of the sticky header */
main [id],
.hero {
  scroll-margin-top: 78px;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  text-align: center;
  margin-bottom: clamp(24px, 5vw, 40px);
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin-bottom: 0.7em;
  font-weight: 600;
}

.section__title {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
}

.section__sub {
  color: var(--muted);
  max-width: 46ch;
  margin-inline: auto;
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  --_bg: var(--primary);
  --_fg: var(--primary-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.5em;
  min-height: 48px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--_bg);
  color: var(--_fg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    opacity 0.18s ease;
  text-align: center;
  line-height: 1.1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.btn--lg {
  padding: 1.05em 1.8em;
  font-size: 1.05rem;
  min-height: 56px;
}

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.btn--outline {
  --_bg: var(--surface);
  --_fg: var(--primary-strong);
  border: 1.5px solid var(--primary);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--primary-soft);
}

.btn--soft {
  --_bg: var(--primary-soft);
  --_fg: var(--primary-strong);
  box-shadow: none;
}

.btn__icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ---------- Header / nav ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: var(--header-blur);
  backdrop-filter: var(--header-blur);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent);
  flex: none;
}

.brand__mark--text {
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.95rem;
}

.nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 0.5em 0.8em;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--primary-soft);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text);
}

.nav-toggle:hover {
  background: var(--primary-soft);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(82vw, 320px);
  background: var(--surface);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow);
  padding: 76px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  padding: 0.9em 0.6em;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-of-type {
  border-bottom: 0;
}

.mobile-nav .btn {
  margin-top: 16px;
}

.mobile-nav__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.mobile-nav__close svg {
  width: 22px;
  height: 22px;
}

.scrim {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.scrim.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding-block: clamp(40px, 9vw, 80px) clamp(36px, 7vw, 64px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 480px;
  background: radial-gradient(
    60% 60% at 50% 0%,
    var(--primary-soft) 0%,
    transparent 70%
  );
  opacity: 0.85;
  z-index: -1;
}

.hero__avatar {
  width: clamp(118px, 32vw, 156px);
  height: clamp(118px, 32vw, 156px);
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 22px;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow);
  background: var(--primary-soft);
}

.hero__avatar--text {
  display: grid;
  place-items: center;
  color: var(--primary-strong);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.2rem);
}

.hero__name {
  font-size: clamp(1.85rem, 7vw, 2.7rem);
  margin-bottom: 0.25em;
}

.hero__spec {
  display: inline-block;
  color: var(--primary-strong);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 1em;
}

.hero__bio {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 auto 1.8em;
  font-size: 1.02rem;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin-inline: auto;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

/* ---------- Services ---------------------------------------------------- */
.service-list {
  display: grid;
  gap: 14px;
}

.service {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.service__body {
  flex: 1 1 auto;
  min-width: 0;
}

.service__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin-bottom: 0.25em;
}

.service__desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 0.5em;
}

.service__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.82rem;
  color: var(--muted);
}

.service__meta svg {
  width: 1em;
  height: 1em;
}

.service__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: none;
}

.service__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
}

.service__price-from {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  display: block;
  text-align: right;
}

.service__book {
  padding: 0.55em 1.1em;
  min-height: 40px;
  font-size: 0.85rem;
}

/* ---------- Portfolio --------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__cap {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 12px 9px;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap {
  opacity: 1;
}

/* ---------- Reviews ----------------------------------------------------- */
.reviews {
  display: grid;
  gap: 14px;
}

.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.review__stars {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 0.6em;
  color: var(--star);
}

.review__stars svg {
  width: 17px;
  height: 17px;
}

.review__stars .is-empty {
  color: var(--border);
}

.review__text {
  font-size: 0.98rem;
  margin-bottom: 0.8em;
}

.review__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review__author {
  font-weight: 600;
  font-size: 0.92rem;
}

.review__src {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 0.3em 0.7em;
  border-radius: 999px;
}

/* ---------- Hours ------------------------------------------------------- */
.hours {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 22px;
  box-shadow: var(--shadow-sm);
  max-width: 460px;
  margin-inline: auto;
}

.hours__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.hours__row:last-child {
  border-bottom: 0;
}

.hours__row.is-today {
  font-weight: 600;
}

.hours__day {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.hours__today-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

.hours__time {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hours__time--off {
  color: var(--muted);
}

/* ---------- Address ----------------------------------------------------- */
.address-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
}

.address-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.address-card__icon svg {
  width: 24px;
  height: 24px;
}

.address-card__text {
  font-size: 1.05rem;
  margin-bottom: 1.2em;
}

/* ---------- Payment ----------------------------------------------------- */
.pay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 5vw, 30px);
  box-shadow: var(--shadow-sm);
  max-width: 480px;
  margin-inline: auto;
}

.field {
  margin-bottom: 16px;
}

.field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
}

.input,
.select {
  width: 100%;
  padding: 0.85em 1em;
  min-height: 50px;
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c7f74' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.6em;
}

.promo-row {
  display: flex;
  gap: 8px;
}

.promo-row .input {
  flex: 1 1 auto;
}

.promo-row .btn {
  flex: none;
  white-space: nowrap;
}

.pay-summary {
  border-top: 1px dashed var(--border);
  margin-top: 8px;
  padding-top: 16px;
}

.pay-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5em;
  font-size: 0.96rem;
}

.pay-summary__row--total {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-top: 0.4em;
  padding-top: 0.6em;
  border-top: 1px solid var(--border);
}

.pay-summary__discount {
  color: var(--success);
}

.note {
  font-size: 0.86rem;
  padding: 0.7em 1em;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.note--ok {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
}

.note--err {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}

.note--info {
  color: var(--muted);
  background: var(--bg-alt);
}

/* QR block (manual / SBP) */
.qr-block {
  text-align: center;
}

.qr-block__img {
  width: 220px;
  height: 220px;
  margin: 0 auto 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  object-fit: contain;
  padding: 8px;
}

.qr-block__payload {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  word-break: break-all;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 0.8em;
  color: var(--muted);
  margin-bottom: 12px;
}

.pay-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5em 1em;
  border-radius: 999px;
  background: var(--bg-alt);
}

.pay-status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--star);
  flex: none;
}

.pay-status.is-pending .pay-status__dot {
  animation: pulse 1.4s ease-in-out infinite;
}

.pay-status.is-ok {
  color: var(--success);
}
.pay-status.is-ok .pay-status__dot {
  background: var(--success);
}

.pay-status.is-bad {
  color: var(--danger);
}
.pay-status.is-bad .pay-status__dot {
  background: var(--danger);
}

/* ---------- Social / contact ------------------------------------------- */
.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary-strong);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: var(--shadow);
}

.social-btn svg {
  width: 24px;
  height: 24px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 18px auto 0;
}

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
  text-align: center;
  padding-block: 40px 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer__name {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.3em;
}

.site-footer__legal {
  margin-top: 1em;
  font-size: 0.76rem;
  opacity: 0.85;
}

/* ---------- Modal / dialog ---------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow);
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom, 0px));
  transform: translateY(16px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal__panel {
  transform: translateY(0);
}

.modal__panel--wide {
  max-width: 540px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--bg-alt);
  z-index: 2;
}

.modal__close:hover {
  color: var(--text);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  margin: -10px auto 14px;
}

.modal__title {
  font-size: 1.35rem;
  margin-bottom: 0.25em;
  padding-right: 36px;
}

.modal__lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.2em;
}

/* ---------- Booking steps ---------------------------------------------- */
.step {
  animation: fadeIn 0.28s ease;
}

.steps-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}

.steps-bar__dot {
  flex: 1 1 0;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.3s ease;
}

.steps-bar__dot.is-active {
  background: var(--primary);
}

.steps-bar__dot.is-done {
  background: var(--accent);
}

/* picker chips: date / time / service */
.picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.picker--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 0.6em 0.95em;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease,
    transform 0.16s ease;
}

.chip:hover {
  border-color: var(--primary);
}

.chip.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.chip__sub {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

.chip.is-selected .chip__sub {
  color: var(--primary-strong);
}

.service-pick {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

.service-pick__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 0.85em 1em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.service-pick__item:hover {
  border-color: var(--primary);
}

.service-pick__item.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.service-pick__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.service-pick__price {
  font-weight: 700;
  white-space: nowrap;
  font-family: var(--font-display);
}

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

.field-group__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.6em;
  display: block;
}

/* client card (анкета) */
.client-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}

.client-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.client-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.client-card__badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.stat {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}

.stat__label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mini-list__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0.45em 0;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border);
}

.mini-list__item:last-child {
  border-bottom: 0;
}

.mini-list__when {
  color: var(--muted);
  white-space: nowrap;
}

.card-block-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 14px 0 6px;
}

/* success state */
.result {
  text-align: center;
  padding: 12px 4px;
}

.result__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 6px auto 18px;
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
  animation: pop 0.4s cubic-bezier(0.22, 1.4, 0.5, 1) both;
}

.result__icon svg {
  width: 38px;
  height: 38px;
}

.result__icon--info {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.result__title {
  font-size: 1.4rem;
  margin-bottom: 0.3em;
}

.result__detail {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 0.7em 1.2em;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* form messaging + spinner */
.form-msg {
  margin: 4px 0 14px;
}

.spinner {
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  animation: spin 0.7s linear infinite;
  vertical-align: -0.18em;
}

.is-busy {
  pointer-events: none;
}

/* ---------- Lightbox ---------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
  padding: 24px;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox__cap {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  padding-inline: 60px;
}

.lightbox__btn {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.18s ease;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__btn svg {
  width: 24px;
  height: 24px;
}

.lightbox__close {
  top: 18px;
  right: 18px;
}

.lightbox__nav--prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Toast ------------------------------------------------------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  max-width: 90vw;
  pointer-events: none;
}

.toast {
  background: var(--text);
  color: var(--bg);
  padding: 0.85em 1.3em;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease both;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast--leaving {
  opacity: 0;
  transform: translateY(10px);
}

.toast--err {
  background: var(--danger);
  color: #fff;
}

/* ---------- Animations -------------------------------------------------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* reveal-on-scroll — additive & FOUC-safe: content is visible by default;
   only below-the-fold elements get .reveal--pending (added by JS) and animate
   in when scrolled into view. No-JS / above-the-fold content never hides. */
.reveal--pending {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal--pending.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive -------------------------------------------------- */
@media (min-width: 640px) {
  .container {
    padding-inline: 28px;
  }

  .hero__cta {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .hero__cta .btn {
    flex: 0 1 auto;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

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

  .modal {
    align-items: center;
  }

  .modal__panel {
    border-radius: var(--radius-lg);
    padding: 30px 28px;
  }

  .modal__handle {
    display: none;
  }

  .stat-grid {
    gap: 10px;
  }
}

@media (min-width: 860px) {
  .container {
    max-width: 880px;
  }

  .nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

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

  .service-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Motion / contrast preferences ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal--pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .modal,
  .lightbox,
  .toast-wrap,
  .scrim,
  .mobile-nav {
    display: none !important;
  }
}
