/* Artgran — вироби з граніту та мармуру, Миколаїв */
@font-face { font-family: "Carlito"; src: url("../fonts/Carlito-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("../fonts/Carlito-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --marble: #EEF0EE;      /* фон: холодний білий мармур */
  --paper: #F8F9F8;       /* картки, форма */
  --vein: #D3D8D6;        /* лінії, межі */
  --slate: #1E2427;       /* текст і темні розділи */
  --slate-2: #2A3236;
  --mute: #5B676C;        /* другорядний текст */
  --lab: #2A6A82;         /* лабрадорит: кнопки */
  --lab-h: #225869;
  --lab-light: #8FC0CE;   /* акцент на темному */
  --display: "Unbounded", "Carlito", "Segoe UI", Arial, sans-serif;
  --sans: "Mulish", "Carlito", "Segoe UI", Roboto, Arial, sans-serif;
  --bevel: 9px;
  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
html.is-locked, html.is-locked body { overflow: hidden; }
body { margin: 0; background: transparent; color: var(--slate); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
/* фон сторінки: білий мармур з прожилками, нерухомий під контентом */
html { background: #EEEFEE; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #EEEFEE url("../img/marble-bg.webp") center / cover no-repeat; pointer-events: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.2vw, 42px); }
h3 { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; }
:focus-visible { outline: 3px solid var(--lab-light); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Кнопки: кути з фаскою, як оброблений край плити ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 16px/1.1 var(--sans); letter-spacing: .01em; text-align: center;
  border-radius: 6px;
  transition: background-color .2s, color .2s;
}
.btn:focus-visible { outline: 3px solid var(--lab-light); outline-offset: 3px; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 17px; }
.btn--wide { width: 100%; }
.btn--lab { background: var(--lab); color: #fff; }
.btn--lab:hover { background: var(--lab-h); }
.btn--ghost { background: rgba(238, 240, 238, .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(238, 240, 238, .26); }
.btn--ghost-dark { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1.5px var(--slate); }
.btn--ghost-dark:hover { background: rgba(30, 36, 39, .06); }

/* ---------- Шапка ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; color: #fff; transition: background-color .3s, color .3s, box-shadow .3s; }
.top__in { max-width: 1400px; margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; gap: 28px; }
.top.is-solid, .top.is-open { background: rgba(238, 240, 238, .96); color: var(--slate); box-shadow: 0 1px 0 var(--vein); backdrop-filter: blur(8px); }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.logo__name { font: 600 22px/1 var(--display); letter-spacing: -.02em; }
.logo__sub { font-size: 13px; margin-top: 4px; opacity: .8; }
.nav { display: flex; gap: 26px; }
.nav a, .top__phone { text-decoration: none; font-size: 17px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.top__phone { font-weight: 700; white-space: nowrap; }
.top__burger { display: none; width: 46px; height: 46px; border: 0; background: none; padding: 0; position: relative; }
.top__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .25s; }
.top__burger span:first-child { top: 18px; } .top__burger span:last-child { top: 26px; }
.top__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.top__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { padding: 8px var(--pad) 24px; display: grid; gap: 4px; }
.menu a { text-decoration: none; font: 500 20px/1.4 var(--display); padding: 8px 0; border-bottom: 1px solid var(--vein); }
.menu .menu__phone { font: 700 20px/1.3 var(--sans); border: 0; padding-top: 14px; }

/* ---------- Перший екран ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; color: #fff; display: flex; align-items: flex-end; overflow: hidden; background: var(--slate); }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;  object-position: 60% 50%; transform: scale(1.08); transition: transform 2.4s cubic-bezier(.2,.6,.1,1); }
.hero.is-in .hero__photo { transform: scale(1); }
.hero__media::after { content: ""; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(90deg, rgba(20,25,27,.66) 0%, rgba(20,25,27,.3) 42%, rgba(20,25,27,0) 68%),
              linear-gradient(0deg, rgba(20,25,27,.7) 0%, rgba(20,25,27,0) 45%),
              linear-gradient(180deg, rgba(20,25,27,.45) 0%, rgba(20,25,27,0) 22%); }
.hero__about { position: absolute; z-index: 2; top: 92px; left: max(var(--pad), calc((100vw - 1400px) / 2 + var(--pad))); max-width: 380px; margin: 0; font: italic 400 15px/1.55 var(--sans); color: rgba(255,255,255,.9); text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.hero__in { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto; padding: 140px var(--pad) 128px; }
.hero__title { font-size: clamp(34px, 4.9vw, 70px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; max-width: 15em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero__line:nth-child(2) > span { transition-delay: .12s; }
.hero__lead { max-width: 33em; font-size: clamp(18px, 1.5vw, 21px); margin-top: 22px; opacity: 0; transition: opacity .8s .45s; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; opacity: 0; transition: opacity .8s .6s; }
.hero.is-in .hero__line > span { transform: none; }
.hero.is-in .hero__lead, .hero.is-in .hero__actions { opacity: 1; }

/* ---------- Заголовки розділів ---------- */
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 44px; }
.head p { color: var(--mute); max-width: 34em; }

/* ---------- Каталог: список розділів з переглядом ---------- */
.works { padding: clamp(80px, 10vw, 140px) 0 clamp(70px, 8vw, 110px); }
.tiles-cat { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tc { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--vein); text-align: left; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.tc:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--vein), 0 14px 30px -18px rgba(30,36,39,.45); }
.tc__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--vein); }
.tc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tc:hover .tc__img img { transform: scale(1.05); }
.tc__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; flex: 1; }
.tc__name { font: 600 18px/1.2 var(--display); letter-spacing: -.02em; }
.tc__meta { font-size: 14px; line-height: 1.4; color: var(--mute); }
.tc__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: flex-end; }
.tc__count { font-size: 14px; font-weight: 700; color: var(--lab); }
.tc__go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--marble); color: var(--slate); transition: background-color .25s, color .25s; }
.tc:hover .tc__go { background: var(--lab); color: #fff; }

/* ---------- Підбір каменю ---------- */
.stone { padding: clamp(70px, 9vw, 120px) 0; background: rgba(250, 251, 250, .55); border-block: 1px solid var(--vein); }
.picker { display: grid; gap: clamp(20px, 3vw, 32px); }
.picker__list { display: grid; gap: 10px; }
.picker__group { font-weight: 700; font-size: 15px; color: var(--mute); margin-top: 6px; }
.picker__row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; }
.pick { display: grid; grid-template-columns: 1fr; align-items: center; gap: 8px; padding: 6px; text-align: center !important; font-size: 14px !important; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; font: 600 17px/1.3 var(--sans); box-shadow: inset 0 0 0 1px var(--vein); transition: background-color .2s, box-shadow .2s; }
.pick { min-width: 0; }
.pick span { overflow-wrap: anywhere; line-height: 1.2; }
.pick img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.pick:hover { background: var(--marble); }
.pick[aria-selected="true"] { background: var(--slate); color: #fff; box-shadow: none; }
.picker__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: rgba(255, 255, 255, .82); border-radius: 12px; overflow: hidden; min-height: 420px; }
.picker__tex img { width: 100%; height: 100%; object-fit: cover; }
.picker__info { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.picker__info h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; }
.picker__info p { color: var(--mute); }
.picker__use b { color: var(--slate); }
.picker__work { margin: 4px 0 0; display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; font-size: 15px; color: var(--mute); }
.picker__work img { width: 88px; height: 88px; object-fit: cover; border-radius: 6px; }
.picker__info .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Чому ми ---------- */
.why { background: var(--slate); color: #fff; padding: clamp(70px, 9vw, 120px) 0; }
.why__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.why__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.why__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.why__lead { margin-top: 18px; color: rgba(255,255,255,.86); font-size: 19px; max-width: 34em; }
.why__products { margin-top: 20px; display: grid; gap: 10px; color: rgba(255,255,255,.78); max-width: 36em; }
.why__products b { color: #fff; }
.why__sub { margin-top: 30px; font: 600 18px/1.3 var(--display); color: #fff; }
.why__end { margin-top: 28px; font-weight: 700; color: var(--lab-light); }
.facts { margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
.facts div { border-top: 1px solid rgba(255,255,255,.22); padding-top: 16px; }
.facts dt { font: 500 18px/1.3 var(--display); color: var(--lab-light); }
.facts dd { margin: 8px 0 0; color: rgba(255,255,255,.82); }

/* ---------- Процес ---------- */
.process { padding: clamp(80px, 10vw, 140px) 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--slate); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font: 500 36px/1 var(--display); color: var(--lab); margin-bottom: 14px; }
.steps p { color: var(--mute); margin-top: 10px; }
.process { padding-bottom: clamp(32px, 4vw, 48px); }
.story { margin-top: 64px; background: var(--slate); color: #fff; border-radius: 16px; padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 22px; }
.story__title { font: 600 clamp(20px, 2vw, 26px)/1.25 var(--display); letter-spacing: -.02em; margin: 0; }
.story__text p { color: rgba(255,255,255,.78); margin-bottom: 24px; }
.btn--light { background: #fff; color: var(--slate); }
.btn--light:hover { background: var(--lab-light); }
.story__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: st; }
.story__row li { position: relative; border-radius: 10px; overflow: hidden; }
.story__row img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.story__row span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; font-size: 15px; font-weight: 700; background: linear-gradient(0deg, rgba(20,25,27,.85), rgba(20,25,27,0)); }
.story__row span::before { content: counter(st); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: #fff; color: var(--slate); font-size: 13px; }
.calc { padding-top: clamp(32px, 4vw, 48px) !important; }

/* ---------- Питання ---------- */
.faq { padding: clamp(70px, 9vw, 120px) 0; background: rgba(250, 251, 250, .55); border-block: 1px solid var(--vein); }
.faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); }
.faq details { border-bottom: 1px solid var(--vein); }
.faq details:first-child { border-top: 1px solid var(--vein); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 500 17px/1.4 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--lab); border-bottom: 2px solid var(--lab); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--mute); max-width: 40em; }

/* ---------- Розрахунок вартості ---------- */
.calc { padding: clamp(80px, 10vw, 140px) 0; }
.calc__in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.calc__card { background: var(--paper); border-radius: 14px; padding: clamp(24px, 4vw, 48px); box-shadow: inset 0 0 0 1px var(--vein); }
.calc__step { font-weight: 700; color: var(--lab); margin-bottom: 10px; }
.calc__card h2 { margin-bottom: 26px; }
.tiles { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tiles legend { font: 600 18px/1.3 var(--sans); margin-bottom: 14px; padding: 0; }
.tile { position: relative; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--vein); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tile span { padding: 12px 12px 14px; font-weight: 700; font-size: 15px; line-height: 1.25; }
.tile--plain { justify-content: center; background: var(--marble); }
.tile--plain span { font-size: 16px; color: var(--lab); }
.tile:hover { box-shadow: inset 0 0 0 2px var(--lab); }
.tile:has(input:focus-visible) { outline: 3px solid var(--lab-light); outline-offset: 2px; }
.tile:has(input:checked) { box-shadow: inset 0 0 0 3px var(--lab); }
.calc__chosen { font-size: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.calc__back { border: 0; background: none; color: var(--lab); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 6px 0; }
.calc__note { color: var(--mute); margin: 10px 0 18px; max-width: 36em; }
.calc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.calc__s2 .btn { margin-top: 4px; }
.calc__side { padding-top: 6px; display: grid; gap: 6px; }
.calc__side-title { color: var(--mute); font-size: 15px; }
.calc__addr { margin: 12px 0 14px; color: var(--mute); }
.info__phone { display: block; font: 500 22px/1.4 var(--display); text-decoration: none; }
.info__phone:hover { color: var(--lab); }
.map { aspect-ratio: 4 / 3; background: var(--vein); border-radius: 10px; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

/* ---------- Форми ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 15px; color: var(--mute); }
.field input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--vein); background: #fff; color: var(--slate); font: 400 17px var(--sans); border-radius: 6px; }
.field input:focus { outline: 0; border-color: var(--lab); box-shadow: 0 0 0 3px rgba(45, 95, 115, .25); }
.field input[aria-invalid="true"] { border-color: #B3412E; }
.lead-card .field input { border-color: transparent; }
.chips { border: 0; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 15px; margin-bottom: 10px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: block; border-radius: 6px; padding: 9px 16px; border: 1.5px solid rgba(255,255,255,.35); font-size: 16px; }
.chips input:checked + span { background: var(--lab-light); border-color: var(--lab-light); color: var(--slate); font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid var(--lab-light); outline-offset: 2px; }
.form__error { color: #B3412E; font-size: 16px; }
.lead-card .form__error { color: #FFB4A3; }
.form__done-title { font: 500 22px/1.3 var(--display); margin-bottom: 8px; }
.form__done .btn { margin-top: 20px; }

/* ---------- Підвал і нижня панель ---------- */
.foot { background: var(--slate); color: rgba(255,255,255,.78); padding: 48px 0; font-size: 16px; }
.foot__in { display: grid; gap: 8px; }
.foot__logo { font: 600 22px/1 var(--display); color: #fff; margin-bottom: 6px; }
.foot a { color: #fff; text-decoration: none; margin-right: 18px; font-weight: 700; }
.foot__copy { margin-top: 10px; opacity: .7; }
.foot__dev { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; opacity: .75; }
.foot .foot__dev a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin: 0; }
.dock { display: none; }

/* ---------- Розділ каталогу ---------- */
.catalog { position: fixed; inset: 0; z-index: 60; background: #EEEFEE url("../img/marble-bg.webp") center / cover no-repeat fixed; overflow-y: auto; overscroll-behavior: contain; }
.catalog__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--pad); background: rgba(238,240,238,.95); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--vein); }
.catalog__back { border: 0; background: none; cursor: pointer; font: 700 17px var(--sans); padding: 12px 4px 12px 26px; position: relative; }
.catalog__back::before { content: ""; position: absolute; left: 6px; top: 50%; width: 10px; height: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.catalog__cta { min-height: 44px; padding: 10px 20px; font-size: 16px; }
.catalog__head { padding: 40px 0 30px; max-width: 760px; }
.catalog__head h2:focus { outline: 0; }
.catalog__count { font-weight: 700; color: var(--lab); margin-top: 8px; }
.catalog__text { margin-top: 14px; color: var(--slate); }
.catalog__hint { margin-top: 10px; color: var(--mute); font-size: 16px; }
.grid { columns: 3 280px; column-gap: 14px; }
.card { display: block; width: 100%; margin: 0 0 14px; break-inside: avoid; border: 0; padding: 0; background: var(--vein); cursor: zoom-in; position: relative; overflow: hidden; }
.card img { width: 100%; height: auto; opacity: 0; transition: opacity .4s, transform .8s var(--ease); }
.card img.is-loaded { opacity: 1; }
.card:hover img { transform: scale(1.03); }
.card__code { position: absolute; left: 10px; top: 10px; background: rgba(30,36,39,.82); color: #fff; font-size: 14px; font-weight: 700; padding: 4px 9px; }
.catalog__end { margin: 40px 0 80px; padding: 36px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--vein); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.catalog__end p { font: 500 18px/1.4 var(--display); max-width: 24em; }

/* ---------- Перегляд фото ---------- */
.lb { position: fixed; inset: 0; z-index: 70; background: #121618; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.lb__top { display: flex; align-items: center; gap: 16px; padding: 12px var(--pad); }
.lb__info { margin-right: auto; font-size: 17px; }
.lb__info b { font: 600 17px var(--display); margin-right: 8px; }
.lb__info span { opacity: .75; }
.lb__pos { opacity: .7; font-size: 15px; }
.lb__close, .lb__nav { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; }
.lb__close:hover, .lb__nav:hover { background: rgba(255,255,255,.2); }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 76px; touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
#lb-img { max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: 14px; } .lb__nav--next { right: 14px; }
.lb__bottom { display: flex; justify-content: center; padding: 14px var(--pad) calc(16px + env(safe-area-inset-bottom)); }

/* ---------- Вікно заявки ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(18, 22, 24, .6); display: grid; place-items: center; padding: 16px; }
.modal__box { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper); padding: 36px 32px 32px; border-radius: 12px; }
.modal__box h2 { font-size: 24px; padding-right: 40px; }
.modal__box > p { color: var(--mute); margin: 10px 0 22px; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.modal__pick { width: 96px; height: 96px; margin-bottom: 16px; overflow: hidden; }
.modal__pick img { width: 100%; height: 100%; object-fit: cover; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 90; background: var(--slate); color: #fff; padding: 12px 18px; opacity: 0; pointer-events: none; transition: .3s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Планшет і телефон ---------- */
@media (max-width: 1080px) {
  .picker__row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tiles-cat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { display: none; }
  .top__burger { display: block; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .top__in { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .top__phone, .top__cta { display: none; }
  .logo__name { font-size: 20px; }
  .logo__sub { font-size: 12px; }
  .hero { align-items: flex-end; }
  .hero__media::after { background: linear-gradient(0deg, rgba(20,25,27,.84) 0%, rgba(20,25,27,.42) 36%, rgba(20,25,27,0) 56%), linear-gradient(180deg, rgba(20,25,27,.62) 0%, rgba(20,25,27,.35) 18%, rgba(20,25,27,0) 30%); }
  .hero__in { padding: 110px var(--pad) 36px; }
  .hero__about { top: 74px; right: var(--pad); max-width: none; font-size: 13.5px; line-height: 1.5; }
  .hero__photo { object-position: 50% 30%; }
  .hero__title { font-size: clamp(27px, 7.6vw, 36px); }
  .hero__lead { font-size: 17px; margin-top: 16px; }
  .hero__actions { margin-top: 22px; gap: 10px; }
  .hero__actions .btn { min-height: 48px; padding: 12px 18px; font-size: 15px; }
  .head { grid-template-columns: 1fr; margin-bottom: 28px; }
  .why__in, .faq__in, .calc__in, .picker, .picker__stage { grid-template-columns: 1fr; }
  .tiles-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tc__body { padding: 12px 12px 12px; gap: 4px; }
  .tc__name { font-size: 15px; }
  .tc__meta { font-size: 12.5px; }
  .tc__count { font-size: 13px; }
  .tc__go { width: 28px; height: 28px; }
  .tc--other { grid-column: 1 / 3; flex-direction: row; }
  .tc--other .tc__img { width: 42%; aspect-ratio: auto; flex: none; }
  .picker__row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .pick { padding: 4px; gap: 5px; font-size: 11.5px !important; }
  .pick { grid-template-columns: 1fr; gap: 6px; padding: 6px; font-size: 13px; text-align: center; }
  .pick { min-width: 0; }
.pick span { overflow-wrap: anywhere; line-height: 1.2; }
.pick img { width: 100%; height: auto; aspect-ratio: 1; }
  .picker__stage { min-height: 0; }
  .picker__tex { aspect-ratio: 16 / 9; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile img { aspect-ratio: 4 / 3; }
  .tile--plain { grid-column: 1 / 3; min-height: 64px; }
  .calc__fields { grid-template-columns: 1fr; }
  .why__photo { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: 1fr; gap: 22px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
  .steps li::before { grid-row: span 2; font-size: 34px; margin: 0; }
  .story { margin-top: 44px; padding: 20px 14px; gap: 16px; }
  .story__row { gap: 6px; }
  .story__row span { font-size: 12px; padding: 24px 8px 8px; }
  .story__row span::before { width: 18px; height: 18px; font-size: 11px; margin-right: 4px; }
  .story .btn { width: 100%; }
  .faq summary { font-size: 16px; }
  .lb__stage { padding: 0 8px; }
  .lb__nav { display: none; }

  .grid { columns: 2 140px; column-gap: 8px; }
  .card { margin-bottom: 8px; }
  .catalog__head { padding: 26px 0 20px; }
  .catalog__end { padding: 24px; margin-bottom: 60px; }

  .modal { place-items: end center; padding: 0; }
  .modal__box { width: 100%; max-height: 92vh; padding: 30px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; }
  .foot { padding-bottom: 110px; }
  .dock { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(238,240,238,.96); box-shadow: 0 -1px 0 var(--vein); backdrop-filter: blur(8px); transform: translateY(110%); transition: transform .35s var(--ease); }
  .dock.is-on { transform: none; }
  .dock .btn { min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero__line > span { transform: none; }
  .hero__lead, .hero__actions { opacity: 1; }
}
