/* 原创版式及全站阅读、交互优化。 */
:root {
  --law-accent: #af9568;
  --law-ink: #203d51;
  --law-paper: #f4f5f5;
}

.desktop-nav { background: #203d51; color: #fff; box-shadow: 0 8px 24px #142f4326; }
.nav-item > a { letter-spacing: 1px; border-bottom: 3px solid transparent; line-height: 67px; }
.nav-item.active > a, .nav-item:hover > a, .nav-item:focus-within > a {
  background: #2d4f65;
  border-bottom-color: var(--law-accent);
}
.nav-sub { color: #293d4a; }
.hero-copy h1 { font-size: 48px; letter-spacing: 3px; line-height: 1.55; }
.hero-description {
  border-left: 3px solid var(--law-accent);
  padding: 13px 22px;
  background: #203d51d9;
  width: 670px;
  max-width: 100%;
}
.hero-description small { opacity: .8; margin-top: 4px; font-size: 13px; }
.home-title { color: var(--law-ink); letter-spacing: 1px; }
.home-title small { color: #90999f; font-size: 13px; letter-spacing: 1px; margin-top: 10px; }
.home-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  margin: 20px 0 0;
  background: var(--law-accent);
}
.home-services { background: #fff; padding: 75px 0; }
.home-services > .wrap {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 45px;
  align-items: stretch;
}
.home-services .home-title {
  background: var(--law-ink);
  color: #fff;
  text-align: left;
  padding: 45px 30px;
  font-size: 29px;
  position: relative;
}
.home-services .home-title small { color: #bfcbd3; }
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding: 0; margin: 0; }
.service-card {
  height: 105px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 22px;
  padding: 15px 9px;
  background: transparent;
  border-bottom: 1px solid #dce3e7;
  transition: background .25s, padding .25s;
}
.service-card img { width: 36px; height: 36px; margin: 0; flex-shrink: 0; }
.service-card > span { text-align: left; font-size: 16px; min-width: 0; }
.service-card small { font-size: 12px; margin-top: 7px; color: #939b9f; }
.service-card:hover { background: #f1f5f7; padding-left: 16px; }
.home-why { background: var(--law-paper); padding: 70px 0; }
.why-text, .about-copy { color: #626c73; }
.why-text p + p { margin-top: 23px; }
.why-person { background: #e4e9ec; border-bottom: 4px solid var(--law-accent); }
.more-button {
  background: transparent;
  color: var(--law-ink);
  border: 1px solid #869aa7;
  width: 158px;
  height: 44px;
  line-height: 42px;
  letter-spacing: 1px;
}
.why-content .numbers { padding: 22px 0 0; border-top: 1px solid #d4dde2; }
.home-why .number strong { color: var(--law-ink); }
.home-consult { border-top: 8px solid #fff; }
.consult-panel { background: var(--law-ink); }
.home-strengths { padding-top: 70px; padding-bottom: 75px; }
.home-strengths .home-title, .home-team .home-title, .home-news .home-title { text-align: left; }
.strength-layout {
  display: grid;
  grid-template-columns: 235px repeat(2, minmax(0, 1fr));
  gap: 35px;
  height: auto;
  margin-top: 40px;
}
.strength-center {
  position: static;
  transform: none;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 100%;
  height: 340px;
}
.strength, .strength:nth-of-type(even) {
  padding: 20px 0 22px 58px;
  border-bottom: 1px solid #d7e0e5;
  min-height: 135px;
  align-self: stretch;
}
.strength::before, .strength::after { display: none; }
.strength .badge, .strength:nth-of-type(even) .badge {
  left: 0;
  right: auto;
  top: 15px;
  width: 42px;
  height: 48px;
  clip-path: none;
  background: transparent;
  color: var(--law-accent);
  font-size: 30px;
  font-weight: 400;
}
.strength h3 { color: var(--law-ink); font-weight: 500; font-size: 17px; }
.home-team { background: var(--law-paper); padding: 65px 0; }
.home-team .team-grid { margin-top: 38px; gap: 20px; }
.team-card { border: 1px solid #e1e6e9; background: #fff; }
.team-card img { filter: grayscale(.55); }
.team-card .person-caption, .home-team .team-card .person-caption {
  position: relative;
  top: auto;
  transform: none;
  display: block;
  opacity: 1;
  background: #fff;
  color: var(--law-ink);
  padding: 17px 12px;
  text-align: left;
  border-top: 2px solid var(--law-accent);
}
.team-card .person-summary { color: #8b949a; font-size: 12px; }
.team-card:hover .person-caption { background: #edf2f5; }
.home-team .more-button { margin-top: 35px; }
.home-news { padding: 65px 0 75px; }
.home-news-grid {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 45px;
  padding: 0;
  margin-top: 38px;
}
.news-carousel { height: 360px; border-bottom: 4px solid var(--law-accent); }
.news-row { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid #e2e7ea; }
.news-row > div { min-width: 0; }
.news-row h3 { color: var(--law-ink); font-weight: 500; }
.date-block { background: transparent; color: #83939d; border-right: 1px solid #d8e0e5; padding-top: 5px; }
.date-block strong { color: var(--law-ink); }
.home-news .more-button { margin-top: 20px; margin-left: 0; }
.side-heading { background: var(--law-ink); border-bottom: 3px solid var(--law-accent); }
.side-heading small { color: #bfcbd3; font-size: 11px; letter-spacing: .6px; }
.side-links a {
  background: #fff;
  color: #516570;
  text-align: left;
  padding-left: 20px;
  border-bottom: 1px solid #e0e6e9;
  border-left: 3px solid transparent;
  margin-bottom: 0;
}
.side-links a.active { background: #edf2f5; color: var(--law-ink); border-left-color: var(--law-accent); }
.side-links a:hover { background: #e4ecf1; color: var(--law-ink); }
.sidebar .consult-form { background: #f3f5f6; border: 0; padding: 22px 16px; }
.breadcrumb { color: #7c888f; border-bottom-color: #dce3e8; }
.product-card { border: 1px solid #dce3e7; background: #fff; }
.product-card .caption {
  display: block;
  margin: 0;
  padding: 18px 20px;
  text-align: left;
  background: #f2f5f6;
  border-left: 3px solid var(--law-accent);
  color: var(--law-ink);
  transition: background .25s;
}
.product-card:hover .caption { background: #e4edf2; }
.inner-title { color: var(--law-ink); letter-spacing: .5px; }
.news-summary { background: #f2f5f6; border-left: 3px solid var(--law-accent); }
.footer-title { font-size: 22px; }
.footer-title small { font-size: 13px; color: #9ea9b1; }
.footer-copyright { border-top: 1px solid #ffffff1a; margin-top: 25px; color: #a4a9ae; }

@media (min-width: 992px) {
  .hero { aspect-ratio: auto; height: 680px; }
  .hero-copy { top: 38%; }
  .home-services ~ .home-why { min-height: 0; }
  .home-why > .wrap {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    column-gap: 65px;
    align-items: start;
  }
  .home-why .home-title { grid-column: 2; text-align: left; padding-top: 10px; }
  .why-content { display: contents; }
  .why-content > div:first-child { grid-column: 2; grid-row: 2; padding-top: 27px; }
  .why-person { grid-column: 1; grid-row: 1 / span 3; height: 500px; width: 100%; align-self: start; }
  .why-person img { width: 100%; height: 100%; }
  .why-more { display: block; grid-column: 2; margin: 28px 0 0; }
  .home-strengths { min-height: 0; }
  .inner-layout { grid-template-columns: 245px minmax(0, 1fr); gap: 40px; }
  .sidebar { padding-right: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .hero { aspect-ratio: 2 / 1; }
  body .home-services { padding: 40px 15px !important; }
  .home-services > .wrap { grid-template-columns: 175px minmax(0, 1fr); gap: 25px; }
  .home-services .home-title { padding: 30px 20px; font-size: 23px; }
  body .home-services .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 0 15px; }
  .service-card { height: 100px; gap: 12px; padding: 12px 0; }
  .service-card img { width: 28px; height: 28px; margin: 0; }
  .service-card > span { font-size: 14px; }
  .service-card small { font-size: 10px; white-space: normal; line-height: 1.4; }
  body .home-why { padding: 40px 30px !important; }
  .home-why .home-title { text-align: left; }
  .why-content { display: grid; margin-top: 25px; grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; }
  .why-person { height: 330px; display: block; align-self: start; }
  .why-text { font-size: 13px; line-height: 27px; }
  body .home-why .numbers { margin: 25px 0 0 !important; height: auto; padding-top: 18px; }
  .home-why .number { gap: 6px; flex-direction: column; align-items: center; }
  .home-why .number-icon { width: 25px; height: 25px; }
  body .home-why .number small { font-size: 11px; white-space: normal; line-height: 19px; }
  body .home-why .why-more { display: block; margin: 25px 0 0; }
  .home-strengths { padding: 40px 30px; min-height: 0; }
  .strength-layout { grid-template-columns: 150px repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 25px; }
  .strength-center { display: block; height: 300px; }
  .strength, .strength:nth-of-type(even) { padding: 45px 0 18px; min-height: 180px; }
  .strength .badge, .strength:nth-of-type(even) .badge { top: 0; height: 34px; font-size: 26px; }
  .strength h3 { font-size: 15px; }
  .strength p { line-height: 23px; }
  .home-team, body .home-news { padding: 40px 30px !important; }
  .home-team .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
  .home-team .team-card:nth-child(5) { display: block; }
  .home-team .team-card .person-caption { padding: 13px 10px; }
  .home-team .team-card img { aspect-ratio: 3/4; height: auto; }
  .home-news-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 25px; margin-top: 28px; }
  .news-carousel { height: 320px; }
  .home-news .news-row { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; padding-bottom: 15px; margin-bottom: 15px; }
  .home-news .date-block { width: 50px; }
  .side-links a { padding-left: 16px; }
  .product-card .caption { margin: 0; padding: 12px 15px; line-height: 22px; }
  .footer-title { font-size: 20px; }
}

@media (max-width: 600px) {
  .home-services > .wrap { grid-template-columns: 1fr; gap: 16px; }
  .home-services .home-title { padding: 22px; }
  .home-services .home-title::after { margin-top: 12px; }
  .home-services .home-title small { display: inline; margin-left: 15px; font-size: 11px; }
  body .home-why { padding-left: 20px !important; padding-right: 20px !important; }
  .why-content { grid-template-columns: 1fr; }
  .why-person { height: 300px; width: 100%; }
  .strength-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strength-center { grid-column: 1 / -1; grid-row: auto; height: 230px; }
  .home-team, body .home-news { padding-left: 20px !important; padding-right: 20px !important; }
  .home-team .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-news-grid { grid-template-columns: 1fr; }
  .news-carousel { height: 260px; }
}

/* Consultation panel follows the site's light paper/navy palette. */
.home-consult { border-top: 0; background: #fff; }
.consult-panel { background: #f1f4f5; color: #111; padding: 58px 30px; }
.consult-panel h2 { color: #111; font-weight: 600; }
.consult-panel .intro { color: #111; font-size: 16px; }
.consult-panel .field { color: #111; }
.consult-panel .field input, .consult-panel .field textarea { color: #111; background: #fff; border: 0; box-shadow: 0 4px 14px #203d5110; }
.consult-panel .field input::placeholder, .consult-panel .field textarea::placeholder { color: #111; opacity: .55; }
.consult-panel .submit { background: #203d51; color: #fff; }
.consult-panel .submit:hover { background: #111; }
.consult-panel .form-feedback { color: #111; }

/* Larger type with room for wrapping on both catalogue and article pages. */
body { font-size: 16px; line-height: 1.75; }
.mast-contact, .nav-item > a, .nav-sub a, .side-links a { font-size: 16px; }
.hero-description { font-size: 18px; line-height: 1.8; width: 760px; }
.hero-description small { font-size: 15px; line-height: 1.7; }
.home-title { font-size: 32px; }
.home-title small, .home-services .home-title small { font-size: 15px; }
.service-card { height: auto; min-height: 118px; gap: 20px; padding: 20px 12px; }
.service-card > .service-label { font-size: 20px; line-height: 1.45; }
.service-card small { font-size: 14px; line-height: 1.5; white-space: normal; color: #74818a; }
.service-card > .service-icon {
  display: grid; place-items: center; flex: 0 0 68px; width: 68px; height: 68px;
  border: 1px solid #dce4e8; border-radius: 16px; background: #f1f5f7;
  transition: transform .28s ease, background-color .28s ease, border-color .28s ease;
}
.service-card .service-icon img { width: 48px; height: 48px; margin: 0; }
.why-text, .about-copy, .article-body, .article-body.case-body, .news-article, .biography {
  font-size: 17px; line-height: 1.95;
}
.about-copy p:first-child { max-height: none; }
.number small, body .home-why .number small { font-size: 15px; line-height: 1.65; white-space: normal; }
.strength h3, .biography h3, .news-article h3 { font-size: 21px; line-height: 1.5; }
.strength p { font-size: 16px; line-height: 1.85; }
.strength, .strength:nth-of-type(even) { min-height: 165px; }
.team-card .person-caption { font-size: 19px; line-height: 1.55; }
.team-card .person-summary { font-size: 14px; white-space: normal; line-height: 1.6; }
.news-row h3, .home-news .news-row h3 { font-size: 20px; white-space: normal; line-height: 1.55; }
.news-row p, .home-news .news-row p { font-size: 16px; line-height: 1.85; }
.date-block span, .home-news .date-block span { font-size: 13px; }
.inner-title { font-size: 28px; line-height: 1.6; padding-bottom: 18px; }
.product-card .caption { font-size: 18px; line-height: 1.65; }
.breadcrumb { font-size: 15px; white-space: normal; flex-wrap: wrap; height: auto; line-height: 1.8; }
.side-heading { font-size: 24px; white-space: normal; }
.side-heading small { display: block; margin-left: 0; font-size: 13px; }
.contact-words p, .contact-codes, .article-neighbors, .news-summary { font-size: 16px; line-height: 1.9; }
.metadata, .form-feedback { font-size: 14px; line-height: 1.7; }
.consult-panel .field, .consult-form .field, .consult-panel .intro { font-size: 16px; }
.field input, .field textarea { font-size: 16px; }
.footer-contact p, .footer-qr p, .footer-copyright { font-size: 15px; }
.footer-title { font-size: 26px; }
.footer-title small { font-size: 14px; }

/* Every home section ends with the same centred action. */
body[data-page="home"] main .more-button {
  display: flex; align-items: center; justify-content: center;
  position: relative; grid-column: 1 / -1; justify-self: center;
  width: 176px; height: 50px; line-height: 1.5; font-size: 17px;
  margin: 38px auto 0;
}

/* One short entrance per group; opacity/transform avoid layout work per frame. */
.reveal { visibility: visible; }
html.motion-ready .reveal { opacity: 0; transform: translateY(28px); }
html.motion-ready .reveal.entered {
  opacity: 1; transform: none; animation: module-enter .65s cubic-bezier(.22,.68,.3,1) var(--reveal-delay, 0ms) backwards;
}
@keyframes module-enter {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.service-card, .team-card, .product-card, .honor-item, .more-button, .strength, .news-row {
  transition: translate .28s ease, box-shadow .28s ease, background-color .28s ease, border-color .28s ease, color .28s ease;
}
.team-card img, .product-card img, .why-person img, .news-carousel > img {
  transition: transform .45s ease, filter .45s ease;
}
.more-button::after { content: '→'; margin-left: 12px; transition: transform .25s ease; }
.service-card:focus-visible, .team-card:focus-visible, .product-card:focus-visible, .honor-item:focus-visible {
  box-shadow: 0 10px 26px #203d511a;
}
.more-button:focus-visible { background: var(--law-ink); color: #fff; }
.field input, .field textarea { transition: border-color .25s ease, box-shadow .25s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--law-accent); box-shadow: 0 0 0 3px #af956830; }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { padding-left: 12px; translate: 0 -4px; background: #f4f7f8; }
  .service-card:hover .service-icon { transform: translateY(-3px) rotate(-4deg); background: #e8dfd0; border-color: #c4b18b; }
  .team-card:hover, .product-card:hover, .honor-item:hover { translate: 0 -6px; box-shadow: 0 14px 30px #203d511f; }
  .team-card:hover img { transform: scale(1.025); filter: grayscale(0); }
  .why-person:hover img, .news-carousel:hover > img { transform: scale(1.035); }
  .strength:hover { translate: 0 -4px; border-color: var(--law-accent); background: #f6f8f9; }
  .news-row:hover { translate: 4px 0; border-color: var(--law-accent); }
  .news-row:hover h3 { color: #9b7a43; }
  .more-button:hover { translate: 0 -3px; box-shadow: 0 8px 20px #203d5126; background: var(--law-ink); color: #fff; }
  .more-button:hover::after { transform: translateX(4px); }
}
@media (max-width: 991px) {
  .home-title, .home-services .home-title { font-size: 28px; }
  .service-card { min-height: 116px; gap: 12px; }
  .service-card > .service-icon { flex-basis: 54px; width: 54px; height: 54px; border-radius: 12px; }
  .service-card .service-icon img { width: 38px; height: 38px; }
  .service-card > .service-label { font-size: 18px; }
  .why-text, .about-copy, .article-body, .article-body.case-body, .news-article, .biography { font-size: 16px; line-height: 1.9; }
  .strength h3 { font-size: 19px; }
  .strength p { font-size: 16px; line-height: 1.8; }
  .home-news-grid { grid-template-columns: 1fr; }
  .news-carousel { height: 360px; }
  .inner-title { font-size: 25px; }
}
@media (max-width: 600px) {
  .home-services .home-title small { font-size: 14px; }
  body .home-services .service-grid { gap: 0 12px; }
  .service-card { flex-direction: column; align-items: flex-start; gap: 13px; padding: 20px 4px; min-height: 174px; }
  .service-card > .service-icon { flex-basis: 54px; }
  .service-card small { font-size: 13px; }
  .service-card:hover { padding-left: 4px; }
  .strength-layout { grid-template-columns: 1fr; }
  .strength-center { grid-column: 1; }
  .strength, .strength:nth-of-type(even) { min-height: 0; padding: 46px 8px 22px; }
  .strength .badge, .strength:nth-of-type(even) .badge { left: 8px; }
  .home-team .team-grid { gap: 14px; }
  .team-card .person-caption { font-size: 18px; }
  .team-card .person-summary { font-size: 14px; }
  .home-news .news-row { grid-template-columns: 48px minmax(0,1fr); gap: 12px; }
  .home-news .news-row h3 { font-size: 18px; }
  .news-carousel { height: 260px; }
  .inner-title { font-size: 24px; }
  .product-card .caption { font-size: 17px; }
  .footer-title small { display: block; margin: 5px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.motion-ready .reveal, html.motion-ready .reveal.entered { opacity: 1; transform: none; animation: none; }
  .service-card, .service-icon, .team-card, .product-card, .honor-item, .more-button, .more-button::after,
  .strength, .news-row, .team-card img, .product-card img, .why-person img, .news-carousel > img { transition: none; translate: none; }
}

/* Keep page-specific legacy rules from shrinking the new reading scale. */
body[data-page="news-detail"] .news-article,
body[data-page="news-long"] .news-article,
body[data-page="news-accounting"] .news-article,
body[data-page="person"] .biography,
body[data-page="product"] .article-body,
body[data-page="case-detail"] .article-body {
  font-size: 17px;
  line-height: 1.95;
}
body[data-page="news-detail"] .news-article h3,
body[data-page="news-long"] .news-article h3,
body[data-page="news-accounting"] .news-article h3,
body[data-page="person"] .biography h3 {
  font-size: 21px;
  line-height: 1.55;
}
@media (max-width: 991px) {
  body[data-page="news-detail"] .news-article,
  body[data-page="news-long"] .news-article,
  body[data-page="news-accounting"] .news-article,
  body[data-page="person"] .biography,
  body[data-page="product"] .article-body,
  body[data-page="case-detail"] .article-body { font-size: 16px; line-height: 1.9; }
  body[data-page="news-detail"] .news-article h3,
  body[data-page="news-long"] .news-article h3,
  body[data-page="news-accounting"] .news-article h3,
  body[data-page="person"] .biography h3 { font-size: 19px; line-height: 1.55; }
}

/* Compact service heading and a cleaner, borderless visual system. */
.home-services > .wrap { display: block; }
.home-services .home-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 20px;
  background: transparent;
  color: var(--law-ink);
  height: auto;
  min-height: 0;
  padding: 0;
  margin: 0 0 28px;
  font-size: 32px;
  line-height: 1.5;
}
.home-services .home-title small { margin: 0; color: #83909a; font-size: 15px; }
body .home-services .service-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px 20px; }
.home-services .service-card { padding: 20px 14px; gap: 14px; border-radius: 12px; background: #f7f9fa; }
.home-services .service-card > .service-icon { width: 56px; height: 56px; flex-basis: 56px; }
.home-services .service-card .service-icon img { width: 42px; height: 42px; }
.home-services .service-card > .service-label { font-size: 19px; }
.home-title::after { display: none; }
.service-card { border-bottom: 0; box-shadow: none; }
.service-card:last-child, .service-card:nth-last-child(2) { box-shadow: none; }
.service-card > .service-icon { border: 0; box-shadow: none; }
.hero-description { border-left: 0; box-shadow: 0 10px 24px #142f4330; }
.why-person { border-bottom: 0; }
.more-button { border: 0; box-shadow: 0 6px 16px #203d5118; }
.why-content .numbers { border-top: 0; }
.strength, .strength:nth-of-type(even) { border-bottom: 0; }
.team-card { border: 0; box-shadow: 0 8px 22px #203d5112; }
.team-card .person-caption, .home-team .team-card .person-caption { border-top: 0; }
.news-carousel { border-bottom: 0; }
.news-row { border-bottom: 0; box-shadow: none; }
.news-row:last-child { box-shadow: none; }
.date-block { border-right: 0; }
.side-heading { border-bottom: 0; }
.side-links a { border-bottom: 0; border-left: 0; box-shadow: none; }
.side-links a:last-child { box-shadow: none; }
.product-card { border: 0; box-shadow: 0 8px 22px #203d5112; }
.product-card .caption { border-left: 0; }
.breadcrumb { border-bottom: 0; }
.news-summary { border-left: 0; box-shadow: 0 6px 16px #203d5110; }
.footer-copyright { border-top: 0; }
.nav-item > a { border-bottom: 0; }
.nav-sub a, .drawer-row, .drawer-sub a, .customer-panel a { border-bottom: 0; }
.pagination a, .pagination span, .map, .map-controls { border: 0; }
.pagination a { background: #f2f5f6; }
.fixed-bottom { border-top: 0; box-shadow: 0 -5px 20px #203d5112; }
@media (max-width: 1230px) {
  body .home-services .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .home-services .home-title { padding: 0; margin-bottom: 22px; font-size: 28px; gap: 6px 14px; }
  .home-services .service-card { min-height: 174px; padding: 20px 14px; }
  body .home-services .service-grid { gap: 12px; }
}

/* Final text palette: black on light surfaces, white on dark surfaces. */
:root { --ink: #111; --muted: #111; }
body { color: #111; }
body[data-page] main :is(h1,h2,h3,p,small,.field,.person-caption,.caption,.badge,.metadata,.date-block,.breadcrumb,.number strong,.article-body,.news-article,.biography,.about-copy,.why-text,.side-links a,.article-neighbors,.news-summary) {
  color: #111;
}
body[data-page] main :is(.home-title small,.service-card small,.person-summary,.metadata,.date-block,.breadcrumb) { opacity: 1; }
body[data-page] main :is(.service-card,.product-card,.team-card,.more-button,.side-links a,.news-row a):hover { color: #111; }
body[data-page] main .team-card:hover .person-caption, body[data-page] main .news-row:hover h3 { color: #111; }
body[data-page] main .breadcrumb .sep, body[data-page] main .article-neighbors .neighbor-icon { color: #111; }
body[data-page] main .more-button { color: #111; }
body[data-page] main .more-button:hover, body[data-page] main .more-button:focus-visible { color: #fff; }
body[data-page] main .hotline-panel, body[data-page] main .hotline-panel :is(h2,p,strong),
body[data-page] main .side-heading, body[data-page] main .side-heading small { color: #fff; opacity: 1; }
body .field input, body .field textarea { color: #111; }
body .submit { color: #fff; background: #203d51; }
body .submit:hover { background: #111; }
body .form-feedback { color: #111; }
body .hero-description, body .hero-description small { color: #fff; opacity: 1; }
body .nav-sub, body .nav-sub a, body .nav-sub a:hover { color: #111; }
body .desktop-nav .nav-item > a, body .desktop-nav .nav-item > a:hover { color: #fff; }
body .drawer a, body .drawer a:hover, body .customer-panel, body .customer-panel a { color: #111; }
body .site-footer, body .footer-title, body .footer-title small, body .footer-copyright,
body .footer-contact p, body .footer-qr p { color: #fff; opacity: 1; }
body .partner-logo, body .partner-logo small { color: #111; }

body[data-page] main .strength .badge { color: #111; }
body[data-page] main .service-card small,
body[data-page] main .team-card .person-caption,
body[data-page] main .team-card .person-summary,
body[data-page] main .home-title small,
body[data-page] main .home-services .home-title small,
body[data-page] main .news-row h3,
body[data-page] main .news-row p,
body[data-page] main .date-block,
body[data-page] main .breadcrumb,
body[data-page] main .metadata { color: #111; }
@media (max-width: 600px) {
  .home-consult { grid-template-columns: 1fr; }
  .home-consult .hotline-panel { min-height: 360px; padding: 32px 20px; }
  .home-consult .consult-panel { padding: 36px 24px; min-height: 0; }
  .home-consult .hotline-panel strong { font-size: 32px; margin-bottom: 22px; }
  .home-consult .hotline-panel img { width: 150px; height: 150px; }
}

/* Let the copy determine both columns' height; images fill the matching area. */
@media (min-width: 992px) {
  .home-why > .wrap { display: block; }
  .home-why .home-title { padding-top: 0; }
  .home-why .why-content {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
    gap: 48px;
    align-items: stretch;
    margin-top: 36px;
    padding: 0;
  }
  .home-why .why-content > div:first-child { grid-column: 2; grid-row: 1; padding-top: 0; }
  .home-why .why-person {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    align-self: stretch;
    width: 100%;
    height: auto;
    min-height: 480px;
  }
  .home-why .why-person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .home-news .home-news-grid {
    grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
    gap: 48px;
    align-items: stretch;
  }
  .home-news-grid > div:last-child { grid-column: 1; grid-row: 1; }
  .home-news-grid > .news-carousel { grid-column: 2; grid-row: 1; height: auto; min-height: 380px; align-self: stretch; }
  .home-news .news-carousel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .home-news .news-row:last-child { margin-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 991px) {
  .home-why .why-content { grid-template-columns: 1fr; }
  .home-why .why-person { height: 440px; width: 100%; }
  .home-news .news-carousel { height: 380px; }
}
@media (max-width: 600px) {
  .home-why .why-person { height: 380px; }
  .home-news .news-carousel { height: 300px; }
}

/* Give inner-page navigation and content breathing room below the banner. */
.inner-layout { padding-top: 56px; }
.inner-layout > .sidebar { margin-top: 0; }
@media (max-width: 991px) {
  .inner-layout { padding-top: 36px; }
}
@media (max-width: 600px) {
  .inner-layout { padding-top: 24px; }
}

body[data-page] main .hotline-panel strong { font-weight: 600; text-shadow: 0 2px 5px rgba(0,0,0,.35); }

.inner-layout:has(.contact-info) .map.map-image { height: auto; min-height: 0; background: none; }
.map.map-image > img { display: block; width: 100%; height: auto; object-fit: contain; }
