/* ==========================================================================
   Ветклиника «Ника». Стили сайта.
   Палитра: хвойный зелёный (как стены в самой клинике) + мятный фон + коралловый акцент.
   Скругления: карточки 28px, вложенные 20px, поля 14px, кнопки и чипы полностью круглые.
   Шрифты: Unbounded (заголовки), Onest (текст). Оба с кириллицей, лежат локально.
   ========================================================================== */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --bg: #f3f6f2;
  --bg-2: #e9f0ea;
  --surface: #fcfdfb;
  --surface-2: #e3ebe5;
  --line: #d2ddd6;
  --ink: #13231f;
  --ink-2: #4a5e57;
  --pine: #1d4d40;
  --pine-2: #2b6a57;
  --pine-deep: #102b24;
  --on-pine: #f1f7f3;
  --pine-text: #1d4d40;
  --mint: #d5eadf;
  --accent: #f2774f;
  --accent-2: #f58c69;
  --accent-soft: #fde4d9;
  --accent-text: #b5421d;
  --star: #f2a33a;
  --danger: #b42318;
  --ok: #1f8a5b;
  --field: #ffffff;
  --scrim: rgba(13, 30, 26, .45);

  --shadow-sm: 0 1px 2px rgba(16, 43, 36, .06), 0 4px 12px -6px rgba(16, 43, 36, .12);
  --shadow: 0 1px 2px rgba(16, 43, 36, .05), 0 18px 40px -18px rgba(16, 43, 36, .28);
  --ring: 0 0 0 3px rgba(242, 119, 79, .35);

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Onest", system-ui, sans-serif;

  --gutter: 16px;
  --container: 1280px;
  --hdr-h: 64px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1714; --bg-2: #101d19; --surface: #14221e; --surface-2: #1a2b26; --line: #283d36;
    --ink: #e7efea; --ink-2: #a8b9b2; --pine: #2a6654; --pine-2: #347a64; --pine-deep: #0a1a16;
    --pine-text: #9bd3bb; --mint: #1b362e; --accent: #ff8a63; --accent-2: #ff9d7c; --accent-soft: #3a2219;
    --accent-text: #ffa184; --field: #101c18; --scrim: rgba(0, 0, 0, .6);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1714; --bg-2: #101d19; --surface: #14221e; --surface-2: #1a2b26; --line: #283d36;
  --ink: #e7efea; --ink-2: #a8b9b2; --pine: #2a6654; --pine-2: #347a64; --pine-deep: #0a1a16;
  --pine-text: #9bd3bb; --mint: #1b362e; --accent: #ff8a63; --accent-2: #ff9d7c; --accent-soft: #3a2219;
  --accent-text: #ffa184; --field: #101c18; --scrim: rgba(0, 0, 0, .6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.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;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--pine); color: var(--on-pine); border-radius: 999px; transition: top .2s var(--ease-out);
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }

.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Типографика ---------- */
.h1, .h2, .h3, .hero__title {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.12;
  text-wrap: balance;
}
.h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); }
.h2 { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.5rem); }
.h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.25; }
.lead { font-size: clamp(1.02rem, .97rem + .25vw, 1.15rem); color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pine-text);
  padding: 6px 12px; border-radius: 999px; background: var(--mint);
}
.muted { color: var(--ink-2); }
.link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--pine-text);
  text-decoration: none;
}
.link .icon { transition: transform .25s var(--ease-out); }
@media (hover: hover) { .link:hover .icon { transform: translateX(3px); } }

.section { padding-block: clamp(72px, 9vw, 128px); }
.section__title { max-width: 22ch; margin-bottom: clamp(28px, 3.5vw, 48px); }
.section__title + .section__lead { margin-top: calc(-1 * clamp(28px, 3.5vw, 48px) + 16px); margin-bottom: clamp(32px, 4vw, 56px); }

/* ---------- Кнопки ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.1; white-space: nowrap;
  text-decoration: none;
  transition: transform .16s var(--ease-out), background-color .2s ease, box-shadow .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .94rem; }
.btn--lg { --h: 56px; padding: 0 26px; font-size: 1.04rem; }
.btn--accent { background: var(--accent); color: #1b0d07; box-shadow: 0 10px 24px -12px rgba(242, 119, 79, .8); }
.btn--pine { background: var(--pine); color: var(--on-pine); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (hover: hover) {
  .btn--accent:hover { background: var(--accent-2); }
  .btn--pine:hover { background: var(--pine-2); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
}
/* иконка-в-кнопке: стрелка живёт в собственном кружке */
.btn__icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-right: -12px; border-radius: 50%;
  background: rgba(27, 13, 7, .1);
  transition: transform .3s var(--ease-out);
}
.btn--lg .btn__icon { width: 40px; height: 40px; margin-right: -16px; }
@media (hover: hover) { .btn:hover .btn__icon { transform: translate(2px, -2px) scale(1.06); } }
.btn[aria-busy="true"] { pointer-events: none; opacity: .8; }
.btn[aria-busy="true"] .btn__icon .icon { animation: spin .8s linear infinite; }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--ink); transition: background-color .2s ease, transform .16s var(--ease-out);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn--lg { width: 52px; height: 52px; box-shadow: inset 0 0 0 1.5px var(--line); }
@media (hover: hover) { .icon-btn:hover { background: var(--surface-2); } }

.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: inline-block; }
[data-theme="dark"] .only-light { display: none; }

/* ---------- Шапка ---------- */
.hdr {
  position: fixed; inset: 10px 0 auto; z-index: 40;
  padding-inline: 10px;
  transition: transform .45s var(--ease-drawer);
  pointer-events: none;
}
.hdr.is-hidden { transform: translateY(calc(-100% - 16px)); }
.hdr__bar {
  pointer-events: auto;
  max-width: calc(var(--container) - 2 * 24px); margin-inline: auto;
  height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .hdr__bar, .dock { background: var(--surface); }
  .menu { background: var(--bg); }
  .plist__row:nth-child(even) { background: var(--bg-2); }
  .notice--ok, .form__status.is-ok { background: #dff3e8; }
  .notice--err, .form__status.is-err { background: #fbe3e1; }
  .tile__icon { background: rgba(255, 255, 255, .6); }
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 42px; height: 42px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.brand__sub { font-size: .74rem; color: var(--ink-2); }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: .96rem; color: var(--ink-2);
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover, .nav a.is-active { color: var(--ink); background: var(--surface-2); }
.hdr__actions { display: flex; align-items: center; gap: 6px; }
.hdr__phone {
  display: none; align-items: center; gap: 8px; padding: 0 12px; height: 42px;
  font-weight: 600; text-decoration: none; white-space: nowrap; border-radius: 999px;
}
.hdr__phone .icon { color: var(--pine-text); }
.hdr__cta { display: none; }

.burger { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--pine); }
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--on-pine);
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (min-width: 640px) { .hdr__cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: block; }
  .burger { display: none; }
  .hdr__bar { padding: 0 10px 0 16px; }
}
@media (min-width: 1240px) { .hdr__phone { display: inline-flex; } }

/* мобильное меню */
.menu {
  position: fixed; inset: 0; z-index: 35;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hdr-h) + 40px) 24px calc(24px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  overflow-y: auto;
}
.menu__list a {
  display: block; padding: 10px 0; text-decoration: none;
  font-family: var(--display); font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 500; letter-spacing: -.02em;
}
.menu__foot { display: grid; gap: 14px; color: var(--ink-2); padding-top: 32px; }
.menu__phone { font-size: 1.4rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.menu [data-menu-link], .menu__foot { opacity: 0; transform: translateY(24px); }
.menu.is-open [data-menu-link], .menu.is-open .menu__foot {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.menu.is-open li:nth-child(2) a { transition-delay: .04s; }
.menu.is-open li:nth-child(3) a { transition-delay: .08s; }
.menu.is-open li:nth-child(4) a { transition-delay: .12s; }
.menu.is-open li:nth-child(5) a { transition-delay: .16s; }
.menu.is-open li:nth-child(6) a { transition-delay: .2s; }
.menu.is-open .menu__foot { transition-delay: .24s; }

.socials { display: flex; gap: 8px; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink); transition: background-color .2s ease, color .2s ease;
}
.socials--lg a { width: 48px; height: 48px; }
@media (hover: hover) { .socials a:hover { background: var(--pine); color: var(--on-pine); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--hdr-h) + 40px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 90%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.1; }
.hero__title em { font-style: normal; color: var(--accent-text); }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__line > span { display: inline-block; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; padding: 24px 6% 40px; }
.hero__blob {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 4.4;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: var(--mint);
  box-shadow: var(--shadow);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__card {
  position: absolute; left: 0; bottom: 4%; width: 32%;
  padding: 6px; border-radius: 22px; background: var(--surface);
  box-shadow: var(--shadow); transform: rotate(-6deg);
}
.hero__card img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.hero__rating {
  position: absolute; right: 0; top: 10%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 14px; border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow); text-decoration: none;
  transform: rotate(3deg);
}
.hero__rating-num { font-family: var(--display); font-size: 1.8rem; font-weight: 600; line-height: 1; }
.hero__rating-meta { display: grid; gap: 2px; font-size: .78rem; color: var(--ink-2); }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .icon { width: 15px; height: 15px; }
.stars--lg .icon { width: 22px; height: 22px; }
.hero__status { position: absolute; left: 8%; top: 0; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: .88rem; font-weight: 500;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); flex: none; }
.status.is-open .status__dot { background: #22a565; box-shadow: 0 0 0 4px rgba(34, 165, 101, .18); }
.status.is-closed .status__dot { background: var(--accent); }

.paws { position: absolute; right: 2%; bottom: -2%; width: 46%; height: 30%; pointer-events: none; color: var(--pine-text); }
.paws__step { position: absolute; opacity: .22; }
.paws__step .icon { width: 26px; height: 26px; }
.paws__step:nth-child(1) { left: 0; bottom: 0; transform: rotate(60deg); }
.paws__step:nth-child(2) { left: 18%; bottom: 26%; transform: rotate(50deg); }
.paws__step:nth-child(3) { left: 40%; bottom: 14%; transform: rotate(64deg); }
.paws__step:nth-child(4) { left: 60%; bottom: 44%; transform: rotate(48deg); }
.paws__step:nth-child(5) { left: 82%; bottom: 34%; transform: rotate(58deg); }

.facts {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  margin-top: clamp(32px, 5vw, 64px);
}
.facts__item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .96rem; color: var(--ink-2);
}
.facts__item .icon { width: 28px; height: 28px; color: var(--pine-text); }
.facts__item b { color: var(--ink); font-weight: 700; }

@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--hdr-h) + 56px); }
  .hero__grid { grid-template-columns: 1.2fr .9fr; gap: 56px; min-height: min(calc(100dvh - var(--hdr-h) - 120px), 680px); }
  .hero__visual { padding: 32px 4% 48px 8%; }
  .facts { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Кого лечим ---------- */
.pets { padding-bottom: clamp(48px, 6vw, 80px); }
.pets__grid { display: grid; gap: 40px; align-items: center; }
.pets__media { position: relative; }
.pets__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--surface-2); }
.pets__photo img { width: 100%; height: 100%; object-fit: cover; }
.pets__sticker {
  position: absolute; right: -8px; top: -14px;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #1b0d07; box-shadow: var(--shadow); transform: rotate(-10deg);
}
.pets__sticker .icon { width: 28px; height: 28px; }
.pets__body { display: grid; gap: 18px; justify-items: start; }

.toggle {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 5px; border-radius: 999px; background: var(--surface-2);
  margin-top: 6px;
}
.toggle__btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; color: var(--ink-2);
  transition: color .3s ease;
}
.toggle__btn[aria-selected="true"] { color: var(--on-pine); }
.toggle__btn .icon { width: 22px; height: 22px; }
.toggle__thumb {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: var(--pine);
  transition: transform .45s var(--ease-drawer);
}
.toggle[data-active="dog"] .toggle__thumb { transform: translateX(100%); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.tag .icon { color: var(--pine-text); width: 20px; height: 20px; }
@media (hover: hover) { a.tag:hover { background: var(--mint); box-shadow: inset 0 0 0 1px transparent; } }
.pets__extra { margin-top: 14px; color: var(--ink-2); }
@media (min-width: 1024px) { .pets__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } }

/* ---------- Услуги: бенто ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; min-height: 220px;
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none;
  isolation: isolate;
  transition: transform .3s var(--ease-out);
}
.tile:active { transform: scale(.99); }
.tile__media { position: absolute; inset: 0; z-index: -2; }
.bento__cell--photo .tile { justify-content: flex-end; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.bento__cell--photo .tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 24, 20, .05) 20%, rgba(10, 24, 20, .55) 55%, rgba(10, 24, 20, .9) 100%);
}
.bento__cell--photo .tile { color: #f4f8f5; min-height: 260px; }
.bento__cell--mint .tile { background: var(--mint); }
.bento__cell--pine .tile { background: var(--pine); color: var(--on-pine); }
.bento__cell--coral .tile { background: var(--accent-soft); }
.tile__icon {
  margin: 22px 22px auto;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.bento__cell--pine .tile__icon { background: rgba(255, 255, 255, .12); }
.tile__icon .icon { width: 30px; height: 30px; }
.tile__body { display: grid; gap: 6px; padding: 22px; }
.tile__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); letter-spacing: -.01em; }
.tile__text { font-size: .95rem; opacity: .86; max-width: 42ch; }
.tile__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.tile__price { font-weight: 700; font-size: 1rem; }
.tile__go {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); transition: transform .35s var(--ease-out), background-color .2s ease;
}
.bento__cell--mint .tile__go, .bento__cell--coral .tile__go { background: rgba(19, 35, 31, .08); }
@media (hover: hover) {
  .tile:hover .tile__media img { transform: scale(1.05); }
  .tile:hover .tile__go { transform: translate(2px, -2px) scale(1.08); background: var(--accent); color: #1b0d07; }
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-a, .b-g { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    grid-template-areas:
      "a a a a b b"
      "a a a a b b"
      "c c d d b b"
      "e e f f f f"
      "g g g g h h"
      "g g g g i i";
  }
  .b-a { grid-area: a; } .b-b { grid-area: b; } .b-c { grid-area: c; } .b-d { grid-area: d; }
  .b-e { grid-area: e; } .b-f { grid-area: f; } .b-g { grid-area: g; } .b-h { grid-area: h; } .b-i { grid-area: i; }
  .bento .tile { min-height: 0; }
  .b-a .tile__body, .b-g .tile__body { padding: 32px; }
  .b-c .tile__text, .b-e .tile__text, .b-h .tile__text, .b-d .tile__text, .b-i .tile__text { display: none; }
  .b-f .tile { justify-content: flex-end; }
  .b-f .tile__icon { position: absolute; top: 22px; right: 22px; margin: 0; }
  .b-f .tile__body { padding-right: 120px; }
  .b-a .tile__title, .b-g .tile__title { font-size: 1.9rem; }
}

/* ---------- Прайс ---------- */
.prices { background: var(--bg-2); }
.prices__head { display: grid; gap: 20px; margin-bottom: 24px; }
.search { position: relative; max-width: 460px; width: 100%; }
.search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.search input {
  width: 100%; height: 52px; padding: 0 18px 0 50px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--field);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.search input::placeholder { color: var(--ink-2); opacity: .85; }

.tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-inline: -2px;
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn {
  scroll-snap-align: start; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 999px; font-weight: 500; white-space: nowrap;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tabs__btn .icon { width: 20px; height: 20px; }
.tabs__btn[aria-selected="true"] { background: var(--pine); color: var(--on-pine); box-shadow: none; }
.prices.is-searching .tabs { opacity: .45; }

.prices__panel {
  margin-top: 8px; padding: clamp(20px, 3vw, 40px);
  border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm);
}
.prices.is-searching .prices__panel { margin-top: 16px; }
.prices__panel-title { font-family: var(--display); font-weight: 500; font-size: 1.3rem; margin-bottom: 20px; }
.prices__panel-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
}
.prices__empty { padding: 32px; text-align: center; color: var(--ink-2); }
.prices__empty a { color: var(--accent-text); font-weight: 600; }
.prices__disclaimer { margin-top: 18px; font-size: .86rem; color: var(--ink-2); }

.plist { display: grid; gap: 28px; }
.plist__title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pine-text); margin-bottom: 8px; }
.plist__row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 12px; margin-inline: -12px; border-radius: 12px;
}
.plist__row:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.plist__name { flex: 1 1 auto; min-width: 0; }
.plist__name small { display: block; color: var(--ink-2); font-size: .85rem; margin-top: 2px; }
.plist__name sup { color: var(--accent-text); }
.plist__price { flex: none; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plist__note { font-size: .88rem; color: var(--ink-2); padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); }
.plist__row mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
@media (min-width: 900px) {
  .plist { display: block; columns: 2; column-gap: 56px; }
  .plist__group { margin-bottom: 28px; }
  .plist__title { break-after: avoid; }
  .plist__row { break-inside: avoid; }
  .plist__note { column-span: all; }
  .prices__head { grid-template-columns: 1fr auto; align-items: end; }
  .search { width: 420px; }
}

/* ---------- Забота: горизонтальная лента ---------- */
.care { background: var(--pine-deep); color: #e7f1ec; padding-block: clamp(72px, 9vw, 120px); overflow: hidden; }
.care .eyebrow { background: rgba(255, 255, 255, .1); color: #bfe3d2; }
.care .lead { color: #b9cdc5; }
.care__track {
  display: flex; gap: 18px; padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scroll-padding-inline: var(--gutter);
}
@media (min-width: 1024px) {
  .care__track { padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
}
.care__intro .eyebrow { justify-self: start; }
.care__track::-webkit-scrollbar { display: none; }
.care__intro { flex: none; width: min(84vw, 420px); display: grid; gap: 18px; align-content: center; scroll-snap-align: start; }
.care__hint { display: flex; gap: 6px; color: var(--accent); }
.care__hint .icon { width: 26px; height: 26px; }
.care__card {
  flex: none; width: min(80vw, 400px); scroll-snap-align: start;
  border-radius: var(--r-lg); overflow: hidden;
  background: #17362e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  display: flex; flex-direction: column;
}
.care__media { aspect-ratio: 4 / 3; overflow: hidden; }
.care__media img { width: 100%; height: 100%; object-fit: cover; }
.care__body { display: grid; gap: 10px; padding: 24px; }
.care__body p { color: #b9cdc5; }
.care__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--accent); color: #1b0d07;
}
@media (min-width: 1024px) {
  .care.is-pinned .care__track { overflow: visible; scroll-snap-type: none; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
  .care.is-pinned .care__pin { min-height: 100dvh; display: flex; align-items: center; }
  .care__card { width: 420px; }
  .care__intro { width: 440px; margin-right: 24px; }
}

/* ---------- Команда ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
.person { display: grid; gap: 12px; align-content: start; }
.person__photo { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface-2); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.person__name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.person__role { color: var(--accent-text); font-weight: 600; font-size: .9rem; margin-top: 2px; }
.person__skills { color: var(--ink-2); font-size: .88rem; margin-top: 4px; }
@media (hover: hover) { .person:hover .person__photo img { transform: scale(1.04); } }
@media (min-width: 768px) { .people { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; } }
@media (min-width: 1024px) {
  .people { grid-template-columns: repeat(5, 1fr); }
}

.pets-staff {
  display: grid; gap: 20px; margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--mint);
}
.pets-staff__text { display: grid; gap: 10px; align-content: center; }
.pets-staff__text p { color: var(--ink-2); }
.pets-staff__card {
  padding: 8px 8px 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow);
}
.pets-staff__card img { border-radius: 16px; aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.pets-staff__card figcaption { display: grid; gap: 2px; padding: 14px 8px 0; }
.pets-staff__card b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.pets-staff__card span { color: var(--accent-text); font-weight: 600; font-size: .9rem; }
.pets-staff__card small { color: var(--ink-2); font-size: .86rem; }
@media (min-width: 768px) {
  .pets-staff { grid-template-columns: 1fr 1fr 1fr; align-items: center; }
  .pets-staff__card:nth-of-type(1) { transform: rotate(-2.5deg); }
  .pets-staff__card:nth-of-type(2) { transform: rotate(2deg) translateY(16px); }
}

.certs { margin-top: clamp(64px, 8vw, 104px); }
.certs__head { display: grid; gap: 8px; margin-bottom: 24px; }
.certs__head p { color: var(--ink-2); max-width: 60ch; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 140s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.cert { display: block; width: 220px; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-out); }
.cert img { width: 100%; height: 158px; object-fit: cover; }
@media (hover: hover) { .cert:hover { transform: translateY(-4px); } }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- Акции ---------- */
.offers { background: var(--bg-2); }
.tickets { display: grid; gap: 16px; }
.ticket {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: stretch;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden;
}
.ticket__big {
  display: grid; place-items: center; width: 132px; padding: 20px 12px;
  background: var(--accent); color: #1b0d07;
  font-family: var(--display); font-weight: 600; font-size: 1.35rem; text-align: center; line-height: 1.1;
}
.ticket__cut { position: absolute; left: 132px; top: 0; bottom: 0; width: 0; border-left: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); }
.ticket__cut::before, .ticket__cut::after {
  content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2);
}
.ticket__cut::before { top: -11px; }
.ticket__cut::after { bottom: -11px; }
.ticket__body { padding: 22px 22px 22px 26px; display: grid; gap: 6px; align-content: center; }
.ticket__icon { color: var(--pine-text); }
.ticket__icon .icon { width: 24px; height: 24px; }
.ticket__title { font-weight: 700; font-size: 1.08rem; }
.ticket__body p { color: var(--ink-2); font-size: .95rem; }
@media (min-width: 1024px) { .tickets { grid-template-columns: repeat(3, 1fr); } }

.visit {
  display: grid; margin-top: clamp(40px, 5vw, 64px);
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm);
}
.visit__media { aspect-ratio: 16 / 10; }
.visit__media img { width: 100%; height: 100%; object-fit: cover; }
.visit__body { display: grid; gap: 16px; padding: clamp(24px, 4vw, 48px); justify-items: start; align-content: center; }
.visit__body > p { color: var(--ink-2); max-width: 52ch; }
.visit__prices { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__prices div { padding: 12px 16px; border-radius: 16px; background: var(--mint); }
.visit__prices dt { font-size: .85rem; color: var(--ink-2); }
.visit__prices dd { font-weight: 700; font-size: 1.15rem; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1.1fr; } .visit__media { aspect-ratio: auto; min-height: 100%; } }

/* ---------- Отзывы ---------- */
.reviews__grid { display: grid; gap: 32px; }
.reviews__summary { display: grid; gap: 20px; align-content: start; justify-items: start; }
.score { display: flex; align-items: center; gap: 18px; }
.score__num { font-family: var(--display); font-weight: 600; font-size: clamp(3.4rem, 2.6rem + 3vw, 5rem); line-height: 1; letter-spacing: -.03em; }
.score__meta { color: var(--ink-2); margin-top: 4px; }
.reviews__links { display: flex; flex-wrap: wrap; gap: 10px; }
.reviews__note { font-size: .84rem; color: var(--ink-2); max-width: 40ch; }

.carousel { min-width: 0; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  padding: 4px 2px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 0; }
.carousel__nav { display: flex; gap: 10px; margin-top: 10px; }
.carousel__nav button:disabled { opacity: .35; cursor: default; }

.review {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm);
}
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--mint); color: var(--pine-text); font-weight: 700; font-size: 1.1rem; flex: none;
}
.review__author { font-weight: 700; }
.review__meta { font-size: .84rem; color: var(--ink-2); }
.review__rate { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review__tag { font-size: .8rem; font-weight: 600; color: var(--pine-text); background: var(--mint); padding: 4px 10px; border-radius: 999px; }
.review__text { font-size: .98rem; line-height: 1.6; }
.review__text[data-clamp] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
.review__text.is-open { display: block; -webkit-line-clamp: unset; }
.review__more { align-self: flex-start; font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) { .reviews__grid { grid-template-columns: .75fr 1.25fr; gap: 56px; align-items: start; } }

.ywidget { margin-top: 32px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.ywidget__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 24px; cursor: pointer; font-weight: 600; list-style: none;
}
.ywidget__summary::-webkit-details-marker { display: none; }
.ywidget__summary span { display: inline-flex; align-items: center; gap: 10px; }
.ywidget__summary > .icon { transition: transform .3s var(--ease-out); }
.ywidget[open] .ywidget__summary > .icon { transform: rotate(180deg); }
.ywidget__frame { height: 640px; padding: 0 12px 12px; }
.ywidget__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 16px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 32px; }
.faq__aside { display: grid; gap: 16px; align-content: start; }
.faq__photo { display: none; border-radius: var(--r-lg); overflow: hidden; margin-top: 12px; }
.faq__photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.accordion { display: grid; gap: 10px; }
.acc { border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease; }
.acc[open] { box-shadow: var(--shadow-sm); }
.acc__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; font-weight: 600; font-size: 1.04rem; list-style: none;
}
.acc__q::-webkit-details-marker { display: none; }
.acc__icon { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--surface-2); }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out);
}
.acc__icon::after { transform: rotate(90deg); }
.acc[open] .acc__icon { background: var(--accent); }
.acc[open] .acc__icon::after { transform: rotate(0deg); }
.acc__a { padding: 0 22px 22px; color: var(--ink-2); max-width: 70ch; }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .faq__aside { position: sticky; top: 110px; }
  .faq__photo { display: block; }
}

/* ---------- Контакты и форма ---------- */
.contacts__grid { display: grid; gap: 20px; }
.booking {
  padding: clamp(22px, 4vw, 44px); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.booking > .lead { margin: 10px 0 24px; }
.info {
  display: grid; gap: 18px; align-content: start;
  padding: clamp(22px, 4vw, 40px); border-radius: var(--r-lg); background: var(--mint);
}
.info__phone { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); text-decoration: none; letter-spacing: -.01em; }
.info__list { display: grid; gap: 14px; }
.info__list li { display: flex; gap: 12px; align-items: flex-start; }
.info__list .icon { color: var(--pine-text); margin-top: 2px; }
.info__list small { color: var(--ink-2); }
.info__routes { display: flex; flex-wrap: wrap; gap: 8px; }
.info .btn--ghost { background: var(--surface); box-shadow: none; }
.info .status { justify-self: start; }
.boss { display: grid; gap: 10px; justify-items: start; margin-top: 8px; padding: 20px; border-radius: var(--r-md); background: var(--surface); }
.boss__title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 700; }
.boss__title .icon { color: var(--pine-text); }
.boss p { color: var(--ink-2); font-size: .94rem; }
.boss a { color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (min-width: 1024px) { .contacts__grid { grid-template-columns: 1.2fr .8fr; gap: 24px; } }

.map { position: relative; margin-top: 20px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 5; }
.map iframe { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; color: var(--ink-2); }
.map__placeholder > .icon { width: 40px; height: 40px; color: var(--accent); }
.map.is-loaded [data-map-load] { display: none; }
@media (min-width: 768px) { .map { aspect-ratio: 21 / 9; } }

.notice { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; font-weight: 500; }
.notice--ok { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.notice--err { background: color-mix(in srgb, var(--danger) 12%, transparent); }

.form { display: grid; gap: 18px; }
.form__grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: .94rem; padding: 0; }
.opt { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--field);
  font-size: 1rem; /* 16px, чтобы iOS не зумил поле */
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: .7; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: .86rem; min-height: 0; }
.field__err:empty { display: none; }
[data-theme="dark"] .field__err { color: #ff8f86; }
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select .icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px;
  background: var(--field); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.chip input:checked + span { background: var(--pine); color: var(--on-pine); box-shadow: none; }
.chip input:focus-visible + span { box-shadow: var(--ring); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 18px; background: var(--surface-2); }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 10px;
  border-radius: 14px; font-weight: 600; font-size: .95rem; color: var(--ink-2); text-align: center;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.seg__opt input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg__opt input:focus-visible + span { box-shadow: var(--ring); }

.check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .92rem; color: var(--ink-2); }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check__box {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 7px;
  border: 1.5px solid var(--line); background: var(--field); color: transparent; margin-top: 1px;
  transition: background-color .2s ease, border-color .2s ease;
}
.check__box .icon { width: 16px; height: 16px; }
.check input:checked + .check__box { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.check input:focus-visible + .check__box { box-shadow: var(--ring); }
.check a { color: var(--ink); }
.check.is-invalid .check__box { border-color: var(--danger); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__hint { font-size: .86rem; color: var(--ink-2); }
.form__status:empty { display: none; }
.form__status { padding: 14px 16px; border-radius: 14px; font-weight: 500; }
.form__status.is-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.form__status.is-err { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.form.is-sent > :not(.form__status) { display: none; }
.form.is-sent .form__status { padding: 28px; font-size: 1.05rem; text-align: center; }

/* ---------- Подвал ---------- */
.ftr { background: var(--surface-2); padding-top: clamp(56px, 7vw, 88px); padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.ftr__grid { display: grid; gap: 36px; }
.ftr__brand { display: grid; gap: 16px; align-content: start; }
.ftr__brand p { color: var(--ink-2); max-width: 40ch; }
.ftr__title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.ftr__col ul { display: grid; gap: 8px; }
.ftr__col a { text-decoration: none; }
.ftr__col a:hover { text-decoration: underline; }
.ftr__col { display: grid; gap: 10px; align-content: start; }
.ftr__col p { color: var(--ink-2); }
.ftr__phone { font-weight: 700; font-size: 1.25rem; }
.ftr__bottom {
  position: relative; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 24px;
  font-size: .86rem; color: var(--ink-2);
}
.ftr__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.ftr .socials a { background: var(--surface); }
.madeby {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  color: var(--ink-2); text-decoration: none; font-weight: 500;
  transition: color .2s ease;
}
.madeby__heart { display: inline-grid; color: var(--accent); animation: heartbeat 1.4s ease-in-out infinite; transform-origin: center; }
.madeby__heart .icon { width: 16px; height: 16px; }
@media (hover: hover) {
  .madeby:hover { color: var(--ink); }
  .madeby:hover .madeby__heart { animation-duration: .7s; }
}
@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  28% { transform: scale(1.08); }
}
@media (max-width: 767px) { .madeby { margin-left: 0; } }
.ftr__bottom a { color: var(--ink-2); }
@media (min-width: 768px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } .ftr { padding-bottom: 40px; } }

/* мобильная панель действий */
.dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  transition: transform .45s var(--ease-drawer), opacity .3s ease;
}
.dock.is-hidden { transform: translateY(140%); opacity: 0; }
.dock__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px;
  font-weight: 600; text-decoration: none; background: var(--surface-2);
}
.dock__btn:active { transform: scale(.97); }
.dock__btn--accent { background: var(--accent); color: #1b0d07; }
@media (min-width: 768px) { .dock { display: none; } }

/* ---------- Диалоги ---------- */
.dialog {
  width: 100%; max-width: 640px; max-height: none; height: auto; margin: auto auto 0; padding: 0; border: 0;
  background: transparent; color: var(--ink); overflow: visible;
}
.dialog::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog__panel {
  position: relative; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0; background: var(--surface); box-shadow: var(--shadow);
}
.dialog[open] .dialog__panel { animation: sheet-in .45s var(--ease-drawer); }
.dialog[open]::backdrop { animation: fade-in .3s ease; }
.dialog__close { position: absolute; top: 14px; right: 14px; background: var(--surface-2); }
.dialog .h3 { padding-right: 48px; }
.dialog__lead { color: var(--ink-2); margin: 10px 0 22px; font-size: .95rem; }
.dialog__lead a { color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (min-width: 640px) {
  .dialog { margin: auto; padding: 16px; }
  .dialog__panel { border-radius: var(--r-lg); padding: 36px; max-height: calc(100dvh - 32px); }
  .dialog[open] .dialog__panel { animation: pop-in .35s var(--ease-out); }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
html.is-locked { overflow: hidden; }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(5, 12, 10, .88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(100%, 1400px); max-height: calc(100dvh - 48px); width: auto; height: auto; border-radius: 12px; animation: pop-in .3s var(--ease-out); }
.lightbox__close { position: fixed; top: 16px; right: 16px; background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Страница услуги ---------- */
.svc-hero { padding-top: calc(var(--hdr-h) + 40px); padding-bottom: clamp(40px, 5vw, 72px); }
.svc-hero__grid { display: grid; gap: 32px; align-items: center; }
.svc-hero__copy { display: grid; gap: 18px; justify-items: start; }
.svc-hero__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.svc-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (min-width: 1024px) { .svc-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }

.svc-prices { background: var(--bg-2); }
.svc-prices__grid { display: grid; gap: 24px; }
.svc-prices__list { padding: clamp(20px, 3vw, 40px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
@media (min-width: 1024px) { .svc-prices__grid { grid-template-columns: .55fr 1.45fr; gap: 48px; align-items: start; } }

.mini-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mini-tile {
  display: grid; gap: 10px; padding: 20px; border-radius: var(--r-md); text-decoration: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); height: 100%;
  transition: transform .3s var(--ease-out), box-shadow .2s ease;
}
.mini-tile__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mint); color: var(--pine-text); }
.mini-tile__title { font-weight: 700; }
.mini-tile__price { color: var(--ink-2); font-size: .92rem; }
@media (hover: hover) { .mini-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }

/* ---------- Текстовые страницы и 404 ---------- */
.text-page { padding-top: calc(var(--hdr-h) + 56px); padding-bottom: 80px; }
.prose { max-width: 760px; display: grid; gap: 14px; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; margin-top: 18px; }
.prose p { color: var(--ink-2); }
.prose a { color: var(--accent-text); }
.notfound { min-height: 80dvh; display: grid; place-items: center; padding-top: calc(var(--hdr-h) + 40px); padding-bottom: 80px; }
.notfound__inner { display: grid; gap: 18px; justify-items: center; text-align: center; }
.notfound__paw { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--mint); color: var(--pine-text); }
.notfound__paw .icon { width: 48px; height: 48px; }

/* ---------- Анимации появления (ставятся только при JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js .is-revealed[data-reveal] { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
}

/* ---------- Печать прайса ---------- */
@media print {
  .hdr, .dock, .menu, .hero__visual, .care, .certs, .map, .ftr, .dialog, .tabs, .search { display: none !important; }
  .prices__panel[hidden] { display: block !important; }
  body { background: #fff; color: #000; }
}
