:root {
  --paper: #f7f8f5;
  --paper-2: #fbfcf9;
  --ink: #17181d;
  --muted: #73777f;
  --line: #dddfdc;
  --line-strong: #cfd4d0;
  --accent: #17b9aa;
  --accent-dark: #0ea397;
  --accent-soft: rgba(23, 185, 170, 0.11);
  --charcoal: #171b1f;
  --shadow: 0 24px 80px rgba(26, 30, 34, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --container: min(1280px, calc(100vw - clamp(32px, 7vw, 96px)));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 9%, rgba(23, 185, 170, 0.08), transparent 24rem),
    radial-gradient(circle at 16% 42%, rgba(255, 255, 255, 0.9), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

body.modal-open { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(23, 24, 29, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 24, 29, 0.035) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.65), transparent 73%);
}

.container { width: var(--container); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 100px;
  margin-top: 38px;
  padding: 22px 24px 22px 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(250, 251, 248, 0.82);
  box-shadow: 0 18px 60px rgba(26, 30, 34, 0.035);
  backdrop-filter: blur(12px);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(25px, 2.2vw, 35px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.logo span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
}

.nav, .footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 62px);
  color: #22242a;
  font-size: 16px;
  font-weight: 600;
}
.nav a, .footer-nav a, .text-link {
  transition: color .25s ease, transform .25s ease;
}
.nav a:hover, .footer-nav a:hover, .text-link:hover { color: var(--accent-dark); }

.btn {
  min-height: 56px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 10px;
  border: 1.4px solid transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform .25s cubic-bezier(.16,1,.3,1), background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn svg, .text-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled {
  opacity: .68;
  cursor: progress;
  transform: none;
  box-shadow: none;
}
.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #12a99d);
  box-shadow: 0 18px 34px rgba(23, 185, 170, 0.18);
}
.btn-primary:hover { background: linear-gradient(135deg, #1bc7b7, #0e9e94); transform: translateY(-2px); }
.btn-outline {
  color: var(--accent-dark);
  background: rgba(255,255,255,.36);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); transform: translateY(-2px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .76fr);
  gap: clamp(38px, 5vw, 70px);
  align-items: center;
  min-height: min(820px, calc(100dvh - 132px));
  padding: clamp(54px, 5.3vw, 78px) 0 76px;
}
.hero h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(44px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -0.072em;
  font-weight: 800;
  color: var(--ink);
}
.hero h1 span { color: var(--accent); }
.hero-kicker { max-width: 620px; margin-bottom: 22px; }
.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.hero-sub {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.72;
  letter-spacing: -0.02em;
}

.stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
}
.stat-card, .feature-card, .price-card, .work-card, .calculator {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  box-shadow: 0 18px 50px rgba(26, 30, 34, 0.035);
}
.stat-card {
  min-height: 176px;
  padding: 24px 20px 22px;
  border-radius: 14px;
}
.stat-card svg, .feature-card svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-card strong {
  display: block;
  margin-top: 22px;
  font-size: 39px;
  line-height: .9;
  letter-spacing: -0.07em;
  font-weight: 800;
}
.stat-card .stat-text {
  max-width: 136px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.stat-card span {
  display: block;
  margin-top: 13px;
  color: #262930;
  font-size: 14px;
  line-height: 1.42;
  letter-spacing: -0.025em;
}
.stat-card span b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 800;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
}
.hero-actions .btn { min-width: 260px; }

.hero-art {
  position: relative;
  min-height: 670px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-photo {
  position: relative;
  z-index: 2;
  width: min(100%, 505px);
  margin: 0;
  overflow: hidden;
  border-radius: clamp(56px, 6vw, 86px);
  box-shadow: 0 28px 90px rgba(23, 24, 29, 0.10);
  background: #d7e2e5;
}
.hero-photo img {
  width: 100%;
  height: auto;
  min-height: 640px;
  object-fit: cover;
  object-position: center top;
}
.hero-loop {
  position: absolute;
  z-index: 1;
  border: 1.35px solid rgba(23,185,170,.65);
  border-radius: 48% 52% 53% 47%;
  pointer-events: none;
}
.loop-a {
  width: 610px;
  height: 860px;
  right: -128px;
  top: 10px;
  transform: rotate(18deg);
}
.loop-b {
  width: 375px;
  height: 260px;
  right: -142px;
  bottom: 36px;
  transform: rotate(30deg);
}

.section { padding: 88px 0; }
.section-head { margin-bottom: 26px; }
.section-head.centered { text-align: center; margin-bottom: 44px; }
.section-head.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
}
h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.075em;
  font-weight: 800;
}
.section-head:not(.centered):not(.split) h2 { font-size: clamp(34px, 4.4vw, 48px); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
  padding: 12px 0;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 18px 0 20px;
}
.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 470px;
  background: var(--line);
}
.section-divider span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
}
.section-divider span::before {
  content: "";
  width: 13px;
  height: 13px;
  border-right: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
}

.pain {
  padding-top: 78px;
}
.pain-head {
  max-width: 820px;
  margin-bottom: 38px;
}
.pain-layout {
  display: grid;
  grid-template-columns: 1.15fr .95fr .95fr;
  gap: 24px;
  align-items: stretch;
}
.pain-card {
  min-height: 235px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.52);
  box-shadow: 0 18px 50px rgba(26, 30, 34, 0.035);
}
.pain-card:first-child {
  transform: translateY(24px);
}
.pain-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23,185,170,.42);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 13px;
}
.pain-card strong {
  display: block;
  margin-top: 34px;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -0.045em;
}
.pain-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}
.pain-conclusion {
  max-width: 850px;
  margin: 50px 0 0 auto;
  padding: 30px 34px;
  border-left: 3px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: rgba(23,185,170,.08);
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.3;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(23,185,170,.42);
  box-shadow: 0 28px 90px rgba(26, 30, 34, 0.10);
}
.work-open {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: transparent;
}
.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  background: #eef0ec;
}
.work-body {
  padding: 23px 25px 27px;
  background: rgba(255,255,255,.54);
}
.work-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  margin-bottom: 15px;
  padding: 0 12px;
  border: 1px solid rgba(23,185,170,.32);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
}
.work-body strong {
  display: block;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.work-body span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.portfolio-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.service-grid, .benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.feature-card {
  border-radius: 16px;
  min-height: 132px;
  padding: 30px 28px;
}
.feature-card strong {
  display: block;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.feature-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.feature-card.compact {
  min-height: 0;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 16px;
  align-items: start;
}
.feature-card.compact svg { grid-row: span 2; }
.feature-card.compact strong { margin-top: 1px; }
.feature-card.compact span { margin-top: 6px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.price-card {
  min-height: 390px;
  border-radius: 16px;
  padding: 38px 34px 34px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.price-card.featured {
  border-color: rgba(23,185,170,.55);
  background: linear-gradient(180deg, rgba(23,185,170,.08), rgba(255,255,255,.52) 44%);
  box-shadow: 0 26px 80px rgba(23, 185, 170, .11);
}
.price-hit {
  position: absolute;
  top: 24px;
  right: 24px;
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.price {
  margin: 18px 0 24px;
  color: var(--accent-dark);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 800;
}
.price-for {
  min-height: 66px;
  margin: -8px 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.price-deadline {
  margin: 16px 0 22px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}
ul { padding: 0; margin: 0; list-style: none; }
.price-card li {
  position: relative;
  padding-left: 22px;
  margin: 13px 0;
  color: #535860;
  line-height: 1.35;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}
.price-card .btn { margin-top: auto; width: 100%; }

.calculator {
  margin-top: 38px;
  padding: 38px 36px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  align-items: center;
}
.calculator h3 {
  margin: 0 0 28px;
  font-size: 29px;
  letter-spacing: -0.055em;
}
.range-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
  color: #4d525b;
  font-weight: 600;
}
.range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.calc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 32px;
}
.calc-options p {
  margin: 0 0 12px;
  color: #4d525b;
  font-weight: 600;
}
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.segmented button {
  height: 38px;
  padding: 0 21px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: #3e424a;
  transition: .25s ease;
}
.segmented button.active {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23,185,170,.18);
}
.switches {
  display: grid;
  gap: 16px;
  align-content: center;
}
.switch {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #3b4048;
  font-weight: 600;
}
.switch input { display: none; }
.switch span {
  position: relative;
  width: 42px;
  height: 23px;
  border-radius: 999px;
  background: #d7dbd8;
  transition: background .25s ease;
}
.switch span::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  left: 3px;
  top: 3px;
  background: #fff;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(19px); }
.calc-result {
  border-left: 1px solid var(--line);
  padding-left: 42px;
}
.calc-result span {
  color: var(--muted);
  font-weight: 600;
}
.calc-result strong {
  display: block;
  margin: 12px 0 26px;
  color: var(--accent-dark);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.06em;
}
.calc-result .btn { width: 100%; }
.calc-result p { color: var(--muted); margin: 18px 0 0; }

.gain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1030px;
  margin: 0 auto;
}
.centered-card { grid-column: 2 / 3; }
.merged-benefits .feature-card.compact {
  min-height: 124px;
  align-content: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px;
  text-align: center;
}
.steps article { position: relative; }
.steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 44%;
  height: 1px;
  right: -39%;
  top: 31px;
  background: var(--line-strong);
}
.steps article:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -40%;
  top: 27px;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.steps b {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border: 1.4px solid rgba(23,185,170,.65);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--paper-2);
  font-size: 20px;
}
.steps strong {
  display: block;
  min-height: 54px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}
.steps span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 90px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
.faq-column {
  display: grid;
  align-content: start;
}
.faq-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: minmax(58px, auto) 0fr;
  gap: 0 18px;
  align-items: center;
  text-align: left;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #343840;
  font-weight: 600;
  overflow: hidden;
  outline: none;
  transition: grid-template-rows .42s cubic-bezier(.16, 1, .3, 1), border-color .28s ease, background-color .28s ease;
}
.faq-item:focus { outline: none; }
.faq-item:focus-visible {
  border-radius: 12px 12px 0 0;
  box-shadow: 0 0 0 3px rgba(23, 185, 170, .18);
}
.faq-item b {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 600;
  transition: transform .42s cubic-bezier(.16, 1, .3, 1);
}
.faq-item p {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .42s cubic-bezier(.16, 1, .3, 1), padding-bottom .42s cubic-bezier(.16, 1, .3, 1);
}
.faq-item.open {
  grid-template-rows: minmax(58px, auto) 1fr;
  border-color: rgba(23, 185, 170, .35);
}
.faq-item.open p {
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 18px;
}
.faq-item.open b { transform: rotate(45deg); }

.contact-band {
  position: relative;
  overflow: hidden;
  min-height: 215px;
  margin-top: 52px;
  padding: 38px 58px;
  display: grid;
  grid-template-columns: 1fr minmax(310px, .74fr) minmax(280px, .62fr);
  align-items: center;
  gap: 38px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 74% 14%, rgba(42,48,54,.55), transparent 22rem),
    linear-gradient(135deg, #1b2025, #11161a);
  color: #fff;
  box-shadow: 0 28px 100px rgba(17,22,26,.18);
}
.contact-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}
.contact-copy p { margin: 16px 0 0; color: rgba(255,255,255,.72); line-height: 1.55; }
.inline-form { position: relative; display: grid; gap: 15px; }
.inline-form input, .form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #fff;
  padding: 0 18px;
  outline: none;
  transition: border-color .25s ease, background .25s ease;
}
.form-grid input, .form-grid select, .form-grid textarea {
  border-color: var(--line);
  background: rgba(255,255,255,.62);
  color: var(--ink);
}
.inline-form input:focus, .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--accent); background: rgba(255,255,255,.08); }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { background: #fff; }
.inline-form input::placeholder { color: rgba(255,255,255,.45); }
.form-state { min-height: 20px; margin: 0; color: #73dfd4; font-size: 13px; }
.consent-text {
  margin: -4px 0 0;
  color: rgba(255,255,255,.48);
  font-size: 12px;
  line-height: 1.45;
}
.consent-text a {
  color: #73dfd4;
  font-weight: 700;
}
.form-grid .consent-text {
  color: #7c828b;
}
.form-grid .consent-text a {
  color: var(--accent-dark);
}
.contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-links a {
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background .25s ease, transform .25s ease;
}
.contact-links a:hover { background: rgba(23,185,170,.12); transform: translateY(-2px); }
.contact-links span { color: rgba(255,255,255,.58); font-size: 13px; }
.contact-links strong { margin-top: 4px; font-size: 15px; overflow-wrap: anywhere; }
.contact-link-wide { grid-column: 1 / -1; }
.contact-loop {
  position: absolute;
  right: -84px;
  bottom: -130px;
  width: 250px;
  height: 190px;
  border: 1px solid rgba(23,185,170,.55);
  border-radius: 48% 52%;
  transform: rotate(-16deg);
}

.footer {
  min-height: 120px;
  padding: 38px 0 42px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr 1.35fr;
  gap: 34px;
  align-items: start;
}
.footer .logo { font-size: 28px; }
.footer-brand { display: grid; gap: 18px; }
.footer-contact,
.footer-legal {
  display: grid;
  gap: 7px;
  color: #4f535b;
  font-size: 14px;
  line-height: 1.45;
}
.footer-contact strong,
.footer-legal strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.02em;
}
.footer-contact a,
.footer-legal a {
  width: max-content;
  max-width: 100%;
  color: var(--accent-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.footer p { margin: 0; color: #8b8f96; line-height: 1.45; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 22, 26, .58);
  backdrop-filter: blur(12px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100vw - 40px));
  max-height: min(860px, calc(100dvh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-2);
  box-shadow: 0 36px 120px rgba(17, 22, 26, .24);
}
.modal-card.gallery { width: min(1180px, calc(100vw - 40px)); }
.modal-close {
  position: sticky;
  top: 18px;
  float: right;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 18px 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}
.modal-inner { padding: 46px; clear: both; }
.modal-inner h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 48px);
}
.modal-inner > p { color: var(--muted); line-height: 1.65; margin: 0 0 28px; max-width: 68ch; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid label { display: grid; gap: 8px; color: #434850; font-weight: 700; }
.form-grid textarea { min-height: 120px; padding-top: 14px; resize: vertical; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .btn { grid-column: 1 / -1; width: 100%; }
.work-preview img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.work-preview .btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}
.gallery-item div { padding: 17px 18px; }
.gallery-item strong { display: block; letter-spacing: -0.03em; }
.gallery-item span { display: block; color: var(--muted); margin-top: 5px; }
.gallery-item em { display: block; margin-top: 10px; color: var(--accent-dark); font-style: normal; font-weight: 800; }

.legal-header {
  min-height: 86px;
}
.legal-header .header-cta {
  justify-self: end;
}
.legal-page {
  max-width: 940px;
  padding: 86px 0 120px;
}
.legal-page h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.075em;
}
.legal-lead {
  max-width: 760px;
  margin: 0 0 54px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}
.legal-page section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.legal-page h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.055em;
}
.legal-page p {
  margin: 12px 0;
  color: #555b64;
  font-size: 16px;
  line-height: 1.78;
}
.legal-page a {
  color: var(--accent-dark);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal .7s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: calc(var(--i, 0) * 65ms);
}
.delay-1 { animation-delay: 140ms; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .hero { grid-template-columns: 1fr; padding-top: 62px; }
  .hero-art { min-height: auto; justify-content: center; }
  .hero-photo { width: min(560px, 100%); }
  .loop-a { right: 8%; }
  .loop-b { right: 0; }
  .pain-layout { grid-template-columns: 1fr; }
  .pain-card:first-child { transform: none; }
  .pain-conclusion { margin-left: 0; }
  .service-grid, .benefit-grid, .gain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: 1fr; }
  .price-card { min-height: auto; }
  .price-for { min-height: auto; }
  .calculator { grid-template-columns: 1fr; }
  .calc-result { border-left: 0; border-top: 1px solid var(--line); padding: 30px 0 0; }
  .steps { grid-template-columns: 1fr 1fr; text-align: left; }
  .steps article:not(:last-child)::before, .steps article:not(:last-child)::after { display: none; }
  .steps b { margin-inline: 0; }
  .contact-band { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-nav { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 30px, 640px); }
  .site-header {
    min-height: auto;
    margin-top: 15px;
    padding: 16px;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }
  .logo { font-size: 27px; }
  .nav { display: none; }
  .header-cta { min-height: 46px; padding: 0 14px; font-size: 13px; }
  .header-cta svg { display: none; }
  .hero { gap: 38px; min-height: auto; padding: 54px 0 58px; }
  .hero h1 { font-size: clamp(42px, 12.5vw, 58px); letter-spacing: -0.065em; }
  .hero-lead { margin-top: 30px; font-size: 20px; }
  .hero-sub { font-size: 16px; }
  .stats { grid-template-columns: 1fr; margin-top: 34px; }
  .stat-card { min-height: auto; padding: 22px; }
  .stat-card strong { margin-top: 18px; }
  .hero-actions { gap: 14px; margin-top: 30px; }
  .hero-actions .btn, .btn { width: 100%; min-width: 0; min-height: 54px; }
  .hero-photo { border-radius: 34px; }
  .hero-photo img { min-height: 470px; }
  .hero-loop { display: none; }
  .section { padding: 58px 0; }
  .pain { padding-top: 52px; }
  .pain-card { min-height: auto; padding: 24px; }
  .pain-card strong { margin-top: 24px; font-size: 22px; }
  .pain-conclusion { margin-top: 26px; padding: 22px; font-size: 22px; }
  .section-head.split { display: block; }
  .text-link { margin-top: 16px; }
  h2 { font-size: clamp(35px, 11vw, 48px); }
  .work-grid, .service-grid, .benefit-grid, .gain-grid, .faq-grid, .gallery-grid { grid-template-columns: 1fr; }
  .faq-grid { gap: 0; }
  .work-body { padding: 18px; }
  .price-card { padding: 28px 22px; }
  .calculator { padding: 28px 20px; }
  .calc-options { grid-template-columns: 1fr; }
  .segmented button { flex: 1; padding-inline: 10px; }
  .steps { grid-template-columns: 1fr; }
  .contact-band { padding: 28px 20px; border-radius: 16px; }
  .contact-links { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 14px 24px; }
  .modal { padding: 12px; }
  .modal-card, .modal-card.gallery { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .modal-inner { padding: 34px 18px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .legal-page { padding: 52px 0 78px; }
  .legal-page h1 { font-size: clamp(36px, 10vw, 48px); }
  .legal-lead { font-size: 17px; }
}

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

/* QA overflow guard for decorative loops */
.hero-art { overflow: hidden; }
.contact-loop { right: 0; }
