@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600;700&display=swap&subset=cyrillic,latin");

/* ==========================================================================
   Каменный век — design system
   «Engraved permanence»: granite palette, serif display + humanist sans,
   gold used only as a thin accent, calm editorial rhythm, AA contrast.
   ========================================================================== */

:root {
  /* surfaces */
  --paper: #f4f1ea;
  --paper-2: #ebe7dd;
  --surface: #ffffff;

  /* ink / text */
  --ink: #16171a;
  --ink-2: #34363a;
  --muted: #6c6b63;

  /* lines */
  --line: #e3ddd0;
  --line-2: #cec6b4;

  /* dark "granite" */
  --graphite: #1d201e;
  --graphite-2: #272b28;
  --graphite-soft: #3a3f3b;

  /* brand gold (from the logo) */
  --gold: #b4a16b;
  --gold-bright: #cdb878;
  --gold-ink: #8a7635; /* AA-safe gold for small text on light */

  /* effects */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 16, 0.05);
  --shadow: 0 18px 48px rgba(26, 24, 18, 0.10);
  --shadow-card: 0 22px 60px rgba(26, 24, 18, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, 0.7), transparent 60%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: rgba(180, 161, 107, 0.28); }

a { color: inherit; }

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-2);
}

.muted { color: var(--muted); }

/* Eyebrow labels removed by design — hidden everywhere they still appear in markup */
.section-kicker,
.catalog-pill {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
main,
footer#siteFooter {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* shared centered inner container (used inside full-bleed bands) */
.hb-inner {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

main {
  padding-top: clamp(36px, 6vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

/* Home hero sits flush under the header — no gap after the menu */
.page-home main { padding-top: 0; }

.section-block {
  margin: 0 0 clamp(44px, 6vw, 84px);
}
/* last block before the (full-bleed) CTA band / footer shouldn't double up spacing */
main > section:last-child,
main > .section-block:last-child,
main > div:last-child { margin-bottom: 0; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 4vw, 44px);
}
.section-heading .section-kicker { margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.secondary-link,
button,
.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border: 1px solid var(--graphite);
  border-radius: 999px;
  color: #fff;
  background: var(--graphite);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.secondary-link:hover,
button:hover,
.btn:hover {
  background: var(--graphite-soft);
  border-color: var(--graphite-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-2);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  position: relative;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 14px;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.text-link:hover::after { transform: scaleX(1); }

.quiet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
header#siteHeader {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

/* full-bleed dark band, content centered */
.header-service-bar {
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-service-bar .hb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
}
.header-service-links { display: flex; flex-wrap: wrap; gap: 18px; }
.header-service-links a { color: inherit; text-decoration: none; white-space: nowrap; }
.header-service-links a:hover { color: var(--gold-bright); }

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 0 16px;
}

.header-left-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.header-left-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.header-logo-link {
  display: inline-flex;
  width: 210px;
  height: 78px;
  align-items: center;
  justify-content: center;
}
.site-logo { width: 100%; height: 100%; object-fit: contain; }

.header-contacts {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 16px;
}
.messenger-icons { display: flex; gap: 8px; }
.messenger-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--graphite);
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.messenger-icon i { font-size: 1.05rem; }
.messenger-icon:hover { transform: translateY(-2px); }
.messenger-vk { background: #2787f5; }
.messenger-telegram { background: #29a9ea; }
.messenger-whatsapp { background: #25b366; }

.header-phones { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.header-phone {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.header-phone:hover { color: var(--gold-ink); }

#siteHeader nav { padding: 0 0 14px; }
#siteHeader nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 6px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
#siteHeader nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
#siteHeader nav a:hover { color: var(--ink); }
#siteHeader nav a.active {
  color: var(--ink);
  border-color: var(--gold);
}

/* dropdown */
.has-dropdown { position: relative; padding-bottom: 12px; margin-bottom: -12px; }
.has-dropdown > a::after {
  content: "";
  width: 6px; height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.6;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  display: grid;
  gap: 2px;
  min-width: 250px;
  max-width: 320px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  list-style: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.dropdown-menu a {
  min-height: 38px;
  width: 100%;
  padding: 0 12px;
  border-bottom: 0;
  border-radius: var(--radius);
  white-space: normal;
}
.dropdown-menu a:hover { background: var(--paper-2); }
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Smooth compact-on-scroll state (transitions everywhere → no jerk) */
.header-service-bar {
  overflow: hidden;
  max-height: 64px;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
}
.header-top { transition: padding 0.4s var(--ease); }
.header-logo-link,
.site-logo { transition: width 0.4s var(--ease), height 0.4s var(--ease); }
#siteHeader nav { transition: padding 0.4s var(--ease); }
header#siteHeader { transition: box-shadow 0.4s var(--ease); }

header#siteHeader.is-compact {
  box-shadow: 0 12px 30px rgba(20, 18, 12, 0.12);
}
header#siteHeader.is-compact .header-service-bar {
  max-height: 0;
  opacity: 0;
}
header#siteHeader.is-compact .header-top {
  padding-top: 10px;
  padding-bottom: 8px;
}
header#siteHeader.is-compact .header-logo-link,
header#siteHeader.is-compact .site-logo {
  width: 150px;
  height: 56px;
}
header#siteHeader.is-compact nav { padding-bottom: 10px; }

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.home-hero.home-hero--photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(86vh, 800px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
  padding: clamp(40px, 7vw, 96px) 0;
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(75deg, rgba(12, 13, 11, 0.88) 0%, rgba(16, 17, 14, 0.5) 50%, rgba(16, 17, 14, 0.08) 100%),
    linear-gradient(0deg, rgba(10, 11, 9, 0.66), rgba(10, 11, 9, 0) 62%),
    url("assets/site/hero-workshop.jpg") center center / cover no-repeat;
}
.home-hero--photo > div {
  position: relative;
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.home-hero--photo > div > * { max-width: 720px; }
.home-hero--photo h1,
.home-hero--photo p,
.home-hero--photo .catalog-pill,
.home-hero--photo .text-link { color: #fff; }
.home-hero--photo .catalog-pill { color: rgba(255, 255, 255, 0.92); }
.home-hero--photo h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.home-hero--photo p {
  max-width: 620px;
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}
.home-hero--photo .secondary-link {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}
.home-hero--photo .secondary-link:hover { background: #efe9da; border-color: #efe9da; }
.home-hero--photo .text-link { color: #fff; }
.home-hero--photo .text-link::after { background: var(--gold-bright); }

.hero-region-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
}
.hero-region-inline strong {
  margin-right: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  text-transform: uppercase;
}
.hero-region-inline span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   Category cards (even, image-led)
   -------------------------------------------------------------------------- */
.category-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.category-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-2);
}
.category-card__image {
  height: 168px;
  background-color: #ddd5c3;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}
.category-card:hover .category-card__image { transform: scale(1.05); }
.category-card--monuments .category-card__image {
  background-image: linear-gradient(180deg, rgba(18, 16, 12, 0.05), rgba(18, 16, 12, 0.34)), url("assets/site/memorial-installation.jpg");
}
.category-card--granite .category-card__image {
  background-image: linear-gradient(180deg, rgba(18, 16, 12, 0.05), rgba(18, 16, 12, 0.34)), url("assets/site/granite-craft.jpg");
}
.category-card--concrete .category-card__image {
  background-image: linear-gradient(180deg, rgba(18, 16, 12, 0.05), rgba(18, 16, 12, 0.34)), url("assets/monuments/catalog-sheet.jpg");
  background-position: center 60%;
}
.category-card--metal .category-card__image {
  background-image: linear-gradient(180deg, rgba(18, 16, 12, 0.05), rgba(18, 16, 12, 0.34)), url("assets/site/hero-workshop.jpg");
}
.category-card .category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin: 20px 22px -6px;
  border-radius: 999px;
  color: var(--gold-ink);
  background: var(--paper-2);
}
.category-card .category-icon i { font-size: 1.15rem; }
.category-card h3 { margin: 18px 22px 8px; }
.category-card p {
  margin: 0 22px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.category-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
}
.category-card__price { color: var(--ink); }
.category-card__price b { color: var(--gold-ink); font-weight: 700; }
.category-card__arrow {
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--graphite);
  color: #fff;
  transition: transform 0.25s var(--ease);
}
.category-card:hover .category-card__arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Media split
   -------------------------------------------------------------------------- */
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.media-split__image {
  align-self: stretch;
  min-height: 420px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.media-split__image--monuments { background-image: url("assets/site/memorial-installation.jpg"); }
.media-split__image--granite { background-image: url("assets/site/granite-craft.jpg"); }
.media-split__image--concrete,
.media-split__image--metal { background-image: url("assets/site/hero-workshop.jpg"); }
.media-split:not([class*="--"]) .media-split__image,
.media-split__image:not([class*="--"]) { background-image: url("assets/site/granite-craft.jpg"); }
.media-split__content h2 { margin-bottom: 18px; }
.media-split__content p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.72; }
.media-split:nth-of-type(even) .media-split__image { order: 2; }
.media-split:nth-of-type(even) .media-split__content { order: 1; }

/* --------------------------------------------------------------------------
   Info cards / process
   -------------------------------------------------------------------------- */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.info-card {
  padding: 26px 0 0;
  border-top: 2px solid var(--graphite);
}
.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--gold-ink);
  background: var(--paper-2);
}
.info-card__icon i { font-size: 1.25rem; }
.info-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.info-card p { margin: 0; color: var(--muted); }

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process-list li {
  position: relative;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-2);
  counter-increment: step;
}
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--line-2);
}
.process-list .process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: var(--gold-ink);
  background: var(--paper-2);
}
.process-list .process-icon i { font-size: 1.05rem; }
.process-list p { margin: 0; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Catalog pages
   -------------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.84rem;
}
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span::before { content: "/"; margin-right: 8px; color: var(--line-2); }

.catalog-page-hero { margin-bottom: clamp(48px, 8vw, 96px); }
.catalog-page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: 8px;
}
.catalog-page-hero h1 { margin-bottom: 18px; max-width: 920px; }
.catalog-page-hero .lead,
.catalog-page-hero > p,
.catalog-page-hero__grid > div > p { font-size: 1.1rem; line-height: 1.7; color: var(--ink-2); max-width: 780px; }

.geo-lead { max-width: 780px; margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }
.geo-band .city-chips--large { margin-top: 18px; }

.region-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.region-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.region-card p { color: var(--muted); font-size: 0.95rem; }

.service-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.service-tags span {
  padding: 9px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.city-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.city-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 600;
}
.city-chips--large span { min-height: 40px; font-size: 0.92rem; }

.subcategory-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 18px);
}
.subcategory-chip-grid a {
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.subcategory-chip-grid a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-left-color: var(--gold-ink);
}

/* product tiles */
.product-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.product-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.product-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-2);
}
.product-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #e7e1d6;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(20,18,14,0.08)), url("assets/site/granite-craft.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
  transition: transform 0.6s var(--ease);
  overflow: hidden;
}
.product-tile:hover .product-photo { transform: scale(1.04); }
.product-photo[class*="monument-photo-"] {
  background-image: url("assets/monuments/catalog-sheet.jpg");
  background-size: 500% 200%;
}
.monument-photo-01 { background-position: 0% 0%; }
.monument-photo-02 { background-position: 25% 0%; }
.monument-photo-03 { background-position: 50% 0%; }
.monument-photo-04 { background-position: 75% 0%; }
.monument-photo-05 { background-position: 100% 0%; }
.monument-photo-06 { background-position: 0% 100%; }
.monument-photo-07 { background-position: 25% 100%; }
.monument-photo-08 { background-position: 50% 100%; }
.monument-photo-09 { background-position: 75% 100%; }
.monument-photo-10 { background-position: 100% 100%; }
.product-tile h3 { margin: 16px 18px 6px; font-size: 1.05rem; }
.product-tile p { margin: 0 18px 16px; color: var(--gold-ink); font-weight: 700; font-size: 0.95rem; }
.product-tile__link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  margin-top: auto;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.product-tile__link::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}
.product-tile:hover .product-tile__link::after { transform: translateX(4px); }

/* dark SEO block */
.seo-text-block {
  margin: 0 0 clamp(48px, 8vw, 104px);
  padding: clamp(36px, 6vw, 72px);
  color: #f3ecdc;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(180, 161, 107, 0.16), transparent 50%),
    var(--graphite);
}
.seo-text-block h2 { max-width: 820px; margin-bottom: 18px; color: #fff; }
.seo-text-block p { max-width: 880px; color: rgba(243, 236, 220, 0.82); line-height: 1.75; }

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */
.page-product main { width: min(1240px, calc(100% - 2 * var(--gutter))); }
.product-card.product-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-bottom: 64px;
}
.product-visual-panel { position: sticky; top: 150px; }
.product-visual {
  min-height: 560px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(20,18,14,0.06)), url("assets/site/memorial-installation.jpg") center / cover;
  box-shadow: var(--shadow);
}
.product-visual-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.product-visual-note span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.product-visual-note p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.product-info-panel h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-top: 6px; }
.product-info-panel .section-kicker { margin-top: 4px; }
#productMeta { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; }
.product-description { margin-top: 16px; color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }

.product-base-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-base-price span { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.product-base-price strong { font-family: var(--font-serif); color: var(--ink); font-size: 2rem; font-weight: 600; }

.product-configurator { display: grid; gap: 0; }
.product-configurator .field {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 20px;
  align-items: center;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.product-configurator label { margin: 0; font-weight: 600; color: var(--ink); }
.price-change { margin: 0; grid-column: 2; color: var(--muted); font-size: 0.82rem; }
.delta-positive { color: var(--gold-ink); font-weight: 700; }
.delta-negative { color: #3f7a52; font-weight: 700; }
.delta-neutral { color: var(--muted); }

label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--ink); }
input, select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-ink);
  box-shadow: 0 0 0 3px rgba(138, 118, 53, 0.16);
}

.product-order-panel {
  margin-top: 30px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(180, 161, 107, 0.2), transparent 55%),
    var(--graphite);
}
.product-order-panel .total-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.05rem;
}
.product-order-panel .total-price span { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; color: var(--gold-bright); }
.product-order-panel label { color: rgba(255, 255, 255, 0.82); }
.product-order-panel .muted { color: rgba(255, 255, 255, 0.7); }
.product-order-panel input {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.product-order-panel input::placeholder { color: rgba(255, 255, 255, 0.5); }
.product-order-panel button {
  width: 100%;
  margin-top: 8px;
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}
.product-order-panel button:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.product-empty-state { padding: 40px 0; }

.product-assurances {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.product-assurances li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
}
.product-assurances i { color: var(--gold-ink); width: 20px; text-align: center; }

/* --------------------------------------------------------------------------
   Works gallery
   -------------------------------------------------------------------------- */
.works-gallery { margin-top: 24px; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
}
.work-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.work-photo:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-card); }
.works-grid .work-photo:nth-child(3n + 1) { background-image: url("assets/site/memorial-installation.jpg"); }
.works-grid .work-photo:nth-child(3n + 2) { background-image: url("assets/site/granite-craft.jpg"); }
.works-grid .work-photo:nth-child(3n) { background-image: url("assets/site/hero-workshop.jpg"); }
.works-grid .work-photo:nth-child(7n + 1) { background-position: 30% center; }
.works-grid .work-photo:nth-child(7n + 4) { background-position: 70% center; }

/* --------------------------------------------------------------------------
   Contacts
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 32px);
  align-items: start;
}
.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px 36px;
  align-items: start;
  padding: 28px clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.contact-card p { margin: 0; color: var(--ink-2); }
.contact-card p:last-child { grid-column: 1 / -1; margin-top: 4px; }
.contact-card a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-card a:hover { color: var(--gold-ink); }

.map-frame {
  width: 100%;
  min-height: 420px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.map-city-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.map-city-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 600;
}
.map-city-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--gold); }

/* --------------------------------------------------------------------------
   Content / about
   -------------------------------------------------------------------------- */
.content-page { max-width: 820px; }
.content-page h1 { margin-bottom: 22px; }
.content-page p { font-size: 1.08rem; line-height: 1.78; color: var(--ink-2); }
.content-page p + p { margin-top: 4px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer#siteFooter {
  margin-top: clamp(40px, 7vw, 90px);
  margin-bottom: 0;
  padding: clamp(40px, 6vw, 64px) 0 32px;
  border-top: 1px solid var(--line);
}
.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
}
.footer-col h3 { margin-bottom: 16px; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer-col > h3:first-child { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.footer-col p { margin: 0 0 8px; color: var(--ink-2); }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--gold-ink); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 9px; }
.city-chips--footer { margin-top: 18px; }
.city-chips--footer span { min-height: 30px; font-size: 0.78rem; padding: 0 11px; }
.footer-bottom { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Mobile call bar (injected by layout.js)
   -------------------------------------------------------------------------- */
.mobile-callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-callbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-callbar .cb-call { color: #fff; background: var(--graphite); }
.mobile-callbar .cb-cat { color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .category-card-grid { grid-template-columns: repeat(2, 1fr); }
  .product-tiles { grid-template-columns: repeat(3, 1fr); }
  .subcategory-chip-grid { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .header-top { grid-template-columns: auto 1fr; row-gap: 14px; }
  .header-left { order: 2; }
  .header-logo-link { order: 1; }
  .header-contacts { order: 3; grid-column: 1 / -1; justify-self: start; }
  #siteHeader nav ul { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  #siteHeader nav a { white-space: nowrap; }
  .media-split,
  .info-card-grid,
  .process-list,
  .catalog-page-hero__grid,
  .contact-layout,
  .product-card.product-workspace { grid-template-columns: 1fr; }
  .media-split:nth-of-type(even) .media-split__image,
  .media-split:nth-of-type(even) .media-split__content { order: initial; }
  .info-card-grid { gap: 28px; }
  .process-list { gap: 24px; }
  .product-visual-panel { position: static; }
  .product-visual { min-height: 380px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 76px; } /* room for call bar */
  .mobile-callbar { display: grid; }
  .home-hero.home-hero--photo {
    min-height: 78vh;
    background:
      linear-gradient(0deg, rgba(10, 11, 9, 0.82), rgba(10, 11, 9, 0.25)),
      url("assets/site/hero-workshop.jpg") center / cover;
  }
  .product-tiles,
  .subcategory-chip-grid,
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .product-configurator .field { grid-template-columns: 1fr; gap: 8px; }
  .price-change { grid-column: 1; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .category-card-grid,
  .product-tiles,
  .subcategory-chip-grid,
  .footer-content { grid-template-columns: 1fr; }
  .header-phones { align-items: flex-start; }
  .header-contacts { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .category-card:hover,
  .product-tile:hover,
  .work-photo:hover,
  .subcategory-chip-grid a:hover { transform: none; }
}

/* ==========================================================================
   Marketing / conversion components
   ========================================================================== */

/* Stats band */
.stats-band {
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value { font-family: var(--font-serif); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 600; color: var(--ink); line-height: 1; }
.stat__label { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }

/* Guarantees */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.guarantee-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.guarantee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  margin-bottom: 20px;
  border-radius: 999px;
  color: var(--gold-ink);
  background: var(--paper-2);
}
.guarantee-icon i { font-size: 1.3rem; }
.guarantee-card h3 { margin-bottom: 10px; font-size: 1.12rem; }
.guarantee-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.review-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; }
.review-card blockquote { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.65; }
.review-card figcaption { color: var(--ink); font-weight: 700; font-size: 0.92rem; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark {
  position: relative;
  flex: 0 0 auto;
  width: 18px; height: 18px;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: var(--gold-ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}
.faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { margin: 0; color: var(--ink-2); line-height: 1.7; }

/* CTA band (full-bleed dark) */
.cta-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
  padding: clamp(44px, 6vw, 76px) 0;
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(180, 161, 107, 0.22), transparent 55%),
    var(--graphite);
  color: #fff;
}
.cta-inner {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.cta-copy h2 { color: #fff; margin-bottom: 14px; }
.cta-copy p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; line-height: 1.65; max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.cta-phone { display: flex; flex-direction: column; text-decoration: none; }
.cta-phone span { color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }
.cta-phone strong { color: #fff; font-size: 1.5rem; font-weight: 700; }
.cta-phone:hover strong { color: var(--gold-bright); }

@media (max-width: 920px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .guarantee-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .guarantee-grid { grid-template-columns: 1fr; }
}
