:root {
  --red: #991c22;
  --red-dark: #791419;
  --red-soft: #fff6f5;
  --bg: #fcfbfa;
  --ink: #241917;
  --text: #3a2a27;
  --muted: #8a7772;
  --line: rgba(66, 39, 36, 0.08);
  --soft: #f7f1ee;
  --card: #ffffff;
  --shadow: 0 18px 42px rgba(66, 39, 36, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 251, 250, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 22px rgba(66, 39, 36, 0.07);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-panel a {
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-panel a:hover,
.nav-panel a.active {
  background: var(--red-soft);
  color: var(--red-dark);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 0;
  box-shadow: none;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--red-dark);
}

.section {
  scroll-margin-top: 86px;
  padding: 74px 0;
}

.section:first-of-type {
  padding-top: 56px;
}

.compact-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.tinted {
  background: linear-gradient(180deg, rgba(255, 246, 245, 0.78), rgba(252, 251, 250, 0.96));
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.home-hero {
  min-height: 680px;
  padding: 72px 0 68px;
}

.home-hero .section-inner {
  width: min(1280px, calc(100% - 48px));
}

.page-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
}

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

.page-hero-grid,
.overview-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-identity {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(153, 28, 34, 0.13);
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(38px, 8vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 span {
  display: inline;
}

.home-title {
  max-width: 560px;
  margin-bottom: 24px;
  font-size: clamp(44px, 5.1vw, 62px);
  line-height: 1.12;
}

.home-title span {
  display: block;
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 690px;
  color: var(--text);
  font-size: 17px;
}

.home-hero .lead {
  max-width: 560px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.85;
}

.section-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.trust-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-tags {
  margin: 20px 0 26px;
}

.home-hero .trust-tags {
  margin: 28px 0 0;
  gap: 10px;
}

.trust-tags span,
.tag-row span,
.system-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(153, 28, 34, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--red-dark);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 650;
}

.home-hero .trust-tags span {
  border-color: rgba(153, 28, 34, 0.16);
  background: var(--red-soft);
  color: var(--red-dark);
  padding: 5px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  border-color: var(--red);
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(153, 28, 34, 0.14);
}

.btn.secondary {
  background: var(--soft);
  color: var(--ink);
  box-shadow: none;
}

.btn.ghost {
  border-color: rgba(153, 28, 34, 0.16);
  background: var(--red-soft);
  color: var(--red-dark);
  box-shadow: none;
}

.hero-media {
  position: relative;
  min-width: 0;
}

.home-hero-image-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fffaf8;
  padding: 16px;
  box-shadow: 0 18px 42px rgba(66, 39, 36, 0.08);
}

.home-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center center;
  border-radius: 20px;
}

.photo,
.service-image,
.case-photo,
.team-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--red-soft);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.photo-hero {
  min-height: 430px;
  border-radius: 28px;
  background-image:
    linear-gradient(135deg, rgba(255, 246, 245, 0.16), rgba(121, 20, 25, 0.15)),
    url("public/images/hero-pet-food.jpg"),
    linear-gradient(135deg, #fffaf8, #eadbd4);
}

.floating-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(260px, calc(100% - 36px));
  border: 1px solid rgba(66, 39, 36, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
  box-shadow: 0 16px 34px rgba(66, 39, 36, 0.1);
}

.floating-note strong,
.floating-note span {
  display: block;
}

.floating-note strong {
  color: var(--ink);
}

.floating-note span {
  color: var(--muted);
  font-size: 13px;
}

.info-grid,
.system-grid {
  display: grid;
  gap: 14px;
}

.card,
.team-card,
.service-card,
.system-card,
.step-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card,
.system-card,
.step-card,
.contact-card {
  padding: 20px;
}

.card p,
.team-card p,
.service-card p,
.system-card p,
.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.muted-text {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
}

.about-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg), rgba(255, 246, 245, 0.62) 62%, var(--bg));
  padding: 70px 0 78px;
}

.about-page .section-inner {
  width: min(1240px, calc(100% - 48px));
}

.about-hero-grid {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-bottom: 28px;
}

.about-head {
  max-width: 760px;
  margin-bottom: 0;
}

.about-title {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.16;
}

.about-title span {
  display: block;
}

.about-page .lead {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.82;
}

.about-hero-image {
  overflow: hidden;
  width: min(100%, 340px);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fffaf8;
  padding: 10px;
  box-shadow: 0 18px 46px rgba(66, 39, 36, 0.08);
}

.about-hero-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 22px;
  background: #fffaf8;
}

.about-card-grid {
  display: grid;
  gap: 16px;
}

.about-card {
  min-height: 190px;
}

.about-card h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.closing-line {
  margin: 22px 0 0;
  border-left: 3px solid var(--red);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 16px 18px;
  box-shadow: 0 10px 26px rgba(66, 39, 36, 0.06);
  font-size: 17px;
  font-weight: 700;
}

.team-layout {
  display: grid;
  gap: 14px;
}

.team-card {
  padding: 18px;
}

.team-card.featured {
  display: grid;
  gap: 16px;
}

.team-photo {
  min-height: 170px;
  border-radius: 18px;
  background-image:
    linear-gradient(135deg, rgba(255, 246, 245, 0.48), rgba(121, 20, 25, 0.12)),
    url("public/images/team-bg.jpg"),
    linear-gradient(135deg, #fff8f5, #eadbd4);
}

.team-photo.alt {
  background-image:
    linear-gradient(135deg, rgba(255, 246, 245, 0.34), rgba(121, 20, 25, 0.16)),
    url("public/images/team-bg.jpg"),
    linear-gradient(135deg, #fbf3ee, #efe0dc);
}

.team-hero {
  padding: 76px 0 22px;
  background: linear-gradient(180deg, var(--bg), rgba(255, 246, 245, 0.66));
}

.team-page .section-inner {
  width: min(1440px, calc(100% - 160px));
}

.team-head {
  max-width: 1440px;
}

.team-title {
  max-width: 1440px;
  margin-bottom: 24px;
  font-size: clamp(54px, 3.9vw, 56px);
  line-height: 1.12;
  white-space: nowrap;
}

.team-page .lead {
  max-width: 1080px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.7;
}

.team-list-section {
  padding-top: 18px;
  padding-bottom: 82px;
}

.team-feature-grid,
.team-support-grid {
  display: grid;
  gap: 24px;
}

.team-support-grid {
  margin-top: 24px;
}

.team-member-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-content: start;
  align-items: start;
  padding: 28px;
}

.team-unit-card {
  min-height: 176px;
  padding: 28px;
}

.member-avatar {
  width: 120px;
  height: 120px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(153, 28, 34, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 20%, rgba(153, 28, 34, 0.08), transparent 36%),
    linear-gradient(135deg, #fffaf8, #f6ece8);
  box-shadow: 0 12px 28px rgba(66, 39, 36, 0.07);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar img[hidden] {
  display: none;
}

.avatar-fallback {
  color: var(--red-dark);
  font-size: 44px;
  font-weight: 800;
}

.team-member-card .tag-row {
  margin: 12px 0 14px;
}

.team-member-card h3 {
  font-size: 21px;
  line-height: 1.38;
}

.role-label,
.service-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
}

.service-grid {
  display: grid;
  gap: 16px;
}

.services-overview {
  min-height: calc(100vh - 72px);
  padding-top: 62px;
  background: linear-gradient(180deg, var(--bg), rgba(255, 246, 245, 0.7) 58%, var(--bg));
}

.services-head {
  max-width: 860px;
  margin-bottom: 26px;
}

.services-title {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.18;
}

.services-page .lead {
  max-width: 820px;
  color: var(--muted);
}

.service-card-grid {
  display: grid;
  gap: 24px;
}

.service-card {
  overflow: hidden;
  display: grid;
}

.service-image {
  min-height: 190px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.image-fresh-food {
  background-image:
    linear-gradient(135deg, rgba(255, 246, 245, 0.2), rgba(121, 20, 25, 0.12)),
    url("public/images/service-fresh-food.jpg"),
    linear-gradient(135deg, #fff8f4, #eadcd6);
}

.image-course {
  background-image:
    linear-gradient(135deg, rgba(255, 246, 245, 0.18), rgba(121, 20, 25, 0.1)),
    url("public/images/service-fresh-food.jpg"),
    linear-gradient(135deg, #fffaf6, #eee0d9);
}

.image-hospital {
  background-image:
    linear-gradient(135deg, rgba(255, 246, 245, 0.16), rgba(121, 20, 25, 0.14)),
    url("public/images/team-bg.jpg"),
    linear-gradient(135deg, #fdf7f4, #eadbd4);
}

.service-body {
  padding: 24px;
}

.compact-service-card {
  min-height: 520px;
  align-content: start;
  padding: 26px;
}

.service-subtitle {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 18px;
}

.compact-service-card h2 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.1vw, 26px);
  line-height: 1.28;
}

.service-summary {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.72;
}

.service-block {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.service-block h3 {
  margin-bottom: 0;
  color: var(--red-dark);
  font-size: 15px;
}

.clean-list {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
}

.service-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.service-targets span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(153, 28, 34, 0.12);
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 700;
}

.system-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.system-card .btn {
  justify-self: start;
}

.systems-entry-section {
  min-height: calc(100vh - 72px);
  padding: 86px 0 88px;
}

.systems-head {
  max-width: 620px;
  margin-bottom: 26px;
}

.systems-title {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

.systems-card-grid {
  align-items: stretch;
}

.systems-card-grid .system-card {
  min-height: 260px;
  grid-template-rows: auto auto 1fr auto auto;
}

.systems-card-grid .system-card .btn {
  align-self: end;
}

.mini-system-grid {
  grid-template-columns: 1fr;
}

.system-status {
  justify-self: start;
  background: var(--red-soft);
}

.system-status.muted {
  border-color: var(--line);
  background: var(--soft);
  color: var(--muted);
}

.muted-card {
  background: rgba(255, 255, 255, 0.76);
}

.timeline {
  display: grid;
  gap: 12px;
}

.step-card {
  position: relative;
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 850;
}

.content-layout {
  display: grid;
  gap: 16px;
}

.case-photo {
  min-height: 290px;
  border-radius: 24px;
  background-image:
    linear-gradient(135deg, rgba(255, 246, 245, 0.18), rgba(121, 20, 25, 0.13)),
    url("public/images/pet-case.jpg"),
    linear-gradient(135deg, #fff8f5, #eadbd4);
}

.content-cards {
  display: grid;
  gap: 12px;
}

.emphasis-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.emphasis-card .btn {
  justify-self: start;
}

.full-service-grid {
  grid-template-columns: 1fr;
}

.process-timeline {
  grid-template-columns: 1fr;
}

.contact-section {
  background: linear-gradient(180deg, var(--bg), var(--red-soft));
}

.contact-page .contact-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 86px 0 88px;
}

.contact-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.contact-page .contact-grid {
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.contact-head {
  max-width: 620px;
  margin-bottom: 0;
}

.contact-title {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(52px, 4vw, 60px);
  line-height: 1.18;
}

.contact-title span {
  display: block;
  white-space: nowrap;
}

.contact-page .lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: break-word;
}

.contact-page .lead span {
  display: inline;
}

.contact-actions {
  margin-top: 22px;
}

.contact-card {
  display: grid;
  gap: 0;
}

.contact-page .contact-card {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  padding: 24px;
}

.contact-row {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.contact-row span {
  color: var(--muted);
  font-size: 13px;
}

.contact-row strong {
  color: var(--ink);
  font-size: 15px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 0;
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.footer-inner strong {
  color: var(--ink);
}

.footer-inner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  transform: translateX(-50%) translateY(18px);
  max-width: min(92vw, 420px);
  border-radius: 14px;
  background: rgba(36, 25, 23, 0.94);
  color: #fff;
  padding: 10px 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

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

@media (min-width: 720px) {
  .info-grid,
  .system-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .about-hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  }

  .page-hero-grid,
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }

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

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

  .team-card.featured {
    grid-template-columns: 0.78fr 1.22fr;
  }

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

  .contact-grid,
  .content-layout {
    grid-template-columns: 1fr 1fr;
  }

  .contact-page .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }

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

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
    gap: clamp(44px, 5vw, 76px);
  }

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

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .nav-panel.open {
    display: grid;
  }

  .nav-panel a {
    border-radius: 12px;
    background: var(--soft);
    text-align: center;
  }

  .team-feature-grid,
  .team-support-grid {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-card {
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 24px, 1160px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 13px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section {
    scroll-margin-top: 78px;
    padding: 52px 0;
  }

  .section:first-of-type {
    padding-top: 34px;
  }

  .hero {
    min-height: 0;
  }

  .home-hero {
    padding: 48px 0 54px;
  }

  .home-hero .section-inner {
    width: min(100% - 24px, 1280px);
  }

  h1 {
    font-size: clamp(30px, 9.2vw, 36px);
  }

  h1 span {
    display: block;
  }

  .home-title {
    margin-bottom: 20px;
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.14;
  }

  h2 {
    font-size: 25px;
  }

  .lead,
  .section-head p {
    font-size: 15px;
  }

  .home-hero .lead {
    font-size: 15px;
    line-height: 1.78;
  }

  .home-hero .trust-tags {
    margin-top: 22px;
  }

  .home-hero .trust-tags span {
    white-space: normal;
  }

  .team-page .section-inner {
    width: min(100% - 40px, 1240px);
  }

  .team-hero {
    padding: 46px 0 18px;
  }

  .team-title {
    font-size: 34px;
    line-height: 1.16;
    white-space: normal;
  }

  .team-page .lead {
    font-size: 15px;
    line-height: 1.82;
  }

  .team-list-section {
    padding-top: 14px;
  }

  .team-member-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .member-avatar {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }

  .avatar-fallback {
    font-size: 40px;
  }

  .team-unit-card {
    min-height: 0;
    padding: 20px;
  }

  .about-section {
    min-height: 0;
    padding: 52px 0 58px;
  }

  .about-page .section-inner {
    width: min(100% - 24px, 1240px);
  }

  .about-hero-grid {
    gap: 22px;
    margin-bottom: 24px;
  }

  .about-head {
    margin-bottom: 22px;
  }

  .about-title {
    font-size: clamp(34px, 9.2vw, 40px);
    line-height: 1.18;
  }

  .about-page .lead {
    font-size: 15px;
    line-height: 1.82;
  }

  .about-hero-image {
    width: 100%;
    max-width: 320px;
    border-radius: 24px;
    padding: 10px;
  }

  .about-hero-image img {
    border-radius: 18px;
  }

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

  .contact-page .contact-section {
    min-height: 0;
    padding: 52px 0 58px;
  }

  .contact-title {
    font-size: clamp(34px, 9.2vw, 40px);
    line-height: 1.18;
  }

  .contact-title span {
    white-space: normal;
  }

  .contact-page .lead {
    font-size: 15px;
    line-height: 1.78;
  }

  .contact-page .lead span {
    display: block;
  }

  .contact-page .contact-card {
    max-width: none;
    justify-self: stretch;
    padding: 20px;
  }

  .services-overview {
    min-height: 0;
    padding-top: 44px;
  }

  .services-head {
    margin-bottom: 22px;
  }

  .service-card-grid {
    gap: 16px;
  }

  .compact-service-card {
    min-height: 0;
    padding: 20px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .photo-hero {
    min-height: 300px;
    border-radius: 22px;
  }

  .home-hero-image-card {
    border-radius: 24px;
    padding: 10px;
  }

  .home-hero-image {
    max-height: none;
    border-radius: 18px;
  }

  .floating-note {
    position: static;
    width: auto;
    margin-top: 10px;
  }

  .service-image {
    min-height: 160px;
  }

  .case-photo {
    min-height: 210px;
  }

  .team-photo {
    min-height: 140px;
  }

  .nav-panel {
    left: 12px;
    right: 12px;
    top: 70px;
    grid-template-columns: 1fr;
  }

  .systems-entry-section {
    min-height: 0;
    padding: 48px 0 56px;
  }

  .systems-title {
    font-size: 28px;
  }

  .systems-card-grid .system-card {
    min-height: 0;
  }
}

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

  .reveal,
  .btn,
  .toast {
    transition: none;
  }
}
