/* kabinetko.com. Design: design_handoff_kabinetko_site/README.md. Light only, as designed.
   Fonts are self-hosted (Onest, Lora; SIL OFL, licences in /fonts), so no third party sees visitors. */
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/onest-cyrillic-wght-normal.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: 100 900; font-display: swap;
  src: url(/fonts/onest-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/onest-latin-wght-normal.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora'; font-style: italic; font-weight: 500; font-display: swap;
  src: url(/fonts/lora-latin-500-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF;
}

:root {
  color-scheme: light;
  --bg: #F5F3ED;
  --surface: #FFFFFF;
  --hover: #EAE6DB;
  --ink: #1B231E;
  --ink-legal: #2A332D;
  --muted: #55625A;
  --muted-on-soft: #3D4A42;
  --line: #E3DFD4;
  --line-soft: #EFECE4;
  --line-strong: #D6D1C4;
  --line-dashed: #C9C3B4;
  --primary: #2F6B4F;
  --primary-hover: #245540;
  --primary-soft: #E6EFE7;
  --on-primary: #F3F8F3;
  --deep: #142B20;
  --on-deep: #EFF3EA;
  --deep-accent: #9BD4B3;
  --deep-rule: #2C4A3B;
  --lily: #E11D2E;
  --chip: #B3141F;
  --chip-bg: #FCE7E6;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
section[id] { scroll-margin-top: var(--header-h); }

/* Buttons */
.button { display: inline-block; font-weight: 600; font-size: 17px; padding: 16px 26px; border-radius: 12px; text-decoration: none; white-space: nowrap; }
.button-primary { background: var(--primary); color: var(--on-primary); }
.button-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.button-outline { color: var(--ink); border: 1px solid var(--line-strong); padding: 16px 20px; }
.button-outline:hover { background: var(--hover); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--bg); font-size: 15px; padding: 10px 16px; border-radius: 10px; }
.button-dark:hover { background: var(--primary); color: var(--bg); }
.button-cream { background: var(--bg); color: var(--deep); }
.button-cream:hover { background: var(--surface); color: var(--deep); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 243, 237, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; display: block; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--hover); }
.bar-end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang { font-size: 15px; color: var(--muted); text-decoration: none; }
.lang:hover { color: var(--ink); }
.lang-short { display: none; }

/* Narrow screens: the section links get their own row under the logo and the buttons. */
@media (max-width: 760px) {
  :root { --header-h: 104px; }
  .bar { gap: 4px 12px; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: -10px; gap: 0; }
  .site-nav a { padding: 6px 10px; }
  .bar-end { gap: 12px; }
  .bar-end .button-dark { font-size: 14px; padding: 8px 12px; }
}
@media (max-width: 440px) {
  .lang-long { display: none; }
  .lang-short { display: inline; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 32px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start;
  font-size: 14px; color: var(--muted);
}
.footer-company { display: flex; gap: 12px; align-items: center; }
.footer-company img { width: 28px; height: 28px; flex: none; }
.footer-company p { margin: 0; max-width: 30em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }

/* Home: section titles */
.title { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 40px; font-weight: 700; }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center;
  padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 104px);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--primary); background: var(--primary-soft);
  padding: 6px 12px 6px 8px; border-radius: 999px; margin: 0 0 28px;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lily); }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 24px; text-wrap: balance; }
.hero h1 .accent { color: var(--primary); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 34em; margin: 0 0 36px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 32px 0 0; font-size: 14px; color: var(--muted); }
.trust .sep { color: var(--line-dashed); }
/* Where the line wraps, a separator would hang at the end of a row. */
@media (max-width: 520px) { .trust { gap: 6px 16px; } .trust .sep { display: none; } }

/* Hero visual: an illustrative booking page on a phone */
.visual { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.visual-panel { position: absolute; inset: 6% 4%; border-radius: 40px; background: var(--primary); }
.visual-mark { position: absolute; width: 150px; height: 150px; right: -18px; top: -10px; opacity: 0.95; }
.phone {
  position: relative; width: min(300px, 100%); background: var(--surface);
  border-radius: 34px; border: 8px solid var(--ink); box-shadow: 0 30px 60px -20px rgba(20, 43, 32, 0.45); overflow: hidden;
}
.phone strong, .toast strong { display: block; font-weight: 600; font-size: 14px; }
.phone small, .toast small { display: block; font-size: 12px; color: var(--muted); }
.phone-head { padding: 22px 20px 16px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 12px; }
.phone-head strong { font-weight: 700; font-size: 15px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: #F1E3D8; color: #8A4B2A; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.phone-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.service { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.service > strong { font-weight: 700; }
.month { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.days span { padding: 8px 0; border-radius: 10px; background: var(--bg); font-weight: 600; font-size: 14px; }
.days small { font-size: 11px; font-weight: 400; }
.days .on { background: var(--ink); color: var(--bg); }
.days .on small { color: inherit; opacity: 0.75; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 13px; font-weight: 600; text-align: center; }
.slots span { padding: 9px 0; border-radius: 10px; border: 1px solid var(--line); }
.slots .on { border: 2px solid var(--primary); background: var(--primary-soft); color: var(--primary-hover); }
.slots .taken { border-color: var(--line-soft); color: #B8B2A4; text-decoration: line-through; }
.phone-book { background: var(--primary); color: var(--on-primary); text-align: center; font-weight: 600; font-size: 14px; padding: 13px; border-radius: 12px; }
/* Narrow screens: the phone fills the width, so the lily sits on its empty top-right corner instead of behind it. */
@media (max-width: 520px) { .visual-mark { width: 88px; height: 88px; right: -8px; top: 0; z-index: 1; } }
/* Below the booking button, so it never covers the button text (the design had it over the button). */
.toast {
  position: absolute; left: -4px; bottom: -8px; max-width: 240px;
  background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: 0 14px 30px -12px rgba(20, 43, 32, 0.35);
  display: flex; gap: 10px; align-items: center;
}
.toast strong { font-size: 13px; }
.toast-check { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }

/* Why: four cards in one block, hairlines drawn by the grid gap. 4, 2 or 1 per row, never 3 + 1. */
.why { padding-top: 40px; padding-bottom: 88px; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 560px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-grid > div { background: var(--surface); padding: 28px 26px 32px; }
.why-grid h3 { font-size: 19px; margin: 0 0 10px; letter-spacing: -0.01em; }
.why-grid p { margin: 0; color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.why-grid .index { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 500; font-size: 22px; color: var(--lily); margin-bottom: 28px; }

/* Features */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; }
.features > div { flex: 1 1 320px; }
.features .title { margin: 0; position: sticky; top: 110px; }
.checks { flex: 2 1 640px; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 32px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line-soft); line-height: 1.45; }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }

/* How it works */
.how { padding-top: 96px; padding-bottom: 96px; }
.how .title { margin-bottom: 48px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.steps p { margin: 0; font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.steps .step { font-size: 64px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--primary); margin-bottom: 20px; }

/* Who it's for */
.who { padding-bottom: 96px; }
.who-panel {
  background: var(--primary-soft); border-radius: 24px; padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; align-items: center;
}
.who-panel .title { margin-bottom: 14px; }
.who-panel p { margin: 0; font-size: 18px; color: var(--muted-on-soft); line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tags li { background: var(--surface); border-radius: 999px; padding: 10px 18px; font-weight: 500; }

/* Data safety */
.deep { background: var(--deep); color: var(--on-deep); }
.data { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; }
.data > div { flex: 1 1 320px; }
.data .title { margin: 0; max-width: 12ch; }
.data-list { flex: 2 1 640px; list-style: none; padding: 0; margin: 0; }
.data-list li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 20px 0; border-top: 1px solid var(--deep-rule); font-size: 18px; line-height: 1.5; }
.data-list li:last-child { border-bottom: 1px solid var(--deep-rule); }
.data-label { color: var(--deep-accent); font-weight: 600; }
.data-label svg { display: block; margin-top: 1px; }

/* Coming soon: delete this section from the drafts when both modules ship */
.soon { padding-top: 96px; }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.soon-card { border: 1px dashed var(--line-dashed); border-radius: 20px; padding: 28px; }
.soon-card h3 { font-size: 21px; margin: 0 0 8px; letter-spacing: -0.01em; }
.soon-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.soon-card .chip {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--chip); background: var(--chip-bg); padding: 4px 10px; border-radius: 999px; margin: 0 0 18px;
}

/* Pricing */
.pricing { padding-top: 96px; padding-bottom: 96px; }
.pricing-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: end;
  border-top: 2px solid var(--ink); padding-top: 32px;
}
.pricing-row .title { margin: 0; }
.pricing-row p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted-on-soft); }
.pricing-row strong { font-weight: 600; }

/* Final call to action */
.final { padding-bottom: 96px; }
.cta {
  background: var(--primary); color: var(--on-primary); border-radius: 28px;
  padding: clamp(40px, 7vw, 80px) clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; align-items: center;
}
.cta h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.05; margin: 0; font-weight: 700; max-width: 16ch; text-wrap: balance; }
.cta-end { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-end img { width: 96px; height: 96px; }
.cta :focus-visible { outline-color: var(--on-primary); }

/* Legal pages and 404 */
.legal-layout {
  padding-top: clamp(40px, 6vw, 72px); padding-bottom: 96px;
  display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start;
}
.legal-aside { flex: 1 1 200px; max-width: 260px; min-width: 0; }
/* Sticky only beside the text; above it on narrow screens it would cover the text. */
@media (min-width: 800px) { .legal-aside { position: sticky; top: 96px; } }
.back { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 28px; }
.back:hover { color: var(--ink); }
.toc-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { font-size: 14px; line-height: 1.35; color: var(--muted); text-decoration: none; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--primary); }

.legal { flex: 999 1 480px; min-width: 0; max-width: 760px; font-size: 17px; line-height: 1.65; color: var(--ink-legal); }
.legal h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 16px; color: var(--ink); text-wrap: balance; }
.legal h1 + p { color: var(--muted); font-size: 15px; margin: 0 0 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal h1 + p strong { font-weight: 500; }
.legal h2 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; margin: 48px 0 14px; color: var(--ink); scroll-margin-top: 96px; }
.legal p { margin: 0 0 14px; text-wrap: pretty; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 8px; padding-left: 4px; }
.legal li::marker { color: var(--primary); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal em { color: var(--muted); }
.legal code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--primary-soft); padding: 2px 6px; border-radius: 5px; }
.legal .table { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.legal tr:last-child td { border-bottom: 0; }
.legal th { color: var(--muted); font-weight: 600; background: #FAF9F5; }
