/* Memorial Krop — тема «полірований граніт»
   Кольори взяті з матеріалів виробника: чорний габро, мармур із логотипа,
   позолота, якою заливають гравіювання. */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: "Memorial Serif"; src: url("../fonts/LiberationSerif-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --granite: #15181a;
  --granite-2: #1c2023;
  --granite-3: #101314;
  --line: rgba(236, 234, 229, 0.14);
  --marble: #eceae5;
  --marble-2: #f6f5f2;
  --ink: #1a1d1f;
  --ink-soft: #4b5053;
  --stone: #a3a8aa;
  --gold: #efc649;
  --gold-hi: #ffdf73;
  --cta: #f6c945;
  --cta-hover: #ffd75e;
  --cta-ink: #1f1a0c;

  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: 16px;
  --sec: clamp(72px, 10vw, 128px);
  --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: 80px; }
@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);
  font-feature-settings: "cv05", "ss03";
  -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(--gold); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--granite); 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: 300 clamp(34px, 4.6vw, 60px)/1.04 var(--display);
  letter-spacing: -0.025em;
}

/* Кнопки: прямі кути, як різаний камінь */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 12px;
  font: 500 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--gold { background: var(--cta); color: var(--cta-ink); font-weight: 600; box-shadow: 0 8px 26px -12px rgba(246, 201, 69, .6); }
.btn--gold:hover { background: var(--cta-hover); }
/* Відблиск, що пробігає по головній кнопці */
.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, .95), rgba(255, 255, 255, 0)); transform: skewX(-22deg); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .btn--shine::after { animation: shine 4.2s cubic-bezier(.4, 0, .2, 1) 2.4s 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(236, 234, 229, .45); color: var(--marble); background: rgba(21, 24, 26, .2); }
.btn--ghost:hover { border-color: var(--marble); background: rgba(236, 234, 229, .08); }
.btn--line { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--line:hover { background: var(--gold); color: var(--cta-ink); }
.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(12, 14, 15, .55), transparent); pointer-events: none; transition: opacity .35s; }
.top.is-solid { background: rgba(21, 24, 26, .94); border-color: var(--line); }
@supports (backdrop-filter: blur(8px)) { .top.is-solid { background: rgba(21, 24, 26, .82); backdrop-filter: blur(14px); } }
.top.is-solid::before { opacity: 0; }
.top__inner { position: relative; display: flex; align-items: center; gap: 28px; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: 10px var(--gutter); }
.top__logo img { height: 52px; width: auto; }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a, .top__phone { text-decoration: none; font-size: 15px; color: rgba(236, 234, 229, .82); transition: color .2s; }
.top__nav a:hover, .top__phone:hover { color: var(--marble); }
.top__phone { font-weight: 600; color: var(--marble); letter-spacing: .02em; }
.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: 300 28px/1.2 var(--display); letter-spacing: -0.01em; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu__phone { display: inline-block; margin-top: 24px; font-size: 20px; font-weight: 600; color: var(--gold); text-decoration: none; }

@media (max-width: 1100px) {
  .top__nav a:nth-child(n+4) { display: none; }
}
@media (max-width: 900px) {
  .top__nav, .top__cta { display: none; }
  .top__phone { margin-left: auto; }
  .top__burger { display: block; margin-left: 4px; }
  .top__inner { gap: 12px; padding-block: 8px; }
  .top__logo img { height: 46px; }
  .top.is-open { background: var(--granite); }
}

/* ——— Перший екран ——— */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--granite-3); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(16, 19, 20, .9) 0%, rgba(16, 19, 20, 0) 26%),
    linear-gradient(to bottom, rgba(16, 19, 20, .5) 0%, rgba(16, 19, 20, 0) 18%),
    linear-gradient(to right, var(--granite-3) 0%, var(--granite-3) 42%, rgba(16, 19, 20, .7) 50%, rgba(16, 19, 20, 0) 66%);
}
.hero__photo img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__photo { position: absolute; inset: 0 0 0 auto; width: 62%; overflow: hidden; }
.hero__photo img { object-position: 36% 58%; }
.hero__video { display: none; object-position: 50% 35%; }
.hero__body { padding: 140px var(--gutter) clamp(56px, 9vh, 96px); max-width: calc(var(--wrap) + 2 * var(--gutter)); width: 100%; margin-inline: auto; }
.hero__title { display: flex; flex-direction: column; gap: 10px; }
.hero__word {
  font: 700 clamp(34px, 5.4vw, 82px)/1 var(--display);
  text-transform: uppercase; letter-spacing: .12em;
  margin-left: -.02em; color: #f6f3ec;
}
.hero__place { font: italic 400 clamp(24px, 2.8vw, 40px)/1.15 "Memorial Serif", "Times New Roman", serif; color: #fff; max-width: 16em; }
.hero__lead { margin-top: 22px; max-width: 30em; font-size: clamp(17px, 1.4vw, 19px); color: rgba(236, 234, 229, .84); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (max-width: 760px) {
  .hero { min-height: 0; height: auto; }
  .hero__media { position: relative; height: 76svh; min-height: 520px; }
  .hero__photo { display: none; }
  .hero__word { font-size: 8.8vw; font-weight: 700; letter-spacing: .08em; }
  .hero__video { display: block; }
  .hero__media::after { background: linear-gradient(to top, var(--granite) 0%, rgba(21, 24, 26, .86) 24%, rgba(21, 24, 26, .45) 44%, rgba(21, 24, 26, 0) 62%, rgba(13, 15, 16, .35) 100%); }
  .hero__body { position: relative; margin-top: -30svh; padding: 0 var(--gutter); }
  .hero__lead { margin-top: 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__body { padding-bottom: 8px; }
}

/* Єдиний оркестрований момент: проявлення першого екрану */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo img { animation: drift 34s ease-in-out 2.2s infinite alternate; }
  .js .hero__media { opacity: 0; transition: opacity 1.4s ease; }
  .js .hero__word { clip-path: inset(0 0 100% 0); transform: translateY(18px); transition: clip-path 1.3s var(--ease) .25s, transform 1.3s var(--ease) .25s; }
  .js .hero__place, .js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s var(--ease); }
  .js .hero__place { transition-delay: .7s; }
  .js .hero__lead { transition-delay: .85s; }
  .js .hero__actions { transition-delay: 1s; }
  .hero.is-in .hero__media { opacity: 1; }
  .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 { opacity: 1; transform: none; }
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, -1%); } }

/* ——— Каталог ——— */
.works { padding: var(--sec) 0; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { position: relative; display: block; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 16px; overflow: hidden; isolation: isolate; background: var(--granite-2); color: var(--marble); text-align: left; }
.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::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 12, 13, .92) 0%, rgba(10, 12, 13, .45) 32%, rgba(10, 12, 13, 0) 58%); }
.cat-card__body { position: absolute; left: 24px; right: 84px; bottom: 24px; display: grid; gap: 6px; }
.cat-card__title { font: 500 clamp(24px, 2.2vw, 32px)/1.1 var(--display); letter-spacing: -0.015em; }
.cat-card__count { font-size: 15px; color: rgba(236, 234, 229, .72); }
.cat-card__go { position: absolute; right: 22px; bottom: 24px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--cta); color: var(--cta-ink); transition: transform .45s var(--ease); }
.cat-card__go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; 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); }
}
@media (max-width: 900px) {
  .cats { grid-template-columns: 1fr; gap: 12px; }
  .cat-card { aspect-ratio: 5 / 4; border-radius: 14px; }
  .cat-card__body { left: 18px; bottom: 18px; right: 76px; }
  .cat-card__go { right: 16px; bottom: 18px; width: 46px; height: 46px; }
}
@media (min-width: 561px) and (max-width: 900px) { .cat-card { aspect-ratio: 16 / 10; } }

.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(21, 24, 26, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .catalog__bar { background: rgba(21, 24, 26, .82); 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: 500 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: 600; 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: 300 clamp(32px, 4.2vw, 54px)/1.05 var(--display); letter-spacing: -0.025em; outline: none; }
.catalog__count { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--gold); }
.catalog__text { margin-top: 16px; max-width: 40em; color: rgba(236, 234, 229, .86); font-size: clamp(16px, 1.3vw, 18px); }
.catalog__hint { margin-top: 10px; color: var(--stone); font-size: 15px; }
.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: 300 clamp(20px, 2vw, 26px)/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)); }
  .catalog__cta .btn { width: 100%; }
}
.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; }
.tabs { display: flex; gap: clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__tab {
  position: relative; flex: none; display: flex; align-items: baseline; gap: 8px;
  padding: 6px 0 14px; border: 0; background: none;
  font: 400 clamp(22px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -0.015em; color: var(--stone);
  transition: color .25s;
}
.tabs__tab:hover { color: var(--marble); }
.tabs__tab[aria-selected="true"] { color: var(--marble); }
.tabs__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__count { font: 500 14px/1 var(--sans); color: var(--gold); letter-spacing: .02em; }

.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: 4 / 5; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--granite-2); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease, transform .8s var(--ease); }
.card img.is-loaded { opacity: 1; }
.card::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(10, 12, 13, .72)); pointer-events: none; }
.card__code { position: absolute; left: 12px; bottom: 10px; z-index: 1; font: 600 13px/1 var(--sans); letter-spacing: .06em; color: var(--marble); }
.card__more { position: absolute; right: 12px; bottom: 10px; z-index: 1; font-size: 13px; color: var(--gold-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; } }
.works__more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 36px; }
.works__shown { font-size: 14px; color: var(--stone); }
@media (max-width: 760px) {
  .works__head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .tabs { gap: 20px; }
  .tabs__tab { font-size: 19px; }
  .card__code { left: 9px; bottom: 8px; font-size: 12px; }
  .card__more { display: none; }
  .works__more .btn { width: 100%; }
}

/* ——— Військові ——— */
.military { background: var(--granite-2); padding: var(--sec) 0; overflow: hidden; }
.military__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.military__lead { margin-top: 22px; font-size: clamp(17px, 1.4vw, 19px); color: rgba(236, 234, 229, .86); max-width: 32em; }
.list { margin-top: 28px; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 30px; color: rgba(236, 234, 229, .86); }
.list li::before { content: ""; position: absolute; left: 0; top: .82em; width: 16px; height: 1px; background: var(--gold); }
.military__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.military__media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.arch { position: relative; aspect-ratio: 9 / 16; border-radius: 999px 999px 2px 2px; overflow: hidden; background: var(--granite); outline: 1px solid rgba(239, 198, 73, .45); outline-offset: 10px; }
.arch video { width: 100%; height: 100%; object-fit: cover; }
.arch--b { margin-top: 18%; }
@media (max-width: 900px) {
  .military__inner { grid-template-columns: 1fr; }
  .military__media { grid-template-columns: 1fr; justify-items: center; }
  .arch--a { display: none; }
  .arch--b { margin-top: 0; width: min(78%, 360px); }
  .military__actions .btn { flex: 1 1 220px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .military__media { grid-template-columns: 1fr 1fr; }
  .arch--a { display: block; }
  .arch--b { width: auto; margin-top: 18%; }
}

/* ——— 3D-макети ——— */
.models { background: var(--marble); color: var(--ink); padding: var(--sec) 0 calc(var(--sec) * .8); }
.models__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.models__head p { color: var(--ink-soft); max-width: 34em; }
.rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.model { flex: none; width: clamp(240px, 27vw, 360px); scroll-snap-align: start; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); }
.model__img { display: block; aspect-ratio: 1; background: #fff; overflow: hidden; border: 1px solid rgba(26, 29, 31, .08); }
.model__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.model__code { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
@media (hover: hover) { .model:hover .model__img img { transform: scale(1.04); } }
.models__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.round { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(26, 29, 31, .35); border-radius: 50%; background: transparent; color: var(--ink); transition: background-color .2s, color .2s; }
.round:hover { background: var(--ink); color: var(--marble); }
.round svg, .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; }
@media (max-width: 760px) {
  .models__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
  .model { width: 74vw; }
  .models__nav { display: none; }
}

/* ——— Як працюємо ——— */
.process { padding: var(--sec) 0; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; margin-top: 52px; }
.steps li { counter-increment: step; position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; margin-bottom: 14px; font: 300 46px/1 var(--display); color: var(--gold); }
.steps h3 { font: 600 19px/1.3 var(--sans); }
.steps p { margin-top: 8px; color: var(--stone); font-size: 16px; max-width: 26em; }
.process__note { margin-top: 56px; padding: 18px 0 0; border-top: 1px solid rgba(239, 198, 73, .5); font: 300 clamp(20px, 2vw, 26px)/1.35 var(--display); letter-spacing: -0.01em; max-width: 34em; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 20px 0; }
  .steps li::before { grid-row: span 2; margin: 0; font-size: 38px; }
}

/* ——— Виробництво і граніт ——— */
.about { background: var(--granite-2); padding: var(--sec) 0; }
.about__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); }
.about__text > p { margin-top: 22px; color: rgba(236, 234, 229, .86); max-width: 34em; font-size: clamp(17px, 1.4vw, 19px); }
.stones { align-self: end; }
.stones__title { font: 400 28px/1.1 var(--display); letter-spacing: -0.015em; }
.stones__note { margin-top: 10px; color: var(--stone); font-size: 16px; }
.stones__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 20px; margin-top: 28px; }
.stones__list li { display: flex; align-items: center; gap: 16px; }
.stones__list img { flex: none; width: 76px; height: 76px; object-fit: cover; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); outline: 1px solid rgba(239, 198, 73, .4); outline-offset: 4px; }
.stones__list span { font-size: 16px; color: rgba(236, 234, 229, .9); }
@media (max-width: 900px) { .about__inner { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .stones__list { grid-template-columns: 1fr; } }

/* ——— Питання ——— */
.faq { background: var(--marble); color: var(--ink); padding: var(--sec) 0; }
.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 details { border-top: 1px solid rgba(26, 29, 31, .16); }
.faq details:last-child { border-bottom: 1px solid rgba(26, 29, 31, .16); }
.faq summary { position: relative; list-style: none; padding: 22px 48px 22px 0; font: 600 18px/1.4 var(--sans); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-soft); max-width: 40em; }
@media (max-width: 900px) { .faq__inner { grid-template-columns: 1fr; } .faq h2 { position: static; } }

/* ——— Контакти і форма ——— */
.contact { padding: var(--sec) 0 0; }
.contact__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 120px); padding-bottom: var(--sec); }
.contact__form { align-self: start; padding: clamp(24px, 4vw, 48px); background: var(--granite-2); border: 1px solid rgba(246, 201, 69, .4); border-radius: 20px; box-shadow: 0 40px 90px -50px rgba(246, 201, 69, .35); }
.contact__title { font: 400 clamp(30px, 3.6vw, 46px)/1.05 var(--display); letter-spacing: -0.025em; }
.contact__lead { margin-top: 16px; color: rgba(236, 234, 229, .86); max-width: 32em; }
.form { display: grid; gap: 22px; margin-top: 32px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--stone); }
.field em { font-style: normal; opacity: .7; }
.field input {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(236, 234, 229, .3); border-radius: 0;
  background: transparent; color: var(--marble); font: 400 19px/1.3 var(--sans); transition: border-color .2s;
}
.field input:focus { outline: none; border-bottom-color: var(--gold); }
.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: 14px; color: var(--stone); }
.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(236, 234, 229, .28); border-radius: 10px; font-size: 15px; transition: background-color .2s, border-color .2s, color .2s; }
.choice input:checked + span { background: var(--marble); border-color: var(--marble); color: var(--granite); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); 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(239, 198, 73, .6); max-width: 520px; }
.form__done h3 { font: 300 32px/1.1 var(--display); letter-spacing: -0.02em; }
.form__done p { margin-top: 10px; color: rgba(236, 234, 229, .86); }
.form__done .btn { margin-top: 20px; }
.contact__info { padding-top: 8px; }
.contact__phone { display: inline-block; font: 300 clamp(32px, 3.6vw, 48px)/1 var(--display); letter-spacing: -0.01em; font-feature-settings: "tnum"; text-decoration: none; }
.contact__who { margin-top: 10px; color: var(--stone); }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.contact__list { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact__list dt { color: var(--stone); font-size: 15px; }
.contact__list a { text-decoration-color: rgba(239, 198, 73, .6); text-underline-offset: 4px; }
.contact__route { display: inline-block; margin-top: 22px; color: var(--gold); text-underline-offset: 5px; }
.map { height: clamp(300px, 38vw, 440px); background: var(--granite-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) contrast(.85) brightness(.95); }
@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .contact__buttons .btn { flex: 1 1 160px; }
}

/* ——— Підвал ——— */
.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 32px; }
.foot img { height: 56px; width: auto; opacity: .9; }
.foot a { text-decoration: none; color: var(--marble); }
.foot__copy { margin-left: auto; }
@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(16, 19, 20, .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: 500 13px/1 var(--sans); text-decoration: none; color: var(--marble); }
  .dock a:first-child { color: var(--gold-hi); }
  .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
}

/* ——— Перегляд фото ——— */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: rgba(9, 11, 12, .985); 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: 600; color: var(--marble); letter-spacing: .05em; 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(236, 234, 229, .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(236, 234, 229, .25); border-radius: 50%; background: rgba(21, 24, 26, .6); color: var(--marble); transition: background-color .2s, border-color .2s; }
.lb__arrow:hover { background: rgba(236, 234, 229, .12); border-color: var(--marble); }
.lb__arrow--prev { left: 12px; }
.lb__arrow--next { right: 12px; }
.lb__foot { display: flex; align-items: center; gap: 20px; padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); }
.lb__thumbs { display: flex; gap: 8px; overflow-x: auto; }
.lb__thumbs button { flex: none; width: 60px; height: 60px; padding: 0; border: 1px solid transparent; background: var(--granite-2); opacity: .55; transition: opacity .2s, border-color .2s; }
.lb__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.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(21, 24, 26, .7); }
  .lb__arrow--prev { left: 8px; }
  .lb__arrow--next { right: 8px; }
  .lb__foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .lb__thumbs { justify-content: center; }
  .lb__actions { margin-left: 0; }
  .lb__actions .btn--gold { flex: 1; }
}

/* ——— Вікно заявки ——— */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(9, 11, 12, .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 var(--line); border-radius: 2px; }
.modal__close { position: absolute; right: 10px; top: 10px; }
.modal__pick { width: 84px; height: 104px; margin-bottom: 18px; overflow: hidden; background: var(--granite); }
.modal__pick img { width: 100%; height: 100%; object-fit: cover; }
.modal__title { font: 300 32px/1.1 var(--display); letter-spacing: -0.02em; padding-right: 32px; }
.modal__lead { margin-top: 12px; color: rgba(236, 234, 229, .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: 2px; 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; }

/* ——— Соцмережі ——— */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px 8px 10px; border: 1px solid rgba(236, 234, 229, .22); border-radius: 999px; font-size: 15px; text-decoration: none; color: var(--marble); transition: border-color .2s, background-color .2s; }
.social:hover { border-color: var(--gold); background: rgba(246, 201, 69, .08); }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.social svg .dot, .social svg .fill { fill: currentColor; stroke: none; }
.contact__list dd.socials { margin: 0; }
.menu__socials { margin-top: 20px; }
.foot .socials .social { color: var(--marble); }

/* ——— Відгуки ——— */
.reviews { padding: var(--sec) 0; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.rating { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--marble); }
.rating__num { font: 300 clamp(52px, 6vw, 72px)/.9 var(--display); letter-spacing: -0.03em; }
.rating__side { display: grid; gap: 4px; }
.rating__note { font-size: 15px; color: var(--stone); text-decoration: underline; text-decoration-color: rgba(236, 234, 229, .3); text-underline-offset: 4px; }
.stars { color: var(--gold); letter-spacing: .12em; font-size: 18px; line-height: 1; }
.reviews__list { columns: 3; column-gap: 16px; }
.reviews__list .review { break-inside: avoid; margin-bottom: 16px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--granite-2); border: 1px solid var(--line); border-radius: 16px; }
.review__text { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(236, 234, 229, .9); }
.review__text { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review.is-open .review__text { display: block; }
.review__more { align-self: flex-start; padding: 0; border: 0; background: none; font-size: 15px; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.review__who { display: grid; gap: 2px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.review__who span { font-weight: 400; font-size: 14px; color: var(--stone); }
.reviews__all { display: inline-block; margin-top: 28px; color: var(--gold); text-underline-offset: 5px; }
@media (max-width: 1000px) { .reviews__list { columns: 2; } }
@media (max-width: 680px) {
  .reviews__list { columns: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); }
  .reviews__list::-webkit-scrollbar { display: none; }
  .reviews__list .review { flex: none; width: 84%; margin-bottom: 0; scroll-snap-align: start; padding: 22px; }
  .reviews__head { margin-bottom: 28px; }
}

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