/* 功夫旧改官网 2026：统一页面样式 */
:root {
  --brand: #b42318;
  --brand-dark: #7f1711;
  --brand-soft: #f8e7df;
  --gold: #bd8a43;
  --ink: #20251f;
  --muted: #646b63;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --sand: #ece4d6;
  --line: #e4ddd2;
  --success: #1c7c54;
  --shadow: 0 22px 60px rgba(71, 48, 28, .10);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

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

figure {
  margin: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
}

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

.wrap {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(228, 221, 210, .82);
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(18px);
}

.nav .wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-size: 19px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 6px;
}

.logo .logo-copy b {
  color: var(--brand);
}

.logo .logo-copy small {
  display: block;
  margin-top: -3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}

.logo-copy {
  display: block;
  color: var(--ink);
  line-height: 1.12;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: "⌄";
  display: inline-block;
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  transform: translateY(-1px);
}

.subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.subnav a {
  padding: 9px 11px;
  white-space: normal;
}

.nav-dropdown:hover .subnav,
.nav-dropdown:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}

.phone:hover {
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(189, 138, 67, .18), transparent 26%),
    radial-gradient(circle at 9% 100%, rgba(180, 35, 24, .10), transparent 29%),
    #f4efe5;
}

.hero::before {
  content: "";
  position: absolute;
  top: -250px;
  right: -180px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(189, 138, 67, .25);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(189, 138, 67, .04),
    0 0 0 150px rgba(189, 138, 67, .03);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 630px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 70px;
  padding-block: 78px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}

.hero h1,
.page-hero h1,
.section > .wrap > h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.12;
}

.hero h1 em {
  color: var(--brand);
  font-style: normal;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #50564e;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  font-size: 15px;
  font-weight: 750;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn:hover {
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(180, 35, 24, .18);
}

.btn-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, .72);
}

.btn-secondary:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: #fff;
  box-shadow: none;
}

.hero-proof {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(100, 107, 99, .16);
}

.hero-proof strong {
  display: block;
  margin-bottom: 2px;
  color: var(--brand);
  font-size: 24px;
  line-height: 1.3;
}

.hero-proof span {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 520px;
}

.hero-main {
  position: absolute;
  inset: 22px 18px 32px 26px;
  overflow: hidden;
  border-radius: 38px 38px 110px 38px;
  box-shadow: var(--shadow);
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(32, 37, 31, .38));
}

.hero-float {
  position: absolute;
  z-index: 2;
  width: 205px;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, .94);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(60, 43, 25, .18);
}

.hero-float img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-float-a {
  right: -10px;
  bottom: 52px;
}

.hero-float-b {
  left: -24px;
  bottom: 3px;
  width: 170px;
}

.hero-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 10px 24px rgba(62, 45, 28, .12);
  backdrop-filter: blur(14px);
}

.hero-badge b {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 16px;
}

.hero-badge span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hero-badge strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.section {
  padding-block: 92px;
}

.section-soft {
  background: #fffdf9;
}

.section-dark {
  color: #fff;
  background: var(--ink);
}

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

.section-head > div {
  max-width: 720px;
}

.section-head .eyebrow {
  margin-bottom: 13px;
}

.section h2,
.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(29px, 3.5vw, 44px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.25;
}

.section-dark .section-head h2,
.section-dark h2 {
  color: #fff;
}

.section-lead,
.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.section-dark .section-lead,
.section-dark .section-head p {
  color: rgba(255, 255, 255, .65);
}

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

.svc-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .22s ease, box-shadow .22s ease;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(70, 50, 31, .10);
}

.svc-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.svc-card h3 {
  margin: 22px 22px 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

.svc-card p {
  margin: 0;
  padding: 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.svc-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 18px 22px 22px;
  font-size: 13px;
  font-weight: 750;
}

.service-index {
  display: inline-block;
  margin: 16px 22px 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

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

.value-card,
.pain-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pain-card {
  color: #fff;
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
}

.value-card b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 13px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 18px;
}

.value-card h3,
.pain-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.45;
}

.value-card p,
.pain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pain-card p {
  color: rgba(255, 255, 255, .62);
}

.pain-card strong {
  display: block;
  margin-bottom: 11px;
  color: #d9ad68;
  font-size: 13px;
  letter-spacing: .1em;
}

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

.process-item {
  counter-increment: process;
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: #f5efe5;
}

.process-item::before {
  content: "0" counter(process);
  display: block;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.05em;
}

.process-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.case-strip {
  display: grid;
  grid-template-columns: 1.18fr .82fr .82fr;
  gap: 18px;
}

.case-preview {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: var(--radius);
  background: #ddd;
}

.case-preview:first-child {
  grid-row: span 2;
  min-height: 540px;
}

.case-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.case-preview:hover img {
  transform: scale(1.035);
}

.case-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(23, 27, 23, .68));
}

.case-preview span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
}

.partner-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 25%, rgba(216, 164, 92, .28), transparent 28%),
    var(--ink);
}

.partner-band h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.045em;
  line-height: 1.25;
}

.partner-band p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .65);
}

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

.partner-list div {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
}

.partner-list strong {
  display: block;
  color: #e2b26b;
  font-size: 15px;
}

.partner-list span {
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 54px;
  border-radius: 30px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(127, 23, 17, .96), rgba(180, 35, 24, .92)),
    var(--brand);
}

.cta::after {
  content: "功夫旧改";
  position: absolute;
  right: -10px;
  bottom: -50px;
  color: rgba(255, 255, 255, .07);
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.cta h2,
.cta h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -.04em;
}

.cta p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .72);
}

.cta .btn {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  color: var(--brand);
  border-color: #fff;
  background: #fff;
}

.cta .btn:hover {
  color: var(--brand-dark);
  background: #f9eee6;
}

.footer {
  padding: 64px 0 24px;
  color: rgba(255, 255, 255, .63);
  background: #171b17;
}

.footer > .wrap:first-child {
  display: grid;
  grid-template-columns: 1.1fr 1fr .8fr;
  gap: 48px;
}

.footer h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 15px;
}

.footer p {
  margin: 7px 0;
  font-size: 13px;
}

.footer a {
  color: rgba(255, 255, 255, .63);
}

.footer a:hover {
  color: #e2b26b;
}

.footer .links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 18px;
}

.footer .footer-search {
  grid-column: 1 / -1;
}

.footer form {
  display: flex;
  max-width: 500px;
}

.footer input[type="search"] {
  min-width: 0;
  height: 46px;
  flex: 1;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px 0 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  outline: none;
}

.footer button {
  padding: 0 18px;
  border: 0;
  border-radius: 0 10px 10px 0;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
}

.footer .icp {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  font-size: 12px;
}

.footer .icp p {
  margin: 4px 0;
}

.bc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.bc a {
  color: var(--muted);
}

.bc span {
  color: #aaa39a;
}

.page-hero {
  padding: 72px 0 58px;
  background:
    radial-gradient(circle at 90% 20%, rgba(189, 138, 67, .16), transparent 28%),
    #f4efe5;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(36px, 4.8vw, 58px);
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section > .wrap > h1 {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(32px, 4.6vw, 52px);
}

.section > .wrap > h1 + p {
  max-width: 850px;
  color: var(--muted);
  font-size: 17px;
}

.section h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.4;
}

.section p,
.section li {
  color: #4e554d;
}

.section ol,
.section ul {
  padding-left: 1.3em;
}

.section li {
  margin: 8px 0;
}

.tbl {
  width: 100%;
  margin: 20px 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
}

.tbl th,
.tbl td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tbl th {
  color: var(--ink);
  background: #f1eadf;
  font-weight: 750;
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.alert {
  padding: 20px 22px;
  border: 1px solid #e8d8c2;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: #fff9ee;
  color: #554b3e;
}

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

.contact-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-item h3 {
  margin-top: 0;
}

.contact-item p {
  margin: 8px 0;
  font-size: 14px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 34px 0;
}

.case-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.case-item figure {
  overflow: hidden;
  background: var(--sand);
}

.case-item figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.case-item figcaption {
  padding: 8px 14px;
  color: var(--muted) !important;
  background: #fff !important;
  font-size: 12px !important;
  text-align: left !important;
}

.case-item .info {
  padding: 24px;
}

.case-item h3 {
  margin: 14px 0 12px;
  font-size: 22px;
}

.case-item .info p {
  font-size: 14px;
  line-height: 1.9;
}

.case-item h3 a {
  color: var(--ink);
}

.case-item h3 a:hover {
  color: var(--brand);
}

.case-item .case-link {
  display: block;
  overflow: hidden;
}

.case-item .case-link:hover img {
  transform: scale(1.025);
}

.case-item .case-link img {
  transition: transform .35s ease;
}

.case-cover {
  overflow: hidden;
  margin: 0 0 42px;
  border-radius: var(--radius);
  background: var(--sand);
  box-shadow: var(--shadow);
}

.case-cover img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.case-fact {
  padding: 18px 20px;
  border: 1px solid rgba(36, 42, 35, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
}

.case-fact span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.case-fact strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 38px;
}

.case-gallery figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.case-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-gallery figure:first-child {
  grid-column: 1 / -1;
}

.case-gallery figure:first-child img {
  aspect-ratio: 16 / 9;
}

.case-gallery figcaption {
  padding: 13px 16px;
  color: var(--muted);
  font-size: 13px;
}

.case-summary {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 26px;
  margin: 26px 0;
}

.case-summary > div {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.case-summary h2 {
  margin-top: 0;
  font-size: 28px;
}

.case-summary ul {
  margin-bottom: 0;
}

.case-note {
  margin: 24px 0 34px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  color: #5d5143;
  background: #fff8eb;
  font-size: 14px;
}

.tag {
  display: inline-flex;
  margin: 0 5px 5px 0;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 650;
}

.faq details {
  margin-bottom: 12px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.faq summary {
  padding: 18px 0;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.faq .answer,
.faq p {
  padding-bottom: 18px;
}

.mobile-call {
  display: none;
}

@media (max-width: 1040px) {
  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding-inline: 8px;
    font-size: 13px;
  }

  .phone {
    padding-inline: 13px;
    font-size: 13px;
  }

  .hero-grid {
    gap: 34px;
  }

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

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

@media (max-width: 860px) {
  :root {
    --radius: 18px;
  }

  .wrap {
    width: min(100% - 32px, var(--container));
  }

  .nav .wrap {
    min-height: 66px;
    gap: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .nav .phone {
    display: none;
  }

  .nav-links {
    position: fixed;
    inset: 66px 0 auto;
    display: none;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    padding: 14px 16px 22px;
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 249, .98);
    box-shadow: 0 20px 40px rgba(40, 30, 20, .12);
  }

  .nav-links.open {
    display: block;
  }

  .nav-links > li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links > li:last-child {
    border-bottom: 0;
  }

  .nav-links a {
    padding: 14px 8px;
    font-size: 15px;
  }

  .nav-dropdown > a::after {
    float: right;
  }

  .subnav {
    position: static;
    width: auto;
    padding: 0 0 8px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-block: 52px 64px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

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

  .hero-visual {
    min-height: 430px;
  }

  .hero-main {
    inset: 20px 10px 24px;
  }

  .hero-float {
    width: 150px;
  }

  .hero-float-b {
    left: 0;
  }

  .section {
    padding-block: 64px;
  }

  .section-head {
    display: block;
  }

  .pain-grid,
  .value-grid,
  .case-grid,
  .contact-info {
    grid-template-columns: 1fr;
  }

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

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

  .case-summary > div {
    padding: 22px;
  }

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

  .case-preview:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 360px;
  }

  .partner-band {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px 26px;
  }

  .cta {
    padding: 38px 26px;
  }

  .footer > .wrap:first-child {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tbl {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .mobile-call {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 17px;
    border-radius: 999px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 30px rgba(180, 35, 24, .28);
    font-size: 14px;
    font-weight: 750;
  }

  .mobile-call:hover {
    color: #fff;
  }
}

@media (max-width: 560px) {
  .hero-proof {
    gap: 18px;
  }

  .hero-proof > div {
    min-width: calc(50% - 10px);
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-float-a {
    width: 135px;
  }

  .hero-float-b {
    width: 120px;
  }

  .svc-grid,
  .process-grid,
  .case-strip {
    grid-template-columns: 1fr;
  }

  .case-preview,
  .case-preview:first-child {
    min-height: 290px;
  }

  .case-item figure img {
    height: 210px;
  }

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

  .case-gallery figure:first-child {
    grid-column: auto;
  }

  .case-gallery figure:first-child img {
    aspect-ratio: 4 / 3;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section h2,
  .section-head h2 {
    font-size: 30px;
  }
}

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