/* Artgran — памʼятники. Тема «чорний граніт і бірюза»:
   темний полірований камінь, світлий мармур для спокійних блоків,
   бірюзовий акцент з фірмового кольору Artgran. */

:root {
  --granite: #0f1213;
  --granite-2: #171b1d;
  --granite-3: #0a0c0d;
  --line: rgba(238, 239, 238, 0.13);
  --marble: #eeefee;
  --ink: #15191b;
  --ink-soft: #4a5256;
  --stone: #a4acaf;
  --tq: #2e9db3;
  --tq-hi: #4fc0d3;
  --tq-ink: #04171c;

  --display: "Unbounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: 16px;
  --sec: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (min-width: 761px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--granite);
  color: var(--marble);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--tq-hi); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--tq); color: var(--tq-ink); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.h2 {
  font: 600 clamp(30px, 4vw, 54px)/1.08 var(--display);
  letter-spacing: -0.02em;
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 6px;
  font: 700 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--tq { background: var(--tq); color: var(--tq-ink); box-shadow: 0 10px 30px -12px rgba(46, 157, 179, .75); }
.btn--tq:hover { background: var(--tq-hi); }
.btn--shine { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine::after { content: ""; position: absolute; z-index: -1; top: -30%; bottom: -30%; left: -40%; width: 34%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .8), rgba(255, 255, 255, 0)); transform: skewX(-22deg); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .btn--shine::after { animation: shine 4.6s cubic-bezier(.4, 0, .2, 1) 2.6s infinite; }
}
@keyframes shine { 0% { left: -40%; opacity: 0; } 4% { opacity: 1; } 28% { left: 125%; opacity: 1; } 29%, 100% { left: 125%; opacity: 0; } }
.btn--ghost { border-color: rgba(238, 239, 238, .42); color: var(--marble); background: rgba(15, 18, 19, .25); }
.btn--ghost:hover { border-color: var(--marble); background: rgba(238, 239, 238, .08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ——— Шапка ——— */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .35s, border-color .35s; border-bottom: 1px solid transparent; }
.top::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(8, 10, 11, .6), transparent); pointer-events: none; transition: opacity .35s; }
.top.is-solid { background: rgba(15, 18, 19, .94); border-color: var(--line); }
@supports (backdrop-filter: blur(8px)) { .top.is-solid { background: rgba(15, 18, 19, .8); backdrop-filter: blur(14px); } }
.top.is-solid::before { opacity: 0; }
.top__inner { position: relative; display: flex; align-items: center; gap: 26px; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: 12px var(--gutter); }
.logo { display: grid; gap: 2px; text-decoration: none; }
.logo__name { font: 700 24px/1 var(--display); letter-spacing: -0.01em; color: #fff; }
.logo__sub { font-size: 12px; line-height: 1.2; color: var(--stone); letter-spacing: .02em; }
.top__nav { display: flex; gap: 24px; margin-left: auto; }
.top__nav a, .top__phone { text-decoration: none; font-size: 15px; font-weight: 600; color: rgba(238, 239, 238, .8); transition: color .2s; }
.top__nav a:hover, .top__phone:hover { color: #fff; }
.top__phone { color: #fff; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.top__cta { min-height: 42px; padding: 10px 18px; font-size: 15px; }
.top__burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; position: relative; }
.top__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--marble); transition: transform .3s var(--ease); }
.top__burger span:first-child { top: 17px; }
.top__burger span:last-child { top: 26px; }
.top__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.top__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu { background: var(--granite); border-top: 1px solid var(--line); padding: 8px var(--gutter) 28px; height: calc(100svh - 64px); overflow-y: auto; }
.menu nav a { display: block; padding: 14px 0; font: 500 22px/1.2 var(--display); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu__phone { display: block; margin-top: 18px; font-size: 21px; font-weight: 800; color: var(--tq-hi); text-decoration: none; }
.menu__phone + .menu__phone { margin-top: 8px; }

@media (max-width: 1180px) { .top__nav a:nth-child(n+5) { display: none; } }
@media (max-width: 940px) {
  .top__nav, .top__cta { display: none; }
  .top__phone { margin-left: auto; }
  .top__burger { display: block; margin-left: 4px; }
  .top__inner { gap: 12px; padding-block: 10px; }
  .logo__name { font-size: 21px; }
  .top.is-open { background: var(--granite); }
}

/* ——— Перший екран ——— */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--granite-3); }
/* розмита копія фото як сяйво каменю за текстом */
.hero__glow { position: absolute; inset: -10%; background-size: cover; background-position: 60% 40%; filter: blur(40px) saturate(1.3); opacity: .55; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 13, .96) 0%, rgba(10, 12, 13, .86) 38%, rgba(10, 12, 13, .35) 70%, rgba(10, 12, 13, .55) 100%); }
.hero__photo { position: absolute; z-index: 1; top: 0; bottom: 0; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); width: min(44vw, 560px); overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 12, 13, .55), rgba(10, 12, 13, 0) 30%), linear-gradient(to bottom, rgba(10, 12, 13, .5), rgba(10, 12, 13, 0) 18%); }
.hero__body { position: relative; z-index: 2; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: 130px var(--gutter) 70px; }
.hero__body > * { max-width: 620px; }
.hero__title { display: flex; flex-direction: column; gap: 14px; }
.hero__word { font: 700 clamp(40px, 6.4vw, 92px)/.98 var(--display); letter-spacing: -0.03em; color: #fff; }
.hero__place { font: 400 clamp(20px, 2.2vw, 30px)/1.25 var(--display); letter-spacing: -0.01em; color: var(--tq-hi); }
.hero__lead { margin-top: 24px; max-width: 30em; font-size: clamp(17px, 1.35vw, 19px); color: rgba(238, 239, 238, .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 44px; }
.hero__facts li { display: grid; gap: 2px; padding: 4px 28px 4px 0; margin-right: 28px; border-right: 1px solid var(--line); }
.hero__facts li:last-child { border-right: 0; margin-right: 0; }
.hero__facts b { font: 600 18px/1.2 var(--display); color: #fff; }
.hero__facts span { font-size: 14px; color: var(--stone); }

@media (max-width: 1000px) and (min-width: 761px) {
  .hero__photo { width: 40vw; }
  .hero__body > * { max-width: 52vw; }
  .hero__facts { grid-template-columns: 1fr; gap: 10px; }
  .hero__facts li { border: 0; padding: 0; margin: 0; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; display: block; }
  .hero__media { position: relative; height: 82svh; min-height: 540px; }
  .hero__glow { display: none; }
  .hero__photo { inset: 0; width: auto; right: 0; }
  .hero__photo img { object-position: 50% 30%; }
  .hero__photo::after { background: linear-gradient(to top, var(--granite) 0%, rgba(15, 18, 19, .9) 22%, rgba(15, 18, 19, .35) 46%, rgba(15, 18, 19, 0) 62%), linear-gradient(to bottom, rgba(10, 12, 13, .6) 0%, rgba(10, 12, 13, 0) 16%); }
  .hero__media::after { display: none; }
  .hero__body { margin-top: -38svh; padding: 0 var(--gutter) 8px; }
  .hero__word { font-size: 12.4vw; }
  .hero__place { font-size: 19px; }
  .hero__lead { margin-top: 16px; font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: flex-start; margin-top: 24px; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
  .hero__facts li { padding: 0 10px 0 0; margin-right: 10px; }
  .hero__facts b { font-size: 14px; }
  .hero__facts span { font-size: 12.5px; line-height: 1.35; }
}

/* Єдиний оркестрований момент: проявлення першого екрану */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease) .15s; }
  .js .hero__photo img { transform: scale(1.12); transition: transform 2.4s var(--ease) .15s; }
  .js .hero__word { clip-path: inset(0 0 100% 0); transform: translateY(18px); transition: clip-path 1.2s var(--ease) .35s, transform 1.2s var(--ease) .35s; }
  .js .hero__place, .js .hero__lead, .js .hero__actions, .js .hero__facts { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s var(--ease); }
  .js .hero__place { transition-delay: .75s; }
  .js .hero__lead { transition-delay: .9s; }
  .js .hero__actions { transition-delay: 1.05s; }
  .js .hero__facts { transition-delay: 1.2s; }
  .hero.is-in .hero__photo { clip-path: inset(0 0 0 0); }
  .hero.is-in .hero__photo img { transform: none; }
  .hero.is-in .hero__word { clip-path: inset(-10% -5% -10% -5%); transform: none; }
  .hero.is-in .hero__place, .hero.is-in .hero__lead, .hero.is-in .hero__actions, .hero.is-in .hero__facts { opacity: 1; transform: none; }
}

/* ——— Каталог ——— */
.works { padding: var(--sec) 0; }
.works__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.works__note { max-width: 30em; color: var(--stone); font-size: 16px; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card { position: relative; display: block; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 10px; overflow: hidden; isolation: isolate; background: var(--granite-2); color: #fff; text-align: left; }
.cat-card--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.cat-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cat-card--wide img { object-position: 50% 38%; }
.cat-card--render { background: #d9d9d9; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 10, 11, .92) 0%, rgba(8, 10, 11, .5) 30%, rgba(8, 10, 11, 0) 56%); }
.cat-card__title { position: absolute; left: 20px; right: 74px; bottom: 20px; font: 600 clamp(17px, 1.5vw, 22px)/1.2 var(--display); letter-spacing: -0.01em; }
.cat-card--wide .cat-card__title { font-size: clamp(22px, 2.2vw, 32px); right: 90px; bottom: 24px; left: 24px; }
.cat-card__go { position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--tq); color: var(--tq-ink); transition: transform .45s var(--ease), background-color .25s; }
.cat-card--wide .cat-card__go { width: 54px; height: 54px; right: 22px; bottom: 22px; }
.cat-card__go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .cat-card:hover img { transform: scale(1.05); }
  .cat-card:hover .cat-card__go { transform: translateX(4px); background: var(--tq-hi); }
}
@media (max-width: 900px) {
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { border-radius: 8px; }
  .cat-card--wide { aspect-ratio: 16 / 10; }
  .cat-card__title { left: 14px; right: 14px; bottom: 62px; font-size: 16px; }
  .cat-card--wide .cat-card__title { left: 16px; bottom: 18px; right: 74px; font-size: 21px; }
  .cat-card__go { right: auto; left: 14px; bottom: 14px; width: 38px; height: 38px; }
  .cat-card--wide .cat-card__go { left: auto; right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
@media (max-width: 560px) { .cat-card--wide { aspect-ratio: 4 / 3; } }

.catalog { position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain; background: var(--granite); }
.catalog__bar { position: sticky; top: 0; z-index: 3; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2)); background: rgba(15, 18, 19, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .catalog__bar { background: rgba(15, 18, 19, .8); backdrop-filter: blur(14px); } }
.catalog__back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 0; border: 0; background: none; font: 700 16px/1 var(--sans); }
.catalog__back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.catalog__phone { font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.catalog__inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: 8px var(--gutter) 64px; }
.catalog__head { padding: 32px 0 24px; }
.catalog__title { font: 600 clamp(28px, 3.6vw, 46px)/1.08 var(--display); letter-spacing: -0.02em; outline: none; }
.catalog__text { margin-top: 14px; max-width: 42em; color: rgba(238, 239, 238, .86); font-size: clamp(16px, 1.3vw, 18px); }
.catalog__hint { margin-top: 8px; color: var(--tq-hi); font-size: 15px; font-weight: 600; }
.catalog__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.catalog__cta p { max-width: 28em; font: 400 clamp(18px, 1.8vw, 24px)/1.35 var(--display); letter-spacing: -0.01em; }
@media (prefers-reduced-motion: no-preference) { .catalog:not([hidden]) { animation: panel .45s var(--ease); } }
@keyframes panel { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .catalog__bar { height: 58px; }
  .catalog__head { padding: 24px 0 18px; }
  .catalog__inner { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
.card { position: relative; display: block; width: 100%; aspect-ratio: var(--ar, 4 / 5); padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--granite-2); }
.grid--render .card { background: #cfcfcf; }
.grid--dark .card { background: #3a3d3f; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease, transform .8s var(--ease); }
.grid--render .card img, .grid--dark .card img { object-fit: contain; }
.card img.is-loaded { opacity: 1; }
.card::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, rgba(8, 10, 11, .75)); pointer-events: none; }
.card__code { position: absolute; left: 10px; bottom: 9px; z-index: 1; font: 700 13px/1 var(--sans); letter-spacing: .04em; color: #fff; }
.card__more { position: absolute; right: 10px; bottom: 9px; z-index: 1; font-size: 13px; font-weight: 700; color: var(--tq-hi); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
@media (hover: hover) {
  .card:hover img { transform: scale(1.04); }
  .card:hover .card__more { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .card.is-new { animation: rise .7s var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 45ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .works__head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .card__code { left: 8px; bottom: 7px; font-size: 12px; }
  .card__more { display: none; }
}

/* ——— Памʼятники Героям: заголовок і список поруч, під ними стрічка з чотирьох фото ——— */
.heroes { background: var(--granite-2); padding: var(--sec) 0; }
.heroes__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.heroes__lead { margin-top: 20px; font-size: clamp(17px, 1.4vw, 19px); color: rgba(238, 239, 238, .86); max-width: 32em; }
.heroes__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.heroes__list { display: grid; gap: 0; padding-top: 8px; }
.heroes__list li { padding: 14px 0 14px 30px; position: relative; border-bottom: 1px solid var(--line); color: rgba(238, 239, 238, .9); }
.heroes__list li:first-child { border-top: 1px solid var(--line); }
.heroes__list li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 9px; height: 9px; border: 2px solid var(--tq); transform: rotate(45deg); }
.heroes__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.heroes__ph { position: relative; display: block; padding: 0; border: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--granite); }
.heroes__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform 1s var(--ease); }
.heroes__ph:nth-child(even) { transform: translateY(28px); }
@media (hover: hover) { .heroes__ph:hover img { transform: scale(1.05); } }
@media (max-width: 900px) {
  .heroes__head { grid-template-columns: 1fr; gap: 28px; }
  .heroes__strip { grid-template-columns: repeat(4, 64vw); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 36px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); }
  .heroes__strip::-webkit-scrollbar { display: none; }
  .heroes__ph { scroll-snap-align: start; }
  .heroes__ph:nth-child(even) { transform: none; }
}

/* ——— 3D-макети: стрічка, що повільно пливе ——— */
.models { padding: var(--sec) 0 calc(var(--sec) * .8); overflow: hidden; }
.models__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.models__head p { color: rgba(238, 239, 238, .82); max-width: 34em; }
.marquee { position: relative; overflow-x: auto; scrollbar-width: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-drag { cursor: grabbing; }
.marquee__track { display: flex; gap: 18px; width: max-content; padding: 6px 0 10px; }
.model { flex: none; width: clamp(260px, 30vw, 420px); padding: 0; border: 0; background: none; text-align: left; color: var(--marble); }
.model__img { display: block; aspect-ratio: 1.12; background: #fff; overflow: hidden; border-radius: 8px; }
.model__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); pointer-events: none; }
.model__code { display: block; margin-top: 10px; font-size: 14px; color: var(--stone); }
@media (hover: hover) { .model:hover .model__img img { transform: scale(1.04); } }
.models__foot { margin-top: 36px; }
@media (max-width: 760px) {
  .models__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
  .model { width: 76vw; }
}

/* ——— Як працюємо (мармур) ——— */
.process { padding: var(--sec) 0; color: var(--ink); background: #eeefee url("../img/marble-bg.webp") center / cover; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.steps li { counter-increment: step; position: relative; padding: 26px 26px 28px; background: rgba(255, 255, 255, .72); border-radius: 8px; box-shadow: 0 1px 0 rgba(21, 25, 27, .06); }
@supports (backdrop-filter: blur(6px)) { .steps li { background: rgba(255, 255, 255, .6); backdrop-filter: blur(6px); } }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px; font: 600 15px/1 var(--display); color: #1f7f92; }
.steps h3 { font: 600 19px/1.25 var(--display); letter-spacing: -0.01em; }
.steps p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; } .steps li { padding: 20px; } }

/* ——— Про нас ——— */
.about { padding: var(--sec) 0; }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__lead { margin-top: 22px; font: 400 clamp(19px, 1.7vw, 23px)/1.45 var(--display); letter-spacing: -0.01em; color: #fff; max-width: 30em; }
.about__text > p { margin-top: 8px; color: rgba(238, 239, 238, .82); max-width: 36em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font: 600 16px/1.3 var(--display); color: var(--tq-hi); }
.facts dd { margin-top: 6px; color: rgba(238, 239, 238, .8); font-size: 16px; }
@media (max-width: 900px) { .about__inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 18px; } }

/* ——— Розрахунок ——— */
.calc { background: var(--granite-2); padding: var(--sec) 0; }
.calc__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.calc__form { max-width: 460px; }
.calc__box { padding: clamp(24px, 4vw, 48px); background: var(--granite); border: 1px solid rgba(46, 157, 179, .45); border-radius: 12px; box-shadow: 0 40px 90px -50px rgba(46, 157, 179, .5); }
.calc__title { font: 600 clamp(28px, 3.2vw, 42px)/1.08 var(--display); letter-spacing: -0.02em; }
.calc__lead { margin-top: 14px; color: rgba(238, 239, 238, .84); max-width: 34em; }
.calc__count { font-size: 14px; font-weight: 700; color: var(--tq-hi); letter-spacing: .02em; }
.calc__step { display: grid; gap: 24px; }
.calc__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.calc__info { padding-top: 8px; }
.calc__label { color: var(--stone); font-size: 15px; }
.calc__phone { display: block; margin-top: 8px; font: 600 clamp(26px, 2.6vw, 36px)/1.15 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; text-decoration: none; }
.calc__list { display: grid; gap: 6px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.calc__list dt { color: var(--stone); font-size: 14px; margin-top: 10px; }
.calc__list dt:first-child { margin-top: 0; }
.calc__route { display: inline-block; margin-top: 22px; color: var(--tq-hi); font-weight: 700; text-underline-offset: 5px; }
@media (max-width: 900px) { .calc__inner { grid-template-columns: 1fr; } }

/* Форми */
.form { display: grid; gap: 22px; margin-top: 30px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--stone); }
.field em, .choice em { font-style: normal; opacity: .7; }
.field input {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(238, 239, 238, .3); border-radius: 0;
  background: transparent; color: #fff; font: 600 19px/1.3 var(--sans); transition: border-color .2s;
}
.field input:focus { outline: none; border-bottom-color: var(--tq-hi); }
.field input[aria-invalid="true"] { border-bottom-color: #e08a74; }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { width: 100%; padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: rgba(238, 239, 238, .9); }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 10px 16px; border: 1px solid rgba(238, 239, 238, .26); border-radius: 6px; font-size: 15px; font-weight: 600; transition: background-color .2s, border-color .2s, color .2s; }
.choice input:checked + span { background: var(--tq); border-color: var(--tq); color: var(--tq-ink); }
.choice input:focus-visible + span { outline: 2px solid var(--tq-hi); outline-offset: 2px; }
.form__error { color: #f0a08c; font-size: 15px; }
.form__fine { font-size: 13px; color: var(--stone); }
.form .btn { justify-self: start; }
.form__done { margin-top: 32px; padding: 24px 0 0; border-top: 1px solid rgba(46, 157, 179, .6); }
.form__done h3 { font: 600 28px/1.1 var(--display); letter-spacing: -0.02em; }
.form__done p { margin-top: 10px; color: rgba(238, 239, 238, .86); }
.form__done .btn { margin-top: 20px; }

/* ——— Питання (мармур) ——— */
.faq { color: var(--ink); padding: var(--sec) 0; background: #eeefee url("../img/marble-bg.webp") center / cover; }
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq h2 { position: sticky; top: 110px; }
.faq__list { padding: 8px 28px; background: rgba(255, 255, 255, .7); border-radius: 10px; }
.faq details + details { border-top: 1px solid rgba(21, 25, 27, .14); }
.faq summary { position: relative; list-style: none; padding: 22px 44px 22px 0; font: 700 18px/1.4 var(--sans); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: #1f7f92; transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-soft); max-width: 40em; }
@media (max-width: 900px) { .faq__inner { grid-template-columns: 1fr; } .faq h2 { position: static; } .faq__list { padding: 4px 18px; } }

/* ——— Підвал ——— */
.foot { background: var(--granite-3); padding: 48px 0; font-size: 15px; color: var(--stone); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.foot__brand { display: grid; gap: 6px; }
.foot__brand .logo__name { font-size: 22px; }
.foot a { text-decoration: none; color: var(--marble); }
.foot__phones { display: flex; gap: 18px; font-weight: 800; }
.foot__copy { margin-left: auto; }
.foot__dev { flex-basis: 100%; font-size: 14px; opacity: .75; }
.foot__dev a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .foot { padding-bottom: 96px; } .foot__copy { margin-left: 0; } }

/* ——— Нижня панель на телефоні ——— */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    display: grid; grid-template-columns: repeat(2, 1fr);
    position: fixed; inset: auto 0 0; z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(10, 12, 13, .96); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock a, .dock button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 12px; border: 0; background: none; font: 700 13px/1 var(--sans); text-decoration: none; color: var(--marble); }
  .dock a:first-child { color: var(--tq-hi); }
  .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
}

/* ——— Перегляд фото ——— */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: #080a0b; color: var(--marble); }
.lb[hidden] { display: none; }
.lb__bar { display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter); }
.lb__title { font-size: 15px; color: var(--stone); }
.lb__title #lb-code { font-weight: 800; color: #fff; letter-spacing: .04em; margin-right: 6px; }
.lb__pos { margin-left: auto; font-size: 14px; color: var(--stone); }
.lb__close, .modal__close { width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: transparent; color: var(--marble); border-radius: 50%; }
.lb__close:hover, .modal__close:hover { background: rgba(238, 239, 238, .1); }
.lb__stage { position: relative; min-height: 0; padding: 0 76px; touch-action: pan-y; }
.lb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb__frame { position: relative; width: 100%; height: 100%; }
.lb__arrow { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(238, 239, 238, .25); border-radius: 50%; background: rgba(15, 18, 19, .6); color: var(--marble); transition: background-color .2s, border-color .2s; }
.lb__arrow:hover { background: rgba(238, 239, 238, .12); border-color: var(--marble); }
.lb__arrow--prev { left: 12px; }
.lb__arrow--next { right: 12px; }
.lb__arrow svg, .lb__close svg, .modal__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb__foot { display: flex; align-items: center; gap: 20px; padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); }
.lb__note { color: var(--stone); font-size: 15px; max-width: 36em; }
.lb__actions { display: flex; gap: 10px; margin-left: auto; }
@media (max-width: 760px) {
  .lb__stage { padding: 0; }
  .lb__arrow { width: 44px; height: 44px; background: rgba(15, 18, 19, .7); }
  .lb__arrow--prev { left: 8px; }
  .lb__arrow--next { right: 8px; }
  .lb__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .lb__note { font-size: 14px; text-align: center; }
  .lb__actions { margin-left: 0; }
  .lb__actions .btn { flex: 1; }
}

/* ——— Вікно заявки ——— */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(8, 10, 11, .72); }
@supports (backdrop-filter: blur(6px)) { .modal { backdrop-filter: blur(6px); } }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100svh - 32px); overflow-y: auto; padding: 36px 32px 32px; background: var(--granite-2); border: 1px solid rgba(46, 157, 179, .4); border-radius: 10px; }
.modal__close { position: absolute; right: 10px; top: 10px; }
.modal__pick { width: 84px; height: 104px; margin-bottom: 18px; overflow: hidden; border-radius: 4px; background: #cfcfcf; }
.modal__pick img { width: 100%; height: 100%; object-fit: cover; }
.modal__title { font: 600 26px/1.15 var(--display); letter-spacing: -0.02em; padding-right: 32px; }
.modal__lead { margin-top: 12px; color: rgba(238, 239, 238, .82); font-size: 16px; }
.modal .form { margin-top: 24px; gap: 20px; }
.modal .form .btn { justify-self: stretch; }
.modal .form__done { margin-top: 24px; }
@media (max-width: 760px) {
  .modal { place-items: end stretch; padding: 0; }
  .modal__box { max-width: none; max-height: 92svh; padding: 28px var(--gutter) calc(24px + env(safe-area-inset-bottom)); border-radius: 12px 12px 0 0; border-width: 1px 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .modal:not([hidden]) .modal__box { animation: sheet .45s var(--ease); }
  .lb:not([hidden]) { animation: fade .3s ease; }
}
@keyframes sheet { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ——— Підказка ——— */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 140; max-width: calc(100% - 32px); translate: -50% 0; padding: 12px 18px; background: var(--marble); color: var(--ink); font-size: 15px; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
