:root {
  --ink: #171512;
  --muted: #6f685d;
  --paper: #f6f1e9;
  --paper-2: #ebe1d3;
  --warm: #d7c1a3;
  --wood: #8f5d38;
  --wood-dark: #4f2f1f;
  --clay: #b46d47;
  --cream: #fffaf1;
  --line: rgba(44, 32, 23, 0.12);
  --white: #ffffff;
  --black: #0d0b09;
  --shadow: 0 24px 80px rgba(43, 29, 17, 0.18);
  --radius: 22px;
}

/* Final readability lock for pale cards on the main page */
#process .timeline-item {
  background: linear-gradient(180deg, #e8e1d3, #cfc7ba) !important;
  color: #171512 !important;
}

#process .timeline-item h3 {
  color: #171512 !important;
}

#process .timeline-item p {
  color: #4f473f !important;
}

.why .why-list div {
  border-left-color: rgba(196, 132, 79, 0.72) !important;
  background: linear-gradient(90deg, #201b16, #12100d) !important;
  color: #fff7e9 !important;
}

.why .why-list strong {
  color: #fff7e9 !important;
}

.why .why-list p {
  color: rgba(245, 225, 193, 0.82) !important;
}

body[data-theme="dark"] {
  --ink: #fffaf1;
  --muted: rgba(255, 250, 241, 0.66);
  --paper: #12100d;
  --paper-2: #1d1914;
  --warm: #6f543b;
  --line: rgba(255, 250, 241, 0.13);
  --white: #171512;
  background: #12100d;
  color: var(--ink);
}

body[data-theme="light"] {
  --ink: #171512;
  --muted: #6f685d;
  --paper: #f6f1e9;
  --paper-2: #ebe1d3;
  --warm: #d7c1a3;
  --line: rgba(44, 32, 23, 0.12);
  --white: #ffffff;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 28px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(24, 21, 17, 0.58);
  color: var(--cream);
  backdrop-filter: blur(22px);
  transition: background 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.site-header.is-elevated {
  background: rgba(24, 21, 17, 0.82);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--wood-dark);
  font-size: 16px;
}

.brand-name {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 14px;
  color: rgba(255, 250, 241, 0.76);
}

.main-nav a,
.header-action,
.button,
.text-button {
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.main-nav a:hover,
.text-button:hover {
  color: var(--cream);
}

.header-action {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.1);
  cursor: pointer;
}

.theme-toggle span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--cream) 0 50%, rgba(255, 250, 241, 0.18) 50%);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 241, 0.34);
}

.menu-button {
  display: none;
}

.section {
  padding: 112px 0;
  scroll-margin-top: 120px;
}

[id] {
  scroll-margin-top: 120px;
}

.section-dark {
  background: var(--black);
  color: var(--cream);
}

.section-warm {
  background: linear-gradient(180deg, #efe2d1 0%, #f7f1e8 100%);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 130px 0 70px;
}

.page-hero {
  position: relative;
  min-height: 62svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px 0 70px;
}

.page-hero-media,
.page-hero::after {
  position: absolute;
  inset: 0;
}

.page-hero-media {
  background-size: cover;
  background-position: center;
  opacity: 0.64;
}

.page-hero::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 11, 9, 0.92), rgba(13, 11, 9, 0.48)),
    linear-gradient(180deg, rgba(13, 11, 9, 0.12), rgba(13, 11, 9, 0.9));
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.96;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 250, 241, 0.76);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  display: block;
  opacity: 0.62;
}

.hero-photo {
  min-height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: slowZoom 14s ease-in-out infinite alternate;
}

.photo-one {
  background-image: url("assets/cases/yandex/riga-5.webp");
  background-position: center 42%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 11, 9, 0.94) 0%, rgba(13, 11, 9, 0.64) 44%, rgba(13, 11, 9, 0.2) 100%),
    linear-gradient(180deg, rgba(13, 11, 9, 0.34) 0%, rgba(13, 11, 9, 0.9) 100%);
}

.hero-approved .hero-media {
  opacity: 0.9;
}

.hero-approved .photo-one {
  background-position: center center;
}

.hero-approved .hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 11, 9, 0.95) 0%, rgba(13, 11, 9, 0.58) 38%, rgba(13, 11, 9, 0.08) 76%),
    linear-gradient(180deg, rgba(13, 11, 9, 0.04), rgba(13, 11, 9, 0.78));
}

.hero-approved .hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.4fr);
}

.hero-approved-card {
  align-self: end;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.48fr);
  align-items: end;
  gap: 52px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}

.hero h1,
.section-heading h2,
.brief h2,
.dialog-content h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  color: rgba(255, 250, 241, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin-top: 34px;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.08);
  backdrop-filter: blur(16px);
}

.hero-metrics strong {
  display: block;
  font-size: 15px;
}

.hero-metrics span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 250, 241, 0.58);
  font-size: 13px;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--clay);
  color: var(--cream);
  box-shadow: 0 16px 40px rgba(180, 109, 71, 0.28);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.button.small {
  min-height: 42px;
  padding: 0 18px;
}

.button.full {
  width: 100%;
  border: 0;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 116px;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.08);
}

.hero-card.is-large {
  min-height: 260px;
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 650ms ease, opacity 300ms ease;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 9, 0.06), rgba(13, 11, 9, 0.78));
}

.hero-card:hover img {
  transform: scale(1.05);
  opacity: 0.92;
}

.hero-card span,
.hero-card strong {
  position: relative;
  z-index: 1;
}

.hero-panel span,
.service-card span,
.project-card span,
.case-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  font-size: clamp(22px, 2.25vw, 34px);
  line-height: 1.08;
  text-transform: none;
}

.hero-card.is-large strong {
  font-size: clamp(34px, 4.2vw, 58px);
}

.case-card p,
.service-card p,
.project-card p,
.timeline-item p,
.why-list p {
  margin: 8px 0 0;
  color: rgba(255, 250, 241, 0.68);
  line-height: 1.55;
}

.split,
.section-row,
.why-grid,
.brief-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.section-heading h2,
.brief h2,
.dialog-content h2 {
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1;
}

.intro-copy p,
.section-note,
.attraction-copy p,
.brief-copy p {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.market-cards,
.service-grid,
.project-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.metric-card,
.service-card,
.project-card,
.timeline-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 12px 40px rgba(43, 29, 17, 0.06);
}

.metric-card span {
  display: block;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  font-size: 28px;
  line-height: 1.05;
}

.metric-card p,
.service-card p,
.project-card p,
.timeline-item p,
.why-list p {
  color: var(--muted);
}

.market-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 18px;
  margin-top: 18px;
}

.market-chart-card,
.market-insight-card,
.era-card,
.market-sources {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.76);
  box-shadow: 0 18px 56px rgba(43, 29, 17, 0.08);
}

.market-chart-card {
  padding: 28px;
}

.market-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
}

.market-chart-head h3,
.market-insight-card h3,
.era-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
}

.market-chart-head > span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.growth-bars {
  display: grid;
  gap: 16px;
}

.growth-row {
  display: grid;
  grid-template-columns: 170px minmax(120px, 1fr) 160px;
  gap: 16px;
  align-items: center;
}

.growth-row span,
.growth-row strong {
  font-size: 14px;
}

.growth-row span {
  color: var(--ink);
  font-weight: 800;
}

.growth-row strong {
  color: var(--muted);
  text-align: right;
}

.bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(79, 47, 31, 0.1);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wood-dark), var(--clay), var(--warm));
  box-shadow: 0 0 24px rgba(180, 109, 71, 0.3);
}

.market-insight-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(79, 47, 31, 0.78), rgba(23, 21, 18, 0.94)),
    url("assets/cases/yandex/duhanino-steam-1.webp") center / cover;
  color: var(--cream);
}

.insight-number {
  display: block;
  margin-bottom: 14px;
  font-size: 78px;
  line-height: 0.9;
  font-weight: 800;
}

.market-insight-card h3 {
  color: var(--cream);
}

.market-insight-card p {
  margin: 14px 0 0;
  color: rgba(255, 250, 241, 0.72);
  line-height: 1.55;
}

.era-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.era-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.era-photo {
  position: relative;
  height: 210px;
  margin: -8px -8px 26px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(192, 138, 90, 0.18);
  background: var(--black);
}

.era-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 34%, rgba(9, 9, 8, 0.62)),
    radial-gradient(circle at 70% 8%, rgba(184, 121, 74, 0.22), transparent 45%);
  pointer-events: none;
}

.era-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.76) contrast(1.08) sepia(0.12) brightness(0.82);
}

.old-era .era-photo img {
  object-position: center 56%;
  filter: saturate(0.72) contrast(1.05) sepia(0.18) brightness(0.78);
}

.new-era .era-photo img {
  object-position: center center;
  filter: saturate(0.92) contrast(1.08) sepia(0.04) brightness(0.9);
}

.era-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.era-card ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.era-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.era-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

.old-era {
  background: rgba(235, 225, 211, 0.72);
}

.new-era {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.92), rgba(215, 193, 163, 0.34)),
    radial-gradient(circle at 90% 0%, rgba(180, 109, 71, 0.18), transparent 36%);
}

.era-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wood-dark);
  color: var(--cream);
  font-size: 24px;
  line-height: 1;
}

.market-sources {
  margin-top: 18px;
  padding: 18px 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.market-sources strong {
  color: var(--ink);
}

.attraction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 0.9fr;
  gap: 62px;
  align-items: center;
}

.attraction-gallery {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: var(--wood-dark);
}

.gallery-track,
.gallery-slide,
.gallery-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-slide {
  margin: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 520ms ease, transform 720ms ease;
}

.gallery-slide.active {
  opacity: 1;
  transform: scale(1);
}

.gallery-slide img {
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.86);
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.gallery-arrow.prev {
  left: 18px;
}

.gallery-arrow.next {
  right: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

.center {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card h3,
.project-card h3,
.timeline-item h3,
.case-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.cases {
  overflow: hidden;
}

.case-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.case-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
}

.case-card img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) sepia(0.05);
  transition: transform 550ms ease;
}

.all-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.all-case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.76);
  box-shadow: 0 12px 40px rgba(43, 29, 17, 0.06);
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.all-case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 47, 31, 0.22);
  box-shadow: 0 22px 60px rgba(43, 29, 17, 0.12);
}

.all-case-card img,
.case-placeholder {
  width: 100%;
  aspect-ratio: 1.34;
  object-fit: cover;
}

.all-case-card img {
  filter: saturate(0.92) contrast(1.04) sepia(0.05);
  transition: transform 500ms ease;
}

.all-case-card:hover img {
  transform: scale(1.04);
}

.all-case-card div:last-child {
  padding: 22px;
}

.all-case-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.all-case-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.all-case-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.case-placeholder {
  display: grid;
  place-items: end start;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(79, 47, 31, 0.92), rgba(180, 109, 71, 0.82)),
    radial-gradient(circle at 80% 10%, rgba(255, 250, 241, 0.26), transparent 30%);
}

.case-placeholder span {
  max-width: 80%;
  margin: 0;
  color: var(--cream);
  font-size: 26px;
  line-height: 1.05;
}

.cases-divider {
  height: 1px;
  margin-top: 70px;
  margin-bottom: 70px;
  background: linear-gradient(90deg, transparent, rgba(79, 47, 31, 0.28), transparent);
}

.typical-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-card:hover img {
  transform: scale(1.04);
}

.case-card div {
  padding: 24px;
}

.text-button {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-weight: 800;
  cursor: pointer;
}

.project-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.52), rgba(255, 250, 241, 0.94)),
    radial-gradient(circle at 20% 10%, rgba(180, 109, 71, 0.22), transparent 34%);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--wood-dark);
  color: var(--cream);
  font-weight: 800;
}

.why-list {
  display: grid;
  gap: 16px;
}

.why-list div {
  padding: 26px;
  border-left: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 250, 241, 0.7), rgba(255, 250, 241, 0));
}

.why-list strong {
  font-size: 22px;
}

.brief {
  padding-bottom: 96px;
}

.brief-copy p {
  color: rgba(255, 250, 241, 0.72);
}

.brief-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brief-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 250, 241, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.brief-form input,
.brief-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0 15px;
  background: rgba(255, 250, 241, 0.96);
  color: var(--ink);
  outline: none;
}

.brief-form input:focus,
.brief-form select:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(180, 109, 71, 0.2);
}

.form-note {
  margin: 0;
  color: rgba(255, 250, 241, 0.52);
  font-size: 12px;
  line-height: 1.45;
}

.contact-hero {
  padding-top: 150px;
}

.contact-hero-grid {
  align-items: start;
}

.contact-hero h1 {
  margin: 0 0 24px;
  max-width: 780px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.contact-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 28px;
}

.contact-principles div {
  min-height: 158px;
  padding: 18px;
  border: 1px solid rgba(222, 169, 111, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(222, 169, 111, 0.16), transparent 58%),
    rgba(255, 250, 241, 0.06);
}

.contact-principles img {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.05);
}

.contact-principles strong,
.contact-principles span {
  display: block;
}

.contact-principles strong {
  color: var(--cream);
  font-size: 18px;
}

.contact-principles span {
  margin-top: 8px;
  color: rgba(255, 250, 241, 0.66);
  font-size: 14px;
  line-height: 1.45;
}

.contact-lines {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.contact-lines a {
  color: inherit;
}

.authors-section {
  padding-top: 94px;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.author-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(243, 226, 198, 0.08), rgba(243, 226, 198, 0.02)),
    rgba(20, 18, 15, 0.58);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.18);
}

.author-card figure {
  min-height: 420px;
  margin: 0;
  background: var(--ink);
}

.author-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.9) contrast(1.06) sepia(0.06);
}

.author-card div {
  align-self: end;
  padding: 32px;
}

.author-card span {
  color: var(--warm);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.author-card h3 {
  margin: 14px 0 16px;
  color: var(--cream);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.03;
}

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

.site-footer {
  padding: 42px 0;
  background: #080706;
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 40px;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 250, 241, 0.64);
}

.footer-grid div {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-grid strong {
  margin-bottom: 4px;
}

.case-dialog {
  width: min(960px, calc(100% - 28px));
  border: 0;
  border-radius: 32px;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.case-dialog::backdrop {
  background: rgba(8, 7, 6, 0.72);
  backdrop-filter: blur(12px);
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 11, 9, 0.84);
  color: var(--cream);
  font-size: 28px;
  cursor: pointer;
}

.dialog-content {
  padding: 34px;
}

.dialog-content p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.dialog-gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-auto-rows: 190px;
  gap: 12px;
  margin-top: 26px;
}

.dialog-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.dialog-gallery img:first-child {
  grid-row: span 2;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-auto-rows: 320px;
  gap: 16px;
}

.gallery-page-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 14px 45px rgba(43, 29, 17, 0.1);
}

.gallery-page-grid img:first-child {
  grid-row: span 2;
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-detail-block {
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.76);
  box-shadow: 0 14px 42px rgba(43, 29, 17, 0.06);
}

.case-detail-block span {
  display: block;
  margin-bottom: 22px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-detail-block h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  color: #211811;
}

.case-detail-block p {
  margin: 18px 0 0;
  color: #665a4e;
  line-height: 1.58;
}

.case-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.case-media-grid figure {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--wood-dark);
  box-shadow: 0 16px 48px rgba(43, 29, 17, 0.08);
}

.case-media-grid figure.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.case-media-grid img,
.drawing-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06) sepia(0.04);
}

.case-media-grid figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(243, 226, 198, 0.22);
  border-radius: 999px;
  background: rgba(9, 9, 8, 0.58);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.case-gallery-group {
  margin-top: 34px;
}

.case-gallery-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.case-gallery-head span {
  color: var(--warm);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.case-gallery-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.project-drawings {
  background:
    linear-gradient(180deg, rgba(23, 21, 18, 0.94), rgba(27, 23, 18, 0.98)),
    radial-gradient(circle at 15% 0%, rgba(180, 109, 71, 0.18), transparent 34%);
  color: var(--cream);
}

.project-drawings .section-note {
  color: rgba(255, 250, 241, 0.68);
}

.drawing-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.drawing-strip figure {
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.06);
}

.drawing-strip figcaption {
  padding: 14px 18px 18px;
  color: rgba(255, 250, 241, 0.68);
  font-size: 13px;
}

.done-badge,
.realized-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  color: #6f4a2d;
}

.realized-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.9), rgba(215, 193, 163, 0.38)),
    radial-gradient(circle at 0% 0%, rgba(180, 109, 71, 0.2), transparent 38%);
}

.realization-section {
  padding-top: 72px;
}

.case-video video {
  display: block;
  width: 100%;
  max-height: 720px;
  border-radius: 28px;
  background: var(--black);
  box-shadow: var(--shadow);
}

.single-case-image {
  margin-top: 42px;
}

.single-case-image img:first-child {
  grid-column: 1 / -1;
  max-height: 680px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 160ms;
}

.delay-3 {
  transition-delay: 230ms;
}

@keyframes slowZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .main-nav,
  .header-action {
    display: none;
  }

  .menu-button {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 250, 241, 0.12);
  }

  .menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--cream);
  }

  .main-nav.is-open {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 24px;
    background: rgba(24, 21, 17, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open a {
    padding: 16px;
  }

  .hero-grid,
  .split,
  .attraction-grid,
  .why-grid,
  .brief-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-panel {
    max-width: none;
  }

  .market-cards,
  .market-dashboard,
  .service-grid,
  .project-grid,
  .case-grid,
  .case-detail-grid,
  .case-media-grid,
  .all-case-grid,
  .timeline,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .attraction-gallery {
    min-height: 430px;
  }

  .era-compare {
    grid-template-columns: 1fr;
  }

  .era-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .case-media-grid figure.wide {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .section {
    padding: 74px 0;
  }

  .hero {
    padding: 112px 0 48px;
  }

  .hero-media {
    display: block;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero .lead,
  .intro-copy p,
  .section-note,
  .attraction-copy p,
  .brief-copy p {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .market-cards,
  .market-dashboard,
  .service-grid,
  .project-grid,
  .case-grid,
  .case-detail-grid,
  .case-media-grid,
  .drawing-strip,
  .all-case-grid,
  .timeline,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .attraction-gallery {
    min-height: 340px;
    border-radius: 24px;
  }

  .market-chart-card,
  .market-insight-card,
  .era-card {
    padding: 22px;
  }

  .era-photo {
    height: 180px;
    margin: -4px -4px 22px;
  }

  .market-chart-head {
    display: grid;
    gap: 14px;
  }

  .case-gallery-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .growth-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .growth-row strong {
    text-align: left;
  }

  .insight-number {
    font-size: 58px;
  }

  .dialog-content {
    padding: 24px;
  }

  .case-media-grid figure,
  .case-media-grid figure.wide,
  .drawing-strip figure {
    grid-column: auto;
    min-height: 260px;
  }

  .dialog-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-page-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .dialog-gallery img:first-child {
    grid-row: span 1;
  }

  .gallery-page-grid img:first-child {
    grid-row: span 1;
  }
}

/* Brandbook assets: real logo, icon logic, display typography */
:root {
  --brand-display: Georgia, "Times New Roman", serif;
  --brand-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-family: var(--brand-ui);
}

h1,
h2,
.page-hero h1,
.hero h1,
.section-heading h2,
.attraction-copy h2,
.case-detail-copy h1 {
  font-family: var(--brand-display);
  font-weight: 400;
  letter-spacing: 0.015em;
}

.brand {
  gap: 13px;
}

img.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(192, 138, 90, 0.45);
  border-radius: 50%;
  background: #0b0a09;
  object-fit: cover;
  box-shadow: 0 0 36px rgba(184, 121, 74, 0.22);
}

.brand-text {
  display: grid;
  gap: 4px;
  line-height: 1;
}

.brand-name {
  font-family: var(--brand-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--cream);
}

.brand-subtitle {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: rgba(243, 226, 198, 0.7);
}

body[data-theme="light"] .brand-name {
  color: #191512;
}

body[data-theme="light"] .brand-subtitle {
  color: rgba(25, 21, 18, 0.58);
}

.brand-logic {
  position: relative;
  z-index: 2;
  padding: 42px 0 18px;
  background: #090908;
}

body[data-theme="light"] .brand-logic {
  background: #f7f0e7;
}

.brand-logic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border: 1px solid rgba(192, 138, 90, 0.22);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(192, 138, 90, 0.18);
}

.brand-logic article {
  min-height: 194px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 26px 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(184, 121, 74, 0.16), transparent 58%),
    rgba(16, 15, 13, 0.92);
  text-align: center;
}

body[data-theme="light"] .brand-logic article {
  background: rgba(255, 247, 233, 0.86);
}

.brand-logic img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(192, 138, 90, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 241, 0.08), transparent 62%),
    rgba(0, 0, 0, 0.18);
  filter: saturate(0.92) contrast(1.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.brand-logic span {
  max-width: 190px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.28;
  text-transform: uppercase;
  color: var(--cream);
}

body[data-theme="light"] .brand-logic span {
  color: #191512;
}

.brand-logic p {
  max-width: 140px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .brand-logic-grid {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 680px) {
  img.brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 14px;
    letter-spacing: 0.24em;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-logic {
    padding-top: 18px;
  }
}

/* Contrast guard for light cards used inside dark brand theme */
.case-detail-block,
body[data-theme="dark"] .old-era,
body[data-theme="dark"] .new-era,
body[data-theme="dark"] .market-sources {
  color: #211811;
}

.case-detail-block h2,
body[data-theme="dark"] .old-era h3,
body[data-theme="dark"] .new-era h3 {
  color: #211811;
}

.case-detail-block p,
body[data-theme="dark"] .old-era li,
body[data-theme="dark"] .new-era li,
body[data-theme="dark"] .market-sources {
  color: #5f554b;
}

body[data-theme="dark"] .market-sources strong {
  color: #211811;
}

.brief-form input,
.brief-form select {
  color: #211811;
}

/* Brandbook skin: ПАРОВАРНЯ 2026 */
:root {
  --ink: #f3e2c6;
  --muted: rgba(243, 226, 198, 0.66);
  --paper: #0d0d0b;
  --paper-2: #171612;
  --warm: #c08a5a;
  --wood: #8b5731;
  --wood-dark: #24170f;
  --clay: #b8794a;
  --cream: #f8ead2;
  --line: rgba(192, 138, 90, 0.22);
  --white: #f8ead2;
  --black: #090908;
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  --radius: 30px;
}

body[data-theme="dark"] {
  --ink: #f3e2c6;
  --muted: rgba(243, 226, 198, 0.66);
  --paper: #0d0d0b;
  --paper-2: #171612;
  --warm: #c08a5a;
  --wood: #8b5731;
  --wood-dark: #24170f;
  --clay: #b8794a;
  --cream: #f8ead2;
  --line: rgba(192, 138, 90, 0.22);
  --white: #f8ead2;
  --black: #090908;
}

body[data-theme="light"] {
  --ink: #191512;
  --muted: #6d6255;
  --paper: #f4eee4;
  --paper-2: #e8dccb;
  --warm: #b47749;
  --wood: #7e4d2d;
  --wood-dark: #3a281c;
  --clay: #9f653e;
  --cream: #fff7e9;
  --line: rgba(68, 44, 28, 0.14);
  --white: #ffffff;
  --black: #17130f;
}

body {
  background:
    radial-gradient(circle at 50% -12%, rgba(184, 121, 74, 0.22), transparent 34rem),
    linear-gradient(180deg, var(--paper), #090908 72%);
  color: var(--ink);
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at 50% -10%, rgba(180, 119, 73, 0.16), transparent 34rem),
    linear-gradient(180deg, #f7f0e7, #eee4d6 72%);
}

.site-header {
  top: 20px;
  padding: 12px 14px 12px 18px;
  border-radius: 999px;
  border-color: rgba(192, 138, 90, 0.32);
  background: rgba(13, 13, 11, 0.72);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
}

body[data-theme="light"] .site-header {
  background: rgba(255, 247, 233, 0.78);
  color: #191512;
  border-color: rgba(68, 44, 28, 0.12);
}

.site-header.is-elevated {
  background: rgba(9, 9, 8, 0.88);
  border-color: rgba(192, 138, 90, 0.32);
}

body[data-theme="light"] .site-header.is-elevated {
  background: rgba(255, 247, 233, 0.9);
}

.brand {
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(192, 138, 90, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 72%, rgba(255, 150, 67, 0.8), transparent 18%),
    linear-gradient(145deg, #292622, #080807);
  color: transparent;
  box-shadow:
    inset 0 0 0 7px rgba(243, 226, 198, 0.04),
    0 0 32px rgba(184, 121, 74, 0.26);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 16px;
  border: 3px solid #c08a5a;
  border-bottom: 0;
  border-radius: 12px 12px 2px 2px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 7px;
  width: 8px;
  height: 20px;
  border-radius: 70% 30% 65% 35%;
  background: linear-gradient(180deg, #f3e2c6, #b8794a);
  transform: rotate(14deg);
  filter: drop-shadow(8px 4px 0 rgba(243, 226, 198, 0.72));
}

.brand-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--cream);
}

body[data-theme="light"] .brand-name {
  color: #191512;
}

.main-nav {
  color: rgba(243, 226, 198, 0.68);
}

body[data-theme="light"] .main-nav {
  color: rgba(25, 21, 18, 0.62);
}

.header-action,
.button.primary {
  border: 1px solid rgba(192, 138, 90, 0.48);
  background: linear-gradient(135deg, #f0d6ad, #b8794a 52%, #6e3e24);
  color: #110d09;
  box-shadow: 0 18px 48px rgba(184, 121, 74, 0.24);
}

.button.ghost {
  border-color: rgba(192, 138, 90, 0.36);
  color: var(--cream);
  background: rgba(243, 226, 198, 0.06);
}

body[data-theme="light"] .button.ghost {
  color: #191512;
}

.section {
  padding: 128px 0;
}

.section-dark,
.section-warm,
.intro,
.attraction,
.market-dashboard,
.service-grid,
.why,
.brief {
  background: transparent;
}

.hero {
  min-height: 100svh;
  align-items: center;
  padding: 150px 0 58px;
  background: #090908;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 9, 8, 0.94) 0%, rgba(9, 9, 8, 0.62) 45%, rgba(9, 9, 8, 0.28) 100%),
    radial-gradient(circle at 76% 38%, rgba(184, 121, 74, 0.2), transparent 22rem);
}

.hero-overlay {
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(9, 9, 8, 0.68));
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media .photo-one {
  background:
    linear-gradient(180deg, rgba(9, 9, 8, 0.15), rgba(9, 9, 8, 0.3)),
    url("assets/cases/detail/duhanino/photo-01.webp") center / cover;
  filter: saturate(0.78) contrast(1.08) brightness(0.72);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
  gap: 80px;
  align-items: end;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  color: var(--warm);
  font-weight: 500;
  letter-spacing: 0.28em;
}

.hero h1,
.page-hero h1 {
  max-width: 850px;
  font-size: clamp(58px, 8vw, 128px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-transform: uppercase;
}

.hero .lead {
  max-width: 650px;
  color: rgba(243, 226, 198, 0.76);
  font-size: 22px;
  line-height: 1.6;
}

.hero-metrics {
  border: 1px solid rgba(192, 138, 90, 0.22);
  border-radius: 28px;
  background: rgba(13, 13, 11, 0.46);
  backdrop-filter: blur(24px);
}

.hero-metrics div {
  border-color: rgba(192, 138, 90, 0.18);
}

.hero-metrics strong,
.hero-card strong,
.section-heading h2,
.attraction-copy h2,
.market-chart-head h3,
.era-card h3,
.all-case-card h3,
.case-detail-copy h1,
.case-detail-copy h2 {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-panel {
  border: 1px solid rgba(192, 138, 90, 0.2);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(243, 226, 198, 0.08), rgba(243, 226, 198, 0.02)),
    rgba(12, 11, 9, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.hero-card {
  border-radius: 28px;
  background: #12110f;
}

.hero-card img,
.all-case-card img,
.case-media-grid img,
.gallery-slide img,
.project-card img,
.case-card img {
  filter: saturate(0.78) contrast(1.08) sepia(0.08);
}

.section-heading h2,
.attraction-copy h2 {
  font-size: clamp(38px, 5vw, 78px);
  line-height: 1.02;
}

.intro-copy,
.section-note,
.attraction-copy p,
.metric-card p,
.market-insight-card p,
.era-card li,
.all-case-card p {
  color: var(--muted);
}

.metric-card,
.market-chart-card,
.market-insight-card,
.era-card,
.service-card,
.project-card,
.case-card,
.all-case-card,
.step-card,
.brief-card,
.contact-card,
.realized-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(243, 226, 198, 0.08), rgba(243, 226, 198, 0.025)),
    rgba(20, 18, 15, 0.58);
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.2);
}

body[data-theme="light"] .metric-card,
body[data-theme="light"] .market-chart-card,
body[data-theme="light"] .market-insight-card,
body[data-theme="light"] .era-card,
body[data-theme="light"] .service-card,
body[data-theme="light"] .project-card,
body[data-theme="light"] .case-card,
body[data-theme="light"] .all-case-card,
body[data-theme="light"] .step-card,
body[data-theme="light"] .brief-card,
body[data-theme="light"] .contact-card,
body[data-theme="light"] .author-card,
body[data-theme="light"] .realized-card {
  background: rgba(255, 247, 233, 0.72);
  box-shadow: 0 24px 90px rgba(70, 44, 24, 0.08);
}

body[data-theme="light"] .author-card h3 {
  color: var(--ink);
}

.metric-card strong,
.insight-number,
.growth-row strong,
.all-case-card span,
.project-card span,
.case-card span,
.done-badge {
  color: var(--warm);
}

.bar {
  background: rgba(243, 226, 198, 0.1);
}

.bar i {
  background: linear-gradient(90deg, #5d3925, #b8794a, #f0d6ad);
}

.cases-divider {
  background: linear-gradient(90deg, transparent, rgba(192, 138, 90, 0.46), transparent);
}

.page-hero {
  min-height: 72svh;
  background: #090908;
}

.page-hero::after {
  background:
    linear-gradient(90deg, rgba(9, 9, 8, 0.92), rgba(9, 9, 8, 0.34)),
    linear-gradient(180deg, transparent, rgba(9, 9, 8, 0.78));
}

.page-hero-media {
  filter: saturate(0.72) contrast(1.08) brightness(0.7);
}

.attraction-gallery,
.case-media-grid figure,
.drawing-strip figure,
.single-case-image img {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(20, 18, 15, 0.6);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #090908;
  color: var(--cream);
}

body[data-theme="light"] .site-footer {
  background: #191512;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .brand-name {
    letter-spacing: 0.16em;
  }
}

@media (max-width: 680px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 46px;
    line-height: 0.98;
  }

  .hero .lead {
    font-size: 18px;
  }

  .section-heading h2,
  .attraction-copy h2 {
    font-size: 34px;
  }
}

/* Final brandbook asset lock */
body {
  font-family: var(--brand-ui);
}

h1,
h2,
.page-hero h1,
.hero h1,
.section-heading h2,
.attraction-copy h2,
.case-detail-copy h1 {
  font-family: var(--brand-display);
  font-weight: 400;
  letter-spacing: 0.015em;
}

img.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(192, 138, 90, 0.45);
  border-radius: 50%;
  background: #0b0a09;
  object-fit: cover;
  color: transparent;
  box-shadow: 0 0 36px rgba(184, 121, 74, 0.22);
}

.brand-text {
  display: grid;
  gap: 4px;
  line-height: 1;
}

.brand-name {
  font-family: var(--brand-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--cream);
}

.brand-subtitle {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: rgba(243, 226, 198, 0.7);
}

body[data-theme="light"] .brand-name {
  color: #191512;
}

body[data-theme="light"] .brand-subtitle {
  color: rgba(25, 21, 18, 0.58);
}

@media (max-width: 680px) {
  img.brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 14px;
    letter-spacing: 0.24em;
  }

  .brand-subtitle {
    display: none;
  }
}

/* Usability and readability pass */
.site-header {
  grid-template-columns: auto 1fr auto auto auto auto auto;
  gap: 18px;
}

.header-phone,
.telegram-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-phone {
  color: rgba(255, 250, 241, 0.86);
}

.telegram-action {
  gap: 8px;
  padding: 0 16px 0 14px;
  border: 1px solid rgba(92, 190, 240, 0.44);
  background:
    linear-gradient(135deg, #2aabee 0%, #229ed9 58%, #168ac2 100%);
  color: #ffffff;
  box-shadow:
    0 10px 28px rgba(34, 158, 217, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.telegram-action::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.7 3.3 18.3 20c-.3 1.2-.9 1.5-1.8.9l-5-3.7-2.4 2.3c-.3.3-.5.5-1 .5l.4-5.2 9.4-8.5c.4-.4-.1-.6-.6-.2L5.6 13.5.6 11.9c-1.1-.3-1.1-1.1.2-1.6L20.4 2.8c.9-.3 1.7.2 1.3.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.7 3.3 18.3 20c-.3 1.2-.9 1.5-1.8.9l-5-3.7-2.4 2.3c-.3.3-.5.5-1 .5l.4-5.2 9.4-8.5c.4-.4-.1-.6-.6-.2L5.6 13.5.6 11.9c-1.1-.3-1.1-1.1.2-1.6L20.4 2.8c.9-.3 1.7.2 1.3.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.header-phone:hover,
.telegram-action:hover {
  transform: translateY(-2px);
}

.telegram-action:hover {
  color: #ffffff;
  background:
    linear-gradient(135deg, #39b8f4 0%, #26a7e0 58%, #168ac2 100%);
  border-color: rgba(135, 218, 255, 0.68);
  box-shadow:
    0 14px 34px rgba(34, 158, 217, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.header-phone:hover {
  color: var(--cream);
}

body[data-theme="light"] .header-phone {
  color: rgba(25, 21, 18, 0.74);
}

body[data-theme="light"] .telegram-action {
  color: #ffffff;
  border-color: rgba(25, 147, 202, 0.48);
  background:
    linear-gradient(135deg, #2aabee 0%, #229ed9 58%, #168ac2 100%);
}

.hero h1,
.page-hero h1 {
  max-width: 980px;
  font-size: clamp(46px, 6.2vw, 96px);
  line-height: 1.04;
  letter-spacing: 0;
  text-transform: none;
}

.section-heading h2,
.attraction-copy h2,
.brief-copy h2,
.case-detail-copy h1,
.case-detail-copy h2 {
  font-size: clamp(34px, 4.4vw, 66px);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow,
.case-gallery-head span,
.case-media-grid figcaption,
.metric-card span,
.project-card span,
.case-card span,
.all-case-card span,
.case-detail-block span,
.era-card span,
.service-card span,
.market-chart-head span {
  letter-spacing: 0.08em;
  text-transform: none;
}

p,
li,
.lead,
.section-note,
.intro-copy,
.case-detail-block p,
.all-case-card p,
.case-card p,
.project-card p {
  line-height: 1.62;
}

.case-card img,
.all-case-card img,
.project-card img,
.hero-card img,
.gallery-slide img {
  object-position: center center;
}

.page-hero-media {
  background-position: center center;
}

.case-media-grid figure {
  aspect-ratio: 4 / 3;
}

.case-consult-section {
  padding: 48px 0 96px;
  background:
    radial-gradient(circle at 82% 10%, rgba(180, 109, 71, 0.12), transparent 32%),
    var(--paper);
}

.case-consult {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(192, 138, 90, 0.26);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.12), rgba(255, 250, 241, 0.03)),
    rgba(18, 16, 13, 0.72);
  color: var(--cream);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.case-consult h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.case-consult p:not(.eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 250, 241, 0.72);
  line-height: 1.55;
}

.case-consult-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

body[data-theme="light"] .case-consult {
  background:
    linear-gradient(135deg, rgba(79, 47, 31, 0.08), rgba(255, 250, 241, 0.82)),
    #fff8ed;
  color: #171512;
}

body[data-theme="light"] .case-consult p:not(.eyebrow) {
  color: rgba(23, 21, 18, 0.68);
}

body[data-theme="light"] .case-consult .button.ghost {
  border-color: rgba(79, 47, 31, 0.18);
  color: #171512;
  background: rgba(79, 47, 31, 0.06);
}

/* Light-theme readability fixes for image heroes and pale contact blocks */
body[data-theme="light"] .hero-variant {
  color: var(--cream);
}

body[data-theme="light"] .hero-variant-readable .variant-bg::after {
  background:
    linear-gradient(90deg, rgba(13, 11, 9, 0.94) 0%, rgba(13, 11, 9, 0.62) 42%, rgba(13, 11, 9, 0.2) 82%),
    linear-gradient(180deg, rgba(13, 11, 9, 0.18), rgba(13, 11, 9, 0.86));
}

body[data-theme="light"] .variant-copy h1,
body[data-theme="light"] .variant-copy .lead,
body[data-theme="light"] .variant-feature-card strong,
body[data-theme="light"] .variant-feature-card p,
body[data-theme="light"] .hero-variant .button.ghost {
  color: var(--cream);
}

body[data-theme="light"] .variant-copy .eyebrow,
body[data-theme="light"] .variant-feature-card span {
  color: #d19058;
}

body[data-theme="light"] .variant-feature-card {
  background:
    linear-gradient(180deg, rgba(28, 21, 15, 0.88), rgba(20, 16, 12, 0.76)),
    rgba(13, 11, 9, 0.72);
  border-color: rgba(192, 138, 90, 0.34);
}

body[data-theme="light"] .contact-hero {
  color: var(--ink);
}

body[data-theme="light"] .contact-hero h1,
body[data-theme="light"] .contact-hero .brief-copy p,
body[data-theme="light"] .contact-principles strong,
body[data-theme="light"] .contact-lines a {
  color: var(--ink);
}

body[data-theme="light"] .contact-principles span,
body[data-theme="light"] .contact-lines p,
body[data-theme="light"] .form-note {
  color: #5f554b;
}

body[data-theme="light"] .brief-form {
  background: rgba(255, 247, 233, 0.78);
  border-color: rgba(68, 44, 28, 0.12);
  box-shadow: 0 24px 80px rgba(68, 44, 28, 0.1);
}

body[data-theme="light"] .brief-form label {
  color: #4d443c;
}

body[data-theme="light"] .brief-form input,
body[data-theme="light"] .brief-form select {
  background: rgba(255, 252, 246, 0.96);
  color: var(--ink);
  border-color: rgba(68, 44, 28, 0.12);
}

body[data-theme="light"] .brief.contact-hero {
  background:
    radial-gradient(circle at 20% 10%, rgba(184, 121, 74, 0.12), transparent 34rem),
    linear-gradient(135deg, #efe5d7, #f8f1e8 72%);
}

body[data-theme="light"] .contact-hero .eyebrow,
body[data-theme="light"] .brief-copy .eyebrow {
  color: #9a633d;
}

body[data-theme="light"] .contact-hero h1,
body[data-theme="light"] .brief-copy h2,
body[data-theme="light"] .brief-copy p {
  color: #191512;
  text-shadow: none;
}

body[data-theme="light"] .contact-hero .lead,
body[data-theme="light"] .brief-copy p {
  color: #5b5147;
}

body[data-theme="light"] .contact-principles div,
body[data-theme="light"] .contact-lines .contact-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.88), rgba(242, 231, 216, 0.72));
  border-color: rgba(126, 77, 45, 0.18);
}

body[data-theme="light"] .process-map,
body[data-theme="light"] .process-visual-map,
body[data-theme="light"] .process-result,
body[data-theme="light"] .stove-page,
body[data-theme="light"] .stove-section {
  color: #191512;
}

body[data-theme="light"] .process-map .eyebrow,
body[data-theme="light"] .process-result .eyebrow,
body[data-theme="light"] .process-flow span,
body[data-theme="light"] .process-doc-card span,
body[data-theme="light"] .stove-page .eyebrow,
body[data-theme="light"] .stove-type-card span,
body[data-theme="light"] .stove-metric strong {
  color: #9a633d;
}

body[data-theme="light"] .process-map h2,
body[data-theme="light"] .process-map h3,
body[data-theme="light"] .process-result h2,
body[data-theme="light"] .process-flow h3,
body[data-theme="light"] .process-doc-card h3,
body[data-theme="light"] .stove-page h1,
body[data-theme="light"] .stove-page h2,
body[data-theme="light"] .stove-page h3,
body[data-theme="light"] .stove-type-card h3 {
  color: #191512;
  text-shadow: none;
}

body[data-theme="light"] .process-map p,
body[data-theme="light"] .process-result p,
body[data-theme="light"] .process-flow p,
body[data-theme="light"] .process-doc-card figcaption,
body[data-theme="light"] .stove-page p,
body[data-theme="light"] .stove-type-card p,
body[data-theme="light"] .stove-metric span {
  color: #5b5147;
}

body[data-theme="light"] .process-flow article,
body[data-theme="light"] .process-doc-card,
body[data-theme="light"] .process-result-card,
body[data-theme="light"] .stove-type-card,
body[data-theme="light"] .stove-principle-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.84), rgba(242, 231, 216, 0.68));
  border-color: rgba(126, 77, 45, 0.2);
  box-shadow: 0 24px 80px rgba(70, 44, 24, 0.08);
}

body[data-theme="light"] .process-visual-map::before {
  opacity: 0.12;
}

.hero-variants-page {
  background: var(--black);
  color: var(--cream);
}

.hero-variant {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px 0 72px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.1);
}

.variant-bg,
.variant-bg::after,
.variant-bg img {
  position: absolute;
  inset: 0;
}

.variant-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.72;
  filter: saturate(0.86) contrast(1.08) sepia(0.08);
}

.variant-bg::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 11, 9, 0.94), rgba(13, 11, 9, 0.5), rgba(13, 11, 9, 0.14)),
    linear-gradient(180deg, rgba(13, 11, 9, 0.1), rgba(13, 11, 9, 0.92));
}

.hero-variant-readable .variant-bg img {
  opacity: 0.92;
  object-position: center center;
}

.hero-variant-readable .variant-bg::after {
  background:
    linear-gradient(90deg, rgba(13, 11, 9, 0.95) 0%, rgba(13, 11, 9, 0.58) 38%, rgba(13, 11, 9, 0.08) 76%),
    linear-gradient(180deg, rgba(13, 11, 9, 0.04), rgba(13, 11, 9, 0.78));
}

.variant-bg-duhanino img {
  object-position: center 44%;
}

.variant-a-grid,
.variant-b-grid,
.variant-c-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: end;
}

.variant-a-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.4fr);
}

.variant-b-grid,
.variant-c-grid {
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 0.58fr);
}

.variant-copy h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

.variant-copy .lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 250, 241, 0.78);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.48;
}

.variant-feature-card,
.variant-proof-row div,
.variant-c-note {
  border: 1px solid rgba(192, 138, 90, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.1), rgba(255, 250, 241, 0.035)),
    rgba(13, 11, 9, 0.52);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.variant-feature-card {
  padding: 28px;
  border-radius: 30px;
}

.variant-case-stack {
  display: grid;
  gap: 16px;
}

.variant-case-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 22px;
  min-height: 224px;
  align-items: center;
  color: var(--cream);
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.variant-case-copy {
  min-width: 0;
}

.variant-case-copy > span {
  margin-bottom: 12px;
}

.variant-case-card:hover {
  transform: translateY(-3px);
  border-color: rgba(248, 234, 210, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.14), rgba(255, 250, 241, 0.05)),
    rgba(13, 11, 9, 0.62);
}

.variant-case-card img {
  width: 132px;
  height: 148px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  filter: saturate(0.88) contrast(1.08) sepia(0.06);
}

.variant-case-card.is-compact {
  min-height: 152px;
  padding: 22px;
  border-radius: 24px;
  grid-template-columns: minmax(0, 1fr) 104px;
}

.variant-case-card.is-compact strong {
  font-size: clamp(20px, 2vw, 28px);
}

.variant-case-card.is-compact p {
  margin-top: 12px;
  font-size: 15px;
}

.variant-case-card.is-compact img {
  width: 104px;
  height: 108px;
  border-radius: 18px;
}

.variant-feature-card span,
.variant-c-note span {
  display: block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.variant-feature-card strong,
.variant-c-note strong {
  display: block;
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.08;
}

.variant-feature-card p {
  margin: 20px 0 0;
  color: rgba(255, 250, 241, 0.68);
  font-size: 16px;
  line-height: 1.55;
}

.hero-variant-b {
  background:
    radial-gradient(circle at 82% 24%, rgba(180, 109, 71, 0.2), transparent 30%),
    linear-gradient(135deg, #0d0b09 0%, #17120d 58%, #24180f 100%);
}

.variant-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.variant-proof-row div {
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
}

.variant-proof-row strong {
  display: block;
  color: #d49a6d;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 0.98;
}

.variant-proof-row span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 250, 241, 0.68);
  line-height: 1.35;
}

.variant-investor-visual {
  display: grid;
  grid-template-columns: 0.95fr 0.75fr;
  gap: 14px;
}

.variant-investor-visual figure {
  position: relative;
  min-height: 210px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(192, 138, 90, 0.22);
  border-radius: 26px;
  background: rgba(255, 250, 241, 0.06);
}

.variant-investor-visual figure.wide {
  grid-row: span 2;
  min-height: 470px;
}

.variant-investor-visual img,
.variant-c-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.82) contrast(1.08) sepia(0.06);
}

.hero-variant-c {
  background:
    linear-gradient(90deg, rgba(13, 11, 9, 0.96), rgba(13, 11, 9, 0.72)),
    #100e0b;
}

.variant-c-grid {
  align-items: center;
}

.variant-c-media {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(192, 138, 90, 0.24);
  border-radius: 38px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.variant-c-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(13, 11, 9, 0.84));
}

.variant-c-note {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 24px;
  border-radius: 26px;
}

.variant-soft-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.variant-soft-points span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.08);
  color: rgba(255, 250, 241, 0.76);
  font-weight: 700;
}

.hero-variant-split {
  background:
    radial-gradient(circle at 78% 26%, rgba(180, 109, 71, 0.16), transparent 30%),
    linear-gradient(135deg, #0d0b09 0%, #17120e 62%, #26190f 100%);
}

.variant-split-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(420px, 0.7fr);
  gap: 48px;
  align-items: center;
}

.variant-object-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(192, 138, 90, 0.28);
  border-radius: 42px;
  background: rgba(255, 250, 241, 0.05);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.variant-object-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.88) contrast(1.06) sepia(0.06);
}

.variant-object-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 9, 0) 40%, rgba(13, 11, 9, 0.82));
}

.variant-stage-caption {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(192, 138, 90, 0.24);
  border-radius: 26px;
  background: rgba(13, 11, 9, 0.58);
  backdrop-filter: blur(20px);
}

.variant-stage-caption span {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.variant-stage-caption strong {
  display: block;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
}

@media (max-width: 860px) {
  .hero-variant {
    min-height: auto;
    padding: 118px 0 58px;
  }

  .variant-a-grid,
  .variant-b-grid,
  .variant-c-grid,
  .variant-split-grid,
  .variant-proof-row,
  .variant-investor-visual {
    grid-template-columns: 1fr;
  }

  .variant-investor-visual figure,
  .variant-investor-visual figure.wide,
  .variant-c-media,
  .variant-object-stage {
    min-height: 280px;
  }

  .case-consult {
    grid-template-columns: 1fr;
  }

  .case-consult-actions {
    justify-content: flex-start;
  }
}

.case-media-grid figure.wide {
  aspect-ratio: 16 / 10;
}

.case-media-grid img {
  object-position: center center;
}

.drawing-strip {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.drawing-strip figure {
  min-height: 0;
  height: 360px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-radius: 18px;
}

.drawing-strip img {
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: #f7f1e8;
  filter: saturate(0.92) contrast(1.04);
}

.drawing-strip figcaption {
  min-height: 48px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.35;
}

.drawing-strip-feature {
  grid-template-columns: 1fr;
}

.drawing-strip figure.plan-large {
  height: clamp(520px, 64vw, 760px);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 250, 241, 0.12), transparent 62%),
    rgba(255, 250, 241, 0.035);
}

.drawing-strip figure.plan-large img {
  padding: 0;
  opacity: 0.72;
  transform: scale(1.34);
  background: transparent;
  filter: saturate(0.82) contrast(1.08);
}

.drawing-strip figure.plan-large figcaption {
  position: relative;
  z-index: 2;
  background: rgba(12, 18, 24, 0.72);
  backdrop-filter: blur(14px);
}

.drawing-strip figure.plan-wide-full {
  height: auto;
  min-height: 0;
  background: rgba(255, 250, 241, 0.04);
}

.drawing-strip figure.plan-wide-full img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2798 / 904;
  object-fit: contain;
  opacity: 1;
  transform: none;
  background: #f7f1e8;
  filter: saturate(0.96) contrast(1.04);
}

.process-hero .page-hero-media {
  background-position: center 44%;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.process-flow article {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(191, 124, 72, 0.32);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 247, 233, 0.06), rgba(255, 247, 233, 0.015));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.process-flow article::after {
  content: "";
  position: absolute;
  top: 32px;
  right: -16px;
  width: 18px;
  height: 1px;
  background: rgba(191, 124, 72, 0.55);
}

.process-flow article:last-child::after {
  display: none;
}

.process-flow span,
.process-doc-card span {
  color: var(--copper);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-flow h3 {
  margin: 34px 0 12px;
  color: var(--cream);
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
}

.process-flow p,
.process-doc-card figcaption,
.proof-stack figcaption,
.process-result p {
  color: var(--muted);
  line-height: 1.55;
}

.process-doc-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  gap: 22px;
  margin-top: 44px;
}

.process-doc-card {
  overflow: hidden;
  border: 1px solid rgba(191, 124, 72, 0.28);
  border-radius: 26px;
  background: rgba(255, 247, 233, 0.05);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.process-doc-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.9) contrast(1.04);
}

.process-doc-card.large img {
  height: 470px;
}

.process-doc-card figcaption {
  display: grid;
  gap: 8px;
  padding: 18px 20px 22px;
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.proof-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.proof-stack figure,
.realized-grid figure {
  border-color: rgba(191, 124, 72, 0.34);
}

.proof-stack img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  filter: saturate(0.94) contrast(1.08) brightness(0.96);
}

.proof-stack figcaption {
  margin-top: 12px;
  font-size: 15px;
}

.process-result {
  max-width: 920px;
  text-align: center;
}

.process-result h2 {
  margin: 14px auto 18px;
  max-width: 880px;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.process-result .button {
  margin-top: 22px;
}

.realized-section {
  background:
    radial-gradient(circle at 82% 18%, rgba(191, 124, 72, 0.18), transparent 34%),
    var(--ink);
}

.realized-grid img {
  filter: saturate(0.92) contrast(1.08) brightness(0.96);
}

.barn-hero .page-hero-media {
  background-position: center 52%;
}

.barn-variant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.barn-variant-card,
.barn-tuning-grid article,
.barn-interior-grid figure,
.barn-summary {
  border: 1px solid rgba(191, 124, 72, 0.32);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 247, 233, 0.07), rgba(255, 247, 233, 0.025));
  overflow: hidden;
}

.barn-variant-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.95) contrast(1.05) brightness(0.96);
}

.barn-variant-card div {
  padding: 22px 22px 26px;
}

.barn-variant-card span,
.barn-tuning-grid span {
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.barn-variant-card h3,
.barn-tuning-grid h3 {
  margin: 12px 0 10px;
  color: var(--cream);
  font-size: 28px;
  line-height: 1.08;
}

.barn-variant-card p,
.barn-tuning-grid p,
.barn-summary p {
  color: var(--muted);
  line-height: 1.55;
}

.barn-tuning-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.barn-tuning-grid article {
  min-height: 280px;
  padding: 24px;
}

.barn-gallery figure img,
.barn-realization figure img {
  filter: saturate(0.92) contrast(1.08) brightness(0.96);
}

.barn-interior-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.barn-interior-grid figure {
  grid-column: span 2;
}

.barn-interior-grid figure:nth-child(1),
.barn-interior-grid figure:nth-child(2) {
  grid-column: span 3;
}

.barn-interior-grid img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.92) contrast(1.05);
}

.barn-interior-grid figcaption {
  min-height: 64px;
  padding: 15px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.barn-plan figure {
  max-width: 920px;
  margin: 0 auto;
}

.barn-plan img {
  object-fit: contain;
  padding: 18px;
  background: #f7f1e8;
}

.barn-summary {
  max-width: 980px;
  padding: clamp(30px, 5vw, 68px);
  text-align: center;
}

.barn-summary h2 {
  margin: 12px auto 18px;
  max-width: 860px;
  color: var(--cream);
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.04;
}

.barn-summary .button {
  margin-top: 24px;
}

.is-openable {
  cursor: zoom-in;
}

.image-lightbox {
  width: min(94vw, 1480px);
  max-width: none;
  height: min(92vh, 980px);
  max-height: none;
  padding: 0;
  border: 1px solid rgba(245, 225, 193, 0.25);
  border-radius: 28px;
  background: rgba(8, 7, 5, 0.92);
  color: var(--cream);
  overflow: hidden;
  box-shadow: 0 34px 140px rgba(0, 0, 0, 0.64);
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.image-lightbox figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.image-lightbox img {
  width: 100%;
  height: 100%;
  padding: 22px;
  object-fit: contain;
}

.image-lightbox figcaption {
  min-height: 58px;
  padding: 0 72px 22px;
  color: rgba(245, 225, 193, 0.82);
  text-align: center;
}

.image-lightbox-close,
.image-lightbox-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 225, 193, 0.18);
  background: rgba(8, 7, 5, 0.72);
  color: var(--cream);
  cursor: pointer;
}

.image-lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.image-lightbox-nav {
  top: 50%;
  width: 52px;
  height: 78px;
  border-radius: 999px;
  transform: translateY(-50%);
  font-size: 42px;
}

.image-lightbox-nav.prev {
  left: 18px;
}

.image-lightbox-nav.next {
  right: 18px;
}

.case-story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.case-story-card {
  border: 1px solid rgba(191, 124, 72, 0.3);
  border-radius: 24px;
  background: rgba(255, 247, 233, 0.055);
  overflow: hidden;
}

.case-story-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.92) contrast(1.06) brightness(0.96);
}

.case-story-card div {
  padding: 20px;
}

.case-story-card span {
  color: var(--copper);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.case-story-card h3 {
  margin: 12px 0 10px;
  color: var(--cream);
  font-size: 26px;
  line-height: 1.1;
}

.case-story-card p {
  color: var(--muted);
  line-height: 1.5;
}

.project-drawings img,
.process-doc-card img,
.process-blueprint-card img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.reel-grid video {
  width: 100%;
  max-height: 760px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid rgba(191, 124, 72, 0.34);
  border-radius: 28px;
  background: var(--black);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

.process-visual-map {
  position: relative;
  overflow: hidden;
}

.process-visual-map::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 360px;
  background:
    linear-gradient(180deg, transparent, var(--paper)),
    url("assets/process/sketch-plan.webp") center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.process-visual-map > .container {
  position: relative;
  z-index: 1;
}

.process-blueprint {
  background:
    linear-gradient(180deg, rgba(18, 16, 13, 0.98), rgba(12, 10, 8, 0.98)),
    radial-gradient(circle at 18% 18%, rgba(191, 124, 72, 0.18), transparent 34%);
  color: var(--cream);
}

.process-blueprint .section-note {
  color: rgba(248, 234, 210, 0.74);
}

.process-blueprint-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 44px;
}

.process-blueprint-card {
  position: relative;
  min-height: 390px;
  border: 1px solid rgba(191, 124, 72, 0.28);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 247, 233, 0.045);
}

.process-blueprint-card.large {
  grid-row: span 2;
  min-height: 805px;
}

.process-blueprint-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.22) contrast(1.18) brightness(0.72);
}

.process-blueprint-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0.05), rgba(8, 7, 5, 0.78)),
    radial-gradient(circle at 20% 15%, rgba(191, 124, 72, 0.18), transparent 38%);
}

.process-blueprint-card div {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.process-blueprint-card span {
  color: #d79a65;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.process-blueprint-card h3 {
  margin: 12px 0 10px;
  color: #fff7e9;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.05;
}

.process-blueprint-card p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 247, 233, 0.82);
  line-height: 1.55;
}

body[data-theme="dark"] .case-detail-block,
body[data-theme="dark"] .case-story-card,
body[data-theme="dark"] .barn-variant-card,
body[data-theme="dark"] .barn-tuning-grid article,
body[data-theme="dark"] .barn-interior-grid figure,
body[data-theme="dark"] .barn-summary {
  background: rgba(28, 24, 19, 0.96);
  color: var(--cream);
}

body[data-theme="dark"] .case-detail-block h2,
body[data-theme="dark"] .case-story-card h3,
body[data-theme="dark"] .barn-variant-card h3,
body[data-theme="dark"] .barn-tuning-grid h3,
body[data-theme="dark"] .barn-summary h2 {
  color: #fff7e9;
}

body[data-theme="dark"] .case-detail-block p,
body[data-theme="dark"] .case-story-card p,
body[data-theme="dark"] .barn-variant-card p,
body[data-theme="dark"] .barn-tuning-grid p,
body[data-theme="dark"] .barn-summary p {
  color: rgba(255, 247, 233, 0.78);
}

body[data-theme="light"] .case-detail-block,
body[data-theme="light"] .case-story-card,
body[data-theme="light"] .barn-variant-card,
body[data-theme="light"] .barn-tuning-grid article,
body[data-theme="light"] .barn-interior-grid figure,
body[data-theme="light"] .barn-summary {
  background: rgba(255, 250, 241, 0.94);
  color: #171512;
}

body[data-theme="light"] .case-story-card h3,
body[data-theme="light"] .barn-variant-card h3,
body[data-theme="light"] .barn-tuning-grid h3,
body[data-theme="light"] .barn-summary h2 {
  color: #171512;
}

body[data-theme="light"] .case-story-card p,
body[data-theme="light"] .barn-variant-card p,
body[data-theme="light"] .barn-tuning-grid p,
body[data-theme="light"] .barn-summary p {
  color: #51473d;
}

body[data-theme="light"] .button.primary,
body[data-theme="dark"] .button.primary,
body[data-theme="light"] .header-action,
body[data-theme="dark"] .header-action {
  color: #120f0b;
}

.stove-hero .page-hero-media {
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.stove-hero-new .page-hero-media {
  background-size: min(1180px, 92vw) auto;
  background-position: right 8% center;
  background-repeat: no-repeat;
  opacity: 0.72;
  filter: saturate(0.94) contrast(1.08);
}

.stove-hero-new h1 {
  max-width: 960px;
  font-size: clamp(46px, 6vw, 94px);
}

.stove-hero-new p:not(.eyebrow) {
  max-width: 760px;
}

.stove-principle-grid,
.stove-maker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stove-metric {
  min-height: 220px;
  padding: 34px;
  border: 1px solid rgba(196, 132, 79, 0.32);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(33, 27, 22, 0.96), rgba(18, 15, 12, 0.98));
  color: var(--cream);
}

.stove-metric strong {
  display: block;
  font-family: var(--brand-display);
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.95;
  color: var(--gold);
}

.stove-metric span {
  display: block;
  max-width: 280px;
  margin-top: 18px;
  color: rgba(255, 250, 241, 0.72);
  font-size: 18px;
  line-height: 1.45;
}

.stove-russian-section {
  overflow: hidden;
}

.stove-russian-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.stove-russian-visual {
  position: relative;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 77, 45, 0.18);
  border-radius: 8px;
  background: #17130f;
  box-shadow: 0 28px 90px rgba(42, 26, 14, 0.14);
}

.stove-russian-visual img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.06);
}

.stove-russian-copy h2 {
  margin: 14px 0 22px;
  color: var(--ink);
  font-size: clamp(38px, 4.8vw, 76px);
  line-height: 1.04;
}

.stove-russian-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}

.stove-russian-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.stove-russian-facts span {
  padding: 10px 14px;
  border: 1px solid rgba(126, 77, 45, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.72);
  color: #9a633d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-theme="dark"] .stove-russian-facts span {
  border-color: rgba(244, 205, 154, 0.24);
  background: rgba(255, 250, 241, 0.08);
  color: #d29a68;
}

.stove-type-stack {
  display: grid;
  gap: 22px;
}

.stove-type-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(88, 56, 33, 0.18);
  border-radius: 30px;
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 24px 80px rgba(42, 26, 14, 0.1);
}

.stove-type-card figure,
.stove-maker-card figure,
.stove-pour-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #17130f;
}

.stove-type-card figure {
  min-height: 520px;
}

.stove-type-card-feature figure,
.stove-kinds .stove-type-card figure {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(196, 132, 79, 0.18), transparent 48%),
    linear-gradient(145deg, #161310, #090807);
}

.stove-type-card img,
.stove-maker-card img,
.stove-pour-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.06) sepia(0.03);
}

.stove-kinds .stove-type-card img {
  height: auto;
  max-height: 520px;
  object-fit: contain;
  padding: clamp(18px, 3vw, 42px);
}

.stove-type-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.stove-type-card span,
.stove-pour-copy span {
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stove-type-card h3,
.stove-pour-copy h3,
.stove-maker-card h3 {
  margin: 14px 0 0;
  color: #171512;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.stove-type-card p,
.stove-pour-copy p,
.stove-maker-card p {
  margin: 20px 0 0;
  color: #51473d;
  font-size: 18px;
  line-height: 1.58;
}

.stove-type-card ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.stove-type-card li {
  position: relative;
  padding-left: 22px;
  color: #65594d;
  font-size: 16px;
  line-height: 1.45;
}

.stove-type-card li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
}

.stove-pour-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.stove-pour-grid figure {
  min-height: 520px;
  border-radius: 30px;
}

.stove-pour-grid figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(11, 9, 7, 0.72);
  color: var(--cream);
  line-height: 1.45;
  backdrop-filter: blur(14px);
}

.stove-pour-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: 40px;
  border: 1px solid rgba(196, 132, 79, 0.24);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(35, 27, 22, 0.96), rgba(15, 13, 10, 0.98));
}

.stove-pour-copy h3 {
  color: var(--cream);
}

.stove-pour-copy p {
  color: rgba(255, 250, 241, 0.72);
}

.stove-maker-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(88, 56, 33, 0.18);
  border-radius: 28px;
  background: rgba(255, 250, 241, 0.76);
  box-shadow: 0 20px 70px rgba(42, 26, 14, 0.09);
}

.stove-maker-card figure {
  height: 340px;
}

.stove-maker-card h3,
.stove-maker-card p {
  padding: 0 28px;
}

.stove-maker-card p {
  padding-bottom: 30px;
}

.stove-brand-badge {
  display: inline-flex;
  margin: 24px 28px 0;
  padding: 9px 14px;
  border: 1px solid rgba(196, 132, 79, 0.38);
  border-radius: 999px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.stove-custom-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 24%, rgba(196, 132, 79, 0.18), transparent 34%),
    linear-gradient(180deg, #12100d, #090807);
}

.stove-custom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.stove-custom-copy h2 {
  margin: 14px 0 18px;
  color: var(--cream);
  font-size: clamp(36px, 4.5vw, 72px);
  line-height: 1.05;
}

.stove-custom-copy p {
  max-width: 680px;
  color: rgba(245, 225, 193, 0.76);
  font-size: 18px;
  line-height: 1.6;
}

.stove-custom-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.stove-custom-list span {
  padding: 10px 14px;
  border: 1px solid rgba(196, 132, 79, 0.32);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 250, 241, 0.06);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stove-custom-visual {
  margin: 0;
  min-height: 560px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196, 132, 79, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 186, 106, 0.14), transparent 44%),
    rgba(255, 250, 241, 0.035);
  overflow: hidden;
}

.stove-custom-visual img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  padding: clamp(18px, 3vw, 46px);
  filter: saturate(0.96) contrast(1.08);
}

body[data-theme="light"] .stove-metric,
body[data-theme="light"] .stove-pour-copy {
  background: linear-gradient(145deg, rgba(255, 250, 241, 0.96), rgba(239, 226, 209, 0.98));
  color: #171512;
}

body[data-theme="light"] .stove-metric span,
body[data-theme="light"] .stove-pour-copy p {
  color: #5f5144;
}

body[data-theme="light"] .stove-pour-copy h3 {
  color: #171512;
}

body[data-theme="light"] .stove-page .section-dark h1,
body[data-theme="light"] .stove-page .section-dark h2,
body[data-theme="light"] .stove-page .section-dark h3,
body[data-theme="light"] .stove-page .page-hero h1,
body[data-theme="light"] .stove-page .stove-custom-copy h2 {
  color: var(--cream);
}

body[data-theme="light"] .stove-page .section-dark p,
body[data-theme="light"] .stove-page .page-hero p:not(.eyebrow),
body[data-theme="light"] .stove-page .stove-custom-copy p {
  color: rgba(245, 225, 193, 0.78);
}

.video-hero .page-hero-media {
  background-position: center;
  filter: saturate(0.82) contrast(1.06) brightness(0.62);
}

.video-hero h1 {
  max-width: 960px;
  font-size: clamp(48px, 6vw, 94px);
}

.video-hero p:not(.eyebrow) {
  max-width: 760px;
}

.video-intro {
  padding-bottom: 54px;
}

.video-library {
  background:
    radial-gradient(circle at 18% 10%, rgba(196, 132, 79, 0.14), transparent 32%),
    linear-gradient(180deg, #100e0b, #080706);
  color: var(--cream);
}

.video-group + .video-group {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid rgba(196, 132, 79, 0.22);
}

.video-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 26px;
}

.video-group-head .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -8px;
}

.video-group-head h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(34px, 4vw, 66px);
  line-height: 1.04;
}

.text-button {
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.video-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-card {
  overflow: hidden;
  border: 1px solid rgba(196, 132, 79, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.065), rgba(255, 250, 241, 0.035));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #090807;
  object-fit: cover;
}

.video-card div {
  padding: clamp(22px, 3vw, 34px);
}

.video-card span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-card h3 {
  margin: 12px 0 0;
  color: var(--cream);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.08;
}

.video-card p {
  margin: 14px 0 0;
  color: rgba(245, 225, 193, 0.74);
  line-height: 1.55;
}

/* Process page 2026-05-13 */
.process-premium-hero .page-hero-media {
  background-position: center;
  filter: saturate(0.28) contrast(1.12) brightness(0.62);
}

.process-premium-hero h1 {
  max-width: 960px;
  font-size: clamp(48px, 6.2vw, 96px);
}

.process-premium-hero p:not(.eyebrow) {
  max-width: 820px;
}

.process-invest {
  position: relative;
  overflow: hidden;
}

.process-invest::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 320px;
  background:
    linear-gradient(180deg, transparent, var(--paper)),
    url("assets/process/source/masterplan.webp") center 42% / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.process-stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.process-stage-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(191, 124, 72, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.86), rgba(235, 222, 204, 0.72));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.process-stage-grid span,
.process-proof-card span,
.process-design-card span,
.process-concept-copy li::marker,
.process-deliverable-list span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-stage-grid h3 {
  margin: 28px 0 12px;
  color: #171512;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.06;
}

.process-stage-grid p {
  color: #625646;
  line-height: 1.5;
}

.process-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 44px;
  align-items: stretch;
}

.process-proof-card,
.process-design-card,
.process-concept-board {
  overflow: hidden;
  border: 1px solid rgba(191, 124, 72, 0.26);
  border-radius: 8px;
  background: rgba(255, 247, 233, 0.055);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.22);
}

.process-proof-card,
.process-design-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: stretch;
}

.process-proof-card.wide {
  grid-column: auto;
}

.process-proof-card.tall {
  grid-row: auto;
}

.process-proof-card img,
.process-design-card img,
.process-concept-board img {
  width: 100%;
  display: block;
  background: #f7f4ef;
}

.process-proof-card img {
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.74) contrast(1.04);
}

.process-proof-card.wide img {
  height: auto;
  max-height: 620px;
  object-position: center;
}

.process-proof-card.tall img {
  height: auto;
  max-height: 760px;
  object-fit: contain;
  padding: clamp(10px, 1.4vw, 18px);
}

.process-proof-card figcaption,
.process-design-card figcaption {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 220px;
  padding: clamp(24px, 3vw, 42px);
  background:
    linear-gradient(180deg, rgba(24, 21, 17, 0.98), rgba(18, 16, 13, 0.98));
}

.process-proof-card strong,
.process-design-card strong {
  color: var(--cream);
  font-size: 24px;
  line-height: 1.12;
}

.process-proof-card p,
.process-design-card p {
  color: rgba(245, 225, 193, 0.74);
  line-height: 1.5;
}

.process-concept-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}

.process-concept-copy h2 {
  margin: 14px 0 18px;
  color: var(--cream);
  font-size: clamp(34px, 3.35vw, 58px);
  line-height: 1.08;
}

.process-concept-copy p {
  color: rgba(245, 225, 193, 0.76);
  line-height: 1.62;
}

/* Main page readability fixes */
.timeline-item {
  background:
    linear-gradient(180deg, rgba(239, 232, 218, 0.98), rgba(208, 201, 188, 0.96));
  color: #171512;
}

.timeline-item h3 {
  color: #171512;
}

.timeline-item p {
  color: #5e554b;
  font-weight: 500;
}

.why-list div {
  border-left-color: rgba(196, 132, 79, 0.62);
  background:
    linear-gradient(90deg, rgba(32, 27, 22, 0.98), rgba(18, 16, 13, 0.96));
  color: var(--cream);
}

.why-list strong {
  color: var(--cream);
}

.why-list p {
  color: rgba(245, 225, 193, 0.78);
  font-weight: 500;
}

.process-concept-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding-left: 20px;
  color: rgba(255, 247, 233, 0.86);
  line-height: 1.45;
}

.process-concept-board img {
  height: auto;
  max-height: 780px;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.85) contrast(1.06);
}

.process-design-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 44px;
  align-items: stretch;
}

.process-design-card.master {
  grid-row: auto;
}

.process-design-card.master img {
  height: auto;
  max-height: 920px;
  object-fit: contain;
  object-position: center top;
  padding: clamp(10px, 1.4vw, 18px);
}

.process-design-card-full img {
  height: auto;
  max-height: 760px;
  object-fit: contain;
  object-position: center top;
  padding: clamp(10px, 1.4vw, 18px);
}

.process-design-card:not(.master) img {
  height: auto;
  max-height: 620px;
  object-fit: contain;
  padding: clamp(10px, 1.4vw, 18px);
}

.process-gallery-card {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.process-mosaic {
  display: grid;
  gap: 10px;
  padding: clamp(10px, 1.4vw, 18px);
  background: #f7f4ef;
}

.process-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 0 !important;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}

.process-mosaic-3 {
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(210px, 1fr));
}

.process-mosaic-3 img:first-child {
  grid-row: 1 / span 2;
}

.process-mosaic-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(200px, 1fr));
}

.process-mosaic-5 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(175px, 1fr);
}

.process-mosaic-5 img:nth-child(1),
.process-mosaic-5 img:nth-child(2) {
  grid-column: span 3;
}

.process-mosaic-5 img:nth-child(n + 3) {
  grid-column: span 2;
}

.process-deliverable-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px auto 8px;
}

.process-deliverable-list span {
  padding: 10px 14px;
  border: 1px solid rgba(191, 124, 72, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.72);
}

body[data-theme="light"] .process-evidence,
body[data-theme="light"] .process-design {
  background: #171512;
  color: var(--cream);
}

body[data-theme="light"] .process-evidence .section-note,
body[data-theme="light"] .process-design .section-note {
  color: rgba(245, 225, 193, 0.7);
}

body[data-theme="light"] .process-evidence h2,
body[data-theme="light"] .process-design h2 {
  color: var(--cream);
}

@media (max-width: 1080px) {
  .header-phone,
  .telegram-action {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto auto auto;
  }

  .process-flow,
  .process-stage-grid,
  .process-doc-grid,
  .proof-grid,
  .process-proof-grid,
  .process-concept-grid,
  .process-design-grid,
  .barn-variant-grid,
  .barn-tuning-grid,
  .case-story-grid,
  .process-blueprint-grid,
  .authors-grid,
  .stove-principle-grid,
  .stove-russian-grid,
  .stove-custom-grid,
  .stove-maker-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stove-type-card,
  .stove-russian-grid,
  .stove-custom-grid,
  .stove-pour-grid,
  .video-grid.two {
    grid-template-columns: 1fr;
  }

  .process-blueprint-card.large {
    grid-row: auto;
    min-height: 460px;
  }

  .process-flow article::after {
    display: none;
  }

  .process-proof-grid,
  .process-design-grid,
  .process-concept-grid {
    grid-template-columns: 1fr;
  }

  .process-proof-card,
  .process-design-card,
  .process-gallery-card {
    grid-template-columns: 1fr;
  }

  .process-concept-copy h2 {
    max-width: 900px;
  }
}

@media (max-width: 680px) {
  .hero h1,
  .page-hero h1 {
    font-size: 40px;
    line-height: 1.08;
  }

  .case-media-grid figure,
  .case-media-grid figure.wide {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .drawing-strip figure {
    height: 320px;
  }

  .process-flow,
  .process-stage-grid,
  .process-doc-grid,
  .proof-grid,
  .proof-stack,
  .reel-grid,
  .process-proof-grid,
  .process-concept-grid,
  .process-design-grid,
  .barn-variant-grid,
  .barn-tuning-grid,
  .barn-interior-grid,
  .case-story-grid,
  .process-blueprint-grid,
  .authors-grid,
  .stove-principle-grid,
  .stove-russian-grid,
  .stove-maker-grid,
  .contact-principles,
  .contact-lines {
    grid-template-columns: 1fr;
  }

  .stove-type-card > div,
  .stove-pour-copy {
    padding: 28px;
  }

  .stove-type-card figure,
  .stove-pour-grid figure,
  .stove-russian-visual,
  .stove-russian-visual img {
    min-height: 360px;
  }

  .stove-hero-new .page-hero-media {
    background-size: 920px auto;
    background-position: center 28%;
    opacity: 0.42;
  }

  .stove-kinds .stove-type-card img,
  .stove-custom-visual img {
    max-height: none;
  }

  .stove-custom-visual {
    min-height: 360px;
  }

  .stove-maker-card figure {
    height: 280px;
  }

  .contact-hero {
    padding-top: 132px;
  }

  .video-group-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-hero h1 {
    font-size: 42px;
    line-height: 1.06;
  }

  .author-card {
    grid-template-columns: 1fr;
  }

  .author-card figure {
    min-height: 360px;
  }

  .barn-interior-grid figure,
  .barn-interior-grid figure:nth-child(1),
  .barn-interior-grid figure:nth-child(2) {
    grid-column: auto;
  }

  .process-flow article {
    min-height: 220px;
  }

  .process-doc-card img,
  .process-doc-card.large img,
  .proof-stack img,
  .barn-variant-card img,
  .barn-interior-grid img,
  .case-story-card img,
  .process-blueprint-card img {
    height: 300px;
  }

  .process-blueprint-card,
  .process-blueprint-card.large {
    min-height: 420px;
  }

  .process-proof-card.wide,
  .process-proof-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .process-stage-grid article {
    min-height: 210px;
  }

  .process-proof-card img,
  .process-proof-card.wide img,
  .process-proof-card.tall img,
  .process-concept-board img,
  .process-design-card.master img,
  .process-design-card-full img,
  .process-design-card:not(.master) img {
    height: auto;
    max-height: none;
    object-fit: contain;
    padding: 12px;
  }

  .process-mosaic,
  .process-mosaic-3,
  .process-mosaic-4,
  .process-mosaic-5 {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .process-mosaic img,
  .process-mosaic-3 img:first-child,
  .process-mosaic-4 img,
  .process-mosaic-5 img:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .process-proof-card figcaption,
  .process-design-card figcaption {
    min-height: auto;
    padding: 24px;
  }

  .process-concept-copy h2 {
    font-size: 34px;
  }

  .image-lightbox {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .image-lightbox img {
    padding: 14px;
  }

  .image-lightbox figcaption {
    padding: 0 18px 18px;
  }
}

/* Header contrast and compact Telegram action */
body[data-theme="light"] .site-header {
  background: rgba(13, 12, 10, 0.86);
  color: var(--cream);
  border-color: rgba(192, 138, 90, 0.34);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.24);
}

body[data-theme="light"] .site-header.is-elevated {
  background: rgba(9, 9, 8, 0.9);
  border-color: rgba(192, 138, 90, 0.34);
}

body[data-theme="light"] .site-header .brand-name {
  color: var(--cream);
}

body[data-theme="light"] .site-header .brand-subtitle,
body[data-theme="light"] .site-header .main-nav,
body[data-theme="light"] .site-header .header-phone {
  color: rgba(248, 234, 210, 0.76);
}

body[data-theme="light"] .site-header .main-nav a:hover,
body[data-theme="light"] .site-header .header-phone:hover {
  color: var(--cream);
}

body[data-theme="light"] .site-header .theme-toggle {
  border-color: rgba(255, 250, 241, 0.24);
  background: rgba(255, 250, 241, 0.12);
}

body[data-theme="light"] .site-header .theme-toggle span {
  background: linear-gradient(90deg, var(--cream) 0 50%, rgba(255, 250, 241, 0.18) 50%);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 241, 0.34);
}

body[data-theme="light"] .site-header .menu-button {
  background: rgba(255, 250, 241, 0.12);
}

body[data-theme="light"] .site-header .menu-button span {
  background: var(--cream);
}

body[data-theme="light"] .page-hero.section-dark .button.ghost,
body[data-theme="light"] .section-dark .button.ghost {
  color: var(--cream);
  border-color: rgba(248, 234, 210, 0.36);
  background: rgba(13, 11, 9, 0.28);
}

body[data-theme="light"] .page-hero.section-dark .button.ghost:hover,
body[data-theme="light"] .section-dark .button.ghost:hover {
  color: var(--cream);
  border-color: rgba(248, 234, 210, 0.58);
  background: rgba(248, 234, 210, 0.1);
}

body[data-theme="light"] .contact-lines .contact-card,
body[data-theme="light"] .why-list.contact-lines div {
  background:
    linear-gradient(90deg, #201b16, #12100d) !important;
  color: var(--cream) !important;
}

body[data-theme="light"] .contact-lines .contact-card strong,
body[data-theme="light"] .contact-lines .contact-card a,
body[data-theme="light"] .why-list.contact-lines strong,
body[data-theme="light"] .why-list.contact-lines a {
  color: var(--cream) !important;
}

body[data-theme="light"] .contact-lines .contact-card p,
body[data-theme="light"] .why-list.contact-lines p {
  color: rgba(245, 225, 193, 0.82) !important;
}

.seo-services {
  position: relative;
  overflow: hidden;
}

.seo-services::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(184, 121, 74, 0.18), transparent 34%),
    radial-gradient(circle at 85% 70%, rgba(248, 234, 210, 0.08), transparent 32%);
}

.seo-services > .container {
  position: relative;
  z-index: 1;
}

.seo-service-grid,
.service-scope-grid {
  display: grid;
  gap: 18px;
}

.seo-service-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 46px;
}

.seo-service-card,
.service-scope-grid article,
.service-faq-list article {
  border: 1px solid rgba(192, 138, 90, 0.24);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.09), rgba(255, 250, 241, 0.035));
  color: var(--cream);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.seo-service-card {
  display: grid;
  align-content: start;
  min-height: 260px;
  padding: 24px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.seo-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 234, 210, 0.36);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.13), rgba(255, 250, 241, 0.05));
}

.seo-service-card span,
.service-scope-grid span {
  color: var(--warm);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-service-card h3,
.service-faq-list h3 {
  margin: 18px 0 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}

.seo-service-card p,
.service-faq-list p,
.service-scope-grid p,
.service-rich-copy p {
  margin: 16px 0 0;
  color: rgba(255, 250, 241, 0.72);
  line-height: 1.6;
}

.service-hero .page-hero-media::after {
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.92), rgba(8, 7, 6, 0.56) 58%, rgba(8, 7, 6, 0.78)),
    linear-gradient(180deg, rgba(8, 7, 6, 0.2), rgba(8, 7, 6, 0.82));
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.service-rich-copy {
  max-width: 760px;
}

.service-rich-copy p {
  color: var(--muted);
  font-size: 20px;
}

.service-scope-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 44px;
}

.service-scope-grid article {
  min-height: 170px;
  padding: 22px;
  background: rgba(255, 250, 241, 0.78);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 12px 42px rgba(43, 29, 17, 0.08);
}

.service-scope-grid p {
  color: var(--muted);
}

.service-faq-list {
  display: grid;
  gap: 16px;
}

.service-faq-list article {
  padding: 26px;
}

.section-warm .service-faq-list article {
  background: rgba(255, 250, 241, 0.74);
  color: var(--ink);
  border-color: var(--line);
}

.section-warm .service-faq-list p {
  color: var(--muted);
}

.section-warm .service-faq-list h3 {
  color: var(--ink);
}

body[data-theme="light"] .seo-services {
  background: #100e0b;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto auto;
    gap: 12px;
  }

  .main-nav,
  .header-phone,
  .header-action {
    display: none;
  }

  .theme-toggle {
    justify-self: end;
  }

  .telegram-action {
    display: inline-flex !important;
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .telegram-action::before {
    width: 23px;
    height: 23px;
  }

  .seo-service-grid,
  .service-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .telegram-action {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
  }

  .telegram-action::before {
    width: 21px;
    height: 21px;
  }

  .seo-service-grid,
  .service-scope-grid {
    grid-template-columns: 1fr;
  }

  .seo-service-card {
    min-height: 0;
  }
}

/* SEO service pages: final readability and case-photo context */
.service-context-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.service-context-photo {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(192, 138, 90, 0.24);
  border-radius: 24px;
  background: #171512;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.service-context-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}

.service-context-photo figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(9, 9, 8, 0.72);
  color: var(--cream);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  backdrop-filter: blur(14px);
}

.service-scope-grid article {
  background: linear-gradient(180deg, #f7efe4, #ddd5c8) !important;
  color: #171512 !important;
}

.service-scope-grid p {
  color: #4f473f !important;
}

.service-scope-grid span {
  color: #a7653e !important;
}

.section-dark .service-rich-copy p,
.section-dark .service-faq-list p {
  color: rgba(255, 250, 241, 0.78);
}

body[data-theme="light"] .service-scope-grid article,
body[data-theme="light"] .section-warm .service-faq-list article {
  background: linear-gradient(180deg, #fff8ed, #e9ded0) !important;
  color: #171512 !important;
  border-color: rgba(80, 52, 34, 0.18) !important;
}

body[data-theme="light"] .service-scope-grid p,
body[data-theme="light"] .section-warm .service-faq-list p {
  color: #5b5147 !important;
}

body[data-theme="light"] .service-scope-grid span,
body[data-theme="light"] .section-warm .service-faq-list h3 {
  color: #171512 !important;
}

body[data-theme="light"] .section-dark .service-rich-copy p,
body[data-theme="light"] .section-dark .service-faq-list p {
  color: rgba(255, 247, 233, 0.82) !important;
}

@media (max-width: 1080px) {
  .service-context-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .service-context-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-context-photo,
  .service-context-photo img {
    min-height: 260px;
  }
}

/* Home hero case cards: compact bottom row */
.hero-variant-a .variant-a-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.hero-variant-a .variant-copy {
  max-width: 1120px;
}

.hero-variant-a .variant-copy h1 {
  max-width: 1040px;
  font-size: clamp(48px, 6.4vw, 104px);
}

.hero-variant-a .variant-copy .lead {
  max-width: 900px;
}

.hero-variant-a .variant-case-stack {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.hero-variant-a .variant-case-card,
.hero-variant-a .variant-case-card.is-compact {
  min-height: 118px;
  padding: 16px;
  border-radius: 22px;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 16px;
}

.hero-variant-a .variant-case-card strong,
.hero-variant-a .variant-case-card.is-compact strong {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
}

.hero-variant-a .variant-case-card p,
.hero-variant-a .variant-case-card.is-compact p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.42;
}

.hero-variant-a .variant-case-card img,
.hero-variant-a .variant-case-card.is-compact img {
  width: 116px;
  height: 86px;
  border-radius: 16px;
}

@media (max-width: 1080px) {
  .hero-variant-a {
    padding-top: 132px;
  }

  .hero-variant-a .variant-copy h1 {
    font-size: clamp(46px, 8vw, 78px);
  }
}

@media (max-width: 760px) {
  .hero-variant-a .variant-case-stack {
    grid-template-columns: 1fr;
  }

  .hero-variant-a .variant-case-card,
  .hero-variant-a .variant-case-card.is-compact {
    min-height: 104px;
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .hero-variant-a .variant-case-card img,
  .hero-variant-a .variant-case-card.is-compact img {
    width: 92px;
    height: 76px;
  }
}

@media (max-width: 520px) {
  .hero-variant-a {
    padding-top: 118px;
  }

  .hero-variant-a .variant-copy h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .hero-variant-a .variant-copy .lead {
    font-size: 17px;
  }

  .hero-variant-a .variant-case-card,
  .hero-variant-a .variant-case-card.is-compact {
    padding: 14px;
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .hero-variant-a .variant-case-card img,
  .hero-variant-a .variant-case-card.is-compact img {
    width: 82px;
    height: 70px;
  }
}

@media (min-width: 621px) and (max-width: 860px) {
  .hero-variant-a .variant-case-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-variant-a .variant-case-card,
  .hero-variant-a .variant-case-card.is-compact {
    min-height: 112px;
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 12px;
  }

  .hero-variant-a .variant-case-card strong,
  .hero-variant-a .variant-case-card.is-compact strong {
    font-size: clamp(18px, 3.1vw, 23px);
  }

  .hero-variant-a .variant-case-card p,
  .hero-variant-a .variant-case-card.is-compact p {
    font-size: 13px;
    line-height: 1.34;
  }

  .hero-variant-a .variant-case-card img,
  .hero-variant-a .variant-case-card.is-compact img {
    width: 84px;
    height: 76px;
  }
}

@media (max-width: 620px) {
  .hero-variant-a .variant-case-stack {
    grid-template-columns: 1fr;
  }
}

/* Conversion blocks and premium CTA polish */
.button,
.header-action {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.button::before,
.header-action::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 48%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.42), rgba(255, 250, 241, 0));
  opacity: 0.72;
  pointer-events: none;
  z-index: -1;
}

.button.primary,
.header-action {
  border-color: rgba(244, 205, 154, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 237, 199, 0.98), rgba(202, 132, 74, 0.98) 52%, rgba(105, 58, 31, 0.98)),
    #c98a52;
  color: #130d08;
  box-shadow: 0 18px 46px rgba(198, 126, 67, 0.28), inset 0 0 0 1px rgba(255, 250, 241, 0.2);
}

.button.primary::after,
.header-action::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(19, 13, 8, 0.12);
  color: currentColor;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}

.button.ghost {
  border-color: rgba(244, 205, 154, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.08), rgba(255, 250, 241, 0.02)),
    rgba(255, 250, 241, 0.035);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 241, 0.04);
}

.button.ghost::after {
  content: "→";
  opacity: 0.72;
  font-size: 15px;
}

.button:hover,
.header-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(198, 126, 67, 0.34), inset 0 0 0 1px rgba(255, 250, 241, 0.22);
}

.button.ghost:hover {
  border-color: rgba(244, 205, 154, 0.6);
  background: rgba(255, 250, 241, 0.1);
}

.button:focus-visible,
.header-action:focus-visible {
  outline: 2px solid rgba(244, 205, 154, 0.9);
  outline-offset: 4px;
}

.button.small {
  min-height: 44px;
  padding: 11px 18px;
}

.button.full {
  width: 100%;
}

.conversion-band {
  margin-top: -1px;
  padding: 72px 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(196, 124, 68, 0.16), transparent 34%),
    linear-gradient(180deg, #0e0c09, #14100d);
}

.conversion-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(192, 138, 90, 0.34);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.08), rgba(255, 250, 241, 0.025)),
    rgba(20, 16, 12, 0.92);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
}

.conversion-copy h2,
.conversion-panel h2 {
  margin: 8px 0 0;
  color: var(--cream);
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.05;
}

.conversion-copy p:not(.eyebrow),
.conversion-panel p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(255, 250, 241, 0.72);
  font-size: 18px;
  line-height: 1.55;
}

.conversion-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.conversion-steps article {
  min-height: 156px;
  padding: 18px;
  border: 1px solid rgba(192, 138, 90, 0.24);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.055);
}

.conversion-steps span {
  display: inline-flex;
  margin-bottom: 24px;
  color: #d29a68;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.conversion-steps strong {
  display: block;
  color: var(--cream);
  font-size: 19px;
}

.conversion-steps p {
  margin: 8px 0 0;
  color: rgba(255, 250, 241, 0.62);
  font-size: 14px;
  line-height: 1.42;
}

.conversion-actions,
.conversion-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.conversion-actions {
  min-width: 230px;
}

.conversion-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 58px;
  padding: 34px;
  border: 1px solid rgba(192, 138, 90, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(32, 25, 20, 0.96), rgba(17, 14, 11, 0.98)),
    #17120e;
  box-shadow: 0 24px 70px rgba(36, 24, 16, 0.12);
}

body[data-theme="light"] .conversion-band {
  background:
    radial-gradient(circle at 18% 18%, rgba(196, 124, 68, 0.13), transparent 34%),
    linear-gradient(180deg, #f4eadc, #eee3d5);
}

body[data-theme="light"] .conversion-grid,
body[data-theme="light"] .conversion-panel {
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(231, 219, 204, 0.94)),
    #f3eadf;
  border-color: rgba(103, 67, 42, 0.18);
  box-shadow: 0 24px 70px rgba(75, 52, 33, 0.12);
}

body[data-theme="light"] .conversion-copy h2,
body[data-theme="light"] .conversion-panel h2,
body[data-theme="light"] .conversion-steps strong {
  color: #17120e;
}

body[data-theme="light"] .conversion-copy p:not(.eyebrow),
body[data-theme="light"] .conversion-panel p:not(.eyebrow),
body[data-theme="light"] .conversion-steps p {
  color: rgba(28, 23, 19, 0.72);
}

body[data-theme="light"] .conversion-steps article {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(103, 67, 42, 0.14);
}

body[data-theme="light"] .button.ghost {
  color: #17120e;
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(103, 67, 42, 0.24);
}

body[data-theme="light"] .page-hero.section-dark .button.ghost,
body[data-theme="light"] .section-dark:not(.conversion-band) .button.ghost {
  color: var(--cream);
  border-color: rgba(248, 234, 210, 0.36);
  background: rgba(13, 11, 9, 0.28);
}

@media (max-width: 1120px) {
  .conversion-grid,
  .conversion-panel {
    grid-template-columns: 1fr;
  }

  .conversion-actions,
  .conversion-panel-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .conversion-band {
    padding: 48px 0;
  }

  .conversion-grid,
  .conversion-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .conversion-steps {
    grid-template-columns: 1fr;
  }

  .conversion-steps article {
    min-height: auto;
  }

  .conversion-actions .button,
  .conversion-panel-actions .button {
    width: 100%;
  }
}

/* Mobile header: keep fast call action visible */
@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto auto auto;
    gap: 10px;
  }

  .site-header .header-action {
    display: inline-flex !important;
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .site-header .header-action::after {
    margin: 0;
    width: 25px;
    height: 25px;
  }

  .site-header .header-phone {
    display: inline-flex !important;
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border: 1px solid rgba(244, 205, 154, 0.38);
    border-radius: 50%;
    background:
      linear-gradient(180deg, rgba(255, 250, 241, 0.13), rgba(255, 250, 241, 0.035)),
      rgba(255, 250, 241, 0.08);
    color: var(--cream);
    font-size: 0;
    box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.12);
  }

  .site-header .header-phone::before {
    content: "";
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.6 10.8c1.5 3 3.7 5.2 6.6 6.6l2.2-2.2c.3-.3.8-.4 1.2-.3 1.3.4 2.7.6 4.1.6.7 0 1.3.6 1.3 1.3v3.5c0 .7-.6 1.3-1.3 1.3C10.4 21.6 2.4 13.6 2.4 3.3 2.4 2.6 3 2 3.7 2h3.5c.7 0 1.3.6 1.3 1.3 0 1.4.2 2.8.6 4.1.1.4 0 .9-.3 1.2l-2.2 2.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.6 10.8c1.5 3 3.7 5.2 6.6 6.6l2.2-2.2c.3-.3.8-.4 1.2-.3 1.3.4 2.7.6 4.1.6.7 0 1.3.6 1.3 1.3v3.5c0 .7-.6 1.3-1.3 1.3C10.4 21.6 2.4 13.6 2.4 3.3 2.4 2.6 3 2 3.7 2h3.5c.7 0 1.3.6 1.3 1.3 0 1.4.2 2.8.6 4.1.1.4 0 .9-.3 1.2l-2.2 2.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .site-header .header-phone:hover {
    color: var(--cream);
    border-color: rgba(244, 205, 154, 0.62);
    background: rgba(255, 250, 241, 0.14);
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(100% - 20px, 1180px);
    gap: 8px;
    padding: 10px 12px;
  }

  .site-header .header-phone,
  .site-header .telegram-action,
  .site-header .header-action,
  .site-header .theme-toggle,
  .site-header .menu-button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
  }

  .site-header .header-phone::before {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 6px;
    padding: 8px 10px;
  }

  .site-header .brand {
    gap: 8px;
    min-width: 0;
  }

  .site-header .brand-mark {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .site-header .brand-text {
    display: none;
  }

  .site-header .header-phone,
  .site-header .telegram-action,
  .site-header .header-action,
  .site-header .theme-toggle,
  .site-header .menu-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
  }
}

/* Approval preview: home page with brandbook steam hero */
.home-steam-concept .hero-steam-concept .variant-bg img {
  opacity: 0.95;
  filter: saturate(0.9) contrast(1.06) sepia(0.04);
  object-position: center center;
}

.home-steam-concept .hero-steam-concept .variant-bg::after {
  background:
    radial-gradient(circle at 72% 47%, rgba(184, 121, 74, 0.12), transparent 32%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.94) 0%, rgba(8, 7, 6, 0.72) 34%, rgba(8, 7, 6, 0.28) 70%, rgba(8, 7, 6, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.18), rgba(8, 7, 6, 0.82));
}

.home-steam-concept .hero-steam-concept .variant-copy {
  max-width: 880px;
}

.home-steam-concept .hero-steam-concept .variant-copy h1 {
  max-width: 860px;
  font-size: clamp(48px, 6.8vw, 112px);
}

.home-steam-concept .hero-steam-concept .variant-copy .lead {
  max-width: 780px;
  color: rgba(255, 250, 241, 0.82);
}

.home-steam-concept .hero-steam-concept .variant-case-stack {
  width: min(100%, 980px);
}

body[data-theme="light"].home-steam-concept .hero-variant-readable .variant-bg::after {
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.88), rgba(8, 7, 6, 0.6) 42%, rgba(8, 7, 6, 0.22)),
    linear-gradient(180deg, rgba(8, 7, 6, 0.16), rgba(8, 7, 6, 0.76));
}

body[data-theme="light"].home-steam-concept .variant-copy h1,
body[data-theme="light"].home-steam-concept .variant-copy .lead {
  color: var(--cream);
}

@media (max-width: 760px) {
  .home-steam-concept .hero-steam-concept .variant-bg img {
    object-position: 58% center;
  }

  .home-steam-concept .hero-steam-concept .variant-bg::after {
    background:
      linear-gradient(90deg, rgba(8, 7, 6, 0.9), rgba(8, 7, 6, 0.54)),
      linear-gradient(180deg, rgba(8, 7, 6, 0.16), rgba(8, 7, 6, 0.84));
  }
}

/* Short lead popup from the header CTA */
.quick-lead-dialog {
  width: min(440px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid rgba(192, 138, 90, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(202, 132, 74, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(36, 29, 23, 0.98), rgba(15, 12, 10, 0.99));
  color: var(--cream);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.quick-lead-dialog::backdrop {
  background: rgba(5, 4, 3, 0.72);
  backdrop-filter: blur(12px);
}

.quick-lead-form {
  display: grid;
  gap: 16px;
  padding: 34px;
}

.quick-lead-form h2 {
  margin: -6px 0 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.02;
}

.quick-lead-form p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 250, 241, 0.72);
  font-size: 16px;
  line-height: 1.5;
}

.quick-lead-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 250, 241, 0.84);
  font-size: 14px;
  font-weight: 800;
}

.quick-lead-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.08);
  color: var(--cream);
  font: inherit;
  outline: 0;
}

.quick-lead-form input::placeholder {
  color: rgba(255, 250, 241, 0.46);
}

.quick-lead-form input:focus {
  border-color: rgba(244, 205, 154, 0.68);
  box-shadow: 0 0 0 3px rgba(202, 132, 74, 0.16);
}

.quick-lead-note {
  color: rgba(255, 250, 241, 0.58);
  font-size: 13px;
  line-height: 1.45;
}

.quick-lead-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.08);
  color: var(--cream);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body[data-theme="light"] .quick-lead-dialog {
  background:
    radial-gradient(circle at 18% 0%, rgba(202, 132, 74, 0.14), transparent 34%),
    linear-gradient(180deg, #fff8ec, #eee1d1);
  color: #17120e;
  border-color: rgba(103, 67, 42, 0.2);
}

body[data-theme="light"] .quick-lead-form p:not(.eyebrow),
body[data-theme="light"] .quick-lead-note {
  color: rgba(28, 23, 19, 0.68);
}

body[data-theme="light"] .quick-lead-form label {
  color: rgba(28, 23, 19, 0.78);
}

body[data-theme="light"] .quick-lead-form input {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(103, 67, 42, 0.16);
  color: #17120e;
}

body[data-theme="light"] .quick-lead-form input::placeholder {
  color: rgba(28, 23, 19, 0.42);
}

body[data-theme="light"] .quick-lead-close {
  color: #17120e;
  border-color: rgba(103, 67, 42, 0.16);
  background: rgba(255, 255, 255, 0.48);
}

@media (min-width: 761px) and (max-width: 860px) {
  .site-header .header-action {
    min-width: 58px;
    width: 58px;
    height: 58px;
    padding: 0;
    font-size: 0;
  }

  .site-header .header-action::after {
    margin: 0;
    background: rgba(19, 13, 8, 0.14);
  }
}

@media (max-width: 520px) {
  .quick-lead-form {
    padding: 30px 22px 24px;
  }
}


/* CMS generated content */
.cms-article { max-width: 860px; }
.cms-article-block { padding: 30px 0; border-bottom: 1px solid rgba(140, 120, 90, 0.22); }
.cms-article-block figure { margin: 0 0 22px; border-radius: 8px; overflow: hidden; background: #e5dac8; }
.cms-article-block img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cms-article-block h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 2.5vw, 2.4rem); }
.cms-article-block p { margin: 0; color: var(--muted); line-height: 1.8; }
.article-lead-cta {
  margin: 34px 0 8px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  background: #21180f;
  color: #fff;
}
.article-lead-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}
.article-lead-cta p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}
.cms-managed-section { border-top: 1px solid rgba(140, 120, 90, 0.2); }
.zen-page { background: #f7f2e8; color: #251c14; }
.zen-hero { padding: 120px 0 44px; background: #21180f; color: #fff; }
.zen-hero h1 { max-width: 920px; margin: 0 0 18px; font-size: clamp(2.4rem, 6vw, 5.8rem); line-height: .95; }
.zen-hero p:not(.eyebrow) { max-width: 720px; color: rgba(255,255,255,.72); font-size: 1.1rem; line-height: 1.65; }
.zen-feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.zen-card { background: #fff; border: 1px solid rgba(80,62,43,.14); border-radius: 8px; overflow: hidden; }
.zen-card a { display: grid; color: inherit; text-decoration: none; }
.zen-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e5dac8; }
.zen-card span { padding: 18px 18px 0; color: #8f4f2b; font-size: .78rem; text-transform: uppercase; }
.zen-card h2 { margin: 8px 18px 10px; font-size: clamp(1.35rem, 2vw, 2.05rem); line-height: 1.08; }
.zen-card p { margin: 0 18px 20px; color: #6e6256; line-height: 1.65; }

.cms-article-block figure {
  display: flex;
  justify-content: center;
}

.cms-article-block img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 720px);
  aspect-ratio: auto;
  object-fit: contain;
}

/* Stable conversion block layout */
.conversion-grid {
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "steps"
    "actions";
  row-gap: 26px;
  align-items: start;
  padding: clamp(34px, 4.4vw, 58px);
}

.conversion-copy {
  grid-area: copy;
  max-width: 1120px;
}

.conversion-copy h2 {
  max-width: 1060px;
  font-size: clamp(40px, 3.4vw, 68px);
  line-height: 1;
}

.conversion-copy p:not(.eyebrow) {
  max-width: 520px;
  font-size: clamp(18px, 1.2vw, 22px);
}

.conversion-steps {
  grid-area: steps;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.3vw, 20px);
  align-self: stretch;
}

.conversion-steps article {
  min-height: 190px;
  padding: clamp(20px, 1.8vw, 28px);
}

.conversion-steps strong {
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1.1;
}

.conversion-steps p {
  font-size: clamp(15px, 1.05vw, 18px);
}

.conversion-actions {
  grid-area: actions;
  min-width: 0;
  justify-content: flex-start;
  align-self: start;
}

.conversion-actions .button {
  min-height: 58px;
  padding-inline: clamp(24px, 2.2vw, 38px);
  font-size: clamp(16px, 1.1vw, 20px);
}

@media (max-width: 1180px) {
  .conversion-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "steps"
      "actions";
    align-items: start;
  }

  .conversion-copy,
  .conversion-copy h2,
  .conversion-copy p:not(.eyebrow) {
    max-width: 860px;
  }
}

@media (max-width: 760px) {
  .conversion-grid {
    padding: 22px;
    row-gap: 20px;
  }

  .conversion-copy h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .conversion-steps {
    grid-template-columns: 1fr;
  }

  .conversion-steps article {
    min-height: auto;
  }
}
