/* AvtoTime — public STO booking pages /s/{slug} */
body.is-public {
  padding-bottom: 0;
  background:
    radial-gradient(900px 480px at 50% -20%, rgba(15, 118, 110, 0.12), transparent 55%),
    linear-gradient(180deg, #eef3f5 0%, #f6f8fa 40%, #eef2f5 100%);
}

.sto-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* Hero */
.sto-hero {
  position: relative;
  isolation: isolate;
  margin: 0 -16px 18px;
  padding: 28px 16px 26px;
  color: #f8fafc;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 85% 10%, rgba(15, 118, 110, 0.55), transparent 55%),
    linear-gradient(155deg, #0a0d12 0%, #12151c 45%, #134e4a 120%);
}
.sto-hero.has-cover .sto-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}
.sto-hero.has-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.55), rgba(10, 13, 18, 0.82));
}
.sto-hero-inner { max-width: 980px; margin: 0 auto; }
.sto-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.sto-logo {
  width: 64px; height: 64px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #fff;
}
.sto-logo-fallback {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0f766e, #115e59);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.sto-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(153, 246, 228, 0.85);
  margin-bottom: 4px;
}
.sto-hero h1 {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 6px;
}
.sto-place {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: rgba(248, 250, 252, 0.7);
  font-size: 13.5px;
  font-weight: 550;
}
.sto-place span { display: inline-flex; align-items: center; gap: 5px; }
.sto-place svg {
  width: 14px; height: 14px;
  stroke: var(--mint); fill: none; stroke-width: 1.8;
}
.sto-hand {
  color: rgba(153, 246, 228, 0.9) !important;
  font-size: clamp(24px, 4vw, 32px) !important;
  margin: 8px 0 14px;
}
.sto-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sto-hero-actions .btn-primary { height: 44px; min-width: 160px; }
.sto-hero-actions .btn-ghost {
  height: 44px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sto-hero-actions .btn-ghost svg {
  width: 16px; height: 16px; stroke: currentColor; fill: none;
}
.sto-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sto-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 650;
  color: rgba(248, 250, 252, 0.82);
}
.sto-chips svg {
  width: 14px; height: 14px;
  stroke: var(--mint); fill: none; stroke-width: 1.8;
}

/* About / masters */
.sto-about-card {
  background: #fff;
  border: 1px solid var(--steel-100);
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 18px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
}
.sto-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
}
.sto-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}
.sto-contacts svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }

.sto-block { margin-bottom: 22px; }
.sto-block-head { margin-bottom: 12px; }
.sto-block-head h2 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.sto-block-head p { color: var(--muted); font-size: 14px; margin: 0; }

.sto-masters-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
.sto-master-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--steel-100);
}
.sto-master-ava {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, #0f766e) 18%, #fff);
  color: var(--c, #0f766e);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.sto-master-card b { display: block; font-size: 14px; }
.sto-master-card span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Booking shell */
.book-shell {
  background: #fff;
  border: 1px solid var(--steel-100);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.book-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.book-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 14px;
  background: var(--steel-50);
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.book-step i {
  width: 24px; height: 24px;
  border-radius: 99px;
  display: grid; place-items: center;
  background: var(--steel-200);
  color: var(--ink);
  font-style: normal;
  font-size: 12px;
}
.book-step.on {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: rgba(15, 118, 110, 0.2);
}
.book-step.on i { background: var(--teal); color: #fff; }
.book-step.done i { background: var(--green); color: #fff; }
.book-step span { display: none; }

.book-panel { display: none; }
.book-panel.is-active { display: block; animation: fade-up 0.35s var(--ease) both; }
.book-panel h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.service-grid {
  display: grid;
  gap: 10px;
}
.service-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--steel-200);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.service-card input { position: absolute; opacity: 0; pointer-events: none; }
.service-card.selected,
.service-card:has(input:checked) {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(15, 118, 110, 0.05);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}
.service-card-main { min-width: 0; }
.service-card-main b { display: block; font-size: 15px; margin-bottom: 2px; }
.service-card-main span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.service-card-main em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.4;
}
.service-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--teal);
  white-space: nowrap;
}

.master-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.master-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--steel-200);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.master-chip input { display: none; }
.master-chip.on,
.master-chip:has(input:checked) {
  border-color: rgba(15, 118, 110, 0.45);
  background: var(--teal-soft);
  color: var(--teal);
}
.master-ava {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--steel-100);
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
}
.master-ava.any { background: var(--ink); color: #fff; font-size: 14px; }
.master-chip small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.date-row {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.date-field input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--steel-200);
  padding: 0 12px;
  margin-top: 6px;
}
.date-hint {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--steel-50);
  border: 1px solid var(--steel-100);
}
.date-hint b { display: block; font-size: 14px; margin-bottom: 2px; }
.date-hint span { font-size: 12.5px; color: var(--muted); }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-height: 48px;
}
.slot-btn {
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--steel-200);
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.slot-btn:hover { border-color: var(--teal); color: var(--teal); }
.slot-btn.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.book-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.book-summary > div {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--steel-50);
  border: 1px solid var(--steel-100);
}
.book-summary span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.book-summary b { font-size: 13px; font-weight: 800; }

.contact-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.contact-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-muted);
}
.contact-grid input,
.contact-grid textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--steel-200);
  padding: 11px 12px;
  background: #fff;
}
.contact-grid input { height: 44px; padding-top: 0; padding-bottom: 0; }
.contact-grid label.full { grid-column: 1 / -1; }

.book-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.book-nav .btn { min-width: 140px; height: 44px; }
.btn-book { min-width: 180px !important; }

.sto-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.sto-foot a,
.sto-foot .linkish { color: var(--teal); font-weight: 750; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.sto-foot-links { display: flex; flex-wrap: wrap; gap: 12px 16px; }

/* Trust / price / FAQ */
.sto-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: -6px 0 18px;
}
.sto-trust > div {
  background: #fff;
  border: 1px solid var(--steel-100);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.sto-trust b {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  margin: 0 auto 6px;
  border-radius: 99px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
}
.sto-trust span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  line-height: 1.3;
}
.sto-about-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}
.sto-addr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-muted);
}
.sto-addr svg { width: 15px; height: 15px; stroke: var(--teal); fill: none; }
.sto-master-card p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.4;
  font-weight: 500;
}
.sto-price-group { margin-bottom: 14px; }
.sto-price-group h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sto-price-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sto-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--steel-100);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sto-price-row:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 8px 22px -18px rgba(15, 23, 42, 0.35);
}
.sto-price-row b { display: block; font-size: 14px; font-weight: 800; }
.sto-price-row span { font-size: 12px; color: var(--muted); font-weight: 650; }
.sto-price-row strong { font-size: 15px; font-weight: 800; color: var(--teal); white-space: nowrap; }

.svc-tag {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 2px 7px;
  border-radius: 7px;
}

.date-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.date-chip {
  height: 34px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--steel-200);
  background: #fff;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink-muted);
  cursor: pointer;
}
.date-chip.on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: auto;
  min-height: 46px;
  padding: 8px 6px;
  line-height: 1.15;
}
.slot-btn b { font-size: 14px; font-weight: 800; }
.slot-btn small { font-size: 10px; font-weight: 650; opacity: 0.8; }

.book-legal { margin: 12px 0 0; font-size: 12px; line-height: 1.4; }

.sto-faq-item {
  background: #fff;
  border: 1px solid var(--steel-100);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.sto-faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  list-style: none;
}
.sto-faq-item summary::-webkit-details-marker { display: none; }
.sto-faq-item p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.sto-sticky {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: 0 16px 40px -18px rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  transition: opacity 0.2s, transform 0.2s;
}
.sto-sticky.is-hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.sto-sticky b { display: block; font-size: 13px; }
.sto-sticky span { font-size: 11px; opacity: 0.75; font-weight: 600; }
.sto-sticky .btn { height: 40px; min-width: 120px; }

/* Success confirmation */
.sto-success {
  padding: 18px 0 40px;
  animation: fade-up 0.45s var(--ease) both;
}
.sto-success-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--steel-100);
  border-radius: 28px;
  padding: 28px 20px 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: center;
}
.sto-success-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #14b8a6, #0f766e 50%, #059669);
}
.sto-success-check {
  width: 72px; height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #ecfdf5, #ccfbf1);
  color: #059669;
  box-shadow: 0 0 0 8px rgba(5, 150, 105, 0.08);
  animation: success-pop 0.55s var(--ease) both;
}
@keyframes success-pop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.sto-success-hand {
  color: #0f766e !important;
  font-size: clamp(28px, 5vw, 36px) !important;
  margin: 0 0 6px !important;
}
.sto-success-card h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sto-success-lead {
  margin: 0 auto 18px;
  max-width: 420px;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.sto-code-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
  border: 1px dashed rgba(15, 118, 110, 0.35);
}
.sto-code-box > span {
  width: 100%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sto-code-box b {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.sto-success-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  text-align: left;
  margin-bottom: 16px;
}
.sto-success-grid > div {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--steel-50);
  border: 1px solid var(--steel-100);
}
.sto-success-grid span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.sto-success-grid b { display: block; font-size: 14.5px; font-weight: 800; }
.sto-success-grid em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}
.sto-success-grid .price { color: var(--teal); }
.sto-success-place {
  text-align: left;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--steel-100);
}
.sto-success-place p {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-muted);
}
.sto-success-place p:last-child { margin-bottom: 0; }
.sto-success-place svg {
  width: 16px; height: 16px;
  stroke: var(--teal); fill: none; flex-shrink: 0;
}
.sto-success-place a { color: var(--teal); font-weight: 750; display: inline-flex; align-items: center; gap: 8px; }
.sto-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.sto-success-actions .btn {
  height: 42px;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sto-success-actions .btn svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
}
.sto-success-tips {
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--steel-50);
  border: 1px solid var(--steel-100);
}
.sto-success-tips h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}
.sto-success-tips ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* Public chrome without owner shell */
.public-shell {
  min-height: 100vh;
}
.public-shell > .content {
  padding: 0 !important;
  max-width: none;
}
.public-shell .header { display: none !important; }

@media (min-width: 640px) {
  .sto-masters-row { grid-template-columns: repeat(2, 1fr); }
  .book-step span { display: block; }
  .slot-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .date-row { grid-template-columns: 220px 1fr; align-items: end; }
  .sto-success-grid { grid-template-columns: 1fr 1fr; }
  .sto-success-card { padding: 34px 28px 28px; }
  .sto-sticky { display: none; }
  .sto-trust > div { padding: 14px; }
  .sto-trust span { font-size: 13px; }
}
@media (min-width: 900px) {
  .sto-hero { margin: 16px 0 20px; border-radius: 28px; padding: 34px 28px; }
  .sto-page { padding-top: 8px; }
  .sto-masters-row { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .book-shell { padding: 22px; }
  .sto-success-grid { grid-template-columns: repeat(3, 1fr); }
}
