:root {
  --bg: #f6f3f7;
  --panel: #ebdde8;
  --card: #ffffff;
  --line: #e6dee8;
  --ink: #2a2430;
  --muted: #655d6b;
  --mauve: #7a4a68;
  --accent: #1f5c4d;
  --accent-dark: #174638;
  --sage: #ddebe4;
  --amber: #fff1cc;
  --amber-ink: #7a5600;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.4rem; margin-bottom: 16px; }
h3 { font-size: 1.05rem; margin-bottom: 6px; }
h3.group { margin: 28px 0 12px; font-size: 0.95rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 12px; max-width: 60ch; }
a { color: var(--accent); }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 20px; }

/* шапка: пастельная плашка с закруглённым низом */
.hub-top { background: var(--panel); border-radius: 0 0 36px 36px; padding: 40px 0 36px; text-align: center; }
.photo-wrap { width: 136px; height: 136px; margin: 0 auto 20px; }
.photo { display: block; width: 136px; height: 136px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: #d9c8dc; box-shadow: 0 0 0 5px #fff; }
.photo-ph { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 0.8rem; }
.hub-top h1 { margin-bottom: 8px; }
.role { margin: 0 auto; color: var(--mauve); font-size: 1rem; font-weight: 500; max-width: 26em; }
.trust { margin: 10px auto 0; font-size: 0.9rem; color: var(--muted); }

/* хаб кнопок */
.hub { padding: 28px 0 8px; }
.lead { margin: 0 auto 8px; text-align: center; color: var(--muted); }
.hub-group { display: grid; gap: 10px; margin-top: 32px; }
.hub-group .hub-group { margin-top: 0; }
.group-label { margin: 0; font-size: 0.95rem; font-weight: 650; color: var(--ink); }
.note { margin: 0; font-size: 0.85rem; color: var(--muted); }
.price { margin: 0; font-weight: 650; }

/* кнопки */
.btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 12px 20px;
  background: var(--accent); color: #fff; border: 0; border-radius: 14px;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #d9a441; outline-offset: 2px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-ghost:hover { background: var(--sage); color: var(--accent-dark); }
.btn-soft { background: var(--sage); color: var(--accent); font-size: 0.95rem; min-height: 52px; }
.btn-soft:hover { background: #cfe2d8; color: var(--accent-dark); }
.btn-off { background: var(--amber); color: var(--amber-ink); box-shadow: inset 0 0 0 2px #e6c36a; cursor: default; font-weight: 500; }
.btn-off:hover { background: var(--amber); }
.btns { display: grid; gap: 10px; }

/* услуга: карточка со ссылкой, название и описание внутри */
.svc-btn {
  position: relative; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 0; padding: 16px 44px 16px 18px; text-align: left;
  background: var(--card); color: var(--ink); border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line);
}
.svc-btn:hover { background: #fcfaff; box-shadow: 0 0 0 1px #cfc3d3, 0 4px 14px rgba(60, 40, 70, 0.08); }
.svc-btn::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
.svc-title { font-weight: 650; font-size: 1.05rem; line-height: 1.3; }
.svc-desc { font-weight: 400; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.svc-btn.btn-off { background: var(--amber); }

/* соцсети и отзывы: тихая сетка */
.social { grid-template-columns: 1fr 1fr; }
.social .note, .social .btn:last-child { grid-column: 1 / -1; }

/* заглушки черновика */
.ph { color: var(--amber-ink); background: var(--amber); padding: 0 4px; border-radius: 4px; }
.draft-bar { background: var(--amber); color: var(--amber-ink); padding: 8px 16px; font-size: 0.88rem; text-align: center; }
.test-bar { padding: 8px 16px; font-size: 0.88rem; text-align: center; background: var(--sage); }

/* разделы ниже хаба */
.band { padding: 44px 0 0; }
.band p { margin-bottom: 12px; }

.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.list li { background: var(--card); padding: 14px 16px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: var(--card); padding: 14px 16px 14px 56px; border-radius: 16px; position: relative; box-shadow: 0 0 0 1px var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.cards { display: grid; gap: 12px; }
.card { background: var(--card); padding: 18px; border-radius: 18px; display: grid; gap: 8px; box-shadow: 0 0 0 1px var(--line); }
.addr { color: var(--muted); margin: 0; }

.rows { display: grid; background: var(--card); border-radius: 18px; padding: 4px 18px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row b { white-space: nowrap; }
.row-main { display: grid; gap: 2px; }
.row-name { font-weight: 600; }
.row-note { font-size: 0.85rem; color: var(--muted); }
.rows + .btn { margin-top: 4px; }
.price-note { margin-top: 12px; }

details { background: var(--card); margin-bottom: 10px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
summary { cursor: pointer; padding: 14px 18px; min-height: 48px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "−"; }
details > p { padding: 0 18px 14px; margin: 0; }
details .list { padding: 0 18px 14px; }
details .list li { padding: 8px 0; background: none; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
.qa { background: var(--card); padding: 14px 18px; margin-bottom: 10px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }

/* подвал */
.foot { margin-top: 56px; padding: 28px 0 40px; color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--line); }
.foot p { max-width: none; margin-bottom: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0; }
.foot .btn { display: inline; min-height: 0; padding: 0; background: none; color: var(--accent); text-decoration: underline; font-size: inherit; font-weight: 400; box-shadow: none; }
.foot .btn-off { background: var(--amber); color: var(--amber-ink); padding: 0 4px; text-decoration: none; }

/* плавающая кнопка записи */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 15;
  max-width: 528px; margin: 0 auto; padding: 14px 20px; min-height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 650; text-decoration: none; text-align: center;
  border-radius: 16px; box-shadow: 0 6px 20px rgba(31, 92, 77, 0.35);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.sticky-cta.show { opacity: 1; transform: none; pointer-events: auto; }
@media print { .sticky-cta { display: none; } }

/* уведомление о cookie */
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; max-width: 536px; margin: 0 auto; padding: 14px 16px; display: grid; gap: 10px; background: var(--card); color: var(--ink); border-radius: 16px; box-shadow: 0 6px 24px rgba(42, 36, 48, 0.25); font-size: 0.9rem; }
.cookie-bar p { margin: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 140px; }
@media print { .cookie-bar { display: none; } }

/* режим правки */
.ed { outline: 1px dashed #cfc3d3; outline-offset: 2px; min-height: 1.2em; }
.ed:hover { outline-color: var(--accent); }
.ed:focus { outline: 2px solid var(--accent); background: #fff; }
.ed:empty::before { content: attr(data-ph); color: var(--amber-ink); background: var(--amber); padding: 0 4px; border-radius: 4px; }
.edit-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-top: 2px solid var(--accent); }
.edit-bar span { flex: 1 1 260px; font-size: 0.9rem; }
.edit-bar .btn { min-height: 44px; font-size: 0.95rem; }
body:has(.edit-bar) { padding-bottom: 90px; }

@media (min-width: 720px) {
  h1 { font-size: 2.2rem; }
  .photo-wrap, .photo { width: 156px; height: 156px; }
  .hub-top { padding: 52px 0 44px; }
}

/* компактнее на телефоне: меньше шапка и отступы, подробности свёрнуты */
.hub-top { padding: 26px 0 22px; }
.photo-wrap { width: 104px; height: 104px; margin-bottom: 14px; }
.photo { width: 104px; height: 104px; }
h1 { font-size: 1.6rem; }
.hub { padding: 18px 0 4px; }
.lead { font-size: 0.95rem; }
.hub-group { margin-top: 22px; }
.btn { min-height: 52px; }
.svc-btn { padding: 12px 40px 12px 16px; min-height: 0; }
.svc-btn::after { right: 16px; }

.accs { margin-top: 28px; display: grid; gap: 8px; }
.acc { margin: 0; }
.acc > summary { min-height: 56px; font-weight: 650; font-size: 1.05rem; }
.acc-body { padding: 0 18px 18px; }
.acc-body > :first-child { margin-top: 0; }
.acc .list li, .acc .steps li { background: none; box-shadow: none; border-radius: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--line); }
.acc .steps li { padding-left: 42px; }
.acc .steps li::before { left: 0; }
.acc .list li:last-child, .acc .steps li:last-child { border-bottom: 0; }
.acc .rows { background: none; box-shadow: none; padding: 0; margin-bottom: 14px; }
.acc .card { background: var(--bg); box-shadow: none; }
.acc details { background: none; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--line); margin: 0; }
.acc details > summary { padding: 12px 0; font-weight: 600; font-size: 1rem; }
.acc details > p { padding: 0 0 12px; }
.acc details .list { padding: 0 0 8px; }
.acc h3.group { margin-top: 20px; }
.foot { margin-top: 32px; }

/* вид 2024: бенто-плитки, пилюли, крупные радиусы, органичное фото */
:root { --lilac: #e6e2f3; --sand: #f5ead2; }
.hub-top { border-radius: 0 0 44px 44px; padding: 28px 0 26px; }
.photo { border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; }
h1 { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.025em; }
.btn { border-radius: 999px; }
.btn-soft { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn-soft:hover { background: var(--sage); }

.svc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.svc-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.svc-btn {
  min-height: 150px; padding: 16px 16px 56px; border-radius: 26px; box-shadow: none; background: var(--panel);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.svc-grid > :nth-child(4n+2) { background: var(--sage); }
.svc-grid > :nth-child(4n+3) { background: var(--lilac); }
.svc-grid > :nth-child(4n+4) { background: var(--sand); }
.svc-btn:hover { box-shadow: none; transform: translateY(-2px); filter: brightness(0.98); }
.svc-btn::after {
  right: 14px; top: auto; bottom: 14px; width: 34px; height: 34px; border: 0; transform: none; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5c4d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.svc-title { font-size: 1rem; line-height: 1.25; }
.svc-desc { font-size: 0.82rem; color: #5a5160; }
.svc-btn.btn-off { background: var(--amber); }
@media (prefers-reduced-motion: reduce) { .svc-btn { transition: none; } .svc-btn:hover { transform: none; } }

.acc { border-radius: 22px; }
.acc > summary { padding-left: 20px; padding-right: 14px; }
.acc > summary::after { content: "+"; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sage); font-size: 1.3rem; }
.acc[open] > summary::after { content: "−"; }
.acc-body { padding: 0 20px 20px; }
.sticky-cta { border-radius: 999px; }

/* подвал: реквизиты свёрнуты, предупреждение на виду */
.foot { font-size: 0.9rem; }
.legal > summary { font-size: 1rem; }
.legal .acc-body p { margin-bottom: 10px; }
.warn-note { margin: 14px 4px 0; font-size: 0.82rem; color: var(--muted); }

.acc > summary::after { flex: none; }

/* подвал тише: мелкая ссылка по центру вместо плашки */
.foot { text-align: center; padding: 20px 0 28px; margin-top: 40px; }
.foot .legal { background: none; box-shadow: none; border-radius: 0; margin: 0; max-width: none; }
.foot .legal > summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 6px 4px; font-size: 0.85rem; font-weight: 500; color: var(--muted);
}
.foot .legal > summary::after, .foot .legal[open] > summary::after {
  content: ""; display: block; flex: none; width: 7px; height: 7px; border-radius: 0; background: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
.foot .legal[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.foot .legal .acc-body { padding: 2px 0 8px; font-size: 0.82rem; }
.foot .legal .acc-body p { margin-bottom: 6px; max-width: none; }
.foot .legal nav { justify-content: center; gap: 4px 14px; margin: 6px 0 0; }
.foot .warn-note { margin: 6px auto 0; max-width: 30em; text-align: center; font-size: 0.8rem; }
