/* ============================================================
   ЛАПА — ветклиника и зоомагазин
   Тон: спокойный и мягкий, без «милоты». Мятный фон, глубокий
   сине-зелёный текст, коралловый на действиях. Округлая
   геометрия и крупные радиусы — тревожному владельцу нужен
   интерфейс, который не выглядит как больница.
   ============================================================ */

:root {
  --bg: #ffffff;
  --mint: #e9f5f0;
  --mint-2: #d8ece4;
  --ink: #16302f;
  --muted: #566f6b;
  --line: #cfe3dc;
  --coral: #c8452f;
  --coral-2: #b53f2b;
  --deep: #14343f;

  --body: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;

  --cart-bg: #ffffff;
  --cart-fg: var(--ink);
  --cart-shadow: -22px 0 70px rgba(22, 48, 47, 0.22);

  --gut: clamp(16px, 4.5vw, 56px);
  --sec-y: clamp(52px, 7vw, 100px);
}

body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.62; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gut); }

h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; }
.kicker { margin-bottom: 16px; color: var(--coral); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.p { max-width: 34em; margin-bottom: 14px; color: var(--muted); }

/* ── Кнопки ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 24px; border: 2px solid transparent; border-radius: 14px;
  background: transparent;
  font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--lg { padding: 16px 30px; font-size: 15.5px; }
.btn--sm { padding: 9px 16px; font-size: 13px; border-radius: 11px; }
.btn--full { width: 100%; }
.btn--coral { background: var(--coral); color: #fff; }
.btn--coral:hover { background: var(--coral-2); }
.btn--coral:disabled { background: #cdd9d6; color: #fff; cursor: not-allowed; }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn__q:not(:empty) { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 999px; background: rgba(255,255,255,0.26); font-size: 11px; }
[data-add][data-in-cart] { background: var(--deep); }

/* ── Шапка ──────────────────────────────────────────────── */

.hdr { position: sticky; top: var(--demo-bar-h); z-index: 100; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 22px; padding-block: 13px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; }
.brand__mark { width: 28px; height: 28px; color: var(--coral); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--coral); }
.hdr__side { display: flex; align-items: center; gap: 14px; }
.phone { font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }

.cart-btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 14px; background: none; color: var(--ink); padding: 9px 16px; font-size: 13.5px; font-weight: 700; }
.cart-btn:hover { background: var(--ink); color: #fff; }
.cart-btn__n { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }

.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 9px 8px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 980px) {
  .hdr__in { position: relative; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px var(--gut) 16px; margin: 0; }
  .nav[data-open] { display: flex; }
  .nav a { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
  .hdr__side { margin-left: auto; }
  .burger { display: block; }
}
@media (max-width: 660px) { .phone { display: none; } }

/* ── Первый экран ───────────────────────────────────────── */

.hero { padding-block: clamp(38px, 5vw, 80px); }
.hero__in { display: grid; gap: clamp(32px, 4vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(34px, 5.6vw, 64px); }
.hero h1 em { font-style: normal; color: var(--coral); }
.lede { max-width: 31em; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.marks { display: grid; gap: 18px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.marks b { display: block; font-size: 24px; font-weight: 700; color: var(--deep); }
.marks span { color: var(--muted); font-size: 12.5px; }
@media (min-width: 520px) { .marks { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .hero__in { grid-template-columns: 1.06fr 0.94fr; } }

/* Мягкое пятно и три отпечатка лапы: знак, а не иллюстрация. */
.hero__art { position: relative; min-height: 280px; display: grid; place-items: center; }
.blob { position: absolute; inset: 8% 6%; border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%; background: linear-gradient(150deg, var(--mint), var(--mint-2)); }
.paw { position: absolute; border-radius: 50%; background: var(--coral); opacity: 0.85; }
.paw::before, .paw::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.paw--1 { width: 46px; height: 38px; left: 26%; top: 34%; }
.paw--1::before { width: 17px; height: 17px; left: -6px; top: -20px; }
.paw--1::after { width: 17px; height: 17px; right: -6px; top: -20px; }
.paw--2 { width: 34px; height: 28px; left: 52%; top: 52%; opacity: 0.55; }
.paw--2::before { width: 13px; height: 13px; left: -5px; top: -15px; }
.paw--2::after { width: 13px; height: 13px; right: -5px; top: -15px; }
.paw--3 { width: 26px; height: 21px; left: 68%; top: 30%; opacity: 0.35; }
.paw--3::before { width: 10px; height: 10px; left: -4px; top: -12px; }
.paw--3::after { width: 10px; height: 10px; right: -4px; top: -12px; }

/* ── Секции ─────────────────────────────────────────────── */

.sec { padding-block: var(--sec-y); }
.sec--mint { background: var(--mint); }
.sec__head { max-width: 44em; margin-bottom: clamp(24px, 3vw, 40px); }
.sec__head h2 { font-size: clamp(26px, 3.8vw, 42px); }
.sec__head p { margin-top: 14px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips--tight { margin-bottom: 0; }
.chip { border: 2px solid var(--line); border-radius: 999px; padding: 8px 17px; background: var(--bg); color: var(--muted); font-size: 13.5px; font-weight: 600; transition: all 0.2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[data-on] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Услуги ─────────────────────────────────────────────── */

.srv { display: grid; gap: 10px; }
.srv li { display: grid; align-items: center; gap: 6px 18px; grid-template-columns: 1fr auto; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.srv h3 { font-size: 18px; margin-bottom: 4px; }
.srv li p { color: var(--muted); font-size: 13.5px; }
.srv__t { color: var(--muted); font-size: 12.5px; }
.srv__p { font-size: 20px; font-weight: 700; white-space: nowrap; }
.srv li .btn { justify-self: start; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
@media (min-width: 860px) {
  .srv li { grid-template-columns: 1fr 84px 118px 140px; }
  .srv li .btn { justify-self: stretch; }
}

/* ── Врачи ──────────────────────────────────────────────── */

.vets { display: grid; gap: 22px; }
.vets li { text-align: center; }
.vets__a { display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin-bottom: 16px; border-radius: 24px; background: linear-gradient(160deg, var(--mint), var(--mint-2)); font-size: 54px; font-weight: 700; color: rgba(22,48,47,0.24); }
.vets__a::before { content: attr(data-i); }
.vets h3 { font-size: 19px; margin-bottom: 5px; }
.vets li p { color: var(--coral); font-size: 13.5px; }
.vets__m { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
@media (min-width: 560px) { .vets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .vets { grid-template-columns: repeat(4, 1fr); } }

/* ── Магазин ────────────────────────────────────────────── */

.goods { display: grid; gap: 18px; }
.good { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.good:hover { border-color: var(--coral); }
.good h3 { font-size: 16.5px; margin-bottom: 5px; }
.good p { color: var(--muted); font-size: 13px; }
.good__f { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.good__p { font-size: 19px; font-weight: 700; }
@media (min-width: 560px) { .goods { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .goods { grid-template-columns: repeat(3, 1fr); } }

/* ── Запись ─────────────────────────────────────────────── */

.book { display: grid; gap: clamp(28px, 3.5vw, 52px); }
.book h2 { font-size: clamp(26px, 3.8vw, 42px); margin-bottom: 16px; }
.book__form { display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 2.6vw, 30px); background: var(--mint); }
.book__row { display: grid; gap: 14px; }
.fld { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.fld legend { padding: 0; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day { display: grid; gap: 2px; border: 2px solid var(--line); border-radius: 14px; padding: 11px 4px; background: var(--bg); color: var(--ink); }
.day b { font-size: 12px; font-weight: 600; color: var(--muted); }
.day span { font-size: 20px; font-weight: 700; }
.day:hover { border-color: var(--ink); }
.day[data-on] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[data-on] b { color: #9fc0b9; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.slot { border: 2px solid var(--line); border-radius: 12px; padding: 11px 6px; background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot:hover:not([data-busy]) { border-color: var(--coral); color: var(--coral); }
.slot[data-on] { background: var(--coral); border-color: var(--coral); color: #fff; }

label { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; }
input { border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); padding: 11px 14px; font-size: 15px; }
input:focus { outline: 2px solid var(--coral); outline-offset: 0; border-color: var(--coral); }
.book__sum { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.book__sum b { font-size: 26px; font-weight: 700; }
.legal { color: var(--muted); font-size: 12px; }
@media (min-width: 560px) { .book__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .book { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }

.done { grid-column: 1 / -1; border: 2px solid var(--deep); border-radius: 20px; padding: 24px; background: var(--mint); }
.done__t { font-size: 20px; font-weight: 700; }
.done__s { margin-top: 8px; color: var(--muted); }
.done__d { margin-top: 14px; color: #7e9a95; font-size: 13px; }

/* ── Вопросы ────────────────────────────────────────────── */

.faq__h { font-size: clamp(26px, 3.8vw, 42px); margin-bottom: 24px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; background: var(--bg); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 17px 20px; cursor: pointer; font-size: 16px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 21px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; max-width: 62em; }

/* ── Корзина ────────────────────────────────────────────── */

.cart__top { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gut) 16px; border-bottom: 1px solid var(--line); }
.cart__top h2 { font-size: 22px; }
.cart__x { width: 36px; height: 36px; border: 2px solid var(--line); border-radius: 12px; background: none; font-size: 19px; line-height: 1; color: var(--ink); }
.cart__x:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.cart__empty { padding: 32px var(--gut); color: var(--muted); }
.cart__empty a { color: var(--coral); }
.cart__body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart__lines { flex: 1; padding: 6px var(--gut); }

.line { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__i b { display: block; font-size: 14px; font-weight: 700; }
.line__u { color: var(--muted); font-size: 12px; }
.line__q { display: flex; align-items: center; gap: 4px; }
.line__q button { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 999px; background: none; font-size: 14px; line-height: 1; }
.line__q button:hover { border-color: var(--coral); color: var(--coral); }
.line__q span { min-width: 18px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.line__p { font-weight: 700; font-size: 14px; white-space: nowrap; }
.line__x { width: 26px; height: 26px; border: 0; background: none; color: #a7bdb8; font-size: 18px; line-height: 1; }
.line__x:hover { color: var(--coral); }

.cart__sum { padding: 14px var(--gut); border-top: 1px solid var(--line); display: grid; gap: 7px; }
.cart__sum > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--muted); }
.cart__sum--total { padding-top: 8px; border-top: 1px dashed var(--line); color: var(--ink) !important; font-size: 18px !important; }
.cart__sum--total dd { font-weight: 700; }
.cart__body > .btn { margin: 0 var(--gut) calc(var(--gut) + 6px); width: auto; }
.cart__backdrop { position: fixed; inset: 0; z-index: 290; border: 0; }

/* ── Подвал ─────────────────────────────────────────────── */

.foot { background: var(--deep); color: #93aeb4; padding-block: clamp(36px, 5vw, 60px); }
.foot__in { display: grid; gap: 28px; }
.foot__brand { font-size: 22px; font-weight: 700; letter-spacing: 0.1em; color: #fff; }
.foot__t { margin-top: 10px; font-size: 13.5px; line-height: 1.7; }
.foot h3 { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #f0937d; margin-bottom: 12px; font-weight: 600; }
.foot a { display: block; padding: 4px 0; color: #93aeb4; font-size: 14px; text-decoration: none; }
.foot a:hover { color: #fff; }
@media (min-width: 700px) { .foot__in { grid-template-columns: 1.7fr 1fr 1fr; } }

.good__pic {
  display: block; width: 100%; height: 108px; margin-bottom: 16px; border-radius: 14px; object-fit: cover; background: var(--mint);
}
