@font-face {
  font-family: 'Unbounded';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/unbounded-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Unbounded';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/unbounded-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --ink: #0b1f2a;
  --muted: #4a5d68;
  --line: #d5e0e4;
  --accent: #0d9488;
  --accent-ink: #ffffff;
  --accent-soft: #dff4f1;
  --navy: #0b2a3a;
  --navy-ink: #e6f1f3;
  --ok: #16a34a;
  --warn: #eab308;
  --bad: #dc2626;
  --overlap: #f97316;
  --radius: 4px;
  --wrap: 1160px;
  --display: 'Unbounded', system-ui, sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071820;
    --surface: #0d2330;
    --ink: #e4eef1;
    --muted: #93a9b3;
    --line: #1d3a48;
    --accent: #2dd4bf;
    --accent-ink: #042f2e;
    --accent-soft: #0f3a3a;
    --navy: #0d2f40;
    --navy-ink: #e4eef1;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

h1, h2, h3, .display { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.05rem; line-height: 1.3; }
p { margin: 0; }
.muted { color: var(--muted); }

/* Icons are SVG files used as masks, so they take the text color. */
.ico {
  display: inline-block;
  width: 48px;
  height: 48px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}
.ico-lotus { --src: url('/icons/lotus.svg'); }
.ico-spine { --src: url('/icons/spine.svg'); }
.ico-knee { --src: url('/icons/knee.svg'); }
.ico-massage { --src: url('/icons/massage.svg'); }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; }
.nav { display: none; gap: 28px; margin-left: auto; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.top .btn { margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .top .btn { margin-left: 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font: 600 0.95rem/1 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.small { padding: 9px 16px; font-size: 0.88rem; }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Section scaffolding: numbered label + thin rule */
section { padding: 72px 0; scroll-margin-top: 68px; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 760px; }
.head p { color: var(--muted); font-size: 1.1rem; }

/* Hero */
.hero { padding-top: 56px; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.hero .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted); margin-bottom: 24px; }
.hero .kicker .plus { color: var(--accent); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin: 24px 0 32px; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts div { font-size: 0.85rem; color: var(--muted); }
.facts strong { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--ink); font-weight: 600; }

/* Mock availability grid in the hero */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; box-shadow: 0 30px 60px -30px rgba(11, 42, 58, 0.35); }
.mock-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.mock-top strong { font-size: 0.95rem; }
.mock-top span { font-size: 0.8rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: 52px repeat(5, 1fr); gap: 4px; font-size: 0.72rem; }
.grid .h { color: var(--muted); text-align: center; padding-bottom: 4px; }
.grid .t { color: var(--muted); display: flex; align-items: center; }
.grid .c { height: 30px; border-radius: 3px; }
.c.ok { background: color-mix(in srgb, var(--ok) 75%, var(--surface)); }
.c.mix { background: color-mix(in srgb, var(--warn) 70%, var(--surface)); }
.c.no { background: color-mix(in srgb, var(--bad) 22%, var(--surface)); }
.c.pick { background: var(--ok); outline: 2px solid var(--ink); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 0.78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.mock-note { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.85rem; display: flex; gap: 10px; align-items: center; }
.mock-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* Specialties strip */
.strip { padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
@media (min-width: 900px) { .strip .wrap { grid-template-columns: repeat(4, 1fr); } }
.spec { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 16px; border-right: 1px solid var(--line); color: var(--accent); }
.spec .ico { width: 40px; height: 40px; }
.spec:nth-child(2n) { border-right: 0; }
.spec:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .strip .wrap { padding: 0 32px; }
  .spec { flex-direction: row; align-items: center; gap: 16px; padding: 32px 24px; }
  .spec .ico { width: 48px; height: 48px; }
  .spec:nth-child(2n) { border-right: 1px solid var(--line); }
  .spec:last-child { border-right: 0; }
  .spec:nth-child(-n + 2) { border-bottom: 0; }
}
.spec span { color: var(--ink); font-weight: 600; line-height: 1.3; }
.spec small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }

/* Pain points */
.pains { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pain { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .pain { grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: baseline; } }
.pain p { color: var(--muted); }

/* Features */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); padding: 32px 28px; display: grid; gap: 12px; align-content: start; }
.feature .tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.feature p { color: var(--muted); }
.feature ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.92rem; }
.feature li { display: flex; gap: 10px; align-items: baseline; }
.feature li i { width: 10px; height: 10px; border-radius: 2px; flex: none; transform: translateY(1px); }

/* Before / after */
.dark { background: var(--navy); color: var(--navy-ink); }
.dark h2 { color: var(--navy-ink); }
.dark .label::after { background: rgba(255, 255, 255, 0.15); }
.dark .head p { color: color-mix(in srgb, var(--navy-ink) 70%, transparent); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; padding: 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); vertical-align: top; }
.compare thead th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--navy-ink) 65%, transparent); }
.compare tbody th { font-weight: 600; width: 30%; }
.compare td.old { color: color-mix(in srgb, var(--navy-ink) 60%, transparent); }
.compare td.new { color: #5eead4; }
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare tr { display: grid; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .compare th, .compare td { border: 0; padding: 2px 0; width: auto; }
  .compare td.old::before { content: 'Преди: '; }
  .compare td.new::before { content: 'С Кабинко: '; }
}

/* Roles */
.roles { display: grid; gap: 16px; }
@media (min-width: 800px) { .roles { grid-template-columns: repeat(3, 1fr); } }
.role { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.role p { color: var(--muted); }
.role .gain { border-top: 1px solid var(--line); padding-top: 14px; color: var(--ink); font-weight: 500; }

/* Security list */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.3fr; gap: 72px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: '+'; position: absolute; left: 4px; top: 14px; font: 600 1.3rem/1 var(--display); color: var(--accent); }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 0.95rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.steps p { color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--accent-ink); padding: 64px 0; }
.cta-band .wrap { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }
.cta-band p { opacity: 0.85; margin-top: 12px; font-size: 1.05rem; }
.cta-band .btn { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent); }
.cta-band .btn:hover { background: transparent; color: var(--accent-ink); }

/* Footer */
.foot { padding: 48px 0 40px; font-size: 0.9rem; color: var(--muted); }
.foot .wrap { display: grid; gap: 24px; }
@media (min-width: 800px) { .foot .wrap { grid-template-columns: 1.5fr 1fr 1fr; } }
.foot h4 { margin: 0 0 10px; color: var(--ink); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .icons { display: flex; gap: 14px; color: var(--accent); margin-top: 16px; }
.foot .icons .ico { width: 28px; height: 28px; }
.foot .copy { border-top: 1px solid var(--line); padding-top: 20px; grid-column: 1 / -1; }

/* Contact page */
.contact { padding-top: 56px; }
.contact .wrap { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact .wrap { grid-template-columns: 1fr 1.25fr; gap: 72px; } }
.contact .lead { color: var(--muted); font-size: 1.1rem; margin: 20px 0 32px; }
.channels { display: grid; gap: 0; border-top: 1px solid var(--line); }
.channels div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.channels small { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.channels a { text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.channels a:hover { color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: grid; gap: 18px; align-self: start; align-content: start; }
@media (min-width: 720px) { .form { padding: 40px; grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 0.95rem; min-height: 1.5em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--bad); }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: 0.6; cursor: wait; }

/* Mock patient search + profile */
.split > figure { margin: 0; }
.patient { display: grid; gap: 10px; align-content: start; }
.patient .search {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 2px solid var(--accent); border-radius: 8px;
  padding: 14px 16px; font-size: 1.05rem; font-weight: 500;
}
.lens { width: 16px; height: 16px; border: 2px solid var(--muted); border-radius: 50%; position: relative; flex: none; }
.lens::after { content: ''; position: absolute; width: 7px; height: 2px; background: var(--muted); right: -6px; bottom: -3px; transform: rotate(45deg); }
.caret { width: 2px; height: 1.1em; background: var(--accent); margin-left: -10px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.hits { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.hit { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 12px 16px; font-size: 0.92rem; }
.hit + .hit { border-top: 1px solid var(--line); }
.hit span { color: var(--muted); }
.hit em { font-style: normal; margin-left: auto; font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.hit.on { background: var(--accent-soft); }
.patient .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px;
  display: grid; gap: 12px; box-shadow: 0 30px 60px -30px rgba(11, 42, 58, 0.35);
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-head b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.card-head span { font-size: 0.85rem; color: var(--muted); }
.chip { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent) !important; white-space: nowrap; }
.course { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; display: grid; gap: 8px; font-size: 0.9rem; }
.course.now { border-color: var(--accent); }
.course .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.course .row span, .course small { color: var(--muted); }
.course small { font-size: 0.8rem; }
.days { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.days .d { height: 10px; border-radius: 2px; background: var(--ok); }
.days .d.x { background: var(--bad); }
.days .d.f { background: var(--line); }
.past-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.soon {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  font: 600 0.7rem/1.4 var(--text); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
}

/* Kabinko picture in the hero (availability mock over its corner) and on the contact page */
.hero-art { position: relative; }
.mascot { display: block; width: 100%; border-radius: 12px; }
.hero-art .mock { position: relative; margin: -56px 12px 0; padding: 14px; }
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; }
  .hero-art { margin-right: 24px; }
  .hero-art .mock { position: absolute; right: -24px; bottom: -110px; width: 300px; margin: 0; }
  .hero { padding-bottom: 150px; }
}
.hero-art .mock-top { margin-bottom: 10px; }
.hero-art .mock-top strong { font-size: 0.85rem; }
.hero-art .mock-top span { font-size: 0.72rem; }
.hero-art .grid { font-size: 0.66rem; gap: 3px; grid-template-columns: 40px repeat(5, 1fr); }
.hero-art .grid .c { height: 16px; }
.hero-art .legend { gap: 4px 10px; margin-top: 10px; font-size: 0.68rem; }
.hero-art .mock-note { display: none; }
.contact-art { display: block; width: 100%; max-width: 420px; margin-top: 32px; border-radius: 12px; }
