:root {
  --red: #a52021;
  --red-700: #861819;
  --red-50: #f8eeee;
  --black: #000000;
  --ink: #101010;
  --charcoal: #171717;
  --muted: #686061;
  --muted-2: #8c8283;
  --line: #e8dddd;
  --soft: #f7f2f2;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

body.nav-open,
body.editor-open,
body.case-modal-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 1000;
  padding: 11px 14px;
  color: var(--white);
  background: var(--black);
  border-radius: var(--radius);
  transition: top 0.18s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(232, 221, 221, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  min-width: 172px;
}

.brand img {
  width: 208px;
  height: auto;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-menu {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 88px;
  display: grid;
  gap: 4px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-open .nav-menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-menu a {
  padding: 13px 12px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 800;
  border-radius: 6px;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--red);
  background: var(--red-50);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.icon-link,
.nav-toggle,
.icon-button,
.slider-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.icon-link:hover,
.nav-toggle:hover,
.icon-button:hover,
.slider-button:hover {
  color: var(--red);
  border-color: rgba(165, 32, 33, 0.28);
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 19px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 16px 34px rgba(165, 32, 33, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--red-700);
}

.btn-secondary {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.btn-secondary:hover,
.btn-secondary:focus {
  color: var(--white);
  background: #222222;
}

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

.btn-small {
  min-height: 42px;
  padding: 11px 16px;
}

.section {
  padding: 74px 0;
}

.section-soft {
  background: var(--soft);
}

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

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header h2,
.cta-copy h2 {
  margin: 9px 0 0;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-header p,
.cta-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.68);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.final-cta .eyebrow {
  color: #ffffff;
}

.hero {
  padding: 58px 0 46px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(165, 32, 33, 0.09), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #ffffff 0%, #f8f3f3 100%);
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--black);
  font-size: 2.55rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 660px;
  margin: 20px 0 0;
  color: #4f4848;
  font-size: 1.08rem;
}

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

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  border: 1px solid rgba(165, 32, 33, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-strip {
  padding: 18px 0;
  color: var(--white);
  background: var(--black);
}

.trust-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-item {
  padding: 19px;
  background: #0d0d0d;
}

.trust-item strong {
  display: block;
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
}

.trust-item span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 800;
}

.problem-grid,
.service-grid,
.reason-grid,
.stats-grid {
  display: grid;
  gap: 16px;
}

.problem-card,
.service-card,
.reason-card,
.stat-card,
.case-study-card,
.testimonial-card,
.comparison-card,
.timeline-step,
.discovery-form {
  border-radius: var(--radius);
}

.problem-card {
  min-height: 126px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.problem-card span,
.service-card .icon-wrap,
.reason-card .icon-wrap,
.timeline-index {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
}

.problem-card h3,
.service-card h3,
.reason-card h3,
.stat-card h3,
.comparison-card h3,
.timeline-step h3 {
  margin: 16px 0 0;
  font-size: 1.03rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.problem-card p,
.service-card p,
.reason-card p,
.timeline-step p,
.comparison-card p,
.testimonial-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.solution-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 24px;
  color: var(--white);
  background: var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.solution-panel h3 {
  margin: 8px 0 0;
  font-size: 1.55rem;
  line-height: 1.08;
}

.solution-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.service-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.service-card .icon-wrap {
  color: var(--red);
  background: var(--red-50);
}

.reason-card {
  min-height: 190px;
  padding: 22px;
  color: var(--white);
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.reason-card .icon-wrap {
  color: var(--white);
  background: var(--red);
}

.reason-card p {
  color: rgba(255, 255, 255, 0.64);
}

.results-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f9f4f4 100%);
}

.stat-card {
  padding: 24px;
  color: var(--white);
  background: var(--black);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.stat-card:nth-child(2n) {
  background: var(--red);
}

.stat-card strong {
  display: block;
  font-size: 2.45rem;
  line-height: 1;
}

.stat-card h3 {
  color: var(--white);
}

.stat-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.portfolio-section {
  color: var(--white);
  background: var(--black);
}

.portfolio-section .section-header p {
  color: rgba(255, 255, 255, 0.68);
}

.portfolio-slider {
  position: relative;
}

.portfolio-shell {
  display: grid;
  gap: 18px;
}

.portfolio-slide {
  display: none;
  gap: 22px;
  align-items: stretch;
  padding: 12px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portfolio-slide.is-active {
  display: grid;
}

.portfolio-media {
  margin: 0;
  overflow: hidden;
  background: #080808;
  border-radius: var(--radius);
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.portfolio-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 6px 4px;
}

.portfolio-agency {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-copy h3 {
  margin: 10px 0 0;
  font-size: 1.65rem;
  line-height: 1.08;
}

.portfolio-copy p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  padding: 8px 10px;
  color: var(--white);
  background: rgba(165, 32, 33, 0.84);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.project-result {
  margin-top: 20px;
  padding: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.portfolio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.slider-arrows {
  display: inline-flex;
  gap: 8px;
}

.portfolio-section .slider-button {
  color: var(--white);
  background: #161616;
  border-color: rgba(255, 255, 255, 0.14);
}

.case-study-section {
  background: var(--white);
}

.case-study-shell {
  display: grid;
  gap: 18px;
}

.case-study-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 2px 18px;
}

.case-study-track::-webkit-scrollbar {
  display: none;
}

.case-study-card {
  flex: 0 0 88%;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}

.case-study-agency {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.case-study-card h3 {
  margin: 12px 0 0;
  font-size: 1.45rem;
  line-height: 1.12;
}

.case-study-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.case-study-points {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.case-study-points div {
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.case-study-points strong,
.case-study-points span {
  display: block;
}

.case-study-points strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.case-study-points span {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.case-study-card .btn {
  margin-top: auto;
}

.case-study-controls,
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.case-study-controls [data-case-study-count],
.testimonial-controls [data-testimonial-count] {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.case-modal.is-open {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.54);
  opacity: 1;
}

.case-modal-panel {
  width: min(100%, 920px);
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.case-modal.is-open .case-modal-panel {
  transform: translateY(0);
}

.case-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.case-modal-head h2 {
  margin: 7px 0 0;
  font-size: 2rem;
  line-height: 1.08;
}

.case-modal-body {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.case-modal-summary {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.case-modal-tags,
.case-modal-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.case-modal-metrics strong {
  padding: 10px 12px;
  color: var(--white);
  background: var(--black);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.case-modal-detail-grid {
  display: grid;
  gap: 14px;
}

.case-modal-detail-grid article {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.case-modal-detail-grid span {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.case-modal-detail-grid p {
  margin: 9px 0 0;
  color: var(--muted);
}

.slider-dots {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slider-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  border: 0;
  border-radius: 999px;
}

.slider-dot.is-active {
  width: 26px;
  background: var(--red);
}

.testimonial-card {
  flex: 0 0 88%;
  min-height: 280px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.testimonial-slider {
  display: grid;
  gap: 18px;
}

.testimonial-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 2px 18px;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-track .testimonial-card {
  scroll-snap-align: start;
}

.testimonial-badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.testimonial-card p {
  color: #2d2929;
  font-size: 1rem;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--black);
  border-radius: 999px;
  font-weight: 950;
}

.testimonial-person strong,
.testimonial-person span {
  display: block;
}

.testimonial-person span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.faq-item {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  text-align: left;
  font-weight: 950;
}

.faq-question .icon {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question .icon {
  transform: rotate(90deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 16px;
  position: relative;
}

.timeline-step {
  position: relative;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.timeline-index {
  background: var(--black);
  font-size: 13px;
  font-weight: 950;
}

.comparison-section {
  background: var(--soft);
}

.comparison-grid {
  display: grid;
  gap: 18px;
}

.comparison-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.comparison-card.featured {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.comparison-card h3 {
  margin: 0;
  padding: 22px;
  color: inherit;
  background: rgba(165, 32, 33, 0.08);
}

.comparison-card.featured h3 {
  background: var(--red);
}

.comparison-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 17px 22px;
  border-top: 1px solid var(--line);
}

.comparison-card.featured .comparison-list li {
  border-color: rgba(255, 255, 255, 0.12);
}

.comparison-list span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
}

.comparison-list strong {
  display: block;
  line-height: 1.2;
}

.comparison-list p {
  margin: 6px 0 0;
}

.comparison-card.featured .comparison-list p {
  color: rgba(255, 255, 255, 0.68);
}

.calculator-section {
  background: var(--white);
}

.calculator-grid {
  display: grid;
  gap: 18px;
}

.calculator-panel,
.calculator-results {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.calculator-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.calculator-field {
  display: grid;
  gap: 7px;
}

.calculator-results {
  display: grid;
  gap: 12px;
  padding: 22px;
  color: var(--white);
  background: var(--black);
}

.calculator-result-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.calculator-result-card.white-label {
  background: rgba(165, 32, 33, 0.84);
}

.calculator-result-card.savings {
  color: var(--ink);
  background: var(--white);
}

.calculator-result-card span,
.calculator-results p {
  color: rgba(255, 255, 255, 0.66);
}

.calculator-result-card.savings span {
  color: var(--muted);
}

.calculator-result-card span {
  display: block;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.calculator-result-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}

.calculator-results p {
  margin: 4px 0 0;
  font-size: 0.88rem;
}

.final-cta {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(165, 32, 33, 0.94), rgba(0, 0, 0, 0.94)),
    var(--black);
}

.cta-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.final-cta .btn-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.discovery-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-form {
  align-self: center;
  border: 1px solid rgba(165, 32, 33, 0.18);
}

.form-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.form-card-head h2 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.15;
}

.form-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-row {
  display: grid;
  gap: 7px;
}

label {
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbf8f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

textarea {
  min-height: 106px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(165, 32, 33, 0.5);
  box-shadow: 0 0 0 4px rgba(165, 32, 33, 0.08);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  padding: 46px 0 28px;
  background: #060606;
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand img {
  width: 190px;
  height: auto;
  background: var(--white);
  border-radius: 6px;
}

.footer-brand p,
.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.66);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.edit-launch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 950;
}

.editor {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background 0.22s ease;
}

.editor.is-open {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.38);
}

.editor-panel {
  width: min(100%, 640px);
  height: 100%;
  padding: 20px;
  overflow: auto;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.editor.is-open .editor-panel {
  transform: translateX(0);
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.editor-head h2 {
  margin: 6px 0 0;
  font-size: 1.4rem;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0;
}

.file-import {
  position: relative;
  overflow: hidden;
}

.file-import input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.editor-status {
  min-height: 22px;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
}

.editor-form {
  display: grid;
  gap: 12px;
  padding-bottom: 40px;
}

.editor-form details {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editor-form summary {
  padding: 14px;
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
}

.editor-group {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.editor-field {
  display: grid;
  gap: 6px;
}

.editor-array {
  display: grid;
  gap: 10px;
}

.editor-array-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editor-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.editor-item-head strong {
  font-size: 13px;
}

.editor-remove,
.editor-add {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.editor-remove {
  color: var(--red);
  background: var(--red-50);
  border: 1px solid rgba(165, 32, 33, 0.2);
}

.editor-add {
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
}

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

  .reveal {
    transform: none;
    opacity: 1;
  }
}

@media (min-width: 620px) {
  .trust-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section-header h2,
  .cta-copy h2 {
    font-size: 2.55rem;
  }

  .hero-copy h1 {
    font-size: 3.35rem;
  }

  .testimonial-card {
    flex-basis: calc((100% - 16px) / 2);
  }

  .case-study-card {
    flex-basis: calc((100% - 16px) / 2);
  }

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

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

@media (min-width: 860px) {
  .hero-grid,
  .cta-grid,
  .comparison-grid,
  .calculator-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .hero-copy h1 {
    font-size: 4.2rem;
  }

  .hero-copy p {
    font-size: 1.15rem;
  }

  .portfolio-slide.is-active {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }

  .portfolio-copy {
    padding: 24px 18px 24px 0;
  }

  .solution-panel {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    padding: 30px;
  }

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

  .timeline::before {
    content: "";
    position: absolute;
    top: 43px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: var(--line);
  }

  .timeline-step {
    z-index: 1;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .section {
    padding: 96px 0;
  }

  .hero {
    padding: 72px 0 60px;
  }

  .nav-menu {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 9px 7px;
    font-size: 12px;
  }

  .nav-toggle {
    display: none;
  }

  .service-grid,
  .reason-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .testimonial-card {
    flex-basis: calc((100% - 32px) / 3);
  }

  .case-study-card {
    flex-basis: calc((100% - 16px) / 2);
  }

}

@media (min-width: 1100px) {
  .trust-grid,
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-menu a {
    padding-inline: 9px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .brand img {
    width: 168px;
  }

  .brand span,
  .icon-link {
    display: none;
  }

  .btn-small {
    padding-inline: 13px;
  }

  .hero-copy h1 {
    font-size: 2.25rem;
  }

  .section-header h2,
  .cta-copy h2 {
    font-size: 1.82rem;
  }
}
