/* ==========================================================================
   Dealstone — design system
   ========================================================================== */

:root {
  --ink: #1C1B19;
  --bg: #F3F2EF;
  --muted: #6E6A61;
  --dim: #4E4B45;
  /* Метки в 10–11px живут на --panel: #8B877E давал 3.1:1 — ниже AA. */
  --faint: #747066;
  /* --hair только для линий и рамок: как цвет текста он не проходит контраст. */
  --hair: #CFC9BF;
  --line: rgba(28, 27, 25, .12);
  --line-soft: rgba(28, 27, 25, .08);
  --panel: #F6F5F2;
  --panel-alt: #EFEEEA;
  --stone: #EDEBE7;
  --card: linear-gradient(180deg, #F7F6F3, var(--panel-alt));
  --shadow-lift: 0 26px 50px -30px rgba(28, 27, 25, .5);

  --serif: 'Prata', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --shell: 1240px;
  --shell-wide: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

p { text-wrap: pretty; }

/* Каталог держится на числах — коды фактур, размеры слэба, цены, счётчики.
   Пропорциональные цифры в таких колонках «пляшут» между карточками. */
.mono,
.crumbs,
.page-head__count,
.stat-grid dd,
.stat-row dd,
.spec-grid dd,
.detail__price b,
.stone-card__price,
.stone-card__meta,
.stone-card__code,
.chip b,
.step__num,
.lightbox__counter,
.catalog-status { font-variant-numeric: tabular-nums; }

::selection { background: var(--ink); color: var(--bg); }

/* Бежевые плоскости без зерна читаются как «непрогруженный» экран. Плёнка
   шума поверх всего возвращает поверхности материальность — на сайте про
   камень это к месту. Не перехватывает клики. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

input, select, textarea { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; display: block; }

/* --------------------------------------------------------------------------
   Type primitives
   -------------------------------------------------------------------------- */

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  margin: 0;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.shell--wide { width: min(var(--shell-wide), calc(100% - 48px)); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0;
  background: rgba(243, 242, 239, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease), border-color .5s var(--ease), padding .5s var(--ease);
}

.site-header__inner {
  width: min(var(--shell), calc(100% - 48px));
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border: 1px solid transparent;
  border-radius: 0;
  transition:
    max-width .55s var(--ease), padding .55s var(--ease), border-radius .55s var(--ease),
    background .55s var(--ease), border-color .55s var(--ease), box-shadow .55s var(--ease);
}

.site-header--wide .site-header__inner {
  width: min(var(--shell-wide), calc(100% - 48px));
  max-width: var(--shell-wide);
}

/* Scrolled: header dissolves, inner collapses into a floating pill */
.site-header.is-pill {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 14px 0 0;
}

.site-header.is-pill .site-header__inner {
  max-width: 960px;
  padding: 8px 10px 8px 20px;
  border-radius: 999px;
  background: rgba(243, 242, 239, .72);
  border-color: var(--line-soft);
  box-shadow: 0 10px 40px -18px rgba(28, 27, 25, .35);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.site-header--wide.is-pill .site-header__inner { max-width: 1000px; }

.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .16em;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  flex: none;
}

.brand svg { width: 12px; height: 12px; display: block; }

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a,
.site-nav button {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
  transition: color .25s, background .25s;
}

.site-nav a:hover,
.site-nav button:hover {
  color: var(--ink);
  background: rgba(28, 27, 25, .05);
}

.site-nav a[aria-current='page'] {
  font-weight: 600;
  color: var(--ink);
  background: rgba(28, 27, 25, .06);
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  padding: 17px 34px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .3s var(--ease), opacity .3s, background .25s, color .25s, box-shadow .25s;
}

/* Подъём + тёплая тень вместо гашения прозрачностью: тень держит контраст
   подписи, а opacity его размывала. */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -16px rgba(28, 27, 25, .55);
}

/* Физический отклик на нажатие: кнопка проседает под палец. */
.btn:active {
  transform: translateY(0) scale(.985);
  box-shadow: none;
  transition-duration: .08s;
}

.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { color: var(--bg); background: #292723; }

.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: #FBFAF8; }

.btn--outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(28, 27, 25, .28);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--bg);
  box-shadow: inset 0 0 0 1px var(--ink);
  transform: none;
  opacity: 1;
}

.btn--sm {
  font-size: 13.5px;
  padding: 11px 20px;
  gap: 8px;
}
.btn--sm:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -14px rgba(28, 27, 25, .55); }

/* --------------------------------------------------------------------------
   Breadcrumbs / section labels
   -------------------------------------------------------------------------- */

.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}

.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--ink); }
.crumbs__sep { color: var(--hair); }
.crumbs__here { color: var(--ink); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--hair);
  flex: none;
}

.eyebrow--onDark { color: rgba(243, 242, 239, .55); margin-bottom: 34px; }
.eyebrow--onDark::before { background: rgba(243, 242, 239, .25); }

/* --------------------------------------------------------------------------
   Page head
   -------------------------------------------------------------------------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.04;
  margin: 0 0 14px;
}

.page-head p {
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
  font-size: clamp(16px, 1.3vw, 18px);
}

.page-head__count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
  white-space: nowrap;
}

/* Stat grid (Как работаем) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
}

.stat-grid > div { background: var(--panel); padding: 16px 18px; }

.stat-grid dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

.stat-grid dd {
  font-family: var(--serif);
  font-size: 22px;
  margin: 6px 0 0;
}

/* Inline stats (Отзывы) */
.stat-row { display: flex; gap: 26px; flex-wrap: wrap; margin: 0; }

.stat-row dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

.stat-row dd { font-family: var(--serif); font-size: 28px; margin: 4px 0 0; }

/* --------------------------------------------------------------------------
   CTA panel
   -------------------------------------------------------------------------- */

.cta {
  border-radius: 26px;
  background: var(--ink);
  color: var(--bg);
  padding: clamp(40px, 5.4vw, 76px) clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.08;
  margin: 0;
  max-width: 24ch;
}

.cta p {
  color: rgba(243, 242, 239, .62);
  max-width: 52ch;
  margin: 0;
  font-size: clamp(15px, 1.3vw, 17px);
}

.cta .btn { margin-top: 14px; }

.cta__note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(243, 242, 239, .45);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel-alt);
  padding: 22px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .06em;
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.site-footer nav a,
.footer-col a {
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}

.site-footer nav a:hover,
.footer-col a:hover { border-bottom-color: var(--hair); }

/* Expanded footer (catalog) */
.site-footer--full { padding: 0; }

.site-footer--full .site-footer__inner {
  padding: 44px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  align-items: start;
}

.site-footer--full .brand-mark {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .16em;
  margin: 0 0 10px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.footer-col__title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 4px;
}

/* --------------------------------------------------------------------------
   Landing hero
   -------------------------------------------------------------------------- */

.landing {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.floating-nav {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px 8px 20px;
  border-radius: 999px;
  background: rgba(243, 242, 239, .72);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid var(--line-soft);
  box-shadow: 0 10px 40px -18px rgba(28, 27, 25, .35);
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  scrollbar-width: none;
}

.floating-nav::-webkit-scrollbar { display: none; }
.floating-nav .brand { font-size: 19px; letter-spacing: .14em; margin-right: 8px; }
.floating-nav .site-nav { margin-left: 0; overflow: visible; }
.floating-nav .site-nav a { font-size: 13.5px; padding: 8px 13px; }
.floating-nav .btn--sm { font-size: 13px; padding: 10px 18px; margin-left: 4px; }

.hero {
  position: relative;
  flex: 1;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 132px 0 30px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--stone) url('../images/stones/quartz-340-2.jpg') center / cover no-repeat;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(115% 90% at 50% 12%, rgba(243, 242, 239, .32) 30%, rgba(243, 242, 239, .8) 100%);
}

.hero__inner { position: relative; z-index: 2; padding: 0 22px; margin: auto 0; }

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  flex-wrap: wrap;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--hair);
  flex: none;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8.4vw, 116px);
  line-height: 1.02;
  margin: 24px 0 22px;
  text-wrap: balance;
}

/* padding даёт место нижним выносным (р, у, ц, запятая) — при line-height 1.02
   они иначе срезаются маской wipe-анимации; отрицательный margin возвращает
   строкам исходный ритм. */
.hero h1 > span {
  display: block;
  overflow: hidden;
  padding-bottom: .16em;
  margin-bottom: -.16em;
}

.hero__line { display: inline-block; }

.hero__sub {
  color: var(--dim);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 52ch;
  margin: 0 auto 32px;
}

.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__cta .btn { padding: 18px 34px; }

.hero__chips {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: clamp(26px, 5vh, 52px) 16px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(243, 242, 239, .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
}

.chip b { font-family: var(--serif); font-weight: 400; font-size: 19px; }

.chip small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Process (Как работаем)
   -------------------------------------------------------------------------- */

.section { padding: clamp(60px, 7vw, 110px) 0; }
.section--dark { background: var(--ink); color: var(--bg); margin-top: clamp(48px, 6vw, 90px); }

.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 900px;
}

.steps__rail,
.steps__progress {
  position: absolute;
  left: 27px;
  top: 0;
  width: 1px;
}

.steps__rail { bottom: 0; background: rgba(243, 242, 239, .14); }

.steps__progress {
  height: 100%;
  background: var(--bg);
  transform: scaleY(0);
  transform-origin: top;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(22px, 3vw, 38px) 0;
  align-items: start;
}

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(243, 242, 239, .22);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  background: var(--ink);
  position: relative;
  z-index: 1;
}

.step h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 3vw, 36px);
  margin: 0 0 8px;
}

.step p {
  color: rgba(243, 242, 239, .6);
  max-width: 56ch;
  font-size: 15.5px;
  margin: 0;
}

.step__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(243, 242, 239, .55) !important;
  margin: 12px 0 0 !important;
}

/* Included-in-quote cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  background: var(--card);
}

.info-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  margin: 0 0 10px;
}

.info-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Карточка бывает и ссылкой (навигация с 404) — тогда ей нужен отклик. */
a.info-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
a.info-card:active { transform: translateY(-1px) scale(.995); transition-duration: .1s; }

/* --------------------------------------------------------------------------
   Projects grid
   -------------------------------------------------------------------------- */

.projects {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: clamp(30px, 3.4vw, 52px);
}

.project {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: var(--stone) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(28, 27, 25, .06);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -34px rgba(28, 27, 25, .45), inset 0 0 0 1px rgba(28, 27, 25, .06);
}

.project:active {
  transform: translateY(-1px) scale(.996);
  transition-duration: .1s;
}

.project--wide { grid-column: span 4; aspect-ratio: 16 / 9.5; }
.project--tall { grid-column: span 2; aspect-ratio: 4 / 4.7; }
.project--half { grid-column: span 3; aspect-ratio: 16 / 10.5; }

.project__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.project--tall .project__label { flex-direction: column; align-items: flex-start; gap: 8px; }

.project__label b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 23px);
  background: rgba(243, 242, 239, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 12px;
}

.project__label small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(243, 242, 239, .82);
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: clamp(30px, 3.4vw, 52px);
}

.review {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--card);
  margin: 0;
}

.review > p {
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.36;
  margin: 0;
}

.review footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.review footer b { font-size: 14px; font-weight: 600; }

.review__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

.review__stone {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Catalog
   -------------------------------------------------------------------------- */

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(220px, 268px) 1fr;
  gap: clamp(28px, 3.4vw, 56px);
  align-items: start;
  margin-top: 32px;
}

.filters {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.filter-group { border-top: 1px solid var(--line); padding-top: 16px; }

.filter-group__title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}

.filter-group__options { display: flex; flex-direction: column; gap: 2px; }

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: background .2s, color .2s;
}

.filter-option:hover { background: rgba(28, 27, 25, .05); }
.filter-option[aria-pressed='true'] { color: var(--ink); }

.filter-option__box {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 4px;
  border: 1px solid rgba(28, 27, 25, .28);
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s;
}

.filter-option__box::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: transparent;
}

.filter-option[aria-pressed='true'] .filter-option__box {
  border-color: var(--ink);
  background: var(--ink);
}

.filter-option[aria-pressed='true'] .filter-option__box::after { background: var(--bg); }

.filter-option__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.filters__reset {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid rgba(28, 27, 25, .2);
  padding: 2px 0;
  transition: color .2s;
}

.filters__reset:hover { color: var(--ink); }

/* Stone cards */
.stone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}

.stone-card {
  display: block;
  text-align: left;
  border-radius: 18px;
  overflow: hidden;
  background: var(--stone);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

/* Флекс живёт здесь, а не на <button>: WebKit оборачивает содержимое кнопки
   в анонимный бокс и игнорирует на ней flex-direction. */
.stone-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stone-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line-soft);
}

.stone-card:active {
  transform: translateY(-1px) scale(.994);
  transition-duration: .1s;
}

.stone-card__media {
  position: relative;
  display: block;
  width: 100%;
  flex: none;
  aspect-ratio: 4 / 3.2;
  background: var(--stone) center / cover no-repeat;
  /* Белые фактуры (Ivory White, Snow White) почти сливаются с фоном карточки —
     без рамки кажется, что фото не загрузилось. */
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.stone-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(243, 242, 239, .88);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
}

.stone-card__finish {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(243, 242, 239, .82);
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 6px;
}

.stone-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  background: var(--panel);
  flex: 1;
}

.stone-card__code {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--faint);
}

.stone-card__name { font-family: var(--serif); font-size: 20px; line-height: 1.2; }

.stone-card__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--faint);
  text-transform: uppercase;
}

.stone-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(28, 27, 25, .1);
}

.stone-card__price { font-size: 14px; font-weight: 600; }

.stone-card__more {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.load-more { display: flex; justify-content: center; margin-top: 36px; }
.load-more .btn { font-size: 14px; padding: 15px 34px; }

.empty-state {
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed rgba(28, 27, 25, .2);
  border-radius: 18px;
}

.empty-state h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 10px; }
.empty-state p { color: var(--muted); margin: 0 0 20px; }
.empty-state .btn { font-size: 14px; padding: 13px 28px; }

/* --------------------------------------------------------------------------
   Stone detail
   -------------------------------------------------------------------------- */

.detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: clamp(30px, 3.6vw, 64px);
  align-items: start;
}

.detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 96px;
}

.detail__hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  background: var(--stone) center / cover no-repeat;
  box-shadow: 0 40px 80px -50px rgba(28, 27, 25, .5), inset 0 0 0 1px var(--line-soft);
}

.detail__hero span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(243, 242, 239, .85);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
}

/* Кнопка-подложка на всю площадь кадра: клик по фото открывает его целиком. */
.detail__zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.detail__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 242, 239, .9);
  color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(28, 27, 25, .6);
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s ease, background .18s ease;
}

.detail__arrow svg { width: 20px; height: 20px; }
.detail__arrow--prev { left: 12px; }
.detail__arrow--next { right: 12px; }
.detail__arrow:hover { background: #fff; }

/* На тач-устройствах hover не наступает никогда — там стрелки видны всегда. */
.detail__hero:hover .detail__arrow,
.detail__arrow:focus-visible { opacity: 1; }

@media (hover: none) {
  .detail__arrow { opacity: 1; }
}

.detail__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.detail__source {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--faint);
  margin: 0 0 30px;
}

.detail__source a { border-bottom: 1px solid var(--hair); }
.detail__source a:hover { border-bottom-color: var(--ink); }

.catalog-status {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--faint);
  margin: 28px 0 0;
}

.detail__thumb {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--stone) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  cursor: pointer;
  transition: box-shadow .18s ease, opacity .18s ease;
}

.detail__thumb:hover { opacity: .88; }

.detail__thumb.is-active {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.detail__thumb--flat {
  background: repeating-linear-gradient(135deg, #E7E5E0 0 7px, #DEDCD6 7px 14px);
}

.detail__thumb span {
  position: absolute;
  inset: auto 8px 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(243, 242, 239, .85);
  padding: 4px 7px;
  border-radius: 5px;
  text-align: center;
}

.detail__tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.detail__code { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--faint); }

.detail__badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  padding: 6px 10px;
  border-radius: 999px;
}

.detail h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  margin: 0 0 16px;
}

.detail__about { color: var(--muted); max-width: 52ch; margin: 0 0 26px; font-size: 16px; }

.detail__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail__price b { font-family: var(--serif); font-weight: 400; font-size: 30px; }

.detail__price span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Ячеек нечётное число, поэтому последний ряд бывает неполным. Линии рисуем
   тенями на самих ячейках, а фон контейнера делаем как у панели — тогда
   пустое место в конце выглядит частью панели, а не серой дырой. */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 26px 0 0;
}

.spec-grid > div {
  background: var(--panel);
  padding: 14px 16px;
  box-shadow: 0 0 0 1px var(--line);
}

.spec-grid dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

.spec-grid dd { font-size: 14.5px; font-weight: 600; margin: 4px 0 0; }

.detail__usage-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 26px 0 10px;
}

.detail__usage { color: var(--muted); margin: 0 0 30px; }

.similar { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); padding-top: 34px; }

.similar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.similar-card {
  display: block;
  text-align: left;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: transform .4s var(--ease);
}

.similar-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.similar-card:hover { transform: translateY(-4px); }
.similar-card:active { transform: translateY(-1px) scale(.994); transition-duration: .1s; }

.similar-card__media {
  display: block;
  width: 100%;
  flex: none;
  aspect-ratio: 4 / 2.6;
  background: var(--stone) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.similar-card__body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; }
.similar-card__body .stone-card__name { font-size: 18px; }
.similar-card__body .stone-card__code { font-size: 10px; }
.similar-card__body .stone-card__meta { font-size: 10px; }

/* --------------------------------------------------------------------------
   Quote form
   -------------------------------------------------------------------------- */

.quote {
  border: 1px solid rgba(28, 27, 25, .14);
  border-radius: 20px;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--card);
}

.quote h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 8px;
}

.quote__lead { color: var(--muted); margin: 0 0 24px; font-size: 15px; }

.quote__fields { display: flex; flex-direction: column; gap: 18px; }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field > span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

.field input,
.field select,
.field textarea {
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(28, 27, 25, .22);
  padding: 9px 2px;
  border-radius: 0;
  transition: border-color .25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--ink); }

.field select { appearance: none; }
.field textarea { resize: vertical; min-height: 74px; }

.upload { display: flex; flex-direction: column; gap: 12px; }

.upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload__drop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px dashed rgba(28, 27, 25, .28);
  border-radius: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}

.upload__drop:hover,
.upload__input:focus-visible + .upload__drop { border-color: var(--ink); color: var(--ink); }

.upload__drop svg { flex: none; }

.upload.is-dragover .upload__drop {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(28, 27, 25, .04);
}

.upload__hint { font-size: 12.5px; line-height: 1.5; max-width: 52ch; }
.upload__hint b { font-weight: 500; color: var(--ink); }

.upload__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.upload__list:empty { display: none; }

.upload__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(28, 27, 25, .14);
  background: var(--panel-alt);
}

.upload__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.upload__meta {
  display: block;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: none;
  background: rgba(28, 27, 25, .62);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}

.upload__remove:hover { background: var(--ink); }

.consent { display: flex; align-items: flex-start; gap: 10px; text-align: left; }

.consent__box {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid rgba(28, 27, 25, .3);
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s;
}

.consent__box::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: transparent;
}

.consent[aria-pressed='true'] .consent__box { border-color: var(--ink); background: var(--ink); }
.consent[aria-pressed='true'] .consent__box::after { background: var(--bg); }

.consent span:last-child { font-size: 12.5px; color: var(--muted); max-width: 52ch; }

.quote__submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.quote__submit .btn { font-size: 14px; padding: 16px 32px; gap: 10px; }

.quote__note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .04em;
  margin: 0;
  max-width: 34ch;
}

.quote__note.is-error { color: #8a5a3c; }

.quote__done {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  animation: rise .5s var(--ease) both;
}

.quote__done h2 { max-width: 34ch; }
.quote__done p { color: var(--muted); margin: 0; max-width: 48ch; }
.quote__done .btn { margin-top: 6px; font-size: 14px; padding: 14px 28px; }

.quote__done-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}

.reveal-hidden.is-visible { opacity: 1; transform: none; }

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-group__options { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .filter-option { margin: 0; padding: 7px 12px; box-shadow: inset 0 0 0 1px var(--line); }
  .detail__gallery { position: static; }
}

@media (max-width: 860px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project--wide,
  .project--tall,
  .project--half { grid-column: span 2; aspect-ratio: 16 / 10.5; }
}

@media (max-width: 720px) {
  .shell, .shell--wide, .site-header__inner, .site-header--wide .site-header__inner {
    width: calc(100% - 32px);
  }
  /* Keep the primary CTA — it is the conversion path — and let the nav scroll.
     A right-edge fade signals there is more nav off-screen. */
  .site-header__inner { gap: 10px; }
  .brand { font-size: 16px; letter-spacing: .1em; gap: 6px; }
  .brand svg { width: 10px; height: 10px; }
  .site-header.is-pill .site-header__inner { padding: 8px 8px 8px 14px; }
  .site-nav {
    margin-left: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  }
  .site-nav a, .site-nav button { padding: 8px 10px; }
  .site-header__actions { gap: 8px; }
  .btn--sm { font-size: 12.5px; padding: 10px 14px; }
  .floating-nav { padding: 8px 10px; gap: 4px; }
  .floating-nav .brand { margin-right: 4px; }
  .projects { grid-template-columns: 1fr; }
  .project--wide, .project--tall, .project--half { grid-column: span 1; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal-hidden { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Полноэкранный просмотр фото камня
   -------------------------------------------------------------------------- */

body.is-locked { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(20, 19, 18, .93);
}

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 40px 90px -50px #000;
}

.lightbox__arrow,
.lightbox__close {
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 242, 239, .12);
  color: #F3F2EF;
  cursor: pointer;
  transition: background .18s ease;
}

.lightbox__arrow { width: 48px; height: 48px; }
.lightbox__arrow svg { width: 24px; height: 24px; }
.lightbox__arrow:hover,
.lightbox__close:hover { background: rgba(243, 242, 239, .26); }

.lightbox__close {
  position: absolute;
  top: clamp(12px, 2.5vw, 28px);
  right: clamp(12px, 2.5vw, 28px);
  width: 40px;
  height: 40px;
  font-size: 26px;
  line-height: 1;
}

.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 2.5vw, 28px);
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(243, 242, 239, .7);
}

/* На узком экране стрелки уводим на само фото, иначе ему не остаётся места. */
@media (max-width: 640px) {
  .lightbox { gap: 0; }
  .lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(243, 242, 239, .18);
  }
  .lightbox__arrow--prev { left: 10px; }
  .lightbox__arrow--next { right: 10px; }
}
