/* Сайт продукту goovi.io (spec 65). Макет — Claude Design, проєкт 45: docs/admin-design/export/goovi-site/.
   Десктоп — кадр 1440, телефон — 390; між ними — плавні відступи й сітка. Без JS, тема лише світла. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --brand: #6143C3;
  --brand-hover: #5034AE;
  --brand-deep: #4A2FA0;
  --brand-light: #DAD6FF;
  --brand-tint: #F2EFFD;
  --brand-soft: #EFECFC;
  --ink: #131922;
  --ink-body: #232934;
  --ink-2: #3F4556;
  --muted: #4F5566;
  --muted-2: #5E6475;
  --muted-3: #6A7080;
  --line: #EEECF4;
  --line-2: #EFEDF5;
  --line-3: #E0DCEC;
  --btn-line: #DCD8EA;
  --btn-line-hover: #C9C2EA;
  --btn-hover: #F3F1FC;
  --bg: #fff;
  --bg-soft: #F8F7FC;
  --ok-bg: #E3F4EA;
  --ok-fg: #17633B;
  --warn-bg: #FDEFD9;
  --warn-fg: #854600;
  --neutral-bg: #F0EEF6;
  --gutter: clamp(20px, 8.3vw, 120px);
  --section-y: clamp(72px, 8.3vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Wordmark «goovı» — геометрія варіанта 1i (docs/admin-design/export/goovi-logo) і <noc-wordmark> адмінки: «Goovi» для пошуку й
   читача екрана, літери aria-hidden. Крапка — від низу рядка ı (line-height 1), по центру ı. letter-spacing на ı — 0: інакше обгортка
   вужча за гліф на 0.035em, і left: 50% зсуває крапку з осі штриха (гліф ı в Onest симетричний) */
.wordmark { position: relative; display: inline-block; color: var(--ink); text-decoration: none; font-size: 30px; font-weight: 700;
  letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.wordmark .i { position: relative; display: inline-block; letter-spacing: 0; }
.wordmark .dot { position: absolute; left: 50%; bottom: 0.74em; width: 0.21em; height: 0.21em; border-radius: 50%; background: var(--brand);
  transform: translateX(-50%); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 0 30px; border-radius: 14px;
  font-size: 17px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-secondary { padding: 0 28px; border: 1.5px solid var(--btn-line); color: var(--ink); }
.btn-secondary:hover { background: var(--btn-hover); border-color: var(--btn-line-hover); color: var(--ink); }

/* Шапка */
.site-header { display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line); }
.site-header .btn-secondary { height: 44px; padding: 0 20px; border-radius: 12px; font-size: 16px; }

/* Підвал */
.site-footer { padding: 32px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 15px; color: var(--muted); }
.site-footer.bordered { border-top: 1px solid var(--line); }
.site-footer nav { display: flex; gap: 28px; }
.site-footer nav a { color: var(--ink-2); text-underline-offset: 4px; }
.site-footer nav a:hover { color: var(--brand); }

/* Перший екран */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center;
  padding: 96px var(--gutter) 136px; }
.hero h1 { margin: 0; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.hero .lead { margin: 28px 0 0; font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 31em; }
.hero .actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

.showcase { position: relative; background: var(--brand-tint); border-radius: 36px; padding: 44px 44px 150px; }
.card { background: #fff; border-radius: 20px; box-shadow: 0 1px 0 #E6E2F2, 0 24px 48px -20px rgba(64, 40, 150, .28); }
.schedule { padding: 22px 22px 8px; }
.schedule-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.schedule-head b { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.schedule-head span { font-size: 13px; color: var(--muted-2); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.days li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; }
.days small { font-size: 11px; font-weight: 500; color: var(--muted-2); }
.days b { font-size: 15px; font-weight: 600; }
.days .today { background: var(--brand); color: #fff; }
.days .today small { color: #fff; }
.slots { margin: 14px 0 0; padding: 0; list-style: none; }
.slot { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0;
  border-top: 1px solid var(--line-2); }
.slot .time b, .slot .what b { display: block; font-size: 15px; font-weight: 600; }
.slot .time small { display: block; font-size: 12px; color: var(--muted-3); }
.slot .what { min-width: 0; }
.slot .what small { display: block; font-size: 13px; color: var(--muted-2); }
.slot .side { display: flex; align-items: center; gap: 10px; }
.slot .count { font-size: 13px; color: var(--muted-2); }
.slot .count-inline { display: none; }
.pill { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill-warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill-neutral { background: var(--neutral-bg); color: var(--ink-2); }
.fake-btn { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 10px; background: var(--brand); color: #fff; }

.membership { position: absolute; left: -44px; bottom: -48px; width: 292px; padding: 20px;
  box-shadow: 0 1px 0 #E6E2F2, 0 28px 56px -22px rgba(64, 40, 150, .38); }
.membership .who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--brand-light); color: var(--brand-deep);
  display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.membership .name { min-width: 0; flex: 1; }
.membership .name b { display: block; font-size: 15px; font-weight: 600; }
.membership .name small { display: block; font-size: 12px; color: var(--muted-2); }
.membership .plan { margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.membership .plan b { font-size: 16px; font-weight: 600; }
.membership .plan span { font-size: 13px; color: var(--muted-2); }
.membership .left { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.membership .left b { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; color: var(--brand); line-height: 1; }
.membership .left span { font-size: 14px; color: var(--ink-2); }
.bar { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.bar i { height: 6px; border-radius: 3px; background: #E4E0F3; }
.bar i.on { background: var(--brand); }
.membership .until { margin-top: 12px; font-size: 12px; color: var(--muted-2); }

/* Розділи */
.section-title { margin: 0; font-size: clamp(34px, 3.5vw, 50px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }

.features { background: var(--bg-soft); padding: var(--section-y) var(--gutter); }
.features ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 40px; margin: 64px 0 0; padding: 0;
  list-style: none; }
.features li { border-top: 1px solid var(--line-3); padding-top: 24px; }
.features .num { font-size: 14px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.features h3 { margin: 14px 0 0; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.features p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; align-items: center;
  padding: var(--section-y) var(--gutter); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-direction: column; gap: 32px; }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; }
.steps .n { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid;
  place-items: center; font-size: 20px; font-weight: 700; }
.steps .t { font-size: 20px; line-height: 1.5; padding-top: 9px; }
.steps a { font-weight: 600; text-underline-offset: 4px; }
.start .cta { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap; }
.start .cta p { margin: 0; font-size: 17px; color: var(--muted); }

.phone-stage { background: var(--brand-tint); border-radius: 36px; padding: 56px 0; display: flex; justify-content: center; }
.phone { width: 300px; height: 600px; border-radius: 46px; background: var(--ink); padding: 10px;
  box-shadow: 0 40px 80px -30px rgba(40, 20, 110, .45); }
.phone .screen { height: 100%; border-radius: 36px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.phone .notch { display: flex; justify-content: center; padding: 10px 0 6px; }
.phone .notch i { width: 84px; height: 24px; border-radius: 12px; background: var(--ink); }
.phone .url { margin: 4px 14px 0; height: 32px; border-radius: 10px; background: #F2F1F6; display: grid; place-items: center;
  font-size: 12px; color: var(--ink-2); font-weight: 500; }
.phone .site { padding: 18px; }
.phone .studio { display: flex; justify-content: space-between; align-items: center; }
.phone .studio b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.phone .studio span { font-size: 12px; font-weight: 600; color: var(--brand); }
.phone .dirs { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.phone .tabs { display: flex; gap: 18px; margin-top: 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; font-weight: 600;
  color: var(--muted-2); }
.phone .tabs .on { color: var(--brand); padding-bottom: 9px; border-bottom: 2px solid var(--brand); margin-bottom: -1px; }
.phone .date { font-size: 12px; color: var(--muted-2); margin-top: 14px; }
.phone .session { border: 1px solid #ECE9F4; border-radius: 16px; padding: 14px; margin-top: 10px; }
.phone .session .row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.phone .session small { display: block; font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.phone .session .book { margin-top: 12px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; display: grid;
  place-items: center; font-size: 13px; font-weight: 600; }
.phone .prices-title { font-size: 13px; font-weight: 700; margin-top: 20px; }
.phone .price { display: flex; justify-content: space-between; font-size: 13px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.phone .price:first-of-type { margin-top: 4px; }
.phone .price b { font-weight: 600; }
.phone .signin { font-size: 11px; color: var(--muted-2); margin-top: 14px; text-align: center; }

.contacts { background: var(--brand); color: #fff; padding: 112px var(--gutter); }
.contacts .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
.contacts img { display: block; }
.contacts .section-title { margin-top: 28px; color: #fff; }
.contacts dl { margin: 0; display: flex; flex-direction: column; }
.contacts dl div { padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .2); display: flex; flex-direction: column; gap: 6px; }
.contacts dl div:first-child { padding-top: 0; border-top: 0; }
.contacts dl div:last-child { padding-bottom: 0; }
.contacts dt { font-size: 15px; color: var(--brand-light); }
.contacts dd { margin: 0; }
.contacts dd a { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: #fff; text-underline-offset: 6px;
  text-decoration-thickness: 2px; text-decoration-color: rgba(255, 255, 255, .45); overflow-wrap: anywhere; }
.contacts dd a:hover { color: #fff; text-decoration-color: #fff; }
.contacts dd a:focus-visible { outline-color: #fff; }

/* Правовий текст */
.legal { padding: 56px var(--gutter) 128px; }
.back { font-size: 15px; font-weight: 600; color: var(--brand); text-decoration: none; }
.back:hover { text-decoration: underline; }
.legal .layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 96px; margin-top: 44px; align-items: start; }
.toc { position: sticky; top: 32px; }
.toc-title { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.toc ol, .toc-mobile ol { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px;
  font-size: 15px; line-height: 1.4; }
.toc a, .toc-mobile a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc-mobile a:hover { color: var(--brand); }
.toc-mobile { display: none; margin-top: 24px; border: 1px solid #E3E0EE; border-radius: 14px; padding: 0 16px; }
.toc-mobile summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px;
  font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary span { font-size: 13px; font-weight: 500; color: var(--muted-2); }
.toc-mobile ol { margin: 0 0 16px; }
.doc { max-width: 720px; color: var(--ink-body); }
.doc h1 { margin: 0; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; color: var(--ink); }
.doc .edition { margin: 18px 0 0; font-size: 15px; color: var(--muted-2); }
.doc .intro { margin: 36px 0 0; font-size: 21px; line-height: 1.6; color: var(--ink); }
.doc h2 { margin: 56px 0 0; font-size: 27px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; color: var(--ink);
  scroll-margin-top: 24px; }
.doc .intro + h2 { margin-top: 64px; }
.doc p { margin: 16px 0 0; font-size: 18px; line-height: 1.7; }
.doc ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 18px; line-height: 1.7; }
.doc li { position: relative; padding-left: 22px; }
.doc li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.doc strong { font-weight: 600; color: var(--ink); }
.doc a { text-underline-offset: 3px; overflow-wrap: anywhere; }

/* 404 */
.not-found { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 140px var(--gutter) 168px; }
.not-found .code { margin-top: 36px; font-size: 18px; font-weight: 600; color: var(--brand); }
.not-found h1 { margin: 10px 0 0; font-size: clamp(32px, 3.5vw, 50px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.not-found .btn { margin-top: 40px; }

/* Планшет */
@media (max-width: 1180px) {
  .features ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal .layout { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 1000px) {
  .hero, .start { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero { padding-top: 64px; padding-bottom: 112px; }
  .showcase { max-width: 620px; margin-left: 44px; }
  .contacts .grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Телефон — кадр 390 */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .site-header { height: 64px; }
  .wordmark { font-size: 26px; }
  .hero { padding: 40px var(--gutter) 72px; gap: 0; }
  .hero h1 { font-size: 38px; line-height: 1.07; }
  .hero .lead { margin-top: 20px; font-size: 17px; }
  .hero .actions { flex-direction: column; margin-top: 32px; }
  .hero .actions .btn { width: 100%; height: 56px; }
  .showcase { margin: 48px 0 0; border-radius: 28px; padding: 18px 18px 200px; }
  .schedule { padding: 18px 18px 4px; border-radius: 18px; }
  .days { gap: 4px; margin-top: 14px; }
  .slot { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 13px 0; align-items: start; }
  .slot .side { grid-column: 2; margin-top: -4px; }
  .slot .pill { justify-self: start; }
  .slot.extra, .slot .count { display: none; }
  .slot .count-inline { display: inline; }
  .membership { left: auto; right: -6px; bottom: -40px; width: 268px; padding: 18px; border-radius: 18px; }
  .avatar { width: 36px; height: 36px; font-size: 13px; }
  .membership .who { gap: 10px; }
  .membership .name b { font-size: 14px; }
  .membership .name small { font-size: 11px; }
  .membership .who .pill { font-size: 11px; padding: 4px 9px; }
  .membership .plan { margin-top: 14px; }
  .phone .screen { border-radius: 35px; }
  .phone .url { margin: 4px 12px 0; height: 30px; }
  .phone .studio b { font-size: 19px; }
  .phone .dirs { font-size: 11px; }
  .phone .tabs { gap: 14px; margin-top: 14px; font-size: 12px; }
  .phone .tabs .on { padding-bottom: 8px; }
  .phone .date { font-size: 11px; margin-top: 12px; }
  .phone .session { border-radius: 14px; padding: 12px; margin-top: 8px; }
  .phone .session .row { font-size: 14px; }
  .phone .session small { font-size: 11px; }
  .phone .session .book { margin-top: 10px; height: 36px; }
  .features ol { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
  .features li { padding-top: 20px; }
  .features .num { font-size: 13px; }
  .features h3 { margin-top: 10px; font-size: 19px; }
  .features p { margin-top: 8px; }
  .steps { margin-top: 32px; gap: 24px; }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .steps .n { width: 40px; height: 40px; font-size: 17px; }
  .steps .t { font-size: 17px; padding-top: 7px; }
  .start .cta { margin-top: 36px; padding-top: 0; border-top: 0; flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .start .cta p { font-size: 16px; }
  .start .cta .btn { width: 100%; height: 56px; }
  .phone-stage { border-radius: 28px; padding: 40px 0; }
  .phone { width: 280px; height: 560px; border-radius: 44px; padding: 9px; }
  .phone .notch i { width: 78px; height: 22px; border-radius: 11px; }
  .phone .site { padding: 16px; }
  .contacts { padding: 64px var(--gutter); }
  .contacts img { width: 48px; height: 48px; }
  .contacts .section-title { margin-top: 20px; }
  .contacts dl div { padding: 20px 0; gap: 4px; }
  .contacts dt { font-size: 14px; }
  .contacts dd a { font-size: 22px; text-underline-offset: 5px; text-decoration-thickness: auto; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px var(--gutter) 32px; }
  .site-footer nav { flex-direction: column; gap: 10px; }
  .legal { padding: 28px var(--gutter) 72px; }
  .legal .layout { display: block; margin-top: 0; }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .doc h1 { margin-top: 12px; font-size: 34px; line-height: 1.08; }
  .doc .edition { margin-top: 12px; font-size: 14px; }
  .doc .intro { margin-top: 28px; font-size: 18px; }
  .doc h2, .doc .intro + h2 { margin-top: 40px; font-size: 22px; line-height: 1.3; }
  .doc p { margin-top: 12px; font-size: 17px; }
  .doc ul { margin-top: 12px; gap: 10px; font-size: 17px; }
  .doc li { padding-left: 20px; }
  .not-found { padding: 96px var(--gutter) 112px; }
  .not-found .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
