﻿/* 01. Design tokens */
:root {
  --bg: #f4efe7;
  --paper: #fffdf7;
  --ink: #151812;
  --muted: #657063;
  --line: rgba(25, 30, 23, 0.13);
  --sage: #8f9d83;
  --sage-soft: #dfe7d9;
  --sand: #d8c0a0;
  --gold: #b89569;
  --shadow: 0 28px 88px rgba(20, 25, 18, 0.12);
  --shadow-sm: 0 12px 34px rgba(20, 25, 18, 0.075);
  --r: 28px;
  --r2: 42px;
  --max: 1440px;
  --font-heading: "Lora", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --motion-xs: 140ms;
  --motion-sm: 220ms;
  --motion-md: 420ms;
  --motion-lg: 680ms;
  --motion-xl: 960ms;
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 240ms;
  --motion-base: 650ms;
  --motion-slow: 850ms;
}

/* 02. Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  background:
    radial-gradient(circle at 4% -6%, rgba(216, 192, 160, 0.42), transparent 32%),
    radial-gradient(circle at 94% 2%, rgba(143, 157, 131, 0.28), transparent 28%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 48%, #efe7dc 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.quote {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  font-size: 24px;
  line-height: 1.15;
}

p,
li,
span {
  font-family: var(--font-body);
  color: var(--muted);
  line-height: 1.65;
  font-weight: 400;
  text-wrap: pretty;
}

h1,
h2,
h3,
.metric span {
  overflow-wrap: anywhere;
}

button,
input,
select,
textarea,
summary {
  font-family: var(--font-body);
}

article.panel h3,
.goal-card h3,
.contact-card h3,
.calc-explanation-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}

section {
  scroll-margin-top: 88px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 34px);
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 1000;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
}

.file-protocol-warning {
  display: none;
}

.file-protocol .file-protocol-warning:not([hidden]) {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid rgba(143, 157, 131, 0.48);
  border-radius: 18px;
  padding: 16px 18px;
  background: #fffdf7;
  color: var(--ink);
  box-shadow: 0 18px 54px rgba(21, 24, 18, 0.18);
}

.file-protocol-warning strong,
.file-protocol-warning p {
  display: block;
}

.file-protocol-warning p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.file-protocol-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.file-protocol-actions button,
.file-protocol-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: var(--ink);
  font: 700 13px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.file-protocol-actions a {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

@media (max-width: 680px) {
  .file-protocol .file-protocol-warning:not([hidden]) {
    align-items: stretch;
    flex-direction: column;
  }

  .file-protocol-actions,
  .file-protocol-actions button,
  .file-protocol-actions a {
    width: 100%;
  }
}

.skip-link:focus {
  top: 14px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(143, 157, 131, 0.55);
  outline-offset: 4px;
}

/* 03. Header and navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(25, 30, 23, 0.08);
  background: rgba(251, 248, 242, 0.82);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav {
    background: rgba(251, 248, 242, 0.97);
  }
}

.nav-in {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.header-mobile-cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

@media (hover: hover) and (pointer: fine) {
  .header-mobile-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-link {
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--motion-fast) var(--motion-ease);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), #4e5e48);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* 04. Buttons and motion */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  font: inherit;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.cta-shimmer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: paint;
}

.cta-shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(
      112deg,
      transparent 0%,
      transparent 42%,
      rgba(255, 253, 247, 0.16) 47%,
      rgba(216, 192, 160, 0.42) 50%,
      rgba(255, 255, 255, 0.2) 53%,
      transparent 59%,
      transparent 100%
    );
  transform: translateX(-100%) rotate(0.001deg);
  pointer-events: none;
  animation: cta-premium-shimmer 4.8s var(--ease-soft) infinite;
}

.btn.primary-cta.cta-shimmer::after {
  position: relative;
  z-index: 2;
}

@keyframes cta-premium-shimmer {
  0%,
  18% {
    transform: translateX(-100%) rotate(0.001deg);
    opacity: 0;
  }

  32% {
    opacity: 0.92;
  }

  52%,
  100% {
    transform: translateX(100%) rotate(0.001deg);
    opacity: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .cta-shimmer:hover::before {
    animation-duration: 3.2s;
  }
}

.js-enabled .animate-on-scroll,
.js-enabled .animate-fade-in,
.js-enabled .animate-scale-in {
  will-change: opacity, transform;
}

.js-enabled .animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--motion-base) var(--motion-ease),
    transform var(--motion-base) var(--motion-ease);
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

.js-enabled .animate-fade-in {
  opacity: 0;
  transition: opacity var(--motion-base) var(--motion-ease);
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

.js-enabled .animate-scale-in {
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity var(--motion-slow) var(--motion-ease),
    transform var(--motion-slow) var(--motion-ease);
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

.js-enabled .animate-on-scroll.is-visible,
.js-enabled .animate-fade-in.is-visible,
.js-enabled .animate-scale-in.is-visible {
  opacity: 1;
  transform: none;
}

.js-enabled .motion-complete {
  will-change: auto;
  transition-delay: 0ms;
}

article.panel,
.goal-card,
.scenario,
.service,
.control-item,
.faq,
.calc-option > span,
.calc-pill > span {
  transition:
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease);
}

.scenario:active,
.service:active,
.control-item:active,
.faq:active {
  transform: scale(0.995);
}

@media (hover: hover) and (pointer: fine) {
  article.panel:not(.animate-on-scroll):hover,
  .goal-card:not(.animate-on-scroll):hover,
  .scenario:not(.animate-on-scroll):hover,
  .service:not(.animate-on-scroll):hover,
  .control-item:not(.animate-on-scroll):hover,
  .faq:not(.animate-on-scroll):hover,
  .js-enabled article.panel.animate-on-scroll.motion-complete:hover,
  .js-enabled .goal-card.animate-on-scroll.motion-complete:hover,
  .js-enabled .scenario.animate-on-scroll.motion-complete:hover,
  .js-enabled .service.animate-on-scroll.motion-complete:hover,
  .js-enabled .control-item.animate-on-scroll.motion-complete:hover,
  .js-enabled .faq.animate-on-scroll.motion-complete:hover {
    transform: translateY(-3px);
  }

  .calc-option:hover > span,
  .calc-pill:hover > span {
    transform: translateY(-2px);
  }
}

.calc-result.result-updated {
  animation: calc-result-update 400ms var(--motion-ease);
}

@keyframes calc-result-update {
  from {
    opacity: 0.72;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq[open] > p {
  animation: faq-answer-in 320ms var(--motion-ease);
}

@keyframes faq-answer-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn.dark,
.btn.primary-cta {
  border-color: var(--ink);
  background: linear-gradient(135deg, #151812 0%, #303827 100%);
  color: #fff;
}

.btn.primary-cta::after {
  content: "→";
  margin-left: 10px;
}

.btn.light {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.btn.sage {
  border-color: rgba(143, 157, 131, 0.35);
  background: var(--sage-soft);
  color: #2d382b;
}

/* 05. Shared layout and sections */
.section {
  margin-top: clamp(72px, 7vw, 112px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 6px rgba(143, 157, 131, 0.16);
}

.dark-kicker {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.title {
  max-width: 960px;
  margin: 14px 0 18px;
  font-size: clamp(40px, 4.5vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: #586154;
  font-size: clamp(16px, 1.18vw, 19px);
  line-height: 1.74;
  text-wrap: pretty;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.section-head .lead {
  margin-bottom: 0;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: var(--shadow-sm);
}

/* 06. Hero */
.hero {
  padding-top: 18px;
}

.hero-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(255, 255, 255, 0.62));
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: min(760px, calc(100vh - 100px));
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.2vw, 46px);
}

.hero h1 {
  min-width: 0;
  max-width: 760px;
  margin: 18px 0 22px;
  font-size: clamp(48px, 4.8vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  color: #4d554b;
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.72;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta-hint {
  margin: 12px 0 0;
  color: #566053;
  font-size: 14px;
  font-weight: 600;
}

.hero-scenarios,
.metrics,
.receive-grid,
.goal-grid,
.mini-grid,
.control-list,
.case-logic,
.packages,
.service-grid,
.cards3 {
  display: grid;
  gap: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.hero-scenarios {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.scenario,
.metric,
.mini,
.receive,
.service,
.control-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.62);
}

.scenario b,
.mini b,
.receive h3,
.control-item b,
.service b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.scenario span,
.case-logic span,
.control-item span,
.service span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.metrics {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}

.metric b {
  display: block;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(30px, 2.3vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.metric span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.35;
  text-wrap: pretty;
}

.visual-placeholder {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(25, 30, 23, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.82), rgba(216, 192, 160, 0.22)),
    repeating-linear-gradient(135deg, rgba(21, 24, 18, 0.055) 0 1px, transparent 1px 22px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.image-slot.has-image {
  display: block;
  background: #e9e1d5;
}

.image-slot.has-image::after,
.image-slot.has-image .placeholder-content {
  display: none;
}

.image-slot img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.visual-placeholder::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(25, 30, 23, 0.16);
  border-radius: 26px;
  pointer-events: none;
}

.placeholder-content {
  max-width: 420px;
  padding: 28px;
  text-align: center;
}

.placeholder-content span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(143, 157, 131, 0.15);
  color: #52614b;
  font-size: 12px;
  font-weight: 800;
}

.placeholder-content b {
  display: block;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.placeholder-content p {
  margin: 12px auto 0;
  color: #5d655b;
  font-size: 14px;
  line-height: 1.55;
}

.image-frame {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(25, 30, 23, 0.12);
  border-radius: 34px;
  background: #e9e1d5;
  box-shadow: var(--shadow-sm);
}

.dark-block .image-frame,
.contact-card .image-frame {
  border-color: rgba(255, 255, 255, 0.14);
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.image-frame picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.compact-visual {
  min-height: 280px;
}

.wide-visual {
  min-height: 320px;
  margin: 22px 0 16px;
}

.hero-media {
  min-width: 0;
  height: auto;
  min-height: 100%;
  align-self: stretch;
}

.hero-media img {
  object-position: center center;
}

.float {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}

.float b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.receive-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card-number,
.tag {
  display: inline-flex;
  width: max-content;
  margin-bottom: 12px;
  border: 1px solid rgba(143, 157, 131, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(143, 157, 131, 0.13);
  color: var(--sage);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.goal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.goal-card {
  min-height: 315px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 22px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: var(--shadow-sm);
}

.goal-card-select {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.goal-card-select h3 {
  margin-bottom: 12px;
}

.goal-card-select p {
  margin-bottom: 14px;
}

.goal-select-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #52614b;
  font-size: 13px;
  font-weight: 800;
}

.goal-select-hint::after,
.goal-calc-cta::after {
  content: "→";
  transition: transform var(--motion-fast) var(--motion-ease);
}

.goal-card.is-active {
  border-color: rgba(143, 157, 131, 0.72);
  background: linear-gradient(145deg, rgba(255, 253, 247, 0.98), rgba(223, 231, 217, 0.68));
  box-shadow: 0 18px 48px rgba(20, 25, 18, 0.12);
  view-transition-name: goal-selection;
}

.goal-card.is-active .goal-select-hint {
  color: var(--ink);
}

.goal-card-select:focus-visible {
  border-radius: 18px;
  outline: 3px solid rgba(143, 157, 131, 0.55);
  outline-offset: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .goal-card:hover {
    border-color: rgba(143, 157, 131, 0.42);
    box-shadow: 0 18px 48px rgba(20, 25, 18, 0.1);
  }

  .goal-card:hover .goal-select-hint::after,
  .goal-card:hover .goal-calc-cta::after {
    transform: translateX(3px);
  }
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: stretch;
}

.editorial > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: clamp(28px, 3.4vw, 50px);
  background: rgba(255, 253, 247, 0.62);
  box-shadow: var(--shadow-sm);
}

.editorial > div:first-child .title {
  max-width: 620px;
}

.editorial > div:first-child .lead {
  max-width: 580px;
}

.quote {
  color: var(--ink);
  font-size: clamp(40px, 4vw, 64px);
  font-style: italic;
  line-height: 1.02;
  letter-spacing: 0;
}

.mini-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.product-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(24px, 2.6vw, 36px);
}

.product-panel .soft-note {
  margin-top: 0;
}

.product-panel .compact-visual {
  min-height: 240px;
}

.soft-note {
  margin-top: 18px;
  border: 1px solid rgba(143, 157, 131, 0.22);
  border-radius: 22px;
  padding: 16px 18px;
  background: rgba(143, 157, 131, 0.1);
  color: #46503f;
  font-weight: 700;
  line-height: 1.55;
}

.dark-block {
  border-radius: var(--r2);
  padding: 16px;
  background: linear-gradient(145deg, rgba(21, 24, 18, 0.98), rgba(70, 82, 63, 0.95));
  box-shadow: var(--shadow);
  color: #fff;
}

.dark-block h2,
.dark-block h3,
.dark-block p,
.dark-block span,
.dark-block li,
.dark-block b {
  color: #fff;
}

.dark-block p,
.dark-block li,
.dark-block .service span,
.dark-block .control-item span {
  opacity: 0.82;
}

.process {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 16px;
}

.design {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.process-copy,
.design-copy {
  padding: clamp(24px, 3vw, 42px);
}

.design-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  column-gap: clamp(24px, 4vw, 58px);
  align-items: start;
}

.design-copy > .kicker,
.design-copy > .title,
.design-copy > p,
.design-copy > .service-grid {
  grid-column: 1;
}

.design-copy > .kicker {
  justify-self: start;
}

.design-copy > .title,
.design-copy > p {
  max-width: 660px;
}

.design-copy > .design-visual {
  grid-column: 2;
  grid-row: 1 / span 4;
  min-height: 100%;
  margin-top: 0;
}

.design-copy > .design-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.control-list {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.control-item,
.service,
.dark-block .panel,
.dark-block .mini {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.dark-placeholder {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(216, 192, 160, 0.1)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 22px);
}

.dark-placeholder::after {
  border-color: rgba(255, 255, 255, 0.16);
}

.dark-placeholder .placeholder-content b,
.dark-placeholder .placeholder-content p {
  color: #fff;
}

.process-img {
  min-height: 430px;
}

.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 16px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: var(--shadow-sm);
}

.case-media {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 420px;
}

.case-media figure {
  min-height: 100%;
  margin: 0;
}

.before-after-label,
.before-after-divider,
.before-after-range,
.before-after-controls {
  display: none;
}

.before-after.is-enhanced {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 28px;
  background: #ded6ca;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.before-after.is-enhanced figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.before-after.is-enhanced .before-after-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--before-after-position)) 0 0);
}

.before-after.is-enhanced .before-after-after {
  z-index: 1;
}

.before-after.is-enhanced.is-animating .before-after-before {
  transition: clip-path 560ms var(--motion-ease);
}

.before-after.is-enhanced .before-after-label {
  position: absolute;
  top: 14px;
  z-index: 5;
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 253, 247, 0.88);
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.before-after-label.is-before {
  left: 14px;
}

.before-after-label.is-after {
  right: 14px;
}

.before-after.is-enhanced .before-after-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--before-after-position);
  z-index: 4;
  display: block;
  width: 2px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(21, 24, 18, 0.16);
  transform: translateX(-1px);
  pointer-events: none;
}

.before-after.is-enhanced.is-animating .before-after-divider {
  transition: left 560ms var(--motion-ease);
}

.before-after.is-enhanced .before-after-divider::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.94);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(20, 25, 18, 0.2);
  transform: translate(-50%, -50%);
}

.before-after.is-enhanced .before-after-range {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.before-after.is-enhanced .before-after-range:focus-visible {
  opacity: 0;
}

.before-after.is-enhanced:has(.before-after-range:focus-visible) {
  outline: 3px solid rgba(143, 157, 131, 0.9);
  outline-offset: 4px;
}

.before-after.is-enhanced .before-after-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 7;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.before-after-controls button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 253, 247, 0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
}

.before-after-controls button:active {
  transform: scale(0.98);
}

.before-after-controls button.is-inactive {
  opacity: 0.58;
  transform: none;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.case-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(12px, 2vw, 32px);
}

.case-copy h3 {
  margin: 12px 0;
  font-family: var(--font-heading);
  font-size: clamp(38px, 3.6vw, 62px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chips span,
.direction-line span {
  border: 1px solid rgba(143, 157, 131, 0.23);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(143, 157, 131, 0.13);
  color: #52614b;
  font-size: 13px;
  font-weight: 700;
}

.chips span,
.card-number {
  white-space: nowrap;
}

.case-logic {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}

.case-logic div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.case-logic b {
  display: block;
  color: var(--ink);
}

.result {
  margin-top: 12px;
  border: 1px solid rgba(143, 157, 131, 0.21);
  border-radius: 18px;
  padding: 14px;
  background: rgba(143, 157, 131, 0.11);
  color: #46503f;
  font-weight: 600;
}

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

.package {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.package.featured {
  border-color: rgba(185, 154, 115, 0.3);
  background: linear-gradient(145deg, rgba(255, 253, 247, 0.96), rgba(217, 193, 161, 0.24));
}

.direction-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

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

.price-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.08);
}

/* 07. Calculator */
.repair-calculator {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.repair-calculator form {
  display: grid;
  gap: 16px;
}

.calculator-progress,
.calc-step-actions {
  display: none;
}

.calculator-progress {
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.calculator-progress > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calculator-progress-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.calculator-progress-steps button {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.calculator-progress-steps button span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.calculator-progress-steps button.is-complete,
.calculator-progress-steps button[aria-current="step"] {
  border-color: rgba(216, 192, 160, 0.6);
  background: rgba(216, 192, 160, 0.16);
  color: #fff;
}

.calculator-progress-steps button.is-complete:not(:disabled) {
  cursor: pointer;
}

.calculator-step {
  min-width: 0;
  display: grid;
  gap: 16px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 16px;
  view-transition-name: calculator-step;
}

.calculator-step[hidden],
.calc-result[hidden],
.calc-range[hidden],
.calc-step-actions [hidden] {
  display: none !important;
}

.calculator-step legend {
  padding: 0 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.repair-calculator.is-stepper .calculator-progress,
.repair-calculator.is-stepper .calc-step-actions {
  display: flex;
}

.repair-calculator.is-stepper .calculator-progress {
  flex-direction: column;
}

.repair-calculator.is-stepper .calc-step-actions {
  justify-content: space-between;
  gap: 10px;
}

.repair-calculator.is-stepper .calc-step-actions .btn {
  flex: 1 1 0;
}

.calc-step-message {
  min-height: 24px;
  margin: -4px 0 0;
  color: #f4ddc0;
  font-size: 13px;
  font-weight: 700;
}

.calc-step-message:empty {
  min-height: 0;
}

.calc-range {
  margin-top: 16px;
}

.calc-range-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.calc-range-track span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--sand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 520ms var(--motion-ease);
}

.calc-result.result-updated .calc-range-track span {
  transform: scaleX(1);
}

.calc-range-values {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
}

.calc-range-values span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.calc-explanation {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: clamp(18px, 2.5vw, 26px);
  background: rgba(255, 255, 255, 0.06);
}

.calc-explanation-copy {
  max-width: 860px;
}

.calc-explanation h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.08;
}

.calc-explanation-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.calc-explanation-copy .calc-explanation-next {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.calc-explanation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calc-explanation-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.calc-explanation-card h4 {
  margin: 12px 0 7px;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.calc-explanation-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.calc-intro h3 {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.2vw, 36px);
  line-height: 1.05;
}

.calc-intro p {
  margin-bottom: 0;
}

.calc-field {
  display: grid;
  gap: 8px;
}

.calc-field span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.calc-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  outline: none;
}

.calc-field input:focus {
  border-color: rgba(216, 192, 160, 0.86);
  box-shadow: 0 0 0 4px rgba(216, 192, 160, 0.18);
}

.calc-group {
  display: grid;
  gap: 8px;
}

.calc-label {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

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

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

.calc-pill {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.calc-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.calc-pill > span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.calc-pill input:checked + span {
  border-color: rgba(216, 192, 160, 0.72);
  background: rgba(216, 192, 160, 0.17);
  color: #fff;
}

.calc-pill input:focus-visible + span {
  outline: 3px solid rgba(216, 192, 160, 0.35);
  outline-offset: 3px;
}

.calc-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.calc-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.calc-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.calc-option > span {
  min-height: 100%;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.calc-option b,
.calc-option small {
  display: block;
}

.calc-option b {
  margin-bottom: 5px;
  color: #fff;
}

.calc-option small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
  text-wrap: pretty;
}

.calc-option input:checked + span {
  border-color: rgba(216, 192, 160, 0.72);
  background: rgba(216, 192, 160, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.calc-option input:focus-visible + span {
  outline: 3px solid rgba(216, 192, 160, 0.35);
  outline-offset: 3px;
}

.calc-result {
  border-radius: 24px;
  padding: 18px;
  background: rgba(21, 24, 18, 0.28);
  view-transition-name: calculator-result;
}

.calc-result > span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-result strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(34px, 3.2vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.calc-result p {
  margin: 12px 0 0;
}

.calc-summary {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.calc-summary span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.4;
}

.calc-factors {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.calc-factors summary {
  min-height: 44px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.calc-factors ul,
.calc-factors p {
  margin: 0;
  padding: 0 14px 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.calc-factors ul {
  padding-left: 30px;
}

.calc-result pre {
  margin: 14px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.price-panel .compact-visual {
  min-height: 220px;
  margin-top: 18px;
}

.design-visual {
  min-height: 240px;
  margin-top: 18px;
}

.table {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.row:last-child {
  border-bottom: 0;
}

.row b {
  color: #fff;
  white-space: nowrap;
}

.design-formats {
  margin-top: 16px;
}

.cards3 {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.partner .panel {
  box-shadow: none;
}

.partner-visual {
  min-height: 240px;
  margin-top: 16px;
}

.partner-visual img {
  object-position: center center;
}

.contact-visual img {
  object-position: left center;
}

.dark-note {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.client-questions {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
  align-items: start;
}

/* 08. FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
  text-wrap: pretty;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(143, 157, 131, 0.14);
  color: var(--sage);
}

.faq[open] summary::after {
  content: "−";
}

.faq p {
  max-width: 860px;
  margin: 0;
  padding: 0 20px 20px;
}

/* 09. Contact and footer */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}

.contact > div,
.contact-card {
  min-width: 0;
}

.contact .cards3 {
  margin-bottom: 16px;
}

.template-box {
  border-radius: 30px;
  padding: 22px;
  background: #1f241d;
  box-shadow: var(--shadow);
  color: #fff;
}

.template-box p {
  color: rgba(255, 255, 255, 0.78);
}

.template-box pre {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-radius: 30px;
  padding: 24px;
  background: var(--ink);
  color: #fff;
}

.contact-card h3,
.contact-card p,
.contact-card a {
  color: #fff;
}

.contact-card p a,
.footer a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

.contact-card p {
  opacity: 0.86;
}

.contact-card h3 {
  font-size: 22px;
  line-height: 1.2;
}

.contact-visual {
  flex: 1 1 320px;
  min-height: 260px;
  margin-top: 16px;
}

.contact-visual img {
  object-position: 30% center;
}

.footer {
  padding: 36px clamp(16px, 3vw, 34px) 42px;
}

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

.mobile-cta {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 70;
  display: none;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #151812 0%, #303827 100%);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(21, 24, 18, 0.22);
  transition:
    opacity var(--motion-sm) var(--ease-standard),
    transform var(--motion-sm) var(--ease-standard);
}

#goals,
.case,
.repair-calculator,
.contact {
  container-type: inline-size;
}

@container (max-width: 760px) {
  .goal-grid,
  .calc-options,
  .calc-pills,
  .calc-pills.compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .goal-card {
    min-height: 0;
  }

  .case-media.before-after.is-enhanced {
    aspect-ratio: 16 / 10;
  }

  .contact .cards3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 10. Responsive */
@media (min-width: 1101px) {
  .price-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    gap: 16px;
    align-items: start;
  }

  .price-panel > h3,
  .price-panel > p {
    grid-column: 1 / -1;
  }

  .price-panel > h3 {
    margin-bottom: 0;
  }

  .price-panel > p {
    max-width: 980px;
    margin: 0;
  }

  .price-panel > .repair-calculator {
    grid-column: 1;
    grid-row: 3 / span 4;
    align-self: start;
    margin-top: 0;
  }

  .price-panel > .calc-explanation,
  .price-panel > .compact-visual,
  .price-panel > .table,
  .price-panel > .design-formats {
    grid-column: 2;
    margin-top: 0;
  }

  .price-panel > .calc-explanation {
    grid-row: 3;
  }

  .price-panel > .compact-visual {
    min-height: 280px;
  }

  .price-panel .calc-explanation-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1280px) {
  .receive-grid,
  .goal-grid,
  .packages,
  .service-grid,
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .hero-grid,
  .process,
  .editorial,
  .case,
  .contact,
  .client-questions,
  .section-head,
  .split-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    display: block;
  }

  .hero-media {
    height: clamp(460px, 58vw, 620px);
    min-height: 0;
  }
}

@media (max-width: 960px) {
  .design-copy .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .nav-links {
    display: none;
  }

  .header-mobile-cta {
    display: inline-flex;
  }

  .mobile-cta {
    display: flex;
  }

  .hero-card,
  .dark-block {
    border-radius: 28px;
    padding: 10px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hero-copy {
    max-width: 100%;
    padding: 22px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 0.98;
  }

  .title {
    font-size: 38px;
    line-height: 1.02;
  }

  .quote {
    font-size: 42px;
  }

  .hero-text,
  .lead {
    font-size: 16px;
    line-height: 1.72;
  }

  .design-copy {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
  }

  .design-copy > .kicker,
  .design-copy > .title,
  .design-copy > p,
  .design-copy > .service-grid,
  .design-copy > .design-visual {
    grid-column: 1;
  }

  .design-copy > .design-visual {
    grid-row: auto;
    min-height: 320px;
    margin-top: 0;
  }

  .hero-scenarios,
  .metrics,
  .receive-grid,
  .goal-grid,
  .mini-grid,
  .control-list,
  .case-logic,
  .packages,
  .service-grid,
  .cards3,
  .case-media,
  .calc-options,
  .calc-pills,
  .calc-pills.compact,
  .calc-explanation-grid {
    grid-template-columns: 1fr;
  }

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

  .case-media {
    min-height: auto;
  }

  .case-media figure,
  .visual-placeholder,
  .image-frame {
    min-height: 260px;
  }

  .case-media figure {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .case-media.before-after.is-enhanced {
    min-height: 0;
  }

  .case-media.before-after.is-enhanced figure {
    aspect-ratio: auto;
  }

  .hero-media {
    height: 520px;
    min-height: 0;
  }

  .editorial > div:first-child {
    padding: 26px;
  }

  .product-panel {
    padding: 24px;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .repair-calculator.is-stepper .calc-step-actions {
    align-items: stretch;
  }

  .actions {
    width: 100%;
  }

  .placeholder-content {
    padding: 24px;
  }

  .js-enabled .animate-on-scroll {
    transform: translateY(12px);
    transition-delay: calc(var(--stagger-index, 0) * 60ms);
  }

  .js-enabled .animate-fade-in,
  .js-enabled .animate-scale-in {
    transition-delay: calc(var(--stagger-index, 0) * 60ms);
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 14px;
  }

  .nav-in {
    min-height: 62px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .section {
    margin-top: 54px;
  }

  .hero h1 {
    margin: 14px 0 18px;
    font-size: 38px;
    line-height: 1;
  }

  .title {
    font-size: 32px;
    line-height: 1.04;
  }

  .hero-media {
    height: 420px;
    min-height: 0;
  }

  .design-copy > .design-visual {
    min-height: 260px;
  }

  .hero-copy {
    padding: 18px;
  }

  .hero-scenarios,
  .metrics {
    gap: 10px;
  }

  .scenario,
  .metric,
  .mini,
  .receive,
  .service,
  .control-item {
    padding: 14px;
  }

  .float {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .panel,
  .goal-card,
  .contact-card,
  .template-box {
    padding: 18px;
  }

  .repair-calculator {
    padding: 14px;
  }

  .calculator-progress-steps button span {
    display: none;
  }

  .repair-calculator.is-stepper .calc-step-actions {
    flex-direction: column;
  }

  .before-after.is-enhanced .before-after-controls {
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 8;
  }

  .before-after-controls button {
    flex: 1 1 0;
    padding-right: 9px;
    padding-left: 9px;
  }

  .case-media.before-after.is-enhanced {
    padding-bottom: 66px;
  }

  .case-media.before-after.is-enhanced figure,
  .case-media.before-after.is-enhanced .before-after-divider,
  .case-media.before-after.is-enhanced .before-after-range {
    bottom: 66px;
  }

  .case-media.before-after.is-enhanced figure,
  .case-media.before-after.is-enhanced .before-after-range {
    height: auto;
  }

  .case-media.before-after.is-enhanced::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    height: 66px;
    border-top: 1px solid rgba(255, 255, 255, 0.52);
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 253, 247, 0.98));
    pointer-events: none;
  }

  .before-after.is-enhanced .before-after-label {
    top: 10px;
    max-width: calc(50% - 20px);
    padding: 7px 9px;
    white-space: nowrap;
  }

  .calc-explanation {
    border-radius: 22px;
    padding: 16px;
  }

  .calc-pill > span,
  .calc-option > span {
    min-height: 48px;
  }

  .calc-result strong {
    font-size: 29px;
  }

  .btn {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 15px;
  }

  .btn.primary-cta::after {
    margin-left: 8px;
  }

  .contact-visual,
  .partner-visual {
    min-height: 280px;
  }

  .contact-visual {
    flex-basis: 280px;
  }

  .mobile-cta {
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 50px;
  }

  body.before-after-active-view .mobile-cta {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
  }
}

@media (max-width: 360px) {
  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .header-mobile-cta {
    min-height: 40px;
    padding-right: 13px;
    padding-left: 13px;
    font-size: 12px;
  }

  .metric span {
    font-size: 12px;
  }

  .wrap {
    padding-right: 10px;
    padding-left: 10px;
  }

  .hero-card,
  .dark-block {
    padding: 8px;
  }

  .hero-copy {
    padding: 14px;
  }

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

  .title {
    font-size: 29px;
  }

  .case-copy h3 {
    font-size: 32px;
  }

  .hero-media {
    height: 380px;
  }

  .editorial > div:first-child,
  .product-panel {
    padding: 18px;
  }

  .float {
    padding: 14px;
  }

  .panel,
  .goal-card,
  .contact-card,
  .template-box,
  .price-panel {
    padding: 16px;
  }

  .repair-calculator,
  .calc-explanation {
    padding: 12px;
  }

  .calc-result strong {
    font-size: 26px;
  }
}

/* 18. WOW P0 cinematic motion */
.wow-hero-depth .hero-card {
  --hero-rx: 0deg;
  --hero-ry: 0deg;
  --hero-x: 0px;
  --hero-y: 0px;
  --hero-scroll: 0;
  --hero-scroll-y: 0px;
  --hero-copy-y: 0px;
  --hero-float-x: 0px;
  --hero-float-y: 0px;
  --hero-scale: 1;
  --spot-x: 50%;
  --spot-y: 38%;
  position: relative;
  isolation: isolate;
  scale: var(--hero-scale);
  transition: scale var(--motion-md) var(--ease-soft);
}

.wow-hero-depth .hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.22), transparent 34%);
  opacity: 0.58;
  pointer-events: none;
  mix-blend-mode: soft-light;
  transition: opacity var(--motion-sm) var(--ease-standard);
}

.wow-hero-depth .hero-media picture {
  transform: perspective(1400px)
    translate3d(var(--hero-x), calc(var(--hero-y) + var(--hero-scroll-y)), 0)
    rotateX(var(--hero-rx))
    rotateY(var(--hero-ry));
  transform-origin: center center;
  transition: transform var(--motion-sm) var(--ease-soft);
}

.wow-hero-depth .hero-card.is-pointer-active .hero-media picture {
  transition-duration: var(--motion-xs);
}

.wow-hero-depth .hero-copy {
  translate: 0 var(--hero-copy-y);
}

.wow-hero-depth .hero-media .float {
  transform: translate3d(var(--hero-float-x), var(--hero-float-y), 0);
  transition: transform var(--motion-sm) var(--ease-soft);
}

.wow-cinematic-reveal .is-reveal-ready {
  will-change: opacity, transform, clip-path;
  transition-timing-function: var(--ease-emphasized);
}

.wow-cinematic-reveal .is-reveal-ready[data-reveal="editorial"] {
  opacity: 0;
  transform: translate3d(0, 22px, 0) rotateX(1deg);
  transform-origin: 50% 100%;
  transition-duration: var(--motion-lg);
}

.wow-cinematic-reveal .is-reveal-ready[data-reveal="mask"] {
  opacity: 0.72;
  clip-path: inset(0 0 14% 0 round 28px);
  transform: scale(1.025);
  transition-duration: var(--motion-xl);
}

.wow-cinematic-reveal .is-reveal-ready[data-reveal="depth"] {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 20px, 0) rotateX(1.2deg);
  transform-origin: center bottom;
  transition-duration: var(--motion-lg);
}

.wow-cinematic-reveal .is-reveal-ready[data-reveal="stagger"] {
  opacity: 0;
  transform: translate3d(var(--reveal-x, 0), 18px, 0);
  transition-duration: var(--motion-lg);
}

.wow-cinematic-reveal .is-reveal-ready.is-reveal-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 0);
  transform: none;
}

.wow-cinematic-reveal .is-reveal-ready.is-reveal-complete {
  will-change: auto;
}

.wow-scroll-choreography .section {
  --section-progress: 0.5;
  --section-copy-y: 0px;
  --section-media-y: 0px;
  --section-media-scale: 1;
}

.wow-scroll-choreography .section.is-choreography-active > .section-head,
.wow-scroll-choreography .section.is-choreography-active > .title,
.wow-scroll-choreography .section.is-choreography-active > .lead,
.wow-scroll-choreography .section.is-choreography-active > .kicker {
  translate: 0 var(--section-copy-y);
}

.wow-scroll-choreography .section.is-choreography-active > .image-frame,
.wow-scroll-choreography .section.is-choreography-active > .split-section > .image-frame,
.wow-scroll-choreography .section.is-choreography-active > .product-panel .image-frame,
.wow-scroll-choreography .section.is-choreography-active > .design-copy > .image-frame {
  translate: 0 var(--section-media-y);
  scale: var(--section-media-scale);
}

.wow-scroll-choreography .section > .section-head,
.wow-scroll-choreography .section > .title,
.wow-scroll-choreography .section > .lead,
.wow-scroll-choreography .section > .kicker,
.wow-scroll-choreography .section .image-frame {
  transition:
    translate var(--motion-sm) var(--ease-soft),
    scale var(--motion-sm) var(--ease-soft);
}

.wow-goal-shared-transition .goal-card.is-active,
.wow-goal-shared-transition .calc-pill input:checked + span {
  transition:
    border-color var(--motion-md) var(--ease-standard),
    background-color var(--motion-md) var(--ease-standard),
    box-shadow var(--motion-md) var(--ease-standard),
    transform var(--motion-md) var(--ease-standard);
}

::view-transition-group(goal-shared-selection) {
  animation-duration: var(--motion-md);
  animation-timing-function: var(--ease-emphasized);
}

::view-transition-old(goal-shared-selection),
::view-transition-new(goal-shared-selection) {
  animation-duration: var(--motion-md);
  mix-blend-mode: normal;
}

.wow-calculator-kinetic .calc-result {
  position: relative;
  isolation: isolate;
}

.wow-calculator-kinetic .calc-result.is-calculating {
  transform: translateY(1px);
}

.wow-calculator-kinetic #repairTotal.has-kinetic-overlay {
  position: relative;
  color: transparent;
}

.wow-calculator-kinetic .kinetic-number-overlay {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  font: inherit;
  line-height: inherit;
  pointer-events: none;
}

.wow-calculator-kinetic .calc-result.is-calculating .calc-range-track span {
  transform: scaleX(0.16);
}

.wow-calculator-kinetic .calc-result.is-result-ready .calc-range-track span {
  transform: scaleX(1);
  transition-duration: var(--motion-lg);
  transition-timing-function: var(--ease-emphasized);
}

.wow-calculator-kinetic .calc-result.is-result-updated {
  animation: kinetic-result-ready var(--motion-lg) var(--ease-emphasized) both;
}

.wow-calculator-kinetic .calc-result.is-result-updated .calc-summary > span {
  animation: kinetic-summary-chip var(--motion-md) var(--ease-soft) both;
  animation-delay: calc(var(--summary-index, 0) * 45ms);
}

.wow-calculator-kinetic #calculatorTelegramLink.is-result-ready {
  animation: kinetic-cta-ready var(--motion-md) var(--ease-soft) both;
}

@keyframes kinetic-result-ready {
  from { opacity: 0.82; transform: translateY(5px) scale(0.995); }
  to { opacity: 1; transform: none; }
}

@keyframes kinetic-summary-chip {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@keyframes kinetic-cta-ready {
  0% { transform: translateY(2px); }
  100% { transform: none; }
}

.wow-before-after .before-after.is-enhanced {
  --handle-energy: 0;
  --handle-scale: 1;
}

.wow-before-after .before-after.is-enhanced .before-after-range {
  touch-action: pan-y;
}

.wow-before-after .before-after.is-enhanced .before-after-divider::after {
  transform: translate(-50%, -50%) scale(var(--handle-scale));
  transition:
    transform var(--motion-sm) var(--ease-emphasized),
    box-shadow var(--motion-sm) var(--ease-standard),
    background-color var(--motion-sm) var(--ease-standard);
}

.wow-before-after .before-after.is-enhanced .before-after-label {
  opacity: 0.72;
  transition:
    opacity var(--motion-sm) var(--ease-standard),
    transform var(--motion-sm) var(--ease-standard);
}

.wow-before-after .before-after.is-enhanced.is-before-emphasis .before-after-label.is-before,
.wow-before-after .before-after.is-enhanced.is-after-emphasis .before-after-label.is-after {
  opacity: 1;
  transform: translateY(-1px);
}

.wow-before-after .before-after.is-enhanced.is-before-emphasis .before-after-label.is-after,
.wow-before-after .before-after.is-enhanced.is-after-emphasis .before-after-label.is-before {
  opacity: 0.42;
}

.wow-before-after .before-after.is-enhanced.is-handle-active .before-after-divider::after {
  background: #fff;
  box-shadow:
    0 8px 28px rgba(20, 25, 18, 0.2),
    0 0 0 7px rgba(216, 192, 160, 0.18);
}

.wow-before-after .before-after.is-enhanced.is-result-shown .before-after-label.is-before {
  opacity: 0.34;
}

.wow-before-after .before-after.is-enhanced.is-result-shown .before-after-label.is-after {
  opacity: 1;
}

@media (max-width: 700px) {
  .wow-cinematic-reveal .is-reveal-ready[data-reveal="stagger"],
  .wow-cinematic-reveal .is-reveal-ready[data-reveal="editorial"],
  .wow-cinematic-reveal .is-reveal-ready[data-reveal="depth"] {
    transform: translate3d(0, 14px, 0);
  }

  .wow-cinematic-reveal .is-reveal-ready[data-reveal="mask"] {
    transform: none;
  }

  .wow-cinematic-reveal .is-reveal-ready.is-reveal-visible {
    transform: none;
  }
}

@media (pointer: coarse), (max-width: 700px) {
  .wow-hero-depth .hero-card,
  .wow-hero-depth .hero-copy,
  .wow-hero-depth .hero-media picture,
  .wow-hero-depth .hero-media .float {
    scale: 1;
    translate: none;
    transform: none;
  }

  .wow-hero-depth .hero-card::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js-enabled .animate-on-scroll,
  .js-enabled .animate-fade-in,
  .js-enabled .animate-scale-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress {
    display: none;
  }

  .cta-shimmer::before {
    display: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-group(*) {
    animation-duration: 0.01ms !important;
  }

  .btn:hover,
  article.panel:hover,
  .goal-card:hover,
  .scenario:hover,
  .service:hover,
  .control-item:hover,
  .faq:hover,
  .calc-option:hover > span,
  .calc-pill:hover > span {
    transform: none !important;
  }
}

@media print {
  .nav,
  .mobile-cta,
  .actions,
  .calculator-progress,
  .calc-step-actions,
  .before-after-range,
  .before-after-divider,
  .before-after-controls,
  .before-after-label {
    display: none !important;
  }

  .case-media.before-after.is-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    aspect-ratio: auto;
    overflow: visible;
  }

  .case-media.before-after.is-enhanced figure {
    position: relative;
    inset: auto;
    min-height: 260px;
    clip-path: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .panel,
  .hero-card,
  .dark-block,
  .contact {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}
