/* Сайт платформи: головна. Перший дизайн-прохід (2026-10-01), орієнтир — booksy.com. */
:root {
  --ink: #121417;
  --ink-2: #2a2e35;
  --text: #1d2026;
  --muted: #646b76;
  --line: #e6e8ec;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --mint: #e8f8f4;
  --accent: #10b39c;
  --accent-d: #0b917f;
  --star: #f5a623;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 10px 30px rgba(18, 20, 23, .08);
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 Onest, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.lead { font-size: 18px; color: var(--muted); margin-top: 14px; }
.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rate { color: var(--star); font-weight: 600; white-space: nowrap; }
.rate i { color: var(--muted); font-style: normal; font-weight: 400; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 12px; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 2px #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center-row { justify-content: center; }

/* Шапка: прозора над першим екраном, після прокрутки — темна з пошуком */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .2s, box-shadow .2s; }
.hd-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 24px; }
.hd.solid { background: var(--ink); box-shadow: 0 2px 16px rgba(0,0,0,.18); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 24px; letter-spacing: -.04em; }
/* знак Boxi (tools/brand.mjs → crm/img/logo-mark.svg); розмір — від font-size логотипа */
.logo { gap: .36em; text-transform: lowercase; } /* словесний знак — «boxi» малими */
.logo-dot { flex: none; width: 1.3em; height: 1.3em; border-radius: .34em; background: url("/crm/img/logo-mark.svg") center / 100% 100% no-repeat; box-shadow: 0 0 0 1px rgba(255,255,255,.22); } /* обвідка видна лише на темному фоні */
.hd-search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 10px; background: #fff; color: var(--muted); opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
.hd.solid .hd-search { opacity: 1; pointer-events: auto; transform: none; }
.hd-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; color: var(--text); background: transparent; min-width: 0; }
.hd-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.hd-nav > a:not(.btn):hover { opacity: .75; }
.lang { color: rgba(255,255,255,.6); font-size: 14px; }
.lang b { color: #fff; }
.lang a:hover { color: #fff; }
.hd-burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); cursor: pointer; position: relative; }
.hd-burger span, .hd-burger span::before, .hd-burger span::after { position: absolute; left: 11px; width: 20px; height: 2px; background: #fff; border-radius: 2px; content: ""; transition: transform .2s, opacity .2s; }
.hd-burger span { top: 20px; }
.hd-burger span::before { left: 0; top: -6px; }
.hd-burger span::after { left: 0; top: 6px; }
.hd.open .hd-burger span { background: transparent; }
.hd.open .hd-burger span::before { transform: translateY(6px) rotate(45deg); }
.hd.open .hd-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* Перший екран */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
/* Фото + затемнення: центр і низ темніші, щоб читались заголовок, пошук і категорії */
.hero-bg { position: absolute; inset: 0;
  background:
    radial-gradient(45% 55% at 50% 48%, rgba(14,16,19,.72), transparent 100%),
    linear-gradient(180deg, rgba(14,16,19,.55) 0%, rgba(14,16,19,.15) 35%, rgba(14,16,19,.35) 70%, rgba(14,16,19,.92) 100%),
    url("img/hero.webp") center 40% / cover no-repeat,
    #0e1013; }
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }
.hero-in { position: relative; padding-top: 168px; padding-bottom: 72px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.6vw, 62px); font-weight: 800; letter-spacing: -.035em; }
.hero-sub { margin: 18px auto 0; max-width: 600px; font-size: 19px; color: rgba(255,255,255,.75); }
.search { margin: 40px auto 0; max-width: 900px; display: flex; gap: 8px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.35); color: var(--text); text-align: left; }
.search-f { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 54px; border-radius: 12px; color: var(--muted); min-width: 0; }
.search-f + .search-f { border-left: 1px solid var(--line); border-radius: 0; }
.search-q { flex: 1.6; }
.search-f input, .search-f select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); appearance: none; cursor: pointer; }
.search-f input { cursor: text; }
.search-f input::placeholder { color: var(--muted); }
.search-go { height: 54px; padding: 0 32px; }
.cats { position: relative; border-top: 1px solid rgba(255,255,255,.1); }
.cats-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cats-in::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 18px 14px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.85); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.cats a:hover { color: #fff; border-color: var(--accent); }

/* Секції */
.block { padding: 88px 0; }
.block-tight { padding: 56px 0; }
.soft { background: var(--soft); }
.mint { background: var(--mint); }
.kicker { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(16,179,156,.12); color: var(--accent-d); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* Каруселі карток */
.row-hd { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.row-hd h2 { font-size: clamp(22px, 2.6vw, 30px); }
.row-ctl { display: flex; align-items: center; gap: 8px; }
.more { font-weight: 600; color: var(--accent-d); margin-right: 8px; }
.more:hover { text-decoration: underline; }
.arr { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.arr:hover { border-color: var(--ink); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; border-radius: var(--r); overflow: hidden; background: #fff; transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card:hover .card-img { box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--soft); transition: box-shadow .2s; }
.card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-tag { position: absolute; z-index: 1; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 700; color: var(--accent-d); }
.card-b { padding: 14px 2px 4px; }
.card-t { display: flex; justify-content: space-between; gap: 8px; font-size: 16px; }
.card-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-t .rate { font-size: 14px; }
.card-s { margin-top: 2px; font-size: 14px; color: var(--muted); }
.card-p { margin-top: 6px; font-size: 14px; font-weight: 600; }

/* Дві аудиторії */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-c { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 36px; border-radius: var(--r-lg); transition: transform .2s; }
.duo-c:hover { transform: translateY(-3px); }
.duo-c p { flex: 1; font-size: 16px; }
.duo-c h3 { font-size: 26px; font-weight: 800; }
.duo-c .btn { margin-top: 8px; }
.duo-k { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.duo-client { background: var(--mint); }
.duo-client .duo-k { color: var(--accent-d); }
.duo-client p { color: var(--muted); }
.duo-master { background: var(--ink); color: #fff; }
.duo-master .duo-k { color: var(--accent); }
.duo-master p { color: rgba(255,255,255,.7); }

/* Текст + візуал */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-rev .split-t { order: 2; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.split-t > .btn { margin-top: 28px; }
.split-v { position: relative; display: flex; justify-content: center; padding: 20px 0; }

/* Телефон з прикладом сторінки майстрині */
.phone { width: 300px; padding: 12px; border-radius: 44px; background: var(--ink); box-shadow: 0 30px 70px rgba(18,20,23,.25); }
.phone-scr { position: relative; height: 580px; overflow: hidden; border-radius: 34px; background: #fff; font-size: 13px; }
.pm-cover { height: 110px; background: #f6d9d4; }
.pm-cover img, .pm-ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pm-ava { width: 72px; height: 72px; margin: -36px auto 0; position: relative; overflow: hidden; border-radius: 50%; border: 4px solid #fff; background: #e9d5cf; }
.pm-name { margin-top: 8px; text-align: center; font-size: 18px; font-weight: 800; }
.pm-meta { text-align: center; color: var(--muted); font-size: 12px; }
.pm-tabs { display: flex; gap: 14px; margin: 14px 16px 4px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pm-tabs > * { padding-bottom: 8px; }
.pm-tabs b { color: var(--ink); border-bottom: 2px solid var(--ink); }
.pm-cat { margin: 12px 16px 2px; font-weight: 800; font-size: 14px; }
.pm-svc { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pm-svc b { display: block; font-weight: 600; }
.pm-svc i { font-style: normal; color: var(--muted); font-size: 11px; }
.pm-svc span { font-weight: 700; white-space: nowrap; }
.pm-book { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; box-shadow: 0 8px 20px rgba(16,179,156,.4); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-size: 13px; }
.float b { display: block; font-size: 14px; }
.float i { font-style: normal; color: var(--muted); line-height: 1.35; }
.f-new { top: 90px; left: max(0px, calc(50% - 300px)); animation: bob 5s ease-in-out infinite; }
.f-link { bottom: 70px; right: max(0px, calc(50% - 300px)); color: var(--accent-d); animation: bob 5s ease-in-out -2.5s infinite; }
.f-link b { color: var(--ink); }
.f-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(16,179,156,.2); flex: none; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Що вміє */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feat { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .2s; }
.feat:hover { border-color: transparent; box-shadow: var(--shadow); }
.feat-i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--mint); color: var(--accent-d); }
.feat-i svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Кроки */
.steps { list-style: none; margin: 48px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px; border-radius: var(--r-lg); background: #fff; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* «Мій запис»: фото клієнтки з карткою запису поверх */
.split-photo { display: block; padding: 0 0 120px; }
.split-photo .photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.split-photo .ticket { position: absolute; left: -24px; bottom: 0; width: min(330px, 66%); padding: 18px; }
.split-photo .ticket-row { font-size: 14px; padding: 8px 0; }
.split-photo .ticket-hd { font-size: 18px; margin-bottom: 10px; }
.ticket { width: 100%; max-width: 400px; padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 24px 60px rgba(18,20,23,.12); border: 1px solid var(--line); }
.ticket-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 20px; font-weight: 800; }
.ticket-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ticket-row i { font-style: normal; color: var(--muted); }
.ticket-row b { text-align: right; font-weight: 600; }
.ticket-act { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.ticket-act span { padding: 10px 4px; border-radius: 10px; background: var(--soft); text-align: center; font-size: 13px; font-weight: 600; }
.ticket-act span:first-child { background: var(--ink); color: #fff; }

/* Міста */
.cities { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 24px; }
.cities a { padding: 14px 16px; border-radius: 12px; background: var(--soft); font-weight: 600; font-size: 15px; transition: background .15s, color .15s; }
.cities a:hover { background: var(--ink); color: #fff; }

/* Фінал */
.final { padding: 120px 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right 30%; }
.final::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(14,16,19,.92) 0%, rgba(14,16,19,.75) 50%, rgba(14,16,19,.2) 100%), radial-gradient(50% 80% at 30% 120%, rgba(16,179,156,.35), transparent 70%); }
.final-in { z-index: 2; }
.final-in { position: relative; text-align: left; max-width: var(--wrap); }
.final h2 { max-width: 560px; }
.final .center-row { justify-content: flex-start; }
.final p { margin-top: 14px; font-size: 18px; color: rgba(255,255,255,.7); }

/* Підвал */
.ft { background: #0b0c0e; color: rgba(255,255,255,.7); font-size: 15px; }
.ft-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.ft .logo { color: #fff; }
.ft-brand p { margin-top: 12px; max-width: 280px; }
.ft-col { display: flex; flex-direction: column; gap: 10px; }
.ft-col h4 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.ft-col a:hover { color: #fff; }
.ft-bot { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }

/* Планшет */
@media (max-width: 1024px) {
  .rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .feats { grid-template-columns: 1fr 1fr; }
  .cities { grid-template-columns: repeat(4, 1fr); }
  .split { gap: 40px; }
  .hd-search { display: none; }
  .split-photo .ticket { left: 16px; }
}

/* Меню ховається в бургер */
@media (max-width: 900px) {
  .hd-burger { display: block; }
  .hd-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: var(--ink); box-shadow: 0 16px 30px rgba(0,0,0,.3); display: none; }
  .hd.open { background: var(--ink); }
  .hd.open .hd-nav { display: flex; }
  .hd-nav > a:not(.btn), .hd-nav .lang { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
  .hd-nav .btn { margin-top: 16px; height: 50px; font-size: 16px; }
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev .split-t { order: 0; }
  .duo { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ft-in { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}

/* Телефон */
@media (max-width: 640px) {
  .wrap, .hd-in, .cats-in { padding-left: 16px; padding-right: 16px; }
  .hd-in { height: 64px; }
  .hd-nav { top: 64px; padding-left: 16px; padding-right: 16px; }
  .hero-in { padding-top: 120px; padding-bottom: 40px; }
  .hero-bg { background:
    linear-gradient(180deg, rgba(14,16,19,.7) 0%, rgba(14,16,19,.55) 55%, rgba(14,16,19,.2) 80%, rgba(14,16,19,.9) 100%),
    url("img/hero-mobile.webp") center bottom / cover no-repeat, #0e1013; }
  .split-photo { padding-bottom: 0; }
  .split-photo .ticket { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 12px 0; }
  .final::before { background: linear-gradient(180deg, rgba(14,16,19,.85), rgba(14,16,19,.7)); }
  .final-bg { object-position: 75% center; }
  .hero-sub { font-size: 17px; }
  .search { flex-direction: column; gap: 0; padding: 6px; margin-top: 28px; }
  .search-f { height: 52px; }
  .search-f + .search-f { border-left: 0; border-top: 1px solid var(--line); }
  .search-go { margin-top: 6px; width: 100%; }
  .block { padding: 60px 0; }
  .block-tight { padding: 44px 0; }
  .rail { grid-auto-columns: 78%; gap: 14px; }
  .row-ctl .arr { display: none; }
  .duo-c { padding: 28px 24px; }
  .duo-c h3 { font-size: 22px; }
  .feats { grid-template-columns: 1fr; margin-top: 32px; }
  .cities { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .phone { width: 270px; }
  .phone-scr { height: 520px; }
  .float { display: none; }
  .final { padding: 72px 0; }
}

/* Зовсім вузькі екрани: кнопки переносять текст, колонки сітки не розпирають сторінку */
.duo > *, .split > *, .feats > *, .steps > * { min-width: 0; }
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; height: auto; min-height: 50px; padding: 12px 20px; line-height: 1.25; }
  .btn-sm { min-height: 40px; padding: 8px 14px; }
}

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

/* lara-crm: перемикач мов UA · EN */
.lang-sw { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; }
.lang-sw a { color: inherit; opacity: .6; text-decoration: none; }
.lang-sw a:hover { opacity: 1; }

/* Перемикач мов у шапці сайту платформи: на телефоні — рядок розкривного меню */
.hd-nav .lang-sw b { font-weight: 700; }
@media (max-width: 900px) {
  .hd-nav .lang-sw { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; gap: 10px; }
}
.auth-hd-r { display: inline-flex; align-items: center; gap: 16px; }
