/* Silent Memory — «нічна тиша»: глибокий синій, слонова кістка, серифні заголовки.
   Фірмовий прийом: заголовок, притиснутий праворуч, і фото в тонкій світлій рамці. */

:root {
  --night: #0b1626;
  --night-2: #112038;
  --night-3: #08101c;
  --line: rgba(232, 226, 214, .14);
  --ivory: #efe9dd;
  --ivory-2: #f6f2ea;
  --mist: #a9b6c8;
  --ink: #142033;
  --ink-soft: #4a5568;
  --moon: #b9cdea;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: 18px;
  --sec: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(.22, .7, .12, 1);
}
@media (min-width: 761px) { :root { --gutter: 40px; } }

*, *::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(--night); color: var(--ivory); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
html.is-locked { overflow: hidden; }
img { 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, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ivory); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.h2 { font: 500 clamp(36px, 4.6vw, 64px)/1.02 var(--serif); letter-spacing: -0.01em; }
.h3 { font: 600 13px/1.4 var(--sans); letter-spacing: .02em; color: var(--mist); }

/* Кнопки — прямокутні, без заокруглень */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border: 1px solid transparent; border-radius: 0; font: 600 16px/1.2 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn--lg { min-height: 56px; padding: 14px 32px; }
.btn--ivory { background: var(--ivory); color: var(--ink); }
.btn--ivory:hover { background: #fff; }
.btn--line { border-color: rgba(239, 233, 221, .4); color: var(--ivory); background: transparent; }
.btn--line:hover { border-color: var(--ivory); background: rgba(239, 233, 221, .08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ——— Шапка ——— */
.bar { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; gap: 32px; padding: 14px max(var(--gutter), calc((100% - var(--wrap)) / 2)); transition: background-color .35s, border-color .35s; border-bottom: 1px solid transparent; }
.bar.is-solid { background: var(--night); border-color: var(--line); }
.brand { display: grid; gap: 1px; text-decoration: none; }
.brand__name { font: 600 25px/1 var(--serif); letter-spacing: .01em; }
.brand__sub { font-size: 12px; color: var(--mist); }
.bar__nav { display: flex; gap: 28px; margin-left: auto; }
.bar__nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: rgba(239, 233, 221, .78); transition: color .2s; }
.bar__nav a:hover { color: #fff; }
.bar__links { display: flex; align-items: center; gap: 8px; }
.ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; text-decoration: none; transition: filter .2s; }
.ico:hover { filter: brightness(1.12); }
.ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.ico--viber { background: #7360f2; }
.ico--tg { background: #2a9ed8; }
.ico--call { display: none; background: transparent; border: 1px solid rgba(239, 233, 221, .4); }
.bar__phone { margin-left: 8px; font-weight: 700; text-decoration: none; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.bar__burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; margin-left: 4px; }
.bar__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ivory); transition: transform .3s var(--ease); }
.bar__burger span:first-child { top: 18px; }
.bar__burger span:last-child { top: 26px; }
.bar__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.bar__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: absolute; inset: 100% 0 auto; height: calc(100svh - 72px); background: var(--night); border-top: 1px solid var(--line); padding: 10px var(--gutter) 28px; }
.menu nav a { display: block; padding: 14px 0; font: 500 28px/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid var(--line); text-align: right; }
.menu__phone { display: block; margin-top: 20px; text-align: right; font-size: 21px; font-weight: 700; text-decoration: none; }
@media (max-width: 900px) {
  .bar { gap: 12px; padding-block: 12px; }
  .bar__nav { display: none; }
  .bar__links { margin-left: auto; }
  .bar__phone { font-size: 15px; }
  .bar__burger { display: block; }
  .bar.is-open { background: var(--night); }
  .brand__name { font-size: 22px; }
}

/* ——— Перший екран: арки зліва, заголовок притиснутий праворуч ——— */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--night); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.hero__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: 120px var(--gutter) clamp(60px, 7vw, 100px); min-height: 100svh; }
/* памʼятник-модель на суцільному синьому, без фото й розмиття */
.hero__model { position: relative; height: min(76svh, 720px); min-height: 460px; display: flex; align-items: flex-end; justify-content: center; perspective: 1200px; }
.hero__model img { position: relative; z-index: 2; height: 92%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); transform-origin: 50% 90%; will-change: transform; }
.hero__glow { position: absolute; z-index: 0; left: 50%; top: 46%; width: 118%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 158, 214, .32), rgba(120, 158, 214, .08) 55%, rgba(120, 158, 214, 0) 100%); }
.hero__glow::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(185, 205, 234, .16); }
.hero__floor { position: absolute; z-index: 1; left: 8%; right: 8%; bottom: 2%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0)); }
.hero__text { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.lockup { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--serif); font-weight: 500; line-height: .9; }
.lockup__s { font-size: clamp(30px, 3.4vw, 50px); font-style: italic; color: var(--moon); }
.lockup__l { font-size: clamp(64px, 8.6vw, 132px); letter-spacing: -0.02em; margin: .04em 0 .06em; color: #fff; }
.hero__lead { margin-top: 26px; max-width: 30em; color: rgba(239, 233, 221, .84); font-size: clamp(16px, 1.25vw, 18px); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 34px; }
.hero__gains { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 26px; white-space: nowrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ivory); }
.hero__gains li { position: relative; padding-left: 16px; }
.hero__gains li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--moon); }

@media (max-width: 760px) {
  .bar__phone { display: none; }
  .ico--call { display: grid; }
  .ico { width: 36px; height: 36px; }
  .hero__inner { display: flex; flex-direction: column; min-height: 0; padding: 82px var(--gutter) 104px; gap: 0; }
  .hero__model { order: -1; height: 42svh; min-height: 260px; max-height: 420px; }
  .hero__inner { padding-bottom: 48px; }
  .fab { transition: opacity .3s, transform .3s var(--ease); }
  .fab.is-away { opacity: 0; transform: translateY(20px); pointer-events: none; }
  .hero__glow { width: 100%; }
  .lockup__s { font-size: 30px; }
  .lockup__l { font-size: 17vw; }
  .hero__lead { margin-top: 14px; font-size: 16px; max-width: 20em; }
  .hero__cta { flex-direction: column; align-items: flex-end; gap: 10px; margin-top: 22px; }
  .hero__cta .btn--lg { min-height: 52px; padding: 12px 26px; }
  .hero__gains { display: none; }
  .hero { background: var(--night); }
}
@media (max-width: 380px) { .brand__name { font-size: 19px; } .brand__sub { display: none; } .bar__links { gap: 6px; } }

@media (prefers-reduced-motion: no-preference) {
  .js .lockup > span { opacity: 0; transform: translateY(22px); transition: opacity 1.1s ease, transform 1.2s var(--ease); }
  .js .lockup__l { transition-delay: .15s !important; }
  .js .lockup > span:last-child { transition-delay: .3s; }
  .js .hero__model img { opacity: 0; transform: translateY(60px) scale(.94); transition: opacity 1.2s ease .1s, transform 1.6s var(--ease) .1s; }
  .js .hero__glow { opacity: 0; transform: scale(.8); transition: opacity 1.6s ease .3s, transform 2s var(--ease) .3s; }
  .hero.is-in .lockup > span { opacity: 1; transform: none; }
  .hero.is-in .hero__model img { opacity: 1; transform: none; }
  .hero.is-in .hero__glow { opacity: 1; transform: none; }
  .hero.is-in .hero__model img.is-tilt { transition: transform .6s var(--ease); }
}

/* ——— Каталог: три розділи рядками ——— */
.cats { padding: var(--sec) 0; }
.cats__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.cats__head p { color: var(--mist); max-width: 30em; justify-self: end; }
.rows { display: grid; gap: 14px; }
.row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; width: 100%; padding: 36px 40px; border: 1px solid rgba(185, 205, 234, .16); background: linear-gradient(100deg, #15284a 0%, #112038 55%); text-align: left; transition: border-color .3s, background-color .3s, transform .5s var(--ease); }
.row::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--moon); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.row__count { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--moon); }
.row__text { display: grid; gap: 10px; }
.row__title { font: 500 clamp(36px, 4.4vw, 60px)/1 var(--serif); transition: color .3s, transform .5s var(--ease); }
.row__desc { color: var(--mist); max-width: 32em; }
.row__go { justify-self: start; margin-top: 6px; padding: 10px 22px; border: 1px solid rgba(239, 233, 221, .4); border-radius: 0; font-weight: 600; font-size: 15px; transition: background-color .25s, color .25s, border-color .25s; }
.row__pics { display: flex; align-items: flex-end; }
.row__pics img { width: clamp(96px, 10vw, 150px); height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0; border: 4px solid #13243f; background: var(--night-2); transition: transform .6s var(--ease); }
.row__pics img + img { margin-left: -28px; }
@media (hover: hover) {
  .row:hover { border-color: rgba(185, 205, 234, .4); }
  .row:hover::before { transform: scaleY(1); }
  .row:hover .row__title { transform: translateX(10px); }
  .row:hover .row__go { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
  .row:hover .row__pics img:nth-child(1) { transform: translateY(-8px) rotate(-3deg); }
  .row:hover .row__pics img:nth-child(3) { transform: translateY(-8px) rotate(3deg); }
}
@media (max-width: 760px) {
  .cats__head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
  .cats__head p { justify-self: start; }
  .rows { gap: 12px; }
  .row { grid-template-columns: 1fr; gap: 18px; padding: 16px 16px 24px; }
  .row__pics { order: -1; }
  .row__pics { gap: 6px; }
  .row__pics img { width: calc((100% - 12px) / 3); border: 0; }
  .row__pics img + img { margin-left: 0; }
  .row__title { font-size: 40px; }
}

/* ——— Про майстерню (світлий блок) ——— */
.about { background: var(--ivory-2); color: var(--ink); padding: var(--sec) 0 0; }
.about__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about__big { margin-top: 28px; font: 500 clamp(24px, 2.4vw, 33px)/1.32 var(--serif); color: var(--ink); max-width: 26em; }
.about__lead > p:last-child { margin-top: 20px; color: var(--ink-soft); max-width: 36em; }
.about .h3 { color: #6b7587; }
.svc { margin-top: 18px; border-top: 1px solid rgba(20, 32, 51, .16); }
.svc li { padding: 16px 0; border-bottom: 1px solid rgba(20, 32, 51, .16); font-weight: 500; }
.quote { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.quote p { margin-left: auto; max-width: 18em; text-align: right; font: italic 500 clamp(30px, 3.6vw, 52px)/1.15 var(--serif); color: #24406b; }
@media (max-width: 900px) { .about__inner { grid-template-columns: 1fr; } }

/* ——— Як замовити: лінія-послідовність ——— */
.order { padding: var(--sec) 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line); }
.steps li { counter-increment: s; position: relative; padding-top: 70px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(239, 233, 221, .4); border-radius: 50%; background: var(--night); font: 600 22px/1 var(--serif); }
.steps h3 { font: 500 28px/1.1 var(--serif); }
.steps p { margin-top: 10px; color: var(--mist); font-size: 16px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .steps::before { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps li { padding: 0 0 30px 70px; }
}

/* ——— Контакти ——— */
.contact { background: var(--night-2); padding: var(--sec) 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__info > p:first-of-type { margin-top: 20px; color: var(--mist); max-width: 28em; }
.contact__phone { display: inline-block; margin-top: 30px; font: 500 clamp(36px, 4vw, 52px)/1 var(--serif); text-decoration: none; font-variant-numeric: lining-nums; }
.msgs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.msg { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px 10px 14px; border-radius: 0; font-weight: 600; text-decoration: none; color: #fff; transition: filter .2s; }
.msg:hover { filter: brightness(1.1); }
.msg svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.msg--viber { background: #7360f2; }
.msg--tg { background: #2a9ed8; }
.contact__where { margin-top: 26px; color: var(--mist); font-size: 15px; }
.contact__form { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 28px; background: var(--night); }
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; } }

/* Форми */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--mist); }
.field input { width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(239, 233, 221, .3); border-radius: 0; background: transparent; color: #fff; font: 500 19px/1.3 var(--sans); }
.field input:focus { outline: none; border-bottom-color: var(--moon); }
.field input[aria-invalid="true"] { border-bottom-color: #e7a48f; }
.form .btn { justify-self: start; }
.form__error { color: #f0b09c; font-size: 15px; }
.form__fine { font-size: 13px; color: var(--mist); }
.form__done h3 { font: 500 30px/1.1 var(--serif); }
.form__done p { margin-top: 10px; color: var(--mist); }
.form__done .btn { margin-top: 20px; }

/* ——— Питання: усі відповіді одразу відкриті, сіткою у дві колонки ——— */
.faq { background: var(--ivory-2); color: var(--ink); padding: var(--sec) 0; }
.faq__title { text-align: right; }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.qa { padding: 30px 32px 32px; background: #fff; border: 1px solid rgba(20, 32, 51, .1); }
.qa h3 { font: 600 clamp(25px, 2.3vw, 31px)/1.15 var(--serif); color: var(--night); padding-bottom: 16px; border-bottom: 2px solid var(--night); }
.qa p { margin-top: 16px; color: var(--ink-soft); max-width: 34em; }
@media (max-width: 900px) { .qa-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; } .qa { padding: 22px 20px 24px; } .faq__title { text-align: left; } }

/* ——— Підвал ——— */
.foot { background: var(--night-3); padding: 44px 0 52px; color: var(--mist); font-size: 15px; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 36px; }
.foot__brand .brand__name { font-size: 22px; color: var(--ivory); }
.foot a { color: var(--ivory); text-decoration: none; font-weight: 600; }
.foot__copy { margin-left: auto; }
.foot__dev { flex-basis: 100%; font-size: 14px; opacity: .8; }
.foot__dev a { font-weight: 400; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
@media (max-width: 760px) { .foot { padding-bottom: 110px; } .foot__copy { margin-left: 0; } }

/* ——— Кнопка «Звʼязатися» ——— */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab__btn { position: relative; width: 62px; height: 62px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ivory); color: var(--ink); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6); transition: transform .3s var(--ease); }
.fab__btn:hover { transform: scale(1.05); }
.fab__btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.fab__close { display: none; }
.fab__btn[aria-expanded="true"] .fab__open { display: none; }
.fab__btn[aria-expanded="true"] .fab__close { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .fab__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--ivory); animation: ring 3.2s ease-out 2s infinite; }
  .fab__btn[aria-expanded="true"]::before { display: none; }
}
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.55); } }
.fab__menu { display: grid; gap: 8px; justify-items: end; }
.fab__item { display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border: 0; border-radius: 0; background: #fff; color: var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .55); }
.fab__ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.fab__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.fab__ico--viber { background: #7360f2; }
.fab__ico--tg { background: #2a9ed8; }
.fab__ico--call { background: #2f9e6b; }
.fab__ico--form { background: var(--night-2); }
@media (prefers-reduced-motion: no-preference) {
  .fab__menu:not([hidden]) .fab__item { animation: pop .35s var(--ease) both; }
  .fab__menu .fab__item:nth-child(2) { animation-delay: .04s; }
  .fab__menu .fab__item:nth-child(3) { animation-delay: .08s; }
  .fab__menu .fab__item:nth-child(4) { animation-delay: .12s; }
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ——— Каталог-панель ——— */
.panel { position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain; background: var(--night); }
.panel__bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 24px; min-height: 66px; padding: 8px max(var(--gutter), calc((100% - var(--wrap)) / 2)); background: rgba(11, 22, 38, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .panel__bar { background: rgba(11, 22, 38, .8); backdrop-filter: blur(14px); } }
.panel__back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 0; background: none; font-weight: 600; white-space: nowrap; }
.panel__back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.panel__tabs { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.panel__tabs::-webkit-scrollbar { display: none; }
.panel__tabs button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 0; background: none; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--mist); transition: background-color .2s, color .2s; }
.panel__tabs button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.panel__inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: 0 var(--gutter) 80px; }
.panel__head { padding: 40px 0 28px; text-align: right; }
.panel__title { font: 500 clamp(40px, 5vw, 72px)/1 var(--serif); outline: none; }
.panel__hint { margin-top: 12px; margin-left: auto; max-width: 34em; color: var(--mist); font-size: 15px; }
@media (prefers-reduced-motion: no-preference) { .panel:not([hidden]) { animation: rise .45s var(--ease); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .panel__bar { flex-wrap: wrap; gap: 6px 12px; padding-block: 8px; }
  .panel__tabs { margin-left: 0; width: 100%; }
  .panel__head { padding: 26px 0 20px; }
}

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.card { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--night-2); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease, transform .9s var(--ease); }
.card img.is-loaded { opacity: 1; }
.card::after { content: ""; position: absolute; inset: 62% 0 0; background: linear-gradient(transparent, rgba(8, 16, 28, .78)); pointer-events: none; }
.card__code { position: absolute; left: 12px; bottom: 10px; z-index: 1; font: 600 20px/1 var(--serif); color: #fff; }
.card__price { position: absolute; right: 12px; bottom: 11px; z-index: 1; font-size: 13px; font-weight: 600; color: var(--ivory); }
@media (hover: hover) { .card:hover img { transform: scale(1.05); } }

/* ——— Перегляд фото ——— */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: #060c16; }
.lb__bar { display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter); }
.lb__title { color: var(--mist); font-size: 15px; }
.lb__title #lb-code { font: 600 24px/1 var(--serif); color: #fff; margin-right: 8px; }
.lb__pos { margin-left: auto; color: var(--mist); font-size: 14px; }
.lb__close, .modal__close { width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; }
.lb__close:hover, .modal__close:hover { background: rgba(239, 233, 221, .1); }
.lb__close svg, .modal__close svg, .lb__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb__stage { position: relative; min-height: 0; padding: 0 80px; touch-action: pan-y; }
.lb__img { position: absolute; inset: 0 80px; width: calc(100% - 160px); height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb__arrow { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(239, 233, 221, .25); border-radius: 50%; background: rgba(11, 22, 38, .6); }
.lb__arrow:hover { border-color: var(--ivory); }
.lb__arrow--prev { left: 12px; }
.lb__arrow--next { right: 12px; }
.lb__foot { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); }
.lb__price { margin-right: auto; font: 500 24px/1 var(--serif); }
.lb__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
@media (max-width: 760px) {
  .lb__stage { padding: 0; }
  .lb__img { inset: 0; width: 100%; }
  .lb__arrow { width: 44px; height: 44px; }
  .lb__arrow--prev { left: 6px; }
  .lb__arrow--next { right: 6px; }
  .lb__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .lb__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .lb__actions #lb-want { grid-column: 1 / -1; }
  .lb__actions .btn { min-height: 46px; padding: 10px 14px; font-size: 15px; }
}

/* ——— Вікно заявки ——— */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(6, 12, 22, .72); }
@supports (backdrop-filter: blur(6px)) { .modal { backdrop-filter: blur(6px); } }
.modal__box { position: relative; width: 100%; max-width: 470px; max-height: calc(100svh - 32px); overflow-y: auto; padding: 38px 32px 32px; background: var(--night-2); border: 1px solid var(--line); border-radius: 26px; }
.modal__close { position: absolute; right: 12px; top: 12px; }
.modal__pick { width: 84px; height: 110px; margin-bottom: 18px; overflow: hidden; border-radius: 6px; background: var(--night); }
.modal__pick img { width: 100%; height: 100%; object-fit: cover; }
.modal__title { font: 500 32px/1.05 var(--serif); padding-right: 36px; }
.modal__lead { margin-top: 12px; color: var(--mist); 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: 30px var(--gutter) calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border-width: 1px 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .modal:not([hidden]) .modal__box { animation: rise .45s var(--ease); }
}

.toast { position: fixed; left: 50%; bottom: 96px; z-index: 140; max-width: calc(100% - 32px); translate: -50% 0; padding: 12px 18px; background: var(--ivory); color: var(--ink); border-radius: 0; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; text-align: center; }
.toast.is-on { opacity: 1; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
