/* Demo: Vetcasa, district vet clinic. Plan: drafts/demo-vet-plan.md */
@font-face { font-family: "Rubik"; font-weight: 400 600; font-display: swap; src: url("fonts/rubik-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Rubik"; font-weight: 400 600; font-display: swap; src: url("fonts/rubik-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF; }
@font-face { font-family: "Rubik"; font-weight: 400 600; font-display: swap; src: url("fonts/rubik-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --lapte: #fcfbf8;
  --ink: #22302c;
  --petrol: #1f5f63;
  --petrol-2: #184c4f;
  --caisa: #f4b183;
  --caisa-soft: #fbe6d6;
  --red: #b8402c;
  --red-soft: #f8e3df;
  --amber: #a8720c;
  --amber-soft: #fbefd4;
  --green: #3c8458;
  --green-soft: #e2f0e6;
  --muted: #66706c;
  --line: #e7e3dc;
  --card: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: "Rubik", system-ui, sans-serif; font-size: 17px; line-height: 1.55; background: var(--lapte); color: var(--ink); overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--caisa); color: var(--ink); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.wrap > * { min-width: 0; }
.nw { white-space: nowrap; }
section, footer { scroll-margin-top: 76px; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 38px); }
.lede { color: var(--muted); font-size: 18px; max-width: 600px; margin-top: 12px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.demo-strip { background: var(--ink); color: #fff; font-size: 15px; }
.demo-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.demo-strip a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.top { position: sticky; top: 0; z-index: 40; background: rgba(252,251,248,.96); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 23px; letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; }
.menu { display: flex; gap: 28px; color: var(--muted); font-size: 16px; }
.menu a:hover { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 16px; }
.lang { font-size: 15px; color: var(--muted); }
.lang b { color: var(--ink); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 500; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }
.btn-petrol { background: var(--petrol); color: #fff; }
.btn-petrol:hover { background: var(--petrol-2); }
.btn-line { border-color: #cdd3d0; background: var(--card); }
.btn-line:hover { border-color: var(--ink); }
.btn-red { background: var(--red); color: #fff; font-size: 18px; min-height: 56px; }
.btn-red:hover { background: #9c3524; }
.btn-light { background: var(--lapte); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }

/* ---------- Hero: is it urgent? ---------- */
.hero { padding-top: 40px; padding-bottom: 40px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.status.night i { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.hero-grid { display: grid; grid-template-columns: 1fr 470px; gap: 52px; align-items: start; margin-top: 22px; }
.hero h1 { font-size: clamp(38px, 4.8vw, 54px); }
.hero .lede { margin-top: 14px; }
.syms { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.syms button { min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid #d9d6cf; background: var(--card); text-align: left; line-height: 1.3; }
.syms button:hover { border-color: var(--ink); }
.syms button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.answer { scroll-margin-top: 76px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.answer-band { padding: 22px 26px 20px; background: var(--caisa-soft); transition: background-color .25s ease; }
.answer[data-level="now"] .answer-band { background: var(--red-soft); }
.answer[data-level="today"] .answer-band { background: var(--amber-soft); }
.answer[data-level="book"] .answer-band { background: var(--green-soft); }
.answer-band p { font-size: 15px; color: var(--muted); }
.answer-band h2 { font-size: 32px; margin-top: 4px; }
.answer[data-level="now"] h2 { color: var(--red); }
.answer[data-level="today"] h2 { color: var(--amber); }
.answer[data-level="book"] h2 { color: var(--green); }
.answer-body { padding: 20px 26px 24px; }
.answer-body h3 { margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--muted); }
.answer-body h3:empty { display: none; }
.answer-body .tip:first-of-type { margin-top: 10px; }
.answer-body .tip { margin-top: 6px; font-size: 17px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.slots:empty { display: none; }
.slots p { width: 100%; font-size: 15px; color: var(--muted); }
.slots span { padding: 6px 12px; border-radius: 10px; background: var(--amber-soft); font-variant-numeric: tabular-nums; font-size: 15px; }
.answer .btn { width: 100%; margin-top: 18px; }
.answer .btn + .btn { margin-top: 10px; }
.answer .btn[hidden] { display: none; }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

.strip { padding-bottom: 72px; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }

/* ---------- Services and prices ---------- */
.services { padding-top: 80px; padding-bottom: 84px; background: var(--card); border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; margin-top: 36px; }
.svc h3 { font-size: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.svc ul { list-style: none; }
.svc li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.svc li b { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-note { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* ---------- Doctors, on ink ---------- */
.docs { background: var(--ink); color: #fff; padding-top: 80px; padding-bottom: 84px; }
.docs .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.docs .lede { color: #b9c4c0; }
.docs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; margin-top: 28px; }
.doc-list { list-style: none; }
.doc-list li { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.doc-list li:first-child { border-top: 1px solid rgba(255,255,255,.16); }
.doc-list h3 { font-size: 22px; }
.doc-list .meta { margin-top: 4px; color: var(--caisa); font-size: 15px; }
.doc-list p:last-child { margin-top: 8px; color: #b9c4c0; }

/* ---------- How to prepare ---------- */
.prep { padding-top: 80px; padding-bottom: 84px; }
.prep .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.prep ul { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.prep li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.prep li svg { width: 24px; height: 24px; color: var(--petrol); margin-top: 1px; }
.prep li b { display: block; font-weight: 500; }
.prep li span { display: block; color: var(--muted); font-size: 16px; }
.prep img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }

/* ---------- Booking, on petrol ---------- */
.book { background: var(--petrol); color: #fff; padding-top: 80px; padding-bottom: 88px; }
.book .wrap { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: start; }
.book .lede { color: #cfe2e1; }
.form { background: var(--lapte); color: var(--ink); border-radius: 18px; padding: 28px; }
.field { margin-bottom: 18px; }
.field > label, .legend { display: block; font-weight: 500; margin-bottom: 8px; }
.field select, .field input[type="text"], .field input[type="tel"] { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #cdd3d0; background: #fff; }
.field select:focus, .field input:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(31,95,99,.2); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 4px 14px; border-radius: 10px; border: 1px solid #cdd3d0; background: #fff; line-height: 1.2; font-variant-numeric: tabular-nums; }
.opt span small { font-size: 12px; color: var(--muted); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:checked + span small { color: #b9c4c0; }
.opt input:disabled + span { color: #b4b9b7; background: transparent; text-decoration: line-through; cursor: not-allowed; }
.opt input:focus-visible + span { outline: 3px solid var(--petrol); outline-offset: 2px; }
.days { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.days .opt span { min-width: 62px; }
.times .opt span { min-width: 68px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; }
.err { color: #a3261b; font-size: 15px; min-height: 1.3em; margin-bottom: 6px; }
.done svg { width: 46px; height: 46px; color: var(--petrol); }
.done h3 { font-size: 30px; margin: 12px 0 8px; }
.done p { color: var(--muted); }
.done p[data-what] { color: var(--ink); }
.done .note { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--caisa); background: #fff; color: var(--ink); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { padding-top: 80px; padding-bottom: 80px; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hours { list-style: none; margin-top: 24px; border-top: 2px solid var(--ink); max-width: 460px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours li span:first-child { color: var(--muted); }
.contact .btn { margin-top: 26px; }
.c-side { display: grid; gap: 14px; }
.c-side img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.map { width: 100%; height: auto; border-radius: 18px; }

.foot { background: var(--ink); color: #b9c4c0; padding-top: 28px; padding-bottom: 28px; font-size: 15px; }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; color: #fff; }

.toast { position: fixed; left: 50%; bottom: 20px; z-index: 60; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.4); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast, .answer-band { transition: none; }
}

@media (max-width: 1000px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .menu { display: none; }
  .hero { padding-top: 24px; }
  .hero-grid, .docs .wrap, .prep .wrap, .book .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 32px; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .docs img { display: none; }
  .services, .docs, .prep, .book, .contact { padding-top: 60px; padding-bottom: 60px; }
  .prep img { max-width: 420px; }
}
@media (max-width: 560px) {
  .top .wrap { height: 60px; }
  .brand { font-size: 21px; }
  .lang { display: none; }
  .demo-strip .wrap { font-size: 13px; }
  .syms button { font-size: 16px; }
  .answer-band, .answer-body { padding-left: 18px; padding-right: 18px; }
  .svc { grid-template-columns: 1fr; }
  .strip { padding-bottom: 52px; }
  .strip .wrap { gap: 10px; }
  .row2 { grid-template-columns: 1fr; }
  .form { padding: 20px; }
}
