/* Инь-Ян — гостевая страница (NFC): олива, молочный, кашемир, шампань-золото */
:root {
  --olive: #657746;
  --olive-dark: #4e5c35;
  --milk: #f7f4ee;
  --cashmere: #e9e2d7;
  --gold: #c4ad83;
  --gold-text: #846a3e;
  --ink: #292b26;
  --muted: #66685f;
  --line: #e3dbcd;
  --surface: #fffdf9;
  --on-olive: #f7f4ee;
  --on-olive-muted: rgba(247, 244, 238, .78);
  --warn-bg: #f4ede0;

  --radius: 20px;
  --radius-sm: 14px;
  --h-row: 56px;
  --shadow: 0 1px 2px rgba(41, 43, 38, .04), 0 6px 18px rgba(41, 43, 38, .05);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .45s;

  --font: Unbounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: Forum, Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", "Snell Roundhand", cursive;
  --page: 600px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--milk); color: var(--ink);
  font: 300 15px/1.55 var(--font);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- появление ---------- */
.rv { animation: rise var(--dur) var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- первый экран ---------- */
.hero {
  position: relative; text-align: center; color: var(--on-olive);
  padding: max(30px, env(safe-area-inset-top)) 24px 56px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 60%),
    var(--olive);
}
.hero-logo { display: block; width: auto; height: 132px; margin: 0 auto 20px; }
.hero h1 { margin: 0 auto 10px; max-width: 420px; text-wrap: balance; font: 400 34px/1.12 var(--font-display); letter-spacing: .01em; }
.hero p { margin: 0 auto; max-width: 360px; text-wrap: balance; color: var(--on-olive-muted); font-size: 13px; line-height: 1.6; }

.sheet {
  position: relative; max-width: var(--page); margin: -28px auto 0; padding: 22px 18px max(28px, env(safe-area-inset-bottom));
  background: var(--milk); border-radius: 28px 28px 0 0;
}

/* ---------- главное меню ---------- */
.menu { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tile {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px;
  padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); text-align: left; cursor: pointer;
  transition: transform .15s ease, border-color .2s ease;
}
.tile:active { transform: scale(.985); }
@media (hover: hover) { .tile:hover { border-color: var(--gold); } }
.tile-icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 50%; background: var(--cashmere); color: var(--olive);
}
.tile-text { flex: 1; min-width: 0; }
.tile-title { display: block; font-size: 14px; font-weight: 400; line-height: 1.3; }
.tile-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.chev { color: var(--gold-text); width: 18px; height: 18px; }

/* ---------- забота ---------- */
.care { margin-top: 34px; padding: 26px 20px 8px; border-radius: var(--radius); background: var(--cashmere); }
.care h2 { margin: 0 0 14px; font: 400 26px/1.15 var(--font-display); text-align: center; }
.care ul { margin: 0; padding: 0; list-style: none; }
.care li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(132, 106, 62, .18); }
.care li:first-child { border-top: 0; }
.care .i { color: var(--olive); margin-top: 1px; }
.care b { display: block; font-weight: 500; font-size: 14px; }
.care span { display: block; color: var(--muted); font-size: 12.5px; }

.foot { margin-top: 34px; text-align: center; }
.foot .sign { margin: 0; color: var(--gold-text); font: 30px/1.3 var(--font-script); }
.foot .mark { display: block; width: 22px; margin: 10px auto 0; opacity: .8; }

/* ---------- внутренние страницы ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: max(8px, env(safe-area-inset-top)) 10px 8px;
  background: rgba(247, 244, 238, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.back {
  justify-self: start; display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 0 12px 0 6px; border: 0; border-radius: 999px; background: none;
  color: var(--olive); font-size: 13px; font-weight: 400; cursor: pointer;
}
.back .i { width: 20px; height: 20px; }
.top-mark { height: 30px; width: auto; }
.page { max-width: var(--page); margin: 0 auto; padding: 8px 18px max(32px, env(safe-area-inset-bottom)); }
.page-head { text-align: center; padding: 10px 6px 18px; }
.page-head h1 { margin: 0; text-wrap: balance; font: 400 32px/1.12 var(--font-display); }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

/* поиск */
.search { position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 9; padding: 2px 0 12px; background: var(--milk); }
.search label { position: relative; display: block; }
.search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search input {
  width: 100%; min-height: 50px; padding: 0 48px 0 46px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 16px; font-weight: 300; outline: none; -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #8b8c83; }
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(196, 173, 131, .22); }
.search .clear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
}
.search input::-webkit-search-cancel-button { display: none; }

/* список разделов */
.cats { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cat .tile { min-height: 72px; }

/* страница раздела */
.subnav {
  position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 9;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -18px; padding: 4px 18px 12px; background: var(--milk);
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12.5px; font-weight: 400; white-space: nowrap;
}
.subnav a[aria-current="true"] { background: var(--olive); border-color: var(--olive); color: var(--on-olive); }
.sub { margin-top: 18px; scroll-margin-top: calc(124px + env(safe-area-inset-top)); }
.sub h2 { margin: 0; font: 400 24px/1.2 var(--font-display); }
.sub-note { margin: 2px 0 0; color: var(--gold-text); font-size: 12px; letter-spacing: .02em; }
.warn {
  display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--warn-bg); color: #5b4a2a; font-size: 12.5px; line-height: 1.5;
}
.warn .i { width: 18px; height: 18px; margin-top: 1px; color: var(--gold-text); }
.list { margin: 10px 0 0; padding: 0; list-style: none; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.list > li + li { border-top: 1px solid var(--line); }
.svc {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--h-row);
  padding: 12px 16px; border: 0; background: none; text-align: left; cursor: pointer;
}
.svc-name { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.4; }
.svc-where { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.price { flex: none; max-width: 46%; text-align: right; font-size: 13.5px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price.addon { color: var(--gold-text); }
.svc .chev { width: 16px; height: 16px; }
.svc:active { background: var(--milk); }
.svc:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; border-radius: 12px; }
li:first-child > .svc:focus-visible { border-radius: var(--radius) var(--radius) 12px 12px; }

/* карточка услуги */
body.noscroll { overflow: hidden; }
.ov { position: fixed; inset: 0; z-index: 30; background: rgba(41, 43, 38, .38); animation: fade .2s ease; }
.bs {
  position: fixed; z-index: 31; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 22px max(22px, env(safe-area-inset-bottom));
  background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(41, 43, 38, .18);
  animation: sheet-up .32s var(--ease);
}
@keyframes sheet-up { from { transform: translate(-50%, 100%); } }
.bs-grip { display: block; width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: var(--line); }
.bs-close {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--milk); color: var(--muted); cursor: pointer;
}
.bs-where { margin: 4px 52px 6px 0; color: var(--gold-text); font-size: 11.5px; letter-spacing: .02em; }
.bs h2 { margin: 0 44px 0 0; font: 400 28px/1.15 var(--font-display); outline: none; text-wrap: balance; }
.bs-price { margin: 10px 0 0; font-size: 20px; font-weight: 400; font-variant-numeric: tabular-nums; }
.bs-price.addon { color: var(--gold-text); }
.bs-text { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.bs .warn { margin-top: 14px; }
.bs .btn { margin-top: 20px; min-height: 52px; }
@media (min-width: 760px) and (min-height: 600px) {
  .bs { top: 50%; bottom: auto; transform: translate(-50%, -50%); border-radius: 26px; padding-bottom: 24px; animation: fade .2s ease; }
  .bs-grip { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--olive); color: var(--on-olive); font-size: 13.5px; font-weight: 400; letter-spacing: .01em;
  transition: transform .15s ease, background-color .2s ease;
}
.btn:active { transform: scale(.98); }
@media (hover: hover) { .btn:hover { background: var(--olive-dark); } }
.btn-wide { width: 100%; }
.btn .i { width: 18px; height: 18px; }

.cta { margin-top: 26px; padding: 22px 18px; border-radius: var(--radius); background: var(--olive); color: var(--on-olive); text-align: center; }
.cta h2 { margin: 0 0 4px; font: 400 24px/1.2 var(--font-display); }
.cta p { margin: 0 0 14px; color: var(--on-olive-muted); font-size: 12.5px; }
.cta .btn { background: var(--milk); color: var(--olive-dark); }
@media (hover: hover) { .cta .btn:hover { background: #fff; } }
.note { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty .btn { margin-top: 14px; }

/* соцсети */
.socials { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

/* загрузка */
.boot-hero { display: grid; place-items: center; height: 300px; background: var(--olive); }
.boot-hero img { height: 132px; width: auto; animation: pulse 1.6s ease-in-out infinite; }
.boot-list { max-width: var(--page); margin: -28px auto 0; padding: 22px 18px; background: var(--milk); border-radius: 28px 28px 0 0; display: grid; gap: 10px; }
.boot-list i { display: block; height: 76px; border-radius: var(--radius); background: linear-gradient(90deg, var(--cashmere), #f1ebe1, var(--cashmere)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes pulse { 50% { opacity: .6; } }
@keyframes shimmer { to { background-position: -200% 0; } }

.toast {
  position: fixed; z-index: 40; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 18px;
  background: var(--ink); color: var(--milk); font-size: 13px; line-height: 1.5; text-align: center;
  box-shadow: 0 10px 30px rgba(41, 43, 38, .25); animation: rise .3s var(--ease) both;
}

@media (min-width: 720px) {
  .hero { padding-top: 48px; padding-bottom: 72px; }
  .hero-logo { height: 150px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 14px; }
  .sheet { padding-left: 24px; padding-right: 24px; }
  .page { padding-left: 24px; padding-right: 24px; }
  .subnav { margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 359px) {
  .hero h1 { font-size: 29px; }
  .tile { gap: 12px; padding-left: 12px; }
  .tile-icon { width: 40px; height: 40px; }
  .price { max-width: 50%; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
