:root {
  color-scheme: light;
  --paper: #f8f0e4;
  --surface: #fffaf3;
  --chocolate: #381d12;
  --chocolate-light: #542d1b;
  --gold: #dca760;
  --bronze: #835024;
  --ink: #392319;
  --muted: #745c4c;
  --line: #e5d3bd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
p { color: var(--muted); }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip { position: absolute; top: -100px; left: 12px; padding: 10px; background: var(--chocolate); color: white; }
.skip:focus { top: 8px; z-index: 3; }
.page { max-width: 480px; padding: 12px 14px max(18px, env(safe-area-inset-bottom)); margin-inline: auto; }

.brand-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px 18px 9px 9px;
  background: radial-gradient(ellipse at 50% 14%, #562d1c, transparent 72%), var(--chocolate);
  color: #fff0d5;
  padding: 8px 14px 20px;
}
.brand-header::after {
  position: absolute;
  inset: 5px;
  border: 1px solid #dca76038;
  border-radius: 14px 14px 6px 6px;
  content: '';
  pointer-events: none;
}
.brand-ornament {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 100%;
  color: #dcaa6b;
  opacity: .59;
  pointer-events: none;
  z-index: -1;
}
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.city-label { color: #e7bf92; font-size: 10px; letter-spacing: .14em; padding-left: 3px; }
.language { display: inline-flex; align-items: center; gap: 0; flex-shrink: 0; }
.language button { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 12px; }
.language button[aria-pressed="true"] { color: var(--chocolate); background: #efe0ca; }
.brand-header .language button { color: #f5dcc1; }
.brand-header .language button[aria-pressed="true"] { color: var(--chocolate); background: #e6b679; }
.brand-header .language button:focus-visible { outline-color: var(--gold); }
.brand-identity { position: relative; text-align: center; }
.wordmark {
  position: relative;
  width: 174px;
  height: 87px;
  margin: 0 auto 8px;
  overflow: hidden;
}
.wordmark img { position: absolute; top: -25px; left: -123px; width: 420px; height: auto; filter: brightness(1.2); }
.brand-line { color: #f7d9ae; font-size: 9px; letter-spacing: .15em; }
.specialty { color: #fff2df; margin-top: 6px; font-size: 12px; }

.booking { margin-top: 18px; }
.section-label { display: flex; align-items: center; gap: 10px; margin: 0 2px 8px; }
.section-label h2 { font-size: 13px; font-weight: 600; }
.section-label .icon { display: none; }
.section-label::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.branch-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.branch-card + .branch-card { margin-top: 8px; }
.branch-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px 9px;
  border-radius: 11px 11px 0 0;
  transition: background .18s ease;
}
.branch-main:hover { background: #f9edda; }
.branch-main:focus-visible { outline-offset: -3px; }
.branch-name { display: block; color: var(--bronze); font-size: 9px; font-weight: 650; letter-spacing: .14em; }
.branch-main h3 { font: 22px/1.18 var(--serif); letter-spacing: -.035em; margin-top: 2px; }
.branch-wa { display: flex; align-items: center; gap: 5px; color: var(--bronze); font-size: 11px; font-weight: 550; margin-top: 5px; }
.branch-wa .icon { width: 15px; height: 15px; }
.branch-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border: 1px solid #9b633c;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--chocolate-light), var(--chocolate));
  color: #f7d3a0;
}
.branch-arrow .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.branch-main:hover .branch-arrow .icon { transform: translate(2px, -2px); }
.branch-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-inline: 13px; border-top: 1px solid #f0e4d3; }
.branch-footer a { display: flex; align-items: center; gap: 5px; flex-shrink: 0; min-height: 44px; color: var(--muted); font-size: 11px; }
.branch-footer a:hover { color: var(--chocolate); text-decoration: underline; }
.branch-footer .icon { width: 14px; height: 14px; }
.branch-services { color: var(--muted); font-size: 10px; text-align: right; }

.quick-actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; margin-top: 10px; }
.quick-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #d7b789;
  background: #f1e0c8;
  color: var(--chocolate);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  transition: filter .16s ease;
}
.quick-button:first-child {
  background: var(--chocolate);
  border-color: var(--chocolate);
  color: #ffe5bd;
}
.quick-button:hover { filter: brightness(1.1); }
.quick-button .icon { width: 17px; height: 17px; }
.manager-link { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: 12px; text-align: center; }
.manager-link .icon { width: 12px; height: 12px; }
.manager-link:hover { color: var(--chocolate); text-decoration: underline; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.loyalty { border: 1px solid #e3c49b; border-radius: 10px; background: linear-gradient(108deg, #f7ead5, #efdbbd); color: var(--chocolate); }
.loyalty summary { display: flex; align-items: center; gap: 9px; padding: 13px; }
.loyalty-label { display: grid; gap: 3px; flex: 1; min-width: 0; }
.loyalty-label > span { font-size: 11px; line-height: 1.35; font-weight: 650; }
.loyalty-label strong { color: var(--muted); font-size: 11px; line-height: 1.35; font-weight: 400; }
.cashback { font: clamp(30px, 9vw, 39px)/1 var(--serif); letter-spacing: -.065em; color: #75421f; white-space: nowrap; }
.cashback > span { font-size: .63em; margin-left: 2px; }
.expand-icon { width: 15px; height: 15px; color: var(--bronze); transition: transform .18s ease; }
details[open] > summary .expand-icon { transform: rotate(45deg); }
.loyalty-content { padding: 0 13px 13px; font-size: 13px; line-height: 1.65; }
.loyalty-content p + p { margin-top: 8px; }
.inline-link { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 10px; color: var(--bronze); font-size: 12px; font-weight: 650; }
.inline-link:hover { text-decoration: underline; }

.information { margin-top: 10px; }
.info-item { border-bottom: 1px solid var(--line); }
.info-item summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 2px; font-size: 13px; }
.info-content { padding: 0 2px 12px; font-size: 13px; line-height: 1.65; }
.proof-points { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin-top: 12px; padding-block: 12px; border-block: 1px solid var(--line); }
.proof-points > span { display: grid; gap: 5px; }
.proof-points > span:last-child { grid-column: 1 / -1; }
.proof-points strong { font: 24px/1 var(--serif); color: var(--bronze); }
.proof-points > span > span { color: var(--muted); font-size: 11px; }
.about-list { margin: 12px 0 0; }
.about-list dt { font-size: 13px; margin-top: 12px; font-weight: 650; }
.about-list dd { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.service-note { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-inline: 2px; color: var(--muted); font-size: 11px; }
.footer > span { font: 15px var(--serif); }
.footer a { display: flex; align-items: center; min-height: 44px; }

.price-dialog {
  position: fixed;
  inset: 0;
  width: min(560px, calc(100% - 24px));
  height: min(830px, 92vh);
  height: min(830px, 92dvh);
  max-height: 92dvh;
  border: 0;
  border-radius: 16px;
  padding: 0;
  margin: auto;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 16px 65px #220f0a46;
}
.price-dialog[open] { display: flex; flex-direction: column; }
.price-dialog::backdrop { background: #28150fb3; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; background: var(--chocolate); color: #fff0d5; flex-shrink: 0; }
.dialog-brand { font: 16px var(--serif); color: var(--gold); }
.dialog-header h2 { font-size: 16px; font-weight: 550; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; background: transparent; border: 1px solid #dca76074; border-radius: 50%; color: #ffe8c2; }
.icon-button:focus-visible { outline-color: var(--gold); }
.icon-button .icon { width: 17px; height: 17px; }
.dialog-scroll { padding: 0 16px 15px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
:root, .dialog-scroll { overflow-anchor: none; }
.dialog-scroll { --disclosure-space: 0px; }
:root[style*="--disclosure-space"] body::after, .dialog-scroll[style*="--disclosure-space"]::after {
  content: "";
  display: block;
  height: var(--disclosure-space);
}
.price-utilities { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 5px; }
.pdf-link { display: flex; gap: 6px; align-items: center; min-height: 44px; color: var(--bronze); font-size: 11px; }
.pdf-link > span:first-child { font-size: 9px; border: 1px solid var(--line); border-radius: 2px; padding: 2px 3px; }
.service-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); column-gap: 12px; }
.service-tabs button { border: 0; background: none; padding: 7px 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 11px; min-height: 44px; }
.service-tabs button[aria-selected="true"] { border-bottom-color: var(--bronze); color: var(--chocolate); font-weight: 650; }
.price-heading { padding-block: 16px 12px; }
.price-heading h3 { font: 24px/1.2 var(--serif); letter-spacing: -.025em; }
.price-heading p, .price-note { font-size: 12px; margin-top: 6px; }
.category-control { display: inline-flex; gap: 3px; background: #efdfc9; border-radius: 7px; padding: 3px; margin-top: 11px; }
.category-control button { min-height: 40px; border: 0; border-radius: 5px; padding: 5px 13px; background: transparent; color: var(--muted); font-size: 12px; }
.category-control button[aria-pressed="true"] { color: var(--chocolate); background: var(--surface); }
.branch-notice { color: var(--bronze); font-size: 12px; padding-bottom: 12px; }
.service-row { border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 0; }
.service-row summary > div:first-child { min-width: 0; }
.service-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; overflow-wrap: anywhere; }
.service-time { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.service-values { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.service-price { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.service-chevron { width: 12px; height: 12px; color: var(--bronze); transition: transform .18s ease; }
.service-row[open] .service-chevron { transform: rotate(180deg); }
.service-description { padding-bottom: 12px; font-size: 12px; line-height: 1.65; }
.badge { border-radius: 3px; padding: 2px 4px; font-size: 8px; letter-spacing: .015em; }
.badge.popular { background: #ffe4a3; color: #8a4a00; }
.badge.recommended { background: #e8eef5; color: #3d5873; }
.badge.new { background: #eaf0e7; color: #47624a; }
.price-note { padding-top: 10px; }
.dialog-footer { border-top: 1px solid var(--line); padding: 8px 16px max(8px, env(safe-area-inset-bottom)); flex-shrink: 0; }
.dialog-consultation { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border-radius: 7px; background: var(--chocolate); color: #ffe5bd; font-size: 12px; font-weight: 600; }
.dialog-consultation .icon { width: 17px; height: 17px; }

@media (min-width: 700px) {
  body { background: radial-gradient(ellipse at top, #f9edde, #edddc8) fixed; }
  .page { margin-block: 18px; padding: 13px 16px; border-radius: 22px; border: 1px solid #e6d3ba; background: var(--paper); box-shadow: 0 18px 60px #52301a12; }
}
@media (max-width: 600px) {
  .price-dialog { inset: auto 0 0; width: 100%; max-width: 100%; height: 94dvh; max-height: 94dvh; margin: 0; border-radius: 14px 14px 0 0; }
}
@media (max-width: 355px) {
  .page { padding-inline: 10px; }
  .branch-main h3 { font-size: 20px; }
  .quick-button { font-size: 11px; }
  .service-tabs { column-gap: 9px; }
}
@media (prefers-reduced-motion: no-preference) {
  .brand-identity { animation: identity-arrive .6s ease-out both; }
  .brand-ornament { animation: ornament-arrive .95s ease-out both; transform-origin: 50% 100%; }
  .price-dialog[open] { animation: identity-arrive .24s ease-out both; }
  @keyframes identity-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes ornament-arrive { from { opacity: 0; transform: scale(1.06); } to { opacity: .59; transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
