/* =========================================================
   Iuliana Vet — ветеринар на дім, Харків
   ========================================================= */

:root {
  --cream: #FBF5EC;
  --paper: #FFFCF7;
  --sand: #F3E7D6;
  --sand-2: #E8D6BE;
  --ink: #1C2A24;
  --ink-2: #4A5650;
  --muted: #7C857F;
  --forest: #21473B;
  --forest-2: #2E6150;
  --forest-3: #142D25;
  --amber: #E57E36;
  --amber-2: #F4A259;
  --rust: #B9542A;
  --gold: #F2C46D;
  --line: rgba(28, 42, 36, .11);
  --line-light: rgba(255, 255, 255, .1);
  --danger: #C9423D;

  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;

  --shadow-sm: 0 2px 10px rgba(28, 42, 36, .06);
  --shadow: 0 24px 60px -24px rgba(28, 42, 36, .3);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  --container: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 78px;

  --f-head: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
svg { flex: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--amber-2); color: #fff; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 12px; background: var(--forest); color: #fff; font-weight: 700;
  transition: top .3s;
}
.skip-link:focus { top: 16px; }

/* ---------- Типографіка ---------- */
.h2 {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-top: 16px;
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--amber); }
.section--dark .h2 em { color: var(--amber-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow svg { width: 16px; height: 16px; }
.section--dark .eyebrow { color: var(--amber-2); }

.lead {
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 50ch;
  text-wrap: pretty;
}
.section--dark .lead { color: rgba(251, 245, 236, .72); }

.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.section--dark { background: var(--forest-3); color: var(--cream); overflow: hidden; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 64px; align-items: end;
}
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--forest);
  --fg: #fff;
  --hover-bg: var(--amber);
  --hover-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.55em;
  border-radius: 999px;
  font-weight: 800; font-size: .98rem; line-height: 1.2; white-space: nowrap;
  background: var(--bg); color: var(--fg);
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), box-shadow .45s var(--ease), border-color .45s, translate .35s var(--ease);
  will-change: translate;
}
.btn::before {
  content: ''; position: absolute; inset: -2px; z-index: -1;
  background: var(--hover-bg);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transform: translateY(102%);
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn:hover { color: var(--hover-fg); box-shadow: 0 14px 30px -12px rgba(229, 126, 54, .55); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn__arrow { transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--sm { padding: .72em 1.2em; font-size: .9rem; }
.btn--lg { padding: 1.08em 1.75em; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--ghost {
  --bg: transparent; --fg: var(--ink); --hover-bg: var(--forest); --hover-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(28, 42, 36, .22);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--forest), 0 14px 30px -14px rgba(33, 71, 59, .5); }
.btn--light { --bg: var(--paper); --fg: var(--forest); --hover-bg: var(--forest-3); --hover-fg: #fff; }
.btn--amber { --bg: var(--amber); --fg: #fff; --hover-bg: var(--cream); --hover-fg: var(--forest); }
.btn--ghost-light {
  --bg: transparent; --fg: var(--forest); --hover-bg: var(--forest); --hover-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(33, 71, 59, .25);
}

@keyframes draw { to { stroke-dashoffset: 0; } }

/* =========================================================
   Прогрес скролу
   ========================================================= */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--gold));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* =========================================================
   Шапка
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  transition: transform .5s var(--ease), background-color .4s, box-shadow .4s, translate 1s var(--ease) .2s;
}
html.js:not(.is-ready) .header { translate: 0 -110%; }
.header.is-scrolled {
  background: rgba(251, 245, 236, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
body.menu-open .header { transform: none; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

/* Текстовий логотип */
.logo {
  flex: none; white-space: nowrap;
  font-family: var(--f-head); font-weight: 600; font-size: 1.32rem; letter-spacing: -.035em; line-height: 1;
  color: var(--ink); transition: color .3s;
}
.logo b { font-weight: 600; color: var(--amber); display: inline-block; transition: transform .5s var(--ease-back); }
.logo:hover { color: var(--forest-2); }
.logo:hover b { transform: translateY(-2px) rotate(-4deg); }
.logo--light { color: var(--cream); font-size: 1.5rem; }
.logo--light b { color: var(--amber-2); }
.logo--light:hover { color: #fff; }
body.menu-open .header .logo { color: var(--cream); }

.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-weight: 700; font-size: .93rem; color: var(--ink-2);
  transition: color .3s, background-color .3s;
}
.nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber); translate: -50% 0; scale: 0; transition: scale .4s var(--ease-back);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active::after, .nav a:hover::after { scale: 1; }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .header__actions { margin-left: 0; }

.lang {
  position: relative; display: flex; padding: 4px; border-radius: 999px;
  background: rgba(28, 42, 36, .06);
}
.lang__btn {
  position: relative; z-index: 1; width: 40px; padding: 7px 0; border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--muted);
  transition: color .35s;
}
.lang__btn.is-active { color: #fff; }
.lang__pill {
  position: absolute; left: 4px; top: 4px; bottom: 4px; width: 40px; border-radius: 999px;
  background: var(--forest); transition: transform .5s var(--ease-back);
}
.lang[data-active="ru"] .lang__pill { transform: translateX(40px); }

.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .95rem; white-space: nowrap;
  transition: color .3s;
}
.header__phone svg { width: 18px; height: 18px; color: var(--amber); }
.header__phone:hover { color: var(--amber); }

.burger {
  display: none; position: relative; width: 46px; height: 46px; border-radius: 50%;
  background: var(--forest);
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
body.menu-open .burger { background: var(--amber); }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--forest-3); color: var(--cream);
  clip-path: circle(0 at calc(100% - 44px) 39px);
  transition: clip-path .8s var(--ease-io);
  visibility: hidden;
  overflow-y: auto;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 39px); visibility: visible; }
body.menu-open .header .header__phone { color: var(--cream); }
body.menu-open .header .lang { background: rgba(255, 255, 255, .1); }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  font-family: var(--f-head); font-weight: 600; font-size: clamp(1.7rem, 7vw, 2.4rem);
  padding: 10px 0; border-bottom: 1px solid var(--line-light);
  opacity: 0; translate: 0 30px;
  transition: opacity .5s, translate .7s var(--ease), color .3s;
}
.mobile-menu__nav a:hover { color: var(--amber-2); }
body.menu-open .mobile-menu__nav a { opacity: 1; translate: 0 0; transition-delay: calc(var(--i) * 60ms + 250ms); }
.mobile-menu__contacts { display: grid; gap: 10px; opacity: 0; transition: opacity .6s .6s; }
body.menu-open .mobile-menu__contacts { opacity: 1; }
.mobile-menu__contacts .btn--ghost { --fg: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.mobile-menu__contacts p { color: rgba(251, 245, 236, .6); font-size: .9rem; text-align: center; margin-top: 6px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 36px) 0 90px;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: blob 20s ease-in-out infinite alternate; }
.blob--1 { width: 520px; height: 520px; right: -120px; top: -140px; background: #F7C79B; }
.blob--2 { width: 460px; height: 460px; left: -180px; bottom: -160px; background: #CFE3D6; animation-duration: 24s; animation-delay: -6s; }
.blob--3 { width: 320px; height: 320px; left: 40%; top: 30%; background: #F6DCCB; opacity: .45; animation-duration: 18s; animation-delay: -10s; }
@keyframes blob {
  0% { translate: 0 0; scale: 1; }
  50% { translate: 40px -30px; scale: 1.08; }
  100% { translate: -30px 40px; scale: .95; }
}
.hero__grain {
  position: absolute; inset: 0; opacity: .14; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* Листя, що падає */
.leaves { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.leaf {
  position: absolute; top: -50px; left: var(--x);
  width: var(--size); height: var(--size); color: var(--c); opacity: .55;
  animation: leaf-fall var(--dur) linear var(--delay) infinite;
}
.leaf svg { width: 100%; height: 100%; animation: leaf-sway calc(var(--dur) / 5) ease-in-out infinite alternate; }
@keyframes leaf-fall {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  8% { opacity: .55; }
  90% { opacity: .5; }
  100% { transform: translateY(calc(100vh + 120px)) rotate(560deg); opacity: 0; }
}
@keyframes leaf-sway {
  from { transform: translateX(calc(var(--sway) * -1)) rotate(-25deg); }
  to { transform: translateX(var(--sway)) rotate(30deg); }
}

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: .86rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.status__dot {
  position: relative; width: 10px; height: 10px; border-radius: 50%; background: #2FB36B; flex: none;
}
.status__dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
html.is-night .status__dot { background: var(--amber); }
@keyframes ping { 75%, 100% { transform: scale(2.8); opacity: 0; } }

.hero__title {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(2.25rem, 5.3vw, 4.5rem);
  line-height: 1.06; letter-spacing: -.03em;
  margin: 24px 0 24px;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal; color: var(--forest-2);
  background: linear-gradient(transparent 64%, rgba(244, 162, 89, .5) 64%, rgba(244, 162, 89, .5) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.2s var(--ease) 1.2s;
}
html.is-ready .hero__title em, html:not(.js) .hero__title em { background-size: 100% 100%; }

/* Розбиття заголовків на слова */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
.w > span { display: inline-block; }
html.js .hero__title .w > span { translate: 0 108%; }
html.is-ready .hero__title .w > span { translate: 0 0; transition: translate 1.1s var(--ease) calc(var(--wi) * 70ms + 250ms); }

.hero__title.relang .w > span { animation: word-in .9s var(--ease) both; animation-delay: calc(var(--wi) * 55ms); }
@keyframes word-in { from { translate: 0 108%; } }

/* Плавна зміна мови */
main, .footer, .mobile-bar { transition: opacity .22s ease; }
html.is-switching main, html.is-switching .footer { opacity: 0; }

.hero__lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.65; color: var(--ink-2); max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 18px 36px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__facts li { display: flex; flex-direction: column; gap: 4px; }
.hero__facts b { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.02em; color: var(--forest); }
.hero__facts li > span { font-size: .88rem; color: var(--muted); font-weight: 600; }

html.js .hero-in { opacity: 0; translate: 0 28px; }
html.is-ready .hero-in {
  opacity: 1; translate: 0 0;
  transition: opacity .9s var(--ease), translate 1s var(--ease);
  transition-delay: calc(var(--i) * 90ms + 200ms);
}

/* Візуал */
.hero__visual {
  position: relative; justify-self: center;
  width: min(100%, 470px, 56svh); aspect-ratio: 4 / 5;
}
.hero__sun {
  position: absolute; width: 64%; aspect-ratio: 1; right: -16%; top: -8%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--gold), var(--amber-2) 45%, var(--amber));
  animation: sun 9s ease-in-out infinite alternate;
}
@keyframes sun { to { scale: 1.07; translate: -10px 10px; } }
.hero__ring {
  position: absolute; left: 50%; top: 50%; width: 122%; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%;
  border: 1.5px dashed rgba(33, 71, 59, .22);
  animation: spin 90s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.hero__photo {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 999px 999px 40px 40px;
  box-shadow: 0 40px 80px -30px rgba(28, 42, 36, .45);
  background: var(--sand);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }

html.js .hero__photo { clip-path: inset(100% 0 0 0); }
html.js .hero__photo img { scale: 1.3; }
html.js .hero__sun { opacity: 0; scale: .4; }
html.js .hero__ring { opacity: 0; }
html.is-ready .hero__photo { clip-path: inset(0 0 0 0); transition: clip-path 1.5s var(--ease-io) .25s; }
html.is-ready .hero__photo img { scale: 1; transition: scale 2.2s var(--ease) .25s; }
html.is-ready .hero__sun { opacity: 1; scale: 1; transition: opacity 1s .6s, scale 1.4s var(--ease-back) .6s; }
html.is-ready .hero__ring { opacity: 1; transition: opacity 1.5s 1s; }

.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px 11px 11px; border-radius: 20px;
  background: rgba(255, 252, 247, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: .9rem; line-height: 1.25; white-space: nowrap;
}
.float-card b { display: block; font-weight: 800; }
.float-card small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.float-card__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--amber); color: #fff; }
.float-card__icon--green { background: var(--forest); }
.float-card__icon svg { width: 22px; height: 22px; }
.float-card--1 { left: -18%; top: 14%; animation: bob 6s ease-in-out infinite; }
.float-card--2 { right: -12%; bottom: 20%; animation: bob 7s ease-in-out -2.5s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
html.js .float-card { opacity: 0; scale: .6; }
html.is-ready .float-card { opacity: 1; scale: 1; transition: opacity .6s 1.1s, scale .9s var(--ease-back) 1.1s; }
html.is-ready .float-card--2 { transition-delay: 1.3s; }

.badge-rotate {
  position: absolute; z-index: 3; left: -9%; bottom: -5%;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest); color: var(--cream);
  box-shadow: var(--shadow);
}
.badge-rotate > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 20s linear infinite; }
.badge-rotate text { font-family: var(--f-head); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; fill: currentColor; }
.badge-rotate__center { width: 50px; height: 50px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; color: #fff; }
.badge-rotate__center svg { width: 26px; height: 26px; }
html.js .badge-rotate { opacity: 0; scale: .3; rotate: -90deg; }
html.is-ready .badge-rotate { opacity: 1; scale: 1; rotate: 0deg; transition: opacity .6s 1.45s, scale 1s var(--ease-back) 1.45s, rotate 1.2s var(--ease) 1.45s; }

/* =========================================================
   Стрічки
   ========================================================= */
.ribbons { position: relative; padding: 56px 0 64px; overflow: hidden; }
.ribbon { width: 108%; margin-left: -4%; overflow: hidden; padding: 18px 0; rotate: -2.4deg; }
.ribbon--amber { position: relative; z-index: 2; background: var(--amber); color: #fff; }
.ribbon--forest { background: var(--forest); color: var(--cream); box-shadow: 0 24px 40px -24px rgba(20, 45, 37, .5); }
.ribbon__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.ribbon__track--rev { animation-direction: reverse; animation-duration: 48s; }
.ribbon__group { display: flex; align-items: center; gap: 30px; padding-right: 30px; }
.ribbon span { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.05rem, 2.3vw, 1.8rem); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.ribbon svg { width: 24px; height: 24px; opacity: .85; }
.ribbon--forest svg { color: var(--amber-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Анімації появи
   ========================================================= */
html.js [data-reveal] {
  opacity: 0; translate: 0 44px;
  transition:
    opacity .9s var(--ease) var(--d, 0s),
    translate 1.1s var(--ease) var(--d, 0s),
    transform .55s var(--ease),
    background-color .4s, border-color .4s, box-shadow .4s, color .4s;
}
html.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
html.js [data-reveal="clip"] { opacity: 1; translate: none; clip-path: inset(18% 12% 18% 12% round 40px); transition: clip-path 1.4s var(--ease-io) var(--d, 0s); }
html.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round 0); }

/* =========================================================
   Чому вдома
   ========================================================= */
.why__glow {
  position: absolute; width: 700px; height: 700px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 126, 54, .22), transparent 65%);
  pointer-events: none;
}
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 32px 28px 30px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
}
.why-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 162, 89, .18), transparent 60%);
  transition: opacity .4s;
}
.why-card:hover::before { opacity: 1; }
.why-card:hover { transform: translateY(-6px); border-color: rgba(244, 162, 89, .35); }
.why-card__icon {
  width: 58px; height: 58px; border-radius: 18px; margin-bottom: 24px;
  display: grid; place-items: center;
  background: rgba(244, 162, 89, .14); color: var(--amber-2);
  transition: transform .7s var(--ease-back), background-color .4s, color .4s;
}
.why-card__icon svg { width: 28px; height: 28px; }
.why-card:hover .why-card__icon { transform: rotate(-10deg) scale(1.08); background: var(--amber); color: #fff; }
.why-card h3 { font-family: var(--f-head); font-weight: 500; font-size: 1.12rem; line-height: 1.3; margin-bottom: 10px; }
.why-card p { color: rgba(251, 245, 236, .66); line-height: 1.6; }

/* =========================================================
   Послуги
   ========================================================= */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 310px; padding: 30px 28px 26px;
  border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line);
}
.svc::after {
  content: ''; position: absolute; z-index: -1; right: -20%; bottom: -30%;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: var(--forest);
  transform: scale(0); transition: transform .9s var(--ease);
}
.svc:hover::after { transform: scale(4.4); }
.svc:hover { color: var(--cream); border-color: var(--forest); box-shadow: var(--shadow); transform: translateY(-6px); }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.svc__num { font-family: var(--f-head); font-weight: 500; font-size: .9rem; color: var(--muted); transition: color .4s; }
.svc:hover .svc__num { color: var(--amber-2); }
.svc__icon {
  width: 66px; height: 66px; border-radius: 22px;
  display: grid; place-items: center;
  background: var(--sand); color: var(--forest);
  transition: background-color .5s, color .5s, transform .8s var(--ease-back);
}
.svc__icon svg { width: 32px; height: 32px; }
.svc:hover .svc__icon { background: var(--amber); color: #fff; transform: rotate(-12deg) scale(1.06); }
.svc__title { font-family: var(--f-head); font-weight: 500; font-size: 1.22rem; line-height: 1.28; margin-bottom: 12px; }
.svc__text { color: var(--ink-2); line-height: 1.6; margin-bottom: 24px; transition: color .4s; flex: 1; }
.svc:hover .svc__text { color: rgba(251, 245, 236, .72); }
.svc__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--forest); transition: color .4s, gap .4s var(--ease); margin-top: auto; align-self: flex-start; }
.svc__link svg { width: 18px; height: 18px; }
.svc:hover .svc__link { color: var(--amber-2); gap: 14px; }

.price {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 22px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 44px) clamp(26px, 4vw, 52px);
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--amber), #EE9248 60%, var(--amber-2));
  color: #fff;
}
.price__main { display: flex; flex-direction: column; gap: 6px; }
.price__label { font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.price__value { font-family: var(--f-head); font-weight: 700; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -.04em; }
.price__value small { font-size: .5em; margin-left: .12em; }
.price__sub { font-weight: 700; opacity: .9; }
.price__note { line-height: 1.65; max-width: 46ch; font-weight: 500; }
.price .btn--light:hover { box-shadow: 0 14px 30px -12px rgba(20, 45, 37, .6); }
.price__paws { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.price__paws svg { position: absolute; width: 74px; height: 74px; color: rgba(255, 255, 255, .12); animation: paw-walk 4.8s ease-in-out infinite; }
.price__paws svg:nth-child(1) { left: 34%; top: 58%; rotate: 70deg; }
.price__paws svg:nth-child(2) { left: 44%; top: 12%; rotate: 80deg; animation-delay: .8s; }
.price__paws svg:nth-child(3) { left: 54%; top: 54%; rotate: 70deg; animation-delay: 1.6s; }
@keyframes paw-walk { 0%, 100% { opacity: .2; scale: .9; } 30% { opacity: 1; scale: 1; } 60% { opacity: .2; } }

/* =========================================================
   Про лікаря
   ========================================================= */
.about__inner { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(44px, 7vw, 104px); align-items: center; }
.about__media { position: relative; }
.about__photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 40px 40px 40px 220px;
  box-shadow: 0 40px 80px -36px rgba(28, 42, 36, .5);
}
.about__photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 66% 50%; will-change: transform; }
.about__exp {
  position: absolute; right: -6%; top: 9%;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 24px; border-radius: 24px;
  background: var(--forest); color: var(--cream); box-shadow: var(--shadow); text-align: center;
}
.about__exp b { font-family: var(--f-head); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--amber-2); }
.about__exp > span { font-size: .82rem; font-weight: 700; margin-top: 4px; opacity: .85; }

.about__role { margin-top: 14px; font-weight: 700; color: var(--forest-2); font-size: 1.05rem; line-height: 1.5; }
.about__role small { font-size: .92rem; color: var(--muted); font-weight: 600; }

.about__quote {
  position: relative; margin: 34px 0 30px;
  padding: 30px 30px 28px 32px;
  border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line);
  font-size: 1.07rem; line-height: 1.75; color: var(--ink);
}
.about__quote::before { content: ''; position: absolute; left: 0; top: 26px; bottom: 26px; width: 4px; border-radius: 4px; background: var(--amber); }
.about__quote-mark { position: absolute; top: -17px; right: 26px; width: 44px; color: var(--amber-2); }

.values { display: grid; gap: 14px; }
.value { display: flex; align-items: center; gap: 16px; }
.value__icon { width: 50px; height: 50px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--sand); color: var(--forest); transition: transform .6s var(--ease-back), background-color .4s, color .4s; }
.value__icon svg { width: 24px; height: 24px; }
.value:hover .value__icon { transform: rotate(-10deg) scale(1.08); background: var(--forest); color: var(--amber-2); }
.value b { display: block; font-weight: 800; font-size: 1.02rem; }
.value small { display: block; color: var(--muted); font-size: .92rem; font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-head); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--forest); letter-spacing: -.03em; line-height: 1.1; }
.stat > span { font-size: .88rem; color: var(--muted); font-weight: 600; }

/* =========================================================
   Як це працює (дорога + авто)
   ========================================================= */
.steps { background: var(--sand); overflow: hidden; }
.steps__wrap { position: relative; }
.road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road__base { stroke: var(--sand-2); stroke-width: 18; }
.road__progress { stroke: var(--forest); stroke-width: 18; }
.road__dash { stroke: rgba(255, 252, 247, .75); stroke-width: 2; stroke-dasharray: 9 13; }

.car {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: 72px; height: 40px; margin: -24px 0 0 -36px;
  pointer-events: none; will-change: transform;
  filter: drop-shadow(0 8px 10px rgba(28, 42, 36, .2));
}
.car svg { width: 100%; height: 100%; overflow: visible; }
.car__wheel { transform-box: fill-box; transform-origin: center; }
.car.is-driving .car__wheel { animation: spin .5s linear infinite; }
.car.is-driving > svg { animation: car-bump .3s ease-in-out infinite alternate; }
.car.is-driving .car__beacon { animation: beacon .5s steps(1) infinite; }
@keyframes car-bump { to { translate: 0 -1.2px; } }
@keyframes beacon { 50% { fill: #4A90E2; } }

.steps__list { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step:nth-child(even) { margin-top: 120px; }
.step__dot {
  position: relative; z-index: 3;
  width: 66px; height: 66px; margin-bottom: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 3px solid var(--sand-2);
  font-family: var(--f-head); font-weight: 600; font-size: 1.3rem; color: var(--muted);
  transition: background-color .5s, border-color .5s, color .5s, transform .6s var(--ease-back), box-shadow .5s;
}
.step.is-active .step__dot { background: var(--amber); border-color: var(--amber); color: #fff; transform: scale(1.1); box-shadow: 0 0 0 10px rgba(229, 126, 54, .18); }
.step__body {
  position: relative; z-index: 2;
  padding: 24px 24px 26px; border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.step__body h3 { font-family: var(--f-head); font-weight: 500; font-size: 1.15rem; margin-bottom: 8px; }
.step__body p { color: var(--ink-2); line-height: 1.6; font-size: .97rem; }

/* =========================================================
   Бенто: пацієнти, райони, графік
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(26px, 3vw, 38px); border-radius: var(--r-xl);
  background: var(--paper); border: 1px solid var(--line);
}
.tile--pets { grid-column: span 5; background: var(--sand); border-color: transparent; }
.tile--map { grid-column: span 7; }
.tile--time { grid-column: span 7; }
.tile--night { grid-column: span 5; background: linear-gradient(160deg, #1B2C45 0%, #22324B 55%, #2D2846 100%); color: #F3EEE6; border-color: transparent; display: flex; flex-direction: column; align-items: flex-start; }
.tile__title { font-family: var(--f-head); font-weight: 500; font-size: 1.35rem; line-height: 1.25; }
.tile__text { color: var(--ink-2); line-height: 1.6; margin-top: 10px; max-width: 42ch; }
.tile--night .tile__text { color: rgba(243, 238, 230, .72); margin-bottom: 26px; }
.tile__note { margin-top: 18px; font-size: .86rem; color: var(--muted); font-weight: 600; }

/* Пацієнти */
.pets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pet { margin: 0; text-align: center; padding: 18px 10px 16px; border-radius: 24px; background: rgba(255, 252, 247, .65); transition: transform .6s var(--ease-back), background-color .4s; }
.pet:hover { transform: translateY(-6px) rotate(-2deg); background: var(--paper); }
.pet--dog:hover { transform: translateY(-6px) rotate(2deg); }
.pet figcaption { margin-top: 10px; font-family: var(--f-head); font-weight: 500; font-size: 1rem; }
.pet--cat { --pet-bg: #F7D9C4; }
.pet--dog { --pet-bg: #DCEBE2; }
/* Анімовані стікери (Lottie / .tgs) */
.pet__anim { position: relative; isolation: isolate; width: min(100%, 168px); aspect-ratio: 1; margin: 0 auto; }
.pet__anim::before {
  content: ''; position: absolute; inset: 9%; z-index: -1; border-radius: 50%;
  background: var(--pet-bg);
  transition: scale .7s var(--ease-back);
}
.pet__anim:not(.is-loaded):not(.is-fallback)::before { animation: pet-wait 1.4s ease-in-out infinite; }
@keyframes pet-wait { 50% { scale: .92; opacity: .7; } }
.pet:hover .pet__anim::before { scale: 1.07; }
.pet__anim.is-loaded > svg { animation: pet-in .7s var(--ease-back) both; }
@keyframes pet-in { from { opacity: 0; scale: .7; } }
.pet__anim.is-fallback { display: grid; place-items: center; font-size: 4.4rem; line-height: 1; }

/* Райони */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.chips li {
  padding: 10px 16px; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line);
  font-weight: 700; font-size: .9rem;
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-back);
  cursor: default;
}
.chips li:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); transform: translateY(-3px); }
.chips .chip--accent { background: rgba(229, 126, 54, .12); border-color: rgba(229, 126, 54, .3); color: var(--rust); }
html.js .chips li { opacity: 0; scale: .6; }
html.js .is-in .chips li { animation: chip-in .7s var(--ease-back) forwards; animation-delay: calc(var(--i) * 55ms + 350ms); }
@keyframes chip-in { to { opacity: 1; scale: 1; } }

/* Графік */
.time-big { font-family: var(--f-head); font-weight: 600; font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.04em; color: var(--forest); margin: 20px 0 34px; line-height: 1; }
.time-big span { color: var(--amber); }
.daybar { padding-top: 28px; }
.daybar__track { position: relative; height: 18px; border-radius: 999px; background: var(--sand); }
.daybar__night { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, #2A3B57 0 6px, #3A4E72 6px 12px); }
.daybar__night--a { left: 0; width: 33.3333%; border-radius: 999px 0 0 999px; }
.daybar__night--b { left: 93.75%; right: 0; border-radius: 0 999px 999px 0; }
.daybar__work { position: absolute; top: 0; bottom: 0; left: 33.3333%; width: 60.4167%; background: linear-gradient(90deg, var(--gold), var(--amber-2), var(--amber)); transform-origin: 0 50%; }
html.js .daybar__work { transform: scaleX(0); }
html.js .is-in .daybar__work { transform: scaleX(1); transition: transform 1.6s var(--ease-io) .4s; }
.daybar__now { position: absolute; top: -8px; bottom: -8px; left: var(--p); width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--ink); z-index: 2; }
.daybar__now i { position: absolute; left: 50%; bottom: -5px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(28, 42, 36, .15); }
.daybar__now em { position: absolute; bottom: calc(100% + 6px); left: 50%; padding: 4px 9px; border-radius: 8px; background: var(--ink); color: #fff; font-style: normal; font-weight: 800; font-size: .76rem; white-space: nowrap; translate: var(--lx, -50%) 0; }
html.js .daybar__now { opacity: 0; }
html.js .is-in .daybar__now { opacity: 1; transition: opacity .6s 1.6s; }
.daybar__scale { display: flex; justify-content: space-between; margin-top: 14px; font-size: .76rem; color: var(--muted); font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend i { width: 14px; height: 14px; border-radius: 5px; flex: none; }
.legend__work { background: linear-gradient(90deg, var(--amber-2), var(--amber)); }
.legend__night { background: repeating-linear-gradient(-45deg, #2A3B57 0 3px, #3A4E72 3px 6px); }

/* Ніч */
.stars i { position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out var(--d) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .25; scale: .8; } 50% { opacity: 1; scale: 1.3; } }
.moon {
  position: absolute; right: 34px; top: 30px;
  width: 66px; height: 66px; border-radius: 50%;
  box-shadow: inset -18px -8px 0 0 #F6E3B4;
  rotate: -18deg;
  filter: drop-shadow(0 0 24px rgba(246, 227, 180, .45));
  animation: moon 7s ease-in-out infinite alternate;
}
@keyframes moon { to { translate: -6px 8px; rotate: -6deg; } }
.tile--night .tile__title { margin-top: 70px; font-size: 1.55rem; }
.tile--night .btn { margin-top: auto; }

/* =========================================================
   Банер-цитата
   ========================================================= */
.band { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(480px, 82vh, 760px); color: #fff; background: var(--forest-3); }
.band__media { position: absolute; inset: 0; }
.band__media img { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; object-position: 70% 50%; will-change: transform; }
.band__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 45, 37, .94) 0%, rgba(20, 45, 37, .75) 38%, rgba(20, 45, 37, .1) 72%, transparent); }
.band__inner { position: relative; z-index: 2; }
.band__text { font-family: var(--f-head); font-weight: 500; font-size: clamp(1.75rem, 4vw, 3.3rem); line-height: 1.17; letter-spacing: -.025em; max-width: 17ch; text-wrap: balance; }
.band__text em { font-style: normal; color: var(--amber-2); }
html.js .band__text .w > span { opacity: var(--o, .16); transition: opacity .25s linear; }
.band__sign { display: inline-block; margin-top: 26px; font-weight: 700; font-size: 1.05rem; color: rgba(255, 255, 255, .78); }

/* =========================================================
   Запис
   ========================================================= */
/* секція не обрізає вміст, щоб випадні списки форми могли виходити за її межі */
.booking { overflow: visible; }
.booking__glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.booking__glow::before { content: ''; position: absolute; width: 800px; height: 800px; left: -300px; bottom: -400px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 97, 80, .55), transparent 65%); }
.booking__inner { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.booking__info { position: sticky; top: calc(var(--header-h) + 30px); }
.booking .lead { margin-top: 20px; }

.contacts { display: grid; gap: 12px; margin-top: 38px; }
.contact {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .3s, transform .5s var(--ease), border-color .3s;
}
a.contact:hover { background: rgba(255, 255, 255, .1); border-color: rgba(244, 162, 89, .4); transform: translateX(6px); }
.contact__icon { width: 48px; height: 48px; border-radius: 15px; flex: none; display: grid; place-items: center; background: var(--amber); color: #fff; transition: transform .6s var(--ease-back); }
.contact__icon svg { width: 22px; height: 22px; }
a.contact:hover .contact__icon { transform: rotate(-12deg) scale(1.06); }
.contact small { display: block; font-size: .78rem; font-weight: 700; color: rgba(251, 245, 236, .55); }
.contact b { display: block; font-size: 1.04rem; font-weight: 800; }

.booking__card {
  position: relative;
  padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-xl);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .55);
}

.form__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.form__head h3 { font-family: var(--f-head); font-weight: 500; font-size: 1.4rem; }
.form__price { padding: 8px 14px; border-radius: 999px; background: var(--sand); color: var(--forest); font-weight: 800; font-size: .88rem; white-space: nowrap; }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > legend { padding: 0; font-size: .82rem; font-weight: 800; color: var(--ink-2); letter-spacing: .01em; }
.field > legend { margin-bottom: 8px; }

.field input, .field textarea, .field select {
  width: 100%; min-width: 0;
  padding: 15px 18px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--cream);
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink);
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field input::placeholder, .field textarea::placeholder { color: #A3A9A4; font-weight: 500; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(28, 42, 36, .25); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--forest-2); background: #fff; box-shadow: 0 0 0 4px rgba(46, 97, 80, .13); }
.field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.field.is-invalid input, .field.is-invalid .choice__box, .field.is-invalid .picker__btn { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(201, 66, 61, .1); }
.field.is-invalid { animation: shake .45s; }
@keyframes shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.field__error { color: var(--danger); font-size: .8rem; font-weight: 700; }
.field__error:empty { display: none; }

.phone-input { position: relative; }
.phone-input__prefix { position: absolute; left: 18px; top: 50%; translate: 0 -50%; font-weight: 800; color: var(--ink); pointer-events: none; }
.phone-input input { padding-left: 66px; }

.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice__item { position: relative; flex: 1 1 0; min-width: max-content; cursor: pointer; }
.choice__item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice__box {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 16px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--cream);
  font-weight: 800; user-select: none;
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-back);
}
.choice__box svg { width: 18px; height: 18px; }
.choice__item:hover .choice__box { border-color: rgba(28, 42, 36, .28); }
.choice__item input:checked + .choice__box { background: var(--forest); border-color: var(--forest); color: #fff; transform: scale(1.02); }
.choice__item input:focus-visible + .choice__box { outline: 3px solid var(--amber); outline-offset: 2px; }
.choice__emoji { font-size: 1.55rem; line-height: 1; }
.choice__item input:checked + .choice__box .choice__emoji { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 25% { rotate: -16deg; scale: 1.2; } 60% { rotate: 10deg; } 100% { rotate: 0; scale: 1; } }
.choice--animal .choice__box { padding: 15px 16px; font-size: 1.02rem; }
.choice--day .choice__box { font-size: .93rem; }

.when { display: grid; gap: 12px; }
.when__row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.when__row.has-date { grid-template-columns: 1fr 1fr; }

/* ---------- Кастомні поля: дата і час ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.picker { position: relative; min-width: 0; }
.picker[hidden] { display: none; }
.field .picker__native { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }

.picker__btn {
  width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px;
  padding: 0 16px 0 9px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--cream);
  font-weight: 700; font-size: 1rem; text-align: left; color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.picker__btn:hover { border-color: rgba(28, 42, 36, .25); }
.picker__btn:focus-visible, .picker.is-open .picker__btn { outline: none; border-color: var(--forest-2); background: #fff; box-shadow: 0 0 0 4px rgba(46, 97, 80, .13); }
.picker__icon {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--sand); color: var(--forest);
  transition: background-color .35s, color .35s, transform .5s var(--ease-back);
}
.picker__icon svg { width: 19px; height: 19px; }
.picker.has-value .picker__icon { background: var(--forest); color: var(--amber-2); }
.picker.is-open .picker__icon { transform: rotate(-10deg) scale(1.05); }
.picker__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__value.is-placeholder { color: #A3A9A4; font-weight: 600; }
.picker__chev { width: 18px; height: 18px; color: var(--ink-2); transition: rotate .4s var(--ease); }
.picker.is-open .picker__chev { rotate: 180deg; }

.picker__pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  padding: 10px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(28, 42, 36, .38), 0 4px 14px rgba(28, 42, 36, .06);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.97); transform-origin: 50% 0;
  transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
}
.picker__pop:focus { outline: none; }
.picker.is-up .picker__pop { top: auto; bottom: calc(100% + 8px); transform-origin: 50% 100%; transform: translateY(8px) scale(.97); }
.picker.is-open .picker__pop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .45s var(--ease), visibility 0s; }

/* Слоти часу */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.slot {
  padding: 12px 10px; border-radius: 12px;
  background: var(--cream); border: 1.5px solid transparent;
  font-weight: 700; font-size: .93rem; color: var(--ink); text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .35s var(--ease-back);
}
.slot--wide { grid-column: 1 / -1; }
.slot:hover:not(:disabled), .slot:focus-visible { outline: none; background: var(--sand); border-color: rgba(33, 71, 59, .2); transform: translateY(-1px); }
.slot.is-selected, .slot.is-selected:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.slot--asap { background: rgba(229, 126, 54, .12); color: var(--rust); }
.slot--asap:hover:not(:disabled), .slot--asap:focus-visible { background: rgba(229, 126, 54, .2); border-color: rgba(229, 126, 54, .35); }
.slot--asap.is-selected, .slot--asap.is-selected:hover { background: var(--amber); border-color: var(--amber); color: #fff; }
.slot--night { background: #22324B; color: #F3EEE6; }
.slot--night:hover:not(:disabled), .slot--night:focus-visible { background: #2B3D5B; border-color: rgba(246, 227, 180, .35); }
.slot--night.is-selected, .slot--night.is-selected:hover { background: #1B2C45; border-color: var(--amber-2); color: #fff; }
.slot:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.picker.is-open .slot { animation: slot-in .4s var(--ease) both; animation-delay: calc(var(--i) * 22ms + 40ms); }
@keyframes slot-in { from { opacity: 0; translate: 0 6px; } }

/* Календар */
.cal { width: 318px; right: auto; padding: 14px 14px 12px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal__title { font-family: var(--f-head); font-weight: 500; font-size: 1rem; }
.cal__nav {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); color: var(--forest);
  transition: background-color .2s, color .2s, transform .3s var(--ease-back);
}
.cal__nav svg { width: 18px; height: 18px; }
.cal__nav--prev svg { rotate: 90deg; }
.cal__nav--next svg { rotate: -90deg; }
.cal__nav:hover:not(:disabled) { background: var(--forest); color: #fff; transform: scale(1.06); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal__week span { padding: 6px 0; text-align: center; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cal__day {
  position: relative; aspect-ratio: 1; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 700; font-size: .92rem; color: var(--ink);
  transition: background-color .2s, color .2s, transform .35s var(--ease-back);
}
.cal__day.is-weekend { color: var(--rust); }
.cal__day:hover:not(:disabled), .cal__day:focus-visible { outline: none; background: var(--sand); }
.cal__day.is-today::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--amber); }
.cal__day.is-selected, .cal__day.is-selected:hover { background: var(--forest); color: #fff; transform: scale(1.05); }
.cal__day.is-selected::after { background: var(--amber-2); }
.cal__day:disabled { color: #C9CDCA; cursor: default; }
.cal__grid.slide-l { animation: cal-l .4s var(--ease); }
.cal__grid.slide-r { animation: cal-r .4s var(--ease); }
@keyframes cal-l { from { opacity: 0; translate: 24px 0; } }
@keyframes cal-r { from { opacity: 0; translate: -24px 0; } }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { margin-top: 26px; }
.form__spinner { display: none; width: 22px; height: 22px; }
.form__spinner svg { width: 100%; height: 100%; }
.form.is-loading .form__submit { pointer-events: none; }
.form.is-loading .form__spinner { display: block; animation: spin .9s linear infinite; }
.form.is-loading .btn__arrow { display: none; }
.form__note { margin-top: 14px; font-size: .8rem; color: var(--muted); text-align: center; line-height: 1.5; }
.form__alert { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #FCEAE7; color: #8E2A24; font-weight: 600; font-size: .92rem; line-height: 1.5; }
.form__alert a { text-decoration: underline; font-weight: 800; }

.success { position: relative; text-align: center; padding: clamp(24px, 5vw, 56px) 8px; }
.success[hidden] { display: none; }
.success__check { width: 96px; height: 96px; margin: 0 auto 22px; overflow: visible; }
.success__check circle { fill: rgba(47, 179, 107, .12); stroke: #2FB36B; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s var(--ease) .1s forwards; transform-origin: center; rotate: -90deg; }
.success__check path { fill: none; stroke: #2FB36B; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s var(--ease) .7s forwards; }
.success h3 { font-family: var(--f-head); font-weight: 600; font-size: 1.6rem; }
.success p { color: var(--ink-2); line-height: 1.65; margin: 12px auto 28px; max-width: 40ch; }
.success__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.success > * { animation: fade-up .8s var(--ease) both; }
.success > h3 { animation-delay: .5s; }
.success > p { animation-delay: .6s; }
.success > .success__actions { animation-delay: .7s; }
.success > .success__check, .success > .success__burst { animation: none; }
@keyframes fade-up { from { opacity: 0; translate: 0 20px; } }
.success__burst { position: absolute; left: 50%; top: 92px; width: 0; height: 0; pointer-events: none; }
.burst-paw { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: var(--c); animation: burst 1.4s var(--ease) both; }
.burst-paw svg { width: 100%; height: 100%; }
@keyframes burst {
  0% { translate: 0 0; scale: .2; opacity: 1; }
  70% { opacity: 1; }
  100% { translate: var(--tx) var(--ty); scale: 1; rotate: var(--r); opacity: 0; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__help { margin-top: 34px; padding: 26px; border-radius: var(--r-lg); background: var(--sand); }
.faq__help p { line-height: 1.6; color: var(--ink-2); font-weight: 600; margin-bottom: 18px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-family: var(--f-head); font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.4;
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--forest-2); }
.qa__icon { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--sand); transition: background-color .35s, rotate .5s var(--ease); }
.qa__icon::before, .qa__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 15px; height: 2px; margin: -1px 0 0 -7.5px; border-radius: 2px; background: var(--forest); transition: rotate .45s var(--ease), background-color .35s; }
.qa__icon::after { rotate: 90deg; }
.qa summary:hover .qa__icon { rotate: 90deg; }
.qa[open] .qa__icon { background: var(--amber); }
.qa[open] .qa__icon::before, .qa[open] .qa__icon::after { background: #fff; }
.qa[open] .qa__icon::after { rotate: 0deg; }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 60px 26px 0; color: var(--ink-2); line-height: 1.75; }

/* =========================================================
   Футер
   ========================================================= */
.footer { position: relative; overflow: hidden; padding: 84px 0 28px; background: var(--forest-3); color: var(--cream); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 18px; max-width: 32ch; color: rgba(251, 245, 236, .65); line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { margin-bottom: 6px; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-2); }
.footer__col a, .footer__col span { color: rgba(251, 245, 236, .82); font-weight: 600; transition: color .3s; }
.footer__col a:hover { color: var(--amber-2); }
.footer__bottom { margin-top: 56px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: .85rem; color: rgba(251, 245, 236, .5); }

/* =========================================================
   Плаваючі кнопки
   ========================================================= */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; gap: 12px; opacity: 0; translate: 0 24px; pointer-events: none; transition: opacity .5s, translate .6s var(--ease); }
.fab.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.fab__btn { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 14px 30px -10px rgba(28, 42, 36, .45); transition: transform .45s var(--ease-back); }
.fab__btn:hover { transform: scale(1.1) rotate(-8deg); }
.fab__btn svg { width: 25px; height: 25px; position: relative; z-index: 1; }
.fab__btn--tg { background: #2AABEE; }
.fab__btn--phone { background: var(--amber); }
.fab__btn--phone::before, .fab__btn--phone::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--amber); animation: ring 2.4s ease-out infinite; }
.fab__btn--phone::after { animation-delay: 1.2s; }
.fab__btn--phone svg { animation: phone-shake 2.4s ease-in-out infinite; }
@keyframes ring { 0% { scale: 1; opacity: .55; } 100% { scale: 1.9; opacity: 0; } }
@keyframes phone-shake { 0%, 50%, 100% { rotate: 0; } 5%, 15%, 25% { rotate: -14deg; } 10%, 20% { rotate: 14deg; } }

.mobile-bar { display: none; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
  .header__phone { display: none; }
}

@media (max-width: 1020px) {
  .nav { display: none; }
  .burger { display: block; }
  .why__grid, .services__grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-auto-flow: dense; }
  .tile--pets, .tile--night { grid-column: span 6; }
  .tile--map, .tile--time { grid-column: span 12; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .section-head--split { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 28px); padding-bottom: 70px; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { width: min(84%, 420px); }
  .price { grid-template-columns: 1fr; }
  .price .btn { justify-self: start; }
  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; width: 100%; margin: 0 auto; }
  .booking__inner, .faq__inner { grid-template-columns: 1fr; }
  .booking__info, .faq__head { position: static; }

  /* кроки — вертикально */
  .steps__list { grid-template-columns: 1fr; gap: 26px; }
  .step { display: grid; grid-template-columns: 66px 1fr; gap: 20px; align-items: start; }
  .step:nth-child(even) { margin-top: 0; }
  .step__dot { margin-bottom: 0; }
}

@media (max-width: 760px) {
  .header__cta { display: none; }
  .fab { display: none; }
  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; padding: 8px; border-radius: 22px;
    background: rgba(255, 252, 247, .9);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px -12px rgba(28, 42, 36, .35), 0 0 0 1px var(--line);
    translate: 0 160%; transition: translate .6s var(--ease);
  }
  .mobile-bar.is-visible { translate: 0 0; }
  body.menu-open .mobile-bar { translate: 0 160%; }
  .mobile-bar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; border-radius: 15px; font-weight: 800; font-size: .95rem; background: var(--sand); color: var(--forest); }
  .mobile-bar__btn svg { width: 19px; height: 19px; }
  .mobile-bar__btn--primary { background: var(--forest); color: #fff; }
  .footer { padding-bottom: 100px; }
}

@media (max-width: 640px) {
  .header__inner { gap: 12px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__facts { gap: 16px 26px; }
  .hero__visual { width: min(88%, 380px); }
  .float-card { padding: 8px 14px 8px 8px; font-size: .82rem; border-radius: 16px; }
  .float-card__icon { width: 38px; height: 38px; border-radius: 12px; }
  .float-card--1 { left: -9%; top: 8%; }
  .float-card--2 { right: -9%; bottom: 16%; }
  .badge-rotate { width: 104px; height: 104px; left: -6%; bottom: -6%; }
  .badge-rotate__center { width: 40px; height: 40px; }
  .why__grid, .services__grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .tile--pets, .tile--night, .tile--map, .tile--time { grid-column: span 12; }
  .about__exp { right: -2%; padding: 14px 18px; }
  .about__exp b { font-size: 1.9rem; }
  .stats { gap: 10px; }
  .form__grid { grid-template-columns: 1fr; }
  .when__row.has-date { grid-template-columns: 1fr; }
  .qa__a p { padding-right: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .band { align-items: flex-end; padding-bottom: 56px; }
  .band__overlay { background: linear-gradient(0deg, rgba(20, 45, 37, .95) 0%, rgba(20, 45, 37, .7) 45%, rgba(20, 45, 37, .05) 80%); }
  .band__media img { object-position: 72% 30%; }
}

@media (max-width: 380px) {
  .lang__btn { width: 34px; }
  .lang__pill { width: 34px; }
  .lang[data-active="ru"] .lang__pill { transform: translateX(34px); }
  .choice__item { min-width: 0; }
}

/* Для тих, хто вимкнув анімації в системі */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .leaves, .car { display: none; }
}
