/* ===== Шрифт (локально, лише кирилиця + латиниця) ===== */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/manrope-cyrillic.woff2?v=e58febde) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/manrope-latin.woff2?v=938c6e80) format('woff2');
  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 {
  --milk: #F6F1E7;        /* фон сторінки */
  --paper: #FBF8F2;       /* картки, світлі секції */
  --graphite: #2B2E2C;    /* текст, темна секція */
  --ink-2: #55574F;       /* другорядний текст */
  --olive: #6B7045;       /* єдиний акцент: кнопки, позначки */
  --olive-deep: #565A37;  /* наведення */
  --olive-tint: #E7E3D0;  /* підкладки чипів */
  --line: #E0D8C6;        /* лінії й рамки */
  --white: #fff;

  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --max: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--milk);
  color: var(--graphite);
  font: 400 16px/1.6 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-variant-numeric: tabular-nums;
  padding-bottom: 72px; /* місце під нижню панель на телефоні */
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
.sec--dark :focus-visible { outline-color: var(--milk); }
.sec--dark .form :focus-visible { outline-color: var(--olive); }

.ic { width: 20px; height: 20px; flex: none; }
.ic--lg { width: 28px; height: 28px; color: var(--olive); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--graphite); color: var(--white); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn--olive { background: var(--olive); color: var(--white); }
.btn--olive:hover { background: var(--olive-deep); }
.btn--line { border-color: var(--graphite); background: transparent; color: var(--graphite); }
.btn--line:hover { background: var(--graphite); color: var(--milk); }

/* ===== Шапка ===== */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 241, 231, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.logo__mark { font-weight: 800; font-size: 24px; letter-spacing: -0.04em; }
.logo__mark::after { content: '.'; color: var(--olive); }
.logo__sub { font-size: 11px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; margin-top: 3px; }
.logo--sm .logo__mark { font-size: 20px; }
.nav { display: none; }
.top__phone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--olive-tint); color: var(--olive-deep); text-decoration: none; font-weight: 700;
}
.top__phone span { display: none; }

/* ===== Хиро: відео на весь екран, текст поверх ===== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: calc(100svh - var(--header-h));
  /* знизу — місце під фіксовану панель «Подзвонити / Написати» */
  padding: 96px 0 calc(100px + env(safe-area-inset-bottom));
  color: var(--milk);
  background: #3a3c36;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; background: #3a3c36 url(../img/hero-poster-portrait.webp?v=ba716cb3) 50% 30% / cover; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Затемнення на телефоні: текст займає більшу частину кадру, тож не слабше .72 по всій висоті
   (замір: найсвітліший піксель рукава ~230 → для 4.5:1 треба ≥ .6) */
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24, 26, 24, .93) 0%, rgba(24, 26, 24, .84) 45%, rgba(24, 26, 24, .72) 100%);
}
.hero__in { position: relative; }
.hero__text { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.hero__text .btn { text-shadow: none; }
.hero__pause {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(24, 26, 24, .45); color: var(--milk);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__pause:hover { background: rgba(24, 26, 24, .7); }
.hero__pause[hidden] { display: none; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--olive-deep); margin-bottom: 12px; }
.hero .eyebrow { color: #D3D6AE; }
.hero__title { font-size: clamp(32px, 8.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; color: var(--milk); max-width: 13em; }
.hero__lead { margin-top: 14px; font-size: 16.5px; color: #E6E1D4; max-width: 34em; }
.hero__cta { display: grid; gap: 10px; margin-top: 22px; }
.btn--glass { border-color: rgba(246, 241, 231, .7); color: var(--milk); background: rgba(246, 241, 231, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--glass:hover { background: var(--milk); color: var(--graphite); border-color: var(--milk); }
.hero__facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-weight: 600; font-size: 14.5px; color: var(--milk); }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts .ic { width: 18px; height: 18px; color: #C9CE98; }
.hero :focus-visible { outline-color: var(--milk); }

/* ===== Секції ===== */
.sec { padding: 56px 0; }
.sec--paper { background: var(--paper); border-block: 1px solid var(--line); }
.sec--dark { background: var(--graphite); color: var(--milk); }
.sec__head { margin-bottom: 28px; max-width: 40em; }
.sec__head h2 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; }
.sec__head p { margin-top: 10px; color: var(--ink-2); font-size: 17px; }

/* ===== Послуги: вкладки + «специфікація» ===== */
.svc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.svc__tabs { display: none; }
.js .svc__tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px; scrollbar-width: none;
  border-bottom: 1px solid var(--line); background: var(--milk);
  scroll-snap-type: x proximity;
}
.js .svc__tabs::-webkit-scrollbar { display: none; }
.svc__tab {
  flex: none; scroll-snap-align: start;
  min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.svc__tab:not([aria-selected="true"]):hover { border-color: var(--olive); }
.svc__tab[aria-selected="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--milk); }

.svc__panel { display: grid; gap: 20px; padding: 16px; border-bottom: 1px solid var(--line); }
.svc__photo { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; background: var(--olive-tint); }
.svc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc__photo .svc__img--drill { object-position: 60% 35%; }
.svc__body { padding: 4px 2px 8px; }
.svc__cols { display: grid; gap: 4px; }
.js .svc__panel { border-bottom: 0; }
.svc__panel h3 { font-size: clamp(24px, 5vw, 32px); font-weight: 800; }
.svc__why { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; }
.svc__panel h4 { margin-top: 22px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--olive-deep); }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--olive-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565A37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}


/* Прайс як специфікація: назва — ціна праворуч */
.parts { margin: 12px 0 0; border-top: 2px solid var(--graphite); }
.parts > div { display: flex; align-items: baseline; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.parts dd { margin: 0 0 0 auto; font-weight: 800; white-space: nowrap; }
.parts dt { flex: 1; min-width: 0; font-weight: 600; }
.parts dd.ask { color: var(--olive-deep); font-weight: 700; }

.svc__foot { display: grid; gap: 16px; padding: 20px 16px; background: var(--milk); border-top: 1px solid var(--line); }
.svc__note { font-size: 14px; color: var(--ink-2); }

/* Послуги-карусель (вмикає main.js на всіх екранах; без JS — панелі одна під одною).
   Одна картка на екрані, гортаються пальцем; вкладки зверху прилипають під шапкою. */
.svc__meta, .svc__dots, .svc__more { display: none; }
/* overflow-anchor: коли стрічка нижчає під коротку картку, браузер не «доганяє» прокрутку сам */
.svc--slider { border: 0; border-radius: 0; background: none; overflow: visible; }
html:has(.svc--slider) { overflow-anchor: none; }
.svc--slider .svc__panel.is-jump { animation: svc-in .35s var(--ease); }
@keyframes svc-in { from { opacity: 0; transform: translateX(24px); } }
.js .svc--slider .svc__tabs {
  position: sticky; top: var(--header-h); z-index: 20;
  margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter);
  scroll-padding-inline: var(--gutter); border-bottom: 0; background: var(--milk);
}
.svc--slider .svc__meta { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.svc__count { font-weight: 800; font-size: 15px; }
.svc__count span { color: var(--ink-2); font-weight: 600; }
.svc__hint { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.svc__hint .ic { width: 16px; height: 16px; animation: svc-nudge 1.6s var(--ease) infinite; }
@keyframes svc-nudge { 50% { transform: translateX(5px); } }
.svc__arrow {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer;
  transition: border-color .2s, opacity .2s;
}
.svc__arrow:not(:disabled):hover { border-color: var(--olive); }
.svc__arrow:disabled { opacity: .35; cursor: default; }
.svc--slider .svc__track {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  /* hidden + pan-y: свайп по горизонталі веде main.js — рівно одна картка за рух */
  overflow: hidden; touch-action: pan-y; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; transition: height .3s var(--ease);
}
.svc--slider .svc__track::-webkit-scrollbar { display: none; }
.svc--slider .svc__panel {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden;
}
.svc--slider .svc__photo { border-radius: 0; aspect-ratio: 16 / 9; }
/* У картці: назва → ціни → «що входить» (розгортається) */
.svc--slider .svc__body { display: flex; flex-direction: column; padding: 16px; }
.svc--slider .svc__cols { display: contents; }
.svc--slider .svc__price { order: 1; }
.svc--slider .svc__more { order: 2; }
.svc--slider .svc__why { order: 3; margin-top: 0; font-size: 15.5px; }
.svc--slider .svc__inc { order: 4; margin-bottom: 8px; }
.svc--slider .svc__inc h4 { display: none; }
.svc--slider .svc__panel:not(.is-open) .svc__why,
.svc--slider .svc__panel:not(.is-open) .svc__inc { display: none; }
.svc--slider .svc__more {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 52px; margin-top: 16px; padding: 0;
  border: 0; border-top: 1px solid var(--line); background: none;
  font-weight: 800; font-size: 16px; text-align: left; cursor: pointer;
}
.svc__more .ic { color: var(--olive-deep); transform: rotate(90deg); transition: transform .25s var(--ease); }
.svc__panel.is-open .svc__more .ic { transform: rotate(-90deg); }
.svc--slider .svc__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.svc__dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .3s var(--ease), background-color .3s; }
.svc__dots i.on { width: 24px; background: var(--olive); }
.svc--slider .svc__foot { margin-top: 16px; padding: 0; border: 0; background: none; }
.is-drag, .is-drag * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

.fittings { display: flex; gap: 16px; margin-top: 24px; padding: 20px; border-radius: var(--radius); background: var(--olive-tint); }
.fittings h3 { font-size: 19px; font-weight: 800; }
.fittings p { margin-top: 6px; color: #3f4136; }

/* ===== Як працюємо: кроки як в інструкції ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 28px 64px; counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--graphite); background: var(--paper);
  font-weight: 800; font-size: 18px;
}
.step::after { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--graphite) 0 6px, transparent 6px 11px); }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step:last-child::before { background: var(--olive); border-color: var(--olive); color: var(--white); }
.step h3 { font-size: 19px; font-weight: 800; }
.step p { margin-top: 6px; color: var(--ink-2); }

/* ===== Чому ми ===== */
.why { display: grid; gap: 14px; }
.why__item { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.why__item h3 { margin-top: 14px; font-size: 19px; font-weight: 800; }
.why__item p { margin-top: 8px; color: var(--ink-2); }

/* ===== Галерея ===== */
/* Картки категорій: натиснули — одразу перегляд на весь екран з усіма фото категорії */
.works__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--olive-tint); color: #fff; text-decoration: none; }
.cat:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat:hover .cat__ic { background: var(--olive); }
.cat:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 22, 20, .8) 0%, rgba(20, 22, 20, .25) 45%, rgba(20, 22, 20, 0) 70%); }
.cat__txt { position: absolute; left: 16px; right: 14px; bottom: 14px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cat__name { display: block; font-size: clamp(18px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cat__count { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; opacity: .88; }
.cat__ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); transition: transform .3s var(--ease), background-color .2s; }
.works__panel { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.js .works__panel[hidden] { display: none; }
.works__head { margin-bottom: 14px; font-size: 24px; font-weight: 800; }
.works__head span { display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery li[hidden] { display: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--olive-tint); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery__more { display: flex; justify-content: center; margin-top: 22px; }

/* ===== FAQ ===== */
.faq { border-top: 2px solid var(--graphite); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 0; font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--olive-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565A37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center 55% / 16px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 44px 18px 0; color: var(--ink-2); }

/* ===== Контакти ===== */
.contact { display: grid; gap: 32px; }
.contact__text h2 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; color: var(--milk); }
.contact__text > p { margin-top: 12px; color: #cfc9bb; font-size: 17px; }
.msgr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.msgr__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 72px; padding: 10px 6px; border-radius: var(--radius-sm);
  background: rgba(246, 241, 231, .08); border: 1.5px solid rgba(246, 241, 231, .18);
  color: var(--milk); text-decoration: none; font-weight: 700; font-size: 14px;
  transition: background-color .2s, border-color .2s;
}
.msgr__btn .ic { width: 24px; height: 24px; }
.msgr__btn:hover { background: rgba(246, 241, 231, .16); border-color: rgba(246, 241, 231, .4); }
.contact__info { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; color: #cfc9bb; }
.contact__info li { display: flex; align-items: center; gap: 10px; }
.contact__info a { display: inline-flex; align-items: center; min-height: 44px; color: var(--milk); font-weight: 800; font-size: 20px; text-decoration: none; }
.contact__info .ic { color: #b9bd94; }

.form { display: grid; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--paper); color: var(--graphite); align-content: start; }
.form__title { font-size: 22px; font-weight: 800; }
.form__title--sm { font-size: 16px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.field b { color: var(--olive); }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #CFC6B2; border-radius: var(--radius-sm); background: var(--white);
  font: 500 16px/1.3 'Manrope', system-ui, sans-serif; color: var(--graphite);
}
.field input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(107, 112, 69, .2); }
.field input[aria-invalid="true"] { border-color: #A3412F; }
.field__err { min-height: 0; color: #A3412F; font-weight: 600; font-size: 13px; }
.field__err:empty { display: none; }
.form__send { width: 100%; }
.form__send[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form__legal { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.form__status:empty { display: none; }
.form__status { padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; background: var(--olive-tint); color: #3f4136; }
.form__status.is-error { background: #F3DDD5; color: #7A2E20; }

/* ===== Підвал ===== */
.foot { padding: 32px 0; font-size: 14px; color: var(--ink-2); }
.foot__in { display: grid; gap: 10px; }
.foot a { color: var(--graphite); }

/* ===== Нижня панель (телефон) ===== */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 241, 231, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.dock__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--graphite); text-decoration: none; font-weight: 800;
}
.dock__btn--olive { background: var(--olive); border-color: var(--olive); color: var(--white); }

/* ===== Вікно заявки ===== */
.sheet {
  width: 100%; max-width: 100%; margin: auto 0 0; padding: 0; border: 0;
  border-radius: 20px 20px 0 0; background: var(--paper); color: var(--graphite);
  max-height: 92dvh;
}
.sheet::backdrop { background: rgba(28, 30, 28, .55); }
.sheet[open] { animation: sheet-up .28s var(--ease); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet__in { position: relative; padding: 24px 16px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.sheet h2 { font-size: 26px; font-weight: 800; padding-right: 48px; }
.sheet__sub { color: var(--ink-2); margin-top: -6px; }
.sheet__x { position: absolute; top: 14px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--olive-tint); display: grid; place-items: center; cursor: pointer; }
.msgr--sheet { grid-template-columns: 1fr 1fr; margin-top: 4px; }
.msgr--sheet .msgr__btn { flex-direction: row; min-height: 56px; background: var(--white); border-color: var(--line); color: var(--graphite); font-size: 16px; }
.msgr--sheet .msgr__btn:hover { border-color: var(--olive); background: var(--white); }
.msgr__btn--viber .ic { color: #7360F2; }
.msgr__btn--tg .ic { color: #229ED9; }
.msgr__btn--wa .ic { color: #25D366; }
.msgr__btn--call .ic { color: var(--olive); }
.sec--dark .msgr__btn .ic { color: inherit; }
.sheet__or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.sheet__or::before, .sheet__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form--sheet { padding: 0; background: none; }

/* ===== Лайтбокс ===== */
.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(20, 21, 20, .94); color: var(--milk); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20, 21, 20, .94); }
.lightbox__img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 8px; }
.lightbox__x, .lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(246, 241, 231, .14); color: var(--milk); display: grid; place-items: center; cursor: pointer; }
.lightbox__x { top: 14px; right: 14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
.lightbox__x:hover, .lightbox__nav:hover { background: rgba(246, 241, 231, .26); }
.lightbox__cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 14px; color: #cfc9bb; }

/* ===== Поява при прокрутці (лише якщо можна рухатись) ===== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== Планшет ===== */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero__cta { display: flex; flex-wrap: wrap; }
  .hero__facts { grid-template-columns: repeat(4, auto); justify-content: start; }
  .why { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .works__cats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .cat, .cat:first-child { grid-column: span 2; aspect-ratio: 4 / 5; }
  .cat:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 16 / 11; }
  .works__panel { padding: 20px; }
  .svc__panel { padding: 24px; }
  .svc__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; }
  .svc__foot { padding: 20px 28px; grid-template-columns: 1fr auto; align-items: center; }
  .sheet { max-width: 520px; margin: auto; border-radius: 20px; }
  .sheet__in { padding: 28px; }
  .msgr--sheet { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .step { padding-bottom: 0; }
  .step::after { display: none; }
}

/* ===== Десктоп ===== */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .dock { display: none; }
  /* Навігація: м’які «пігулки», підсвічено розділ, який зараз на екрані */
  .nav { display: flex; gap: 4px; margin-right: 20px; padding: 4px; border-radius: 999px; background: rgba(231, 227, 208, .55); }
  .nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 8px 16px; border-radius: 999px; transition: background-color .2s, color .2s; }
  .nav a:hover { color: var(--graphite); background: rgba(251, 248, 242, .9); }
  .nav a[aria-current="true"] { color: var(--milk); background: var(--graphite); }
  .top__phone { width: auto; height: 44px; padding: 0 18px; gap: 8px; border-radius: 999px; background: transparent; border: 1.5px solid var(--olive); color: var(--graphite); transition: background-color .2s, color .2s; }
  .top__phone:hover { background: var(--olive); color: var(--milk); }
  .top__phone .ic { color: var(--olive); transition: color .2s; }
  .top__phone:hover .ic { color: var(--milk); }
  .top__phone span { display: inline; font-size: 16px; }

  .hero { align-items: center; padding: 64px 0; min-height: min(calc(100svh - var(--header-h)), 860px); --text-end: calc(max(24px, 50% - 576px) + 680px); }
  .hero__bg { background-image: none; }
  /* Дзеркалимо кадр, щоб дриль опинилась праворуч, а не під текстом */
  .hero__video { object-position: 50% 50%; transform: scaleX(-1); }
  /* Затемнення зліва направо: текст на темному, дриль праворуч лишається видно */
  /* Темно до правого краю тексту (а не до %, що «пливе» на 1024 і 1920), далі світлішає до дрилі */
  .hero__bg::after { background: linear-gradient(90deg, rgba(24, 26, 24, .9) 0, rgba(24, 26, 24, .8) var(--text-end), rgba(24, 26, 24, .18) calc(var(--text-end) + 320px), rgba(24, 26, 24, .06) 100%); }
  .hero__text { max-width: 640px; }
  .hero__lead { font-size: 19px; }
  .hero__facts { grid-template-columns: 1fr 1fr; max-width: 460px; font-size: 15px; }
  .hero__pause { top: auto; bottom: 24px; right: 24px; }

  .sec { padding: 96px 0; }
  .sec__head { margin-bottom: 40px; }

  /* Вкладки зліва — як зміст інструкції */
  /* Вкладки зверху в один ряд, панель: фото зліва, опис і прайс справа */
  .js .svc__tabs { flex-wrap: wrap; overflow: visible; padding: 16px 24px; gap: 8px; }
  .svc__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding: 28px; }
  .svc__photo { aspect-ratio: auto; min-height: 460px; }
  .svc__body { padding: 8px 8px 8px 0; }
  .svc__cols { grid-template-columns: 1fr; gap: 4px; }
  .svc__foot { padding: 20px 28px; }

  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .step { padding: 64px 0 0; }
  .step::before { top: 0; }
  .step::after { display: block; left: 52px; right: -20px; top: 21px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--graphite) 0 6px, transparent 6px 11px); }
  .step:last-child::after { display: none; }

  .why { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

  .faqgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 64px; align-items: start; }
  .faqgrid .sec__head { position: sticky; top: calc(var(--header-h) + 24px); }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: start; }
  .form { padding: 32px; }

  .foot__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
}

/* Карусель на ПК: картка — фото зліва, опис справа */
@media (min-width: 1024px) {
  .js .svc--slider .svc__tabs { margin-inline: 0; padding: 12px 0; }
  .svc--slider .svc__hint { display: none; }
  .svc--slider .svc__count { margin-right: auto; }
  .svc--slider .svc__panel { gap: 40px; padding: 28px; }
  /* Фото фіксованої висоти: розгорнутий «Що входить» росте вниз, кадр не тягнеться й не стрибає */
  .svc--slider .svc__panel { align-items: start; }
  .svc--slider .svc__photo { border-radius: var(--radius-sm); aspect-ratio: auto; min-height: 0; height: 460px; }
  .svc--slider .svc__body { padding: 8px 8px 8px 0; }
}

/* ===== Широкий екран: «що входить» і прайс поруч ===== */
@media (min-width: 1280px) {
  .svc__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
}
