:root {
  --ink: #15201d;
  --muted: #5e6b66;
  --paper: #f6f3ed;
  --surface: #ffffff;
  --surface-2: #ece8df;
  --line: #d8d5cc;
  --green: #174f3e;
  --green-2: #d9e8e1;
  --rust: #a44728;
  --rust-2: #f2ded5;
  --sand: #e4b969;
  --shadow: 0 18px 50px rgba(21, 32, 29, .1);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 790px); margin-inline: auto; }
.section { padding: 104px 0; }
.section--compact { padding: 72px 0; }
.section--white { background: var(--surface); }
.section--dark { background: var(--ink); color: #fff; }
.section--green { background: var(--green); color: #fff; }
.eyebrow { margin: 0 0 14px; color: var(--rust); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section--dark .eyebrow, .section--green .eyebrow { color: #f1c982; }
.display, h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; line-height: 1.08; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); margin-bottom: 24px; font-weight: 500; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.8rem); margin-bottom: 22px; font-weight: 500; }
h3 { font-size: 1.45rem; margin-bottom: 12px; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.section--dark .lead, .section--green .lead { color: #d3dcd8; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr); gap: 64px; align-items: end; margin-bottom: 52px; }
.section-heading > * { margin-bottom: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--green); border-radius: 100px; background: var(--green); color: #fff; text-decoration: none; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); background: #0e3b2e; }
.btn--ghost { background: transparent; color: var(--ink); border-color: #9aa39f; }
.btn--ghost:hover { color: white; border-color: var(--green); }
.btn--light { background: #fff; color: var(--green); border-color: #fff; }
.btn--light:hover { background: #f7f1e7; color: var(--green); }
.btn--disabled { opacity: .55; cursor: not-allowed; }
.btn--disabled:hover { transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246, 243, 237, .92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(21, 32, 29, .1); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 900; letter-spacing: .08em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-family: Georgia, serif; font-size: 1.05rem; }
.nav-list { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav-list a { position: relative; color: #38443f; text-decoration: none; font-size: .88rem; font-weight: 650; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--rust); transition: right .2s ease; }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; margin: auto; background: var(--ink); transition: .2s ease; }
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: 92px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr); gap: 70px; align-items: center; }
.hero h1 { max-width: 780px; font-size: clamp(2.65rem, 6vw, 5rem); text-wrap: balance; }
.hero h1 em { color: var(--green); font-weight: 500; }
.hero-proof { position: relative; min-height: 470px; }
.hero-proof::before { content: ""; position: absolute; width: 320px; height: 320px; border: 1px solid #b8c6c0; border-radius: 50%; right: -54px; top: -46px; }
.audit-sheet { position: absolute; inset: 18px 0 auto auto; width: min(100%, 380px); padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(2deg); }
.audit-sheet--after { inset: auto auto 10px -20px; z-index: 2; transform: rotate(-2deg); border-color: #b3c9c0; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.sheet-tag { padding: 5px 9px; border-radius: 20px; background: var(--rust-2); color: var(--rust); }
.sheet-tag--after { background: var(--green-2); color: var(--green); }
.mock-line { height: 8px; margin: 10px 0; background: #d8d8d2; border-radius: 10px; }
.mock-line--title { height: 15px; width: 82%; background: #2b3833; }
.mock-line--green { background: #8cad9f; }
.mock-line--short { width: 58%; }
.mock-button { display: inline-block; width: 110px; height: 28px; margin-top: 12px; background: #a8aca9; border-radius: 5px; }
.mock-button--green { background: var(--green); }
.note { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.note-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--rust); }

/* General cards */
.analysis-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.analysis-card { min-height: 220px; padding: 28px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.analysis-card:nth-child(even) { background: #f0ede7; }
.analysis-card .num { display: block; margin-bottom: 44px; color: var(--rust); font-size: .76rem; font-weight: 900; }
.analysis-card p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #486159; border: 1px solid #486159; }
.process-step { padding: 34px 28px; background: var(--green); }
.process-step .num { color: #f3cc88; font: 500 2.2rem/1 Georgia, serif; }
.process-step h3 { margin: 36px 0 12px; color: white; }
.process-step p { margin-bottom: 0; color: #ccdad5; font-size: .92rem; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.case-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(21, 32, 29, .05); transition: transform .25s ease, box-shadow .25s ease; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-preview { display: grid; grid-template-columns: 1fr 1fr; min-height: 280px; padding: 20px; gap: 12px; background: #dcded8; }
.mini-page { position: relative; overflow: hidden; padding: 14px; background: white; border-radius: 8px; box-shadow: 0 5px 15px rgba(21,32,29,.12); font-size: 8px; }
.mini-page::before { content: ""; display: block; height: 5px; margin: -4px -4px 16px; border-radius: 10px; background: #d0d2ce; }
.mini-label { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 6px; border-radius: 10px; background: var(--rust-2); color: var(--rust); font-weight: 900; text-transform: uppercase; }
.mini-page.after .mini-label { background: var(--green-2); color: var(--green); }
.mini-nav { width: 45%; height: 4px; margin-bottom: 30px; background: #27372f; border-radius: 6px; }
.mini-title { width: 92%; height: 14px; margin: 0 0 7px; background: #2c3732; border-radius: 3px; }
.mini-title.short { width: 67%; }
.mini-copy { width: 88%; height: 5px; margin: 5px 0; background: #c6c8c4; border-radius: 4px; }
.mini-copy.short { width: 61%; }
.after .mini-title { background: var(--green); }
.after .mini-copy.accent { background: #8cad9f; }
.mini-cta { width: 55px; height: 18px; margin-top: 16px; border-radius: 3px; background: #a4aaa7; }
.after .mini-cta { background: var(--green); }
.mini-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 22px; }
.mini-blocks i { display: block; height: 42px; background: #e6e4df; border-radius: 3px; }
.after .mini-blocks i { background: #dce9e3; }
.mini-product { width: 100%; height: 98px; margin-bottom: 12px; border-radius: 4px; background: linear-gradient(145deg, #c8c2b7, #e8e2d8); }
.after .mini-product { background: linear-gradient(145deg, #adcbc0, #ecf3ef); }
.case-body { padding: 28px 30px 30px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pill--demo { color: var(--rust); border-color: #d9a993; background: #fff8f5; }
.case-body h3 { font-size: 1.75rem; }
.case-body p { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: .82rem; font-weight: 900; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* Portfolio editoriale: nessuna falsa miniatura, solo contenuto verificabile */
.portfolio-grid--editorial { gap: 22px; }
.case-card--editorial {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 320px;
  box-shadow: none;
}
.case-card--editorial:hover { box-shadow: 0 16px 40px rgba(21, 32, 29, .08); }
.case-card--featured { border-color: #9eb9ae; }
.case-index {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  background: #eeebe4;
}
.case-card--featured .case-index { background: var(--green); color: #fff; }
.case-index span { font: 500 2rem/1 Georgia, serif; }
.case-index small { color: var(--muted); font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.case-card--featured .case-index small { color: #d7e4de; }
.case-card--editorial .case-body { display: flex; flex-direction: column; }
.case-card--editorial .case-body > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.case-card--editorial .text-link { margin-top: auto; padding-top: 22px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.case-tags span { padding: 5px 9px; border-radius: 4px; background: #eeebe4; color: #59645f; font-size: .68rem; font-weight: 750; }

/* Progetti reali: distinti dai case study simulati */
.real-projects { background: #ebe7de; border-top: 1px solid var(--line); }
.real-projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.real-project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d1cdc3;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 34px rgba(21, 32, 29, .06);
}
.real-project-preview { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: #e3e0d8; }
.real-project-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.real-project-body { display: flex; flex: 1; flex-direction: column; padding: 30px; }
.real-project-body h3 { font-size: 1.9rem; }
.real-project-body > p { color: var(--muted); }
.pill--real { border-color: #91b0a4; background: var(--green-2); color: var(--green); }
.real-project-link { margin-top: auto; padding-top: 28px; }
.real-projects-note { max-width: 920px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #cbc7bd; color: var(--muted); font-size: .78rem; }

/* Services and deliverables */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { padding: 32px; border: 1px solid #70817a; border-radius: var(--radius); }
.service-card h3 { min-height: 52px; color: white; }
.service-card p { color: #cbd8d3; }
.check-list { margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 9px 0 9px 23px; border-top: 1px solid rgba(255,255,255,.14); color: #e2e9e6; font-size: .88rem; }
.check-list li::before { content: "•"; position: absolute; left: 4px; color: #f3cc88; }
.deliverables { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.report-sheet { padding: 30px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.report-bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.report-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-family: Georgia, serif; }
.report-list { margin: 20px 0 0; padding: 0; list-style: none; }
.report-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.report-list strong { display: block; }
.report-list span { color: var(--muted); font-size: .86rem; }
.report-num { color: var(--rust) !important; font-weight: 900; }
.no-call { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 12px; border-radius: 30px; background: var(--green-2); color: var(--green); font-weight: 750; }
.about-grid { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); gap: 90px; align-items: start; }
.about-name { padding-top: 20px; border-top: 1px solid var(--line); }
.about-name span { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.about-name strong { font: 500 3rem/1.2 Georgia, serif; }

/* Footer */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 900px; margin-inline: auto; }
.final-cta .lead { margin-inline: auto; }
.contact-form { position: relative; max-width: 760px; margin: 40px auto 0; padding: 34px; border: 1px solid rgba(255,255,255,.42); border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: 0 18px 50px rgba(7, 28, 22, .18); text-align: left; }
.contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-field { min-width: 0; }
.form-field--wide { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 8px; font-size: .82rem; font-weight: 800; }
.label-note { color: var(--muted); font-size: .72rem; font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #aeb6b2; border-radius: 8px; background: #fff; color: var(--ink); }
.form-field input { min-height: 48px; padding: 10px 13px; }
.form-field textarea { min-height: 126px; padding: 12px 13px; resize: vertical; line-height: 1.5; }
.form-field input::placeholder { color: #89938f; }
.form-field input:hover, .form-field textarea:hover { border-color: #798680; }
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: var(--rust); background: #fff9f6; }
.field-error { display: block; min-height: 1.35em; margin-top: 5px; color: var(--rust); font-size: .75rem; font-weight: 700; }
.contact-form__footer { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.contact-form__footer .btn { flex: 0 0 auto; }
.form-status { min-height: 1.5em; margin: 0; color: var(--muted); font-size: .82rem; font-weight: 700; }
.form-status.is-pending { color: var(--green); }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: var(--rust); }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.site-footer { padding: 52px 0 28px; background: #0e1714; color: #d8e0dd; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 50px; padding-bottom: 34px; border-bottom: 1px solid #32413c; }
.footer-top .brand { color: white; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: #bdc8c4; font-size: .85rem; text-decoration: none; }
.disclaimer { max-width: 800px; margin: 28px 0 0; color: #899893; font-size: .76rem; }
.copyright { margin: 18px 0 0; color: #899893; font-size: .76rem; }

/* Case study pages */
.case-hero { padding: 76px 0 64px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 32px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--green); }
.case-hero h1 { max-width: 920px; font-size: clamp(2.6rem, 6vw, 5rem); }
.case-intro { display: grid; grid-template-columns: 1fr .7fr; gap: 70px; align-items: end; }
.case-intro .lead { margin-bottom: 0; }
.scenario { padding: 24px; border-left: 3px solid var(--rust); background: var(--surface); }
.scenario strong { display: block; margin-bottom: 5px; }
.scenario p { margin-bottom: 0; color: var(--muted); }
.comparison-wrap { padding: 82px 0; background: #e9e6df; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.version-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.version-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.version-head strong { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.version-head.before strong { color: var(--rust); }
.version-head.after strong { color: var(--green); }
.browser-dots { display: flex; gap: 5px; }
.browser-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #c5c5c0; }
.site-mock { min-height: 590px; color: #26322e; background: #fff; font-family: Arial, sans-serif; }
.mock-site-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #ddd; font-size: 10px; }
.mock-site-logo { font-weight: 900; letter-spacing: .05em; }
.mock-site-links { color: #727976; }
.mock-site-hero { min-height: 255px; display: grid; align-content: center; padding: 36px; background: #efede8; }
.mock-site-hero h3 { max-width: 370px; margin-bottom: 12px; font: 700 clamp(1.4rem, 2.8vw, 2.2rem)/1.05 Arial, sans-serif; letter-spacing: -.04em; }
.mock-site-hero p { max-width: 360px; color: #66706c; font-size: .82rem; }
.mock-site-hero .mock-cta-real { display: inline-flex; width: fit-content; margin-top: 12px; padding: 9px 13px; border-radius: 4px; background: #929896; color: white; font-size: .68rem; font-weight: 800; text-decoration: none; }
.version-card.after .mock-site-hero { background: #e4eee9; }
.version-card.after .mock-site-hero .mock-cta-real { background: var(--green); }
.mock-trust { display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px; border-bottom: 1px solid #e3e3de; }
.mock-trust span { padding: 8px 12px; border-right: 1px solid #ddd; color: #59645f; font-size: .65rem; text-align: center; }
.mock-trust span:last-child { border-right: 0; }
.mock-content { padding: 28px; }
.mock-content h4 { margin: 0 0 14px; font-size: 1.05rem; }
.mock-card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-info-card { min-height: 90px; padding: 12px; border: 1px solid #ddd; border-radius: 6px; }
.mock-info-card b { display: block; margin-bottom: 6px; font-size: .7rem; }
.mock-info-card small { color: #7a817e; font-size: .58rem; }
.problem-list { display: grid; gap: 18px; margin-top: 46px; }
.problem-row { display: grid; grid-template-columns: 1fr 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.problem-cell { padding: 22px; border-right: 1px solid var(--line); }
.problem-cell:last-child { border-right: 0; }
.problem-label { display: block; margin-bottom: 8px; color: var(--rust); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.problem-cell:nth-child(2) .problem-label { color: #786230; }
.problem-cell:nth-child(3) .problem-label { color: var(--green); }
.problem-cell p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.change-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 42px; }
.change-card { padding: 26px; background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.change-card .num { display: block; margin-bottom: 20px; color: var(--rust); font-weight: 900; }
.change-card p { margin-bottom: 0; color: var(--muted); }
.priority-box { display: grid; grid-template-columns: .7fr 1fr; gap: 70px; padding: 48px; border-radius: var(--radius); background: var(--green); color: white; }
.priority-box h2 { margin-bottom: 0; }
.priority-list { margin: 0; padding: 0; list-style: none; counter-reset: priority; }
.priority-list li { counter-increment: priority; position: relative; padding: 14px 0 14px 42px; border-bottom: 1px solid rgba(255,255,255,.18); }
.priority-list li::before { content: counter(priority, decimal-leading-zero); position: absolute; left: 0; color: #f1ca86; font-weight: 900; }
.case-nav { display: flex; justify-content: space-between; gap: 20px; padding-top: 36px; border-top: 1px solid var(--line); }
.case-nav a { color: var(--green); text-decoration: none; font-weight: 800; }

/* Mock variations */
.theme-terra .mock-site-hero { background: #e9e0d3; }
.theme-terra.after .mock-site-hero { background: #f0e5d5; }
.theme-blue .mock-site-hero { background: #e7ebef; }
.theme-blue.after .mock-site-hero { background: #e2edf2; }
.theme-rose .mock-site-hero { background: #f0e4e2; }
.theme-rose.after .mock-site-hero { background: #f3e7e3; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px; }
.product-image { min-height: 310px; display: grid; place-items: center; border-radius: 7px; background: #dedbd3; }
.product-object { width: 56%; height: 68%; border-radius: 50% 50% 42% 42%; background: #ba9c79; box-shadow: inset -14px -10px 0 rgba(0,0,0,.08); }
.product-info h3 { font: 700 1.4rem/1.1 Arial, sans-serif; }
.product-price { display: block; margin: 12px 0; font-weight: 800; }
.product-info p, .product-info li { color: #68716d; font-size: .7rem; }
.product-info ul { padding-left: 18px; }
.buy-button { width: 100%; padding: 11px; border: 0; border-radius: 4px; background: #9da3a0; color: white; font-size: .7rem; font-weight: 800; }
.after .buy-button { background: var(--green); }
.product-detail { margin-top: 12px; padding: 10px 0; border-top: 1px solid #ddd; font-size: .62rem; }
.market-bar { display: flex; justify-content: space-between; padding: 14px 18px; background: #f5f1ea; font-size: .7rem; }
.market-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; padding: 24px; }
.market-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.market-img { min-height: 150px; display: grid; place-items: center; background: #e5ded1; border-radius: 5px; }
.market-img::after { content: ""; width: 48%; height: 62%; border-radius: 5px; background: #b98d68; box-shadow: 5px 5px 0 rgba(0,0,0,.08); }
.market-info h3 { font: 700 1.15rem/1.2 Arial, sans-serif; }
.market-info p, .market-info li { color: #69726e; font-size: .68rem; }
.market-info ul { padding-left: 17px; }
.market-buy { width: 100%; padding: 10px; background: #9fa5a2; color: white; border: 0; border-radius: 20px; font-size: .65rem; font-weight: 800; }
.after .market-buy { background: var(--green); }

/* 404 */
.error-page { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 60px 0; text-align: center; }
.error-code { display: block; color: var(--rust); font: 500 clamp(6rem, 20vw, 13rem)/.8 Georgia, serif; opacity: .18; }
.error-page h1 { margin-top: -24px; font-size: clamp(2.5rem, 6vw, 4.8rem); }
.error-page .lead { margin-inline: auto; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr .72fr; gap: 42px; }
  .analysis-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card h3 { min-height: auto; }
  .site-mock { min-height: 530px; }
  .mock-site-hero { padding: 28px; }
  .product-layout, .market-layout { grid-template-columns: 1fr; }
  .product-image { min-height: 220px; }
}

@media (max-width: 820px) {
  .section { padding: 78px 0; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 78px 0 auto; padding: 22px 20px 28px; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-130%); opacity: 0; visibility: hidden; transition: .25s ease; }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 13px 4px; font-size: 1rem; }
  .hero { padding: 70px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-proof { min-height: 440px; width: min(100%, 500px); margin-inline: auto; }
  .section-heading, .deliverables, .about-grid, .case-intro { grid-template-columns: 1fr; gap: 24px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .real-projects-grid { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .problem-row { grid-template-columns: 1fr; }
  .problem-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .problem-cell:last-child { border-bottom: 0; }
  .priority-box { grid-template-columns: 1fr; gap: 28px; padding: 36px; }
}

@media (max-width: 560px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 70px; }
  .site-nav { top: 70px; }
  .brand { font-size: .72rem; }
  .brand-mark { width: 31px; height: 31px; }
  h1 { font-size: clamp(2.55rem, 13vw, 3.8rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 3.35rem); }
  .hero-proof { min-height: 390px; }
  .audit-sheet { width: calc(100% - 28px); padding: 20px; }
  .audit-sheet--after { left: 0; }
  .analysis-grid, .process-grid { grid-template-columns: 1fr; }
  .analysis-card { min-height: auto; }
  .analysis-card .num { margin-bottom: 24px; }
  .case-preview { min-height: 240px; padding: 12px; gap: 8px; }
  .mini-page { padding: 10px; }
  .case-body { padding: 24px 22px; }
  .case-card--editorial { grid-template-columns: 64px minmax(0, 1fr); min-height: 350px; }
  .case-index { padding: 22px 12px; }
  .case-index span { font-size: 1.5rem; }
  .real-project-body { padding: 24px 22px; }
  .change-grid { grid-template-columns: 1fr; }
  .comparison-wrap { padding: 58px 0; }
  .version-head { padding: 14px 16px; }
  .site-mock { min-height: 0; }
  .mock-site-nav { padding: 13px; }
  .mock-site-links { display: none; }
  .mock-site-hero { min-height: 230px; padding: 24px 18px; }
  .mock-trust { grid-template-columns: 1fr; }
  .mock-trust span { border-right: 0; border-bottom: 1px solid #ddd; }
  .mock-card-row { grid-template-columns: 1fr; }
  .product-layout, .market-layout { padding: 15px; }
  .market-gallery { grid-template-columns: 1fr; }
  .market-img:nth-child(2) { display: none; }
  .problem-cell { padding: 18px; }
  .priority-box { padding: 26px 22px; }
  .case-nav { flex-direction: column; }
  .footer-top { flex-direction: column; }
  .contact-form { margin-top: 32px; padding: 24px 20px; }
  .contact-form__grid { grid-template-columns: 1fr; gap: 16px; }
  .form-field--wide { grid-column: auto; }
  .contact-form__footer { align-items: stretch; flex-direction: column; gap: 12px; }
  .contact-form__footer .btn { width: 100%; }
}

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