/* ==========================================================================
   Моя Клініка — myclinic.kiev.ua
   Дизайн: м’який пастельний hero, скляна навігація, pill-кнопки, великі гротески
   ========================================================================== */
:root {
  --ink: #0e1014;
  --ink-2: #2b2f36;
  --muted: #666b74;
  --line: #e7e4e1;
  --soft: #f4f2ef;
  --soft-2: #ece8e4;
  --card: #fff;
  --bg: #fff;
  --blue: #2c4a78;
  --teal: #6f9f9d;
  --peach: #e9b7a4;
  --lilac: #cdb3cc;
  --red: #e4464e;
  --ok: #2f7d5b;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --f-d: "Inter Tight", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-t: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(14, 16, 20, .04), 0 8px 24px rgba(14, 16, 20, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--f-t); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-d); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.muted { color: var(--muted); }
.i { flex: none; }

/* ---------- кнопки ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 13px/1 var(--f-t); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 12px; }
.btn--lg { --h: 54px; padding: 0 26px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #22262d; box-shadow: 0 8px 24px rgba(14, 16, 20, .22); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { box-shadow: 0 8px 24px rgba(14, 16, 20, .12); }
.btn--light { background: var(--soft); color: var(--ink); }
.btn--light:hover { background: var(--soft-2); }
.btn--outline { border-color: rgba(14, 16, 20, .16); background: transparent; }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--soft); font-size: 12.5px; font-weight: 500; text-decoration: none; line-height: 1.2;
}
.chip--btn { border: 1px solid transparent; }
.chip--btn.is-on { background: var(--ink); color: #fff; }

/* ---------- навігація ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 600 17px/1 var(--f-d); letter-spacing: -.01em; }
.logo--light { color: #fff; }
.nav { position: fixed; z-index: 50; top: 12px; left: 0; right: 0; padding-inline: calc(var(--gut) + 6px); pointer-events: none; }
.nav__bar {
  pointer-events: auto; max-width: calc(var(--max) + 24px); margin-inline: auto;
  display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 8px 0 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 1px 0 rgba(14, 16, 20, .03), 0 10px 30px rgba(14, 16, 20, .06);
  transition: background-color .3s, box-shadow .3s;
}
@media (min-width: 900px) {
  .nav__bar { -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
  .nav--over:not(.is-scrolled) .nav__bar { background: rgba(255, 255, 255, .34); box-shadow: none; }
}
.nav.is-scrolled .nav__bar { background: rgba(255, 255, 255, .92); }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; text-decoration: none; transition: background-color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { background: rgba(14, 16, 20, .06); }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__tel { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 10px; white-space: nowrap; }
.nav__lang { font-size: 12px; font-weight: 600; text-decoration: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(14, 16, 20, .12); }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; place-items: center; }
@media (max-width: 1120px) { .nav__tel span { display: none; } }
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }
  .nav__end { margin-left: auto; }
  .nav__tel { width: 44px; height: 44px; border-radius: 50%; justify-content: center; background: rgba(14, 16, 20, .06); padding: 0; }
}
@media (max-width: 420px) { .nav__lang { display: none; } .logo span { font-size: 15px; } }

.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(14, 16, 20, .35); }
.drawer__panel {
  position: absolute; inset: 8px 8px 8px auto; width: min(420px, calc(100% - 16px)); background: #fff; border-radius: 24px;
  display: flex; flex-direction: column; padding: 16px; animation: slidein .45s var(--ease);
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 12px; }
.drawer__nav { display: flex; flex-direction: column; overflow-y: auto; flex: 1; }
.drawer__nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 8px; border-bottom: 1px solid var(--line); font: 500 20px/1.2 var(--f-d); letter-spacing: -.02em; text-decoration: none; }
.drawer__foot { display: grid; gap: 8px; padding-top: 16px; }
.drawer__lang { text-align: center; font-size: 14px; color: var(--muted); padding: 8px; }

/* ---------- HERO (головна) ---------- */
.hero {
  position: relative; margin: 10px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  min-height: min(calc(100svh - 20px), 920px); background: #e9dfda; color: #fff;
}
.hero__media, .hero__wash, .hero__grain { position: absolute; inset: 0; }
.hero__media { left: 24%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%; }
.hero__wash {
  background:
    radial-gradient(52% 70% at 8% 38%, rgba(98, 150, 150, .95), rgba(98, 150, 150, 0) 70%),
    radial-gradient(46% 55% at 18% 100%, rgba(226, 160, 142, .9), rgba(226, 160, 142, 0) 70%),
    radial-gradient(38% 50% at 100% 100%, rgba(196, 158, 196, .7), rgba(196, 158, 196, 0) 70%),
    radial-gradient(30% 40% at 100% 0%, rgba(214, 190, 205, .55), rgba(214, 190, 205, 0) 70%),
    linear-gradient(90deg, rgba(150, 168, 168, 1) 0%, rgba(168, 176, 176, .96) 22%, rgba(196, 186, 184, .55) 40%, rgba(220, 205, 200, 0) 60%);
}
.hero__grain { opacity: .18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__in {
  position: relative; min-height: inherit; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto;
  gap: 32px; padding-top: 150px; padding-bottom: 32px;
}
.hero__main { align-self: start; }
.hero__h1 { font-weight: 500; text-transform: uppercase; letter-spacing: -.05em; line-height: .9; font-size: clamp(42px, 6.2vw, 92px); text-shadow: 0 2px 40px rgba(40, 60, 70, .12); }
.hero__eyebrow { display: block; font: 500 13px/1.3 var(--f-t); letter-spacing: .02em; margin-bottom: 18px; text-shadow: none; opacity: .95; }
.hero__line { display: block; white-space: nowrap; }
.hero__avatars { display: inline-flex; vertical-align: -.04em; margin-right: .1em; }
.hero__avatars img { width: .78em; height: .78em; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: .045em solid rgba(255, 255, 255, .92); box-shadow: 0 8px 22px rgba(30, 45, 55, .18); background: #fff; }
.hero__avatars img + img { margin-left: -.24em; }
.hero__chip { display: inline-block; height: .74em; width: 1.18em; object-fit: cover; border-radius: .12em; vertical-align: -.02em; margin-right: .08em; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero__stats { list-style: none; display: grid; gap: 26px; align-self: start; text-align: right; padding-top: 4px; }
.hero__stats li { display: grid; gap: 2px; }
.hero__stats b { font: 500 clamp(28px, 3vw, 42px)/1 var(--f-d); letter-spacing: -.04em; }
.hero__stats span { font-size: 12.5px; opacity: .92; max-width: 190px; margin-left: auto; line-height: 1.35; }
.hero__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.hero__text { max-width: 470px; font-size: 15px; line-height: 1.5; text-shadow: 0 1px 12px rgba(40, 50, 60, .18); }
.hero__scroll { display: grid; place-items: center; width: 76px; height: 40px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .7); color: #fff; }
.hero__scroll .i { animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
@media (max-width: 760px) {
  .hero { margin: 6px; border-radius: 24px; min-height: auto; background: linear-gradient(180deg, #9eaaab 0, #9eaaab 470px, #ae9d9e 78%, #a28fa3 100%); }
  .hero__media { left: 0; bottom: auto; height: 470px; }
  .hero__media img { object-position: 50% 12%; }
  .hero__wash {
    background:
      linear-gradient(180deg, rgba(143, 176, 175, .25) 0%, rgba(143, 176, 175, 0) 22%, rgba(150, 172, 172, 0) 48%, rgba(152, 170, 171, .92) 380px, #9eaaab 470px, rgba(158, 170, 171, 0) 700px),
      radial-gradient(80% 30% at 0% 100%, rgba(226, 160, 142, .55), transparent 70%);
  }
  .hero__in { grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 88px; padding-bottom: 20px; gap: 22px; }
  .hero__main { padding-top: 250px; }
  .hero__h1 { font-size: clamp(38px, 11.4vw, 56px); text-shadow: 0 2px 24px rgba(30, 45, 55, .25); }
  .hero__avatars img:nth-child(3) { display: none; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; gap: 14px 12px; }
  .hero__stats span { margin-left: 0; }
  .hero__btns .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
}

/* ---------- секції ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec--tight { padding-block: clamp(32px, 5vw, 56px); }
.sec--soft { background: var(--soft); border-radius: var(--r-xl); margin-inline: 10px; }
@media (max-width: 760px) { .sec--soft { margin-inline: 6px; border-radius: 24px; } }
.h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 500; letter-spacing: -.035em; line-height: 1.04; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.025em; }
.sec__more { margin-top: 28px; }
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.rail-head .h2 { max-width: 620px; }
.rail-head__t { max-width: 520px; margin-top: 16px; color: var(--muted); font-size: 15px; }
.rail-head__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.arrows { display: flex; gap: 10px; flex: none; }
.arrow {
  width: 68px; height: 104px; border-radius: 999px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center;
  transition: border-color .2s, transform .3s var(--ease);
}
.arrow:hover { border-color: var(--ink); }
.arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 760px) {
  .rail-head { flex-direction: column; align-items: flex-start; }
  .arrows { display: none; }
}

/* горизонтальні стрічки */
.rail {
  --pad: max(var(--gut), calc((100vw - var(--max)) / 2));
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--pad); scroll-padding-inline: var(--pad); padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* картки «чому ми» */
.wcard { position: relative; width: clamp(250px, 22vw, 300px); aspect-ratio: 5 / 8; border-radius: 18px; overflow: hidden; background: var(--soft); }
.wcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.wcard:hover img { transform: scale(1.04); }
.wcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(32, 60, 104, .96) 0%, rgba(58, 92, 142, .72) 24%, rgba(96, 130, 180, 0) 50%); }
.wcard__txt { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; color: #fff; }
.wcard h3 { font-size: 19px; margin-bottom: 6px; }
.wcard p { font-size: 13.5px; line-height: 1.4; opacity: .88; }

/* плитки напрямів */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; align-content: center;
  min-height: 88px; padding: 12px 40px 12px 12px; border-radius: 18px; background: var(--soft); text-decoration: none;
  transition: background-color .25s, transform .35s var(--ease);
}
.tile:hover { background: var(--soft-2); transform: translateY(-2px); }
.tile__ic { grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--ink); box-shadow: 0 1px 2px rgba(14, 16, 20, .04); }
.tile__ic .i { color: var(--blue); }
.tile__t { font: 500 16.5px/1.2 var(--f-d); letter-spacing: -.01em; }
.tile__p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.tile__go { position: absolute; right: 14px; top: 14px; opacity: 0; transition: opacity .2s; }
.tile:hover .tile__go { opacity: 1; }
.tile--all { grid-template-columns: 1fr; background: var(--ink); color: #fff; padding-left: 22px; }
.tile--all:hover { background: #22262d; }
.tile--all .tile__p { color: rgba(255, 255, 255, .65); }
.tile--all .tile__go { opacity: 1; top: auto; bottom: 16px; }
@media (max-width: 1080px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tile { grid-template-columns: 1fr; padding: 12px; min-height: 0; } .tile__ic { grid-row: auto; width: 48px; height: 48px; margin-bottom: 10px; } .tile__go { display: none; } .tile__t { font-size: 15px; } }

/* картки лікарів */
.dcard { width: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.rail--docs .dcard { width: clamp(260px, 24vw, 292px); }
.dcard__img { display: block; aspect-ratio: 1; background: linear-gradient(160deg, #eef1f3, #e7e0dc); overflow: hidden; }
.dcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dcard:hover .dcard__img img { transform: scale(1.03); }
.dcard__ph { display: grid; place-items: center; width: 100%; height: 100%; font: 500 56px/1 var(--f-d); color: var(--muted); }
.dcard__body { padding: 16px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dcard__body .chip { align-self: flex-start; }
.dcard__name { font-size: 19px; }
.dcard__name a { text-decoration: none; }
.dcard__name a:hover { text-decoration: underline; }
.dcard__pos { font-size: 13.5px; color: var(--muted); line-height: 1.45; flex: 1; }
.dcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.dcard__price { font-size: 13px; font-weight: 500; }
.doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.doc-grid > div { display: flex; }
@media (max-width: 1080px) { .doc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .doc-grid .dcard__foot { flex-direction: column; align-items: stretch; } .doc-grid .dcard__name { font-size: 16px; } }
@media (max-width: 400px) { .doc-grid { grid-template-columns: 1fr; } }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* популярні ціни */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split__aside { display: grid; gap: 18px; justify-items: start; position: sticky; top: 100px; }
.plist { display: grid; }
.plist__row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease); }
.plist__row:first-child { border-top: 1px solid var(--line); }
.plist__row:hover { padding-left: 12px; }
.plist__row b { font: 500 18px/1 var(--f-d); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__aside { position: static; } }

/* акції */
.promos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.promo { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.promo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.promo__b { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.promo h3, .promo .h3 { font-size: 20px; }
.promo p { font-size: 14px; color: var(--muted); }
.promo__price { margin-top: auto; color: var(--ink) !important; }
.promo__price b { font: 500 26px/1 var(--f-d); letter-spacing: -.02em; }
.promo__price s { color: var(--muted); margin-left: 6px; }
.promos--page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 32px; }
.promos--page .promo { flex-direction: row; }
.promos--page .promo img { width: 42%; aspect-ratio: auto; }
.promo__c { font-size: 14.5px; color: var(--ink-2); }
.promo__c p { color: var(--ink-2); margin-bottom: 8px; }
.promo__c ul { padding-left: 18px; }
.promos--page .btn { align-self: flex-start; }
@media (max-width: 1080px) { .promos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .promos--page { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .promos { grid-template-columns: 1fr; } .promos--page .promo { flex-direction: column; } .promos--page .promo img { width: 100%; aspect-ratio: 3/2; } }

/* про клініку */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__txt { display: grid; gap: 22px; justify-items: start; }
.about__txt > p { color: var(--ink-2); font-size: 16.5px; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.facts li { background: var(--soft); border-radius: 16px; padding: 16px; display: grid; gap: 4px; }
.facts b { font: 500 30px/1 var(--f-d); letter-spacing: -.03em; }
.facts span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.bento { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1.15; }
.bento figure { margin: 0; position: relative; border-radius: 20px; overflow: hidden; background: var(--soft); }
.bento img { width: 100%; height: 100%; object-fit: cover; }
.bento figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; }
.bento__a { grid-row: 1 / 3; }
.bento__c, .bento__d { display: none; }
.bento { grid-template-rows: 1fr 1fr; }
@media (min-width: 1000px) { .bento { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1.45; } .bento__c, .bento__d { display: block; } .bento__a { grid-row: 1 / 3; } }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* відгуки */
.rail--revs { align-items: stretch; }
.rsum { width: 280px; background: var(--ink); color: #fff; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.rsum__n { font: 500 72px/1 var(--f-d); letter-spacing: -.05em; }
.rsum__stars { display: flex; gap: 2px; color: #f5c451; }
.rsum p { color: rgba(255, 255, 255, .72); font-size: 14px; flex: 1; }
.rsum .btn { align-self: flex-start; }
.rcard { margin: 0; width: clamp(280px, 28vw, 340px); background: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.rcard__stars { display: flex; gap: 2px; color: #f0b429; }
.rcard__t { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.rail--revs .rcard__t { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rcard__by { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rcard__by small { display: block; color: var(--muted); font-size: 12.5px; }
.rcard__av { width: 38px; height: 38px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 600; flex: none; }
.rcard__src { margin-left: auto; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rgrid .rcard { width: auto; }
.rgrid--masonry { display: block; columns: 3 300px; column-gap: 14px; }
.rgrid--masonry .rcard { break-inside: avoid; margin-bottom: 14px; }
@media (max-width: 760px) { .rgrid { grid-template-columns: 1fr; } }

/* FAQ */
.faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__head { display: grid; gap: 16px; justify-items: start; position: sticky; top: 100px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; cursor: pointer; font: 500 18px/1.35 var(--f-d); letter-spacing: -.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); flex: none; transition: transform .35s var(--ease), background-color .2s; }
.faq__item[open] summary i { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq__a { padding: 0 60px 22px 0; color: var(--ink-2); font-size: 15.5px; }
.faq__a p + p { margin-top: 10px; }
@media (max-width: 860px) { .faq__in { grid-template-columns: 1fr; } .faq__head { position: static; } .faq__a { padding-right: 0; } .faq__item summary { font-size: 16.5px; } }

/* контакти */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.contact__info { display: grid; gap: 28px; align-content: start; }
.contact__dl { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.contact__dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__dl dt { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.contact__dl dd { margin: 0; font-weight: 500; }
.contact__dl dd a { text-decoration: none; }
.contact__msg { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.contact__msg a { text-decoration: underline !important; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.map { position: relative; border-radius: 24px; overflow: hidden; background: var(--soft); min-height: 420px; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__btn { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.map__btn:hover { transform: translateX(-50%) translateY(-1px); }
.contact__side { display: grid; gap: 12px; }
.contact__side .map { min-height: 460px; }
.contact__facade { border-radius: 24px; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact__dl > div { grid-template-columns: 1fr; gap: 4px; }
  .contact__side { grid-template-columns: 1fr; }
  .contact__facade { display: none; }
  .map { min-height: 340px; }
}

/* Instagram-запрошення */
.ig { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: radial-gradient(55% 90% at 0% 0%, rgba(233, 183, 164, .55), transparent 70%), radial-gradient(50% 90% at 100% 100%, rgba(205, 179, 204, .55), transparent 70%), radial-gradient(40% 60% at 60% 0%, rgba(111, 159, 157, .3), transparent 70%), #f3ece8; }
.ig__txt { display: grid; gap: 18px; justify-items: start; }
.ig__at { text-transform: none; letter-spacing: 0; }
.ig__txt p { color: var(--ink-2); max-width: 460px; }
.ig__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ig__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(228, 70, 78, .5); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(228, 70, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(228, 70, 78, 0); } }
.ig__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-decoration: none; }
.ig__grid figure { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(14, 16, 20, .1); transition: transform .5s var(--ease); }
.ig__grid figure:nth-child(2) { transform: translateY(-18px); }
.ig__grid:hover figure { transform: translateY(-4px); }
.ig__grid:hover figure:nth-child(2) { transform: translateY(-22px); }
.ig__grid img { width: 100%; height: 100%; object-fit: cover; }
.ig__grid figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
.ig__handle { position: absolute; right: 12px; top: -34px; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; }
@media (max-width: 860px) { .ig { grid-template-columns: 1fr; } .ig__handle { position: static; grid-column: 1 / -1; } .ig__grid figure:nth-child(2) { transform: none; } }
@media (max-width: 480px) { .ig .btn--lg { width: 100%; font-size: 12px; padding: 0 16px; } }

/* ---------- шапка внутрішніх сторінок ---------- */
.phead { position: relative; margin: 10px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; padding: 120px 0 clamp(36px, 5vw, 64px); background: #efe8e4; }
.phead__bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 80% at 0% 20%, rgba(111, 159, 157, .45), transparent 70%),
    radial-gradient(40% 70% at 30% 110%, rgba(233, 183, 164, .55), transparent 70%),
    radial-gradient(40% 70% at 100% 100%, rgba(205, 179, 204, .45), transparent 70%),
    #efe8e4; }
.phead--img .phead__bg { background:
    linear-gradient(90deg, rgba(239, 232, 228, 1) 0%, rgba(239, 232, 228, .96) 38%, rgba(239, 232, 228, .55) 62%, rgba(239, 232, 228, .1) 100%),
    radial-gradient(45% 80% at 0% 20%, rgba(111, 159, 157, .45), transparent 70%),
    radial-gradient(40% 70% at 30% 110%, rgba(233, 183, 164, .55), transparent 70%); z-index: -1; }
.phead__img { position: absolute; z-index: -2; top: 0; right: 0; width: 58%; height: 100%; object-fit: cover; }
.phead__in { display: grid; gap: 18px; justify-items: start; }
.phead__h1 { font-size: clamp(36px, 5.4vw, 72px); font-weight: 500; letter-spacing: -.045em; line-height: .98; max-width: 820px; }
.phead__lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); max-width: 640px; line-height: 1.5; }
.phead__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.big404 { font: 500 clamp(80px, 14vw, 180px)/1 var(--f-d); letter-spacing: -.06em; opacity: .15; }
@media (max-width: 860px) {
  .phead { margin: 6px; border-radius: 24px; padding-top: 96px; }
  .phead__img { width: 100%; opacity: .22; }
  .phead--img .phead__bg { background: linear-gradient(180deg, rgba(239, 232, 228, .7), rgba(239, 232, 228, .96)); }
}
.phead--doc { padding-bottom: 40px; }
.dhero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 18px; }
.dhero__img { aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.dhero__img img { width: 100%; height: 100%; object-fit: cover; }
.dhero__b { display: grid; gap: 14px; justify-items: start; }
.dhero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.dhero__facts li { background: rgba(255, 255, 255, .7); border-radius: 14px; padding: 10px 14px; display: grid; }
.dhero__facts b { font: 500 22px/1.1 var(--f-d); }
.dhero__facts span { font-size: 12.5px; color: var(--muted); }
.dhero__dirs { display: flex; flex-wrap: wrap; gap: 6px; }
.dhero__dirs .chip { background: rgba(255, 255, 255, .75); }
@media (max-width: 760px) { .dhero { grid-template-columns: 1fr; } .dhero__img { max-width: 260px; } }

/* ---------- стаття (напрям / послуга) ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 64px); padding-block: clamp(36px, 5vw, 64px); align-items: start; }
.article-grid--single { grid-template-columns: minmax(0, 860px); }
.article { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3.5vw, 44px); min-width: 0; }
.article > * { min-width: 0; }
.tldr { position: relative; background: #f1f5f4; border: 1px solid rgba(111, 159, 157, .28); border-radius: 20px; padding: 22px 24px; }
.tldr__k { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #3e6e6c; margin-bottom: 8px; }
.tldr p { font-size: 16.5px; line-height: 1.6; }
.block { display: grid; gap: 18px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.svc { position: relative; display: grid; gap: 2px; padding: 16px 44px 16px 18px; border-radius: 16px; background: var(--soft); text-decoration: none; transition: background-color .2s; }
.svc:hover { background: var(--soft-2); }
.svc span { font-weight: 500; line-height: 1.3; }
.svc small { color: var(--muted); font-size: 13px; }
.svc .i { position: absolute; right: 16px; top: 16px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lblock { background: var(--soft); border-radius: 20px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.lblock ul { list-style: none; display: grid; gap: 10px; }
.lblock li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.lblock li .i { margin-top: 1px; color: var(--ok); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.steps { list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); }
.steps__n { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 500 17px/1 var(--f-d); }
.steps b { display: block; font: 500 17px/1.3 var(--f-d); margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 15px; }
.callout { border-radius: 20px; padding: 20px 22px; background: #f5f0ec; display: grid; gap: 6px; }
.callout b { font: 500 17px/1.3 var(--f-d); }
.prose { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); max-width: 760px; }
.prose--narrow { margin: 48px auto 0; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); color: var(--ink); margin: 1.6em 0 .6em; letter-spacing: -.025em; line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; color: var(--ink); margin: 1.4em 0 .5em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--blue); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); background: var(--soft); }
.prose thead th:first-child { border-radius: 12px 0 0 12px; }
.prose thead th:last-child { border-radius: 0 12px 12px 0; }
.note { font-size: 13.5px; color: var(--muted); }
.med-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* прайс-таблиця */
.ptable { border-top: 1px solid var(--line); }
.ptable__row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: baseline; scroll-margin-top: 100px; }
.ptable__row:target { background: #fff7e6; }
.ptable__n { font-size: 15px; line-height: 1.4; }
.ptable__n small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ptable__v { font: 500 16px/1.2 var(--f-d); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable__sec { padding: 20px 4px 8px; font: 600 13px/1.2 var(--f-t); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }

/* бічна колонка */
.aside { display: grid; gap: 16px; position: sticky; top: 92px; }
.aside__card { background: var(--ink); color: #fff; border-radius: 22px; padding: 22px; display: grid; gap: 10px; }
.aside__card .btn--light { background: rgba(255, 255, 255, .1); color: #fff; }
.aside__card .btn--dark { background: #fff; color: var(--ink); }
.aside__t { font: 500 19px/1.25 var(--f-d); letter-spacing: -.01em; }
.aside__d { font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 6px; }
.aside__price { font: 500 30px/1 var(--f-d); letter-spacing: -.03em; margin-bottom: 6px; }
.aside__meta { list-style: none; display: grid; gap: 8px; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.aside__meta li { display: flex; gap: 8px; align-items: flex-start; }
.aside__nav { display: grid; gap: 2px; max-height: 60vh; overflow-y: auto; padding: 14px; border: 1px solid var(--line); border-radius: 22px; }
.aside__nav .aside__t { padding: 4px 8px 10px; font-size: 16px; }
.aside__nav a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; font-size: 14px; text-decoration: none; line-height: 1.3; }
.aside__nav a:hover { background: var(--soft); }
.aside__nav a[aria-current] { background: var(--ink); color: #fff; }
.aside__nav .i { color: var(--muted); }
.aside__nav a[aria-current] .i { color: #fff; }
@media (max-width: 1000px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .aside__nav { display: none; }
}
@media (max-width: 760px) { .cols2, .svc-grid { grid-template-columns: 1fr; } }

/* список напрямів */
.group-h { margin-bottom: 20px; }
.dir-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dcat { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.dcat__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.dcat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dcat:hover .dcat__img img { transform: scale(1.04); }
.dcat__b { padding: 18px 20px 20px; display: grid; gap: 10px; }
.dcat h3 { font-size: 22px; }
.dcat h3 a { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.dcat h3 .i { color: var(--blue); }
.dcat__p { font-size: 13.5px; color: var(--muted); }
.dcat ul { list-style: none; display: grid; gap: 4px; }
.dcat li a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.dcat li a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .dir-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dir-cards { grid-template-columns: 1fr; } }

/* сторінка цін */
.price-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: 40px 20px; align-items: start; }
.price-toc { position: sticky; top: 92px; display: grid; gap: 2px; max-height: calc(100vh - 120px); overflow-y: auto; }
.price-toc a { padding: 8px 12px; border-radius: 10px; font-size: 14px; text-decoration: none; }
.price-toc a:hover { background: var(--soft); }
.price-groups { display: grid; gap: 44px; min-width: 0; }
.pgroup { scroll-margin-top: 100px; display: grid; gap: 12px; }
.pgroup__h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pgroup__h a { font-size: 14px; color: var(--muted); white-space: nowrap; }
.psearch { display: flex; align-items: center; gap: 10px; width: min(560px, 100%); height: 56px; padding: 0 20px; border-radius: 999px; background: #fff; margin-top: 10px; box-shadow: var(--shadow); }
.psearch input { flex: 1; border: 0; outline: 0; font: 400 16px var(--f-t); background: transparent; min-width: 0; }
.nothing { font-size: 18px; color: var(--muted); }
@media (max-width: 900px) { .price-page { grid-template-columns: 1fr; } .price-toc { display: none; } }

/* CTA-стрічка */
.cta-band { padding-block: clamp(40px, 6vw, 72px); }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl);
  background: radial-gradient(60% 120% at 0% 0%, rgba(111, 159, 157, .35), transparent 70%), radial-gradient(50% 120% at 100% 100%, rgba(233, 183, 164, .45), transparent 70%), #efe8e4; }
.cta-band__t { font: 500 clamp(24px, 2.8vw, 36px)/1.1 var(--f-d); letter-spacing: -.03em; }
.cta-band__d { color: var(--ink-2); margin-top: 8px; font-size: 14.5px; }
.cta-band__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- футер ---------- */
.foot { background: var(--ink); color: rgba(255, 255, 255, .78); margin: 10px; border-radius: var(--r-xl); padding-block: clamp(48px, 6vw, 80px) 28px; }
.foot__cta { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot__big { font: 500 clamp(34px, 5vw, 64px)/1 var(--f-d); letter-spacing: -.045em; color: #fff; text-transform: uppercase; }
.foot__cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 44px; }
.foot__col { display: grid; gap: 14px; align-content: start; font-size: 14px; }
.foot__col ul { list-style: none; display: grid; gap: 8px; }
.foot__col a { text-decoration: none; }
.foot__col a:hover { color: #fff; text-decoration: underline; }
.foot__h { color: #fff; font: 500 15px/1.2 var(--f-d); }
.foot__dirs { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.foot__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.foot__contacts small { color: rgba(255, 255, 255, .55); }
.foot__social { display: flex; gap: 8px; }
.foot__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; }
.foot__social a:hover { border-color: #fff; color: #fff; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12.5px; color: rgba(255, 255, 255, .5); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; }
.foot__legal a { color: rgba(255, 255, 255, .6); }
@media (max-width: 1000px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .foot { margin: 6px; border-radius: 24px; } .foot__grid { grid-template-columns: 1fr; } }

/* ---------- плаваючі кнопки (мобільні) ---------- */
.fab { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; display: none; gap: 8px; }
.fab__btn { height: 52px; border-radius: 999px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 14px var(--f-t); text-decoration: none; box-shadow: 0 10px 30px rgba(14, 16, 20, .22); }
.fab__btn--call { width: 52px; background: #fff; color: var(--ink); flex: none; }
.fab__btn--book { flex: 1; background: var(--ink); color: #fff; text-transform: uppercase; letter-spacing: .03em; font-size: 13px; }
@media (max-width: 760px) {
  .fab { display: flex; transform: translateY(90px); transition: transform .45s var(--ease); }
  .fab.is-on { transform: none; }
  .foot { padding-bottom: 90px; }
}

/* ---------- модалка запису ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(14, 16, 20, .45); display: grid; place-items: center; padding: 16px; }
.modal__box { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 26px; padding: 28px; animation: pop .45s var(--ease); }
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.modal__x { position: absolute; right: 14px; top: 14px; }
.modal__t { font: 500 26px/1.1 var(--f-d); letter-spacing: -.03em; padding-right: 44px; }
.modal__d { color: var(--muted); font-size: 14px; margin: 8px 0 20px; }
.modal__ok { text-align: center; padding: 20px 0; display: grid; justify-items: center; gap: 4px; }
.modal__okic { width: 64px; height: 64px; border-radius: 50%; background: #e8f3ee; color: var(--ok); display: grid; place-items: center; margin-bottom: 12px; }
.lform { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 13px 14px; font: 400 16px var(--f-t); color: var(--ink);
  transition: border-color .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23666' stroke-width='1.6'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); }
.field.is-err input { border-color: var(--red); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.lform__agree { font-size: 12px; color: var(--muted); }
.lform__err { font-size: 13.5px; color: var(--red); }
.lform__doc { font-size: 14px; background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.lform.is-busy button[type=submit] { opacity: .6; pointer-events: none; }
.inline-form { max-width: 760px; margin-top: 24px; }
.lform--inline { grid-template-columns: 1fr 1fr; }
.lform--inline .field:nth-of-type(4), .lform--inline button, .lform--inline .lform__agree, .lform--inline .lform__err, .lform--inline .lform__doc { grid-column: 1 / -1; }
@media (max-width: 640px) { .lform--inline { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
