/* Service Hall A: the header and six parallel entries share one viewport. */
.services-page { --header-h: 88px; --text: #243f32; --text-light: #5f6c5b; --text-muted: #687560; --primary-light: #4d7159; --accent-dark: #36543c; --accent-light: #9bad8d; --border: #d2dbca; --border-light: #e0e5d8; --bg: #f5f3eb; }
.services-page #services-main:focus { outline: none; }
body.services-page .sv-hall { height: auto; min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); padding: 0; display: block; color: var(--home-ink); background: #faf8f3; overflow: visible; }
.services-page .sv-hall::before { width: 36%; height: 270px; right: 0; top: 0; border-radius: 0; background: radial-gradient(ellipse at 90% 0, #d9e0c74d, transparent 72%); }
.services-page .sv-hall::after { display: none; }
.services-page .sv-hall-inner { width: calc(100% - 96px); max-width: 1280px; padding: clamp(18px, 3dvh, 32px) 0; min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); display: grid; grid-template-rows: auto 1fr auto; gap: clamp(16px, 2.6dvh, 28px); }
.services-page .sv-hall-head { text-align: left; margin: 0; }
.sv-breadcrumb { display: flex; gap: 12px; font-size: 12px; color: #64725e; margin-bottom: clamp(12px, 2dvh, 22px); }
.services-page .sv-hall-eyebrow { display: block; padding: 0; border: 0; border-radius: 0; background: none; color: #ad572d; font-size: 13px; line-height: 1.5; margin: 0 0 8px; letter-spacing: .12em; }
.services-page .sv-hall h1 { font-size: clamp(36px, 4.4dvh, 52px); color: var(--home-ink); margin: 0 0 8px; letter-spacing: .02em; }
.services-page .sv-hall-sub { font-size: 17px; opacity: 1; line-height: 1.65; color: #566650; }
.services-page .sv-hall-grid { width: 100%; max-width: none; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(170px, 1fr)); gap: 20px; }
.services-page .sv-card { min-width: 0; padding: 24px 28px; border: 1px solid #d2dbca; border-radius: 16px; background: #fffdf8; box-shadow: none; display: flex; flex-direction: column; justify-content: center; gap: 8px; transition: border-color .2s, background .2s, box-shadow .2s; }
.services-page .sv-card:nth-child(2), .services-page .sv-card:nth-child(4), .services-page .sv-card:nth-child(6) { background: #eff3e8; }
.services-page .sv-card:hover { transform: none; border-color: #8ba07e; box-shadow: 0 5px 18px #25432e0a; background: #f4f4e9; }
.services-page .sv-card:focus-visible { outline: 3px solid #ad572d; outline-offset: 4px; }
.sv-card-number { position: absolute; top: 22px; left: 28px; color: #ad572d; font-size: 15px; font-weight: 500; line-height: 1.5; }
.sv-card-number::after { content: ''; display: block; width: 20px; height: 1px; background: #c08b60; margin-top: 5px; }
.sv-card-art { position: absolute; right: 17px; top: 14%; width: 43%; height: 64%; max-height: 180px; pointer-events: none; }
.services-page .sv-card-body { position: relative; width: 100%; flex: none; gap: 12px; padding-top: 34px; padding-bottom: 20px; }
.services-page .sv-card-name { font-size: clamp(22px, 2.1vw, 30px); font-weight: 700; line-height: 1.4; max-width: 62%; }
.services-page .sv-card-desc { color: #586b50; display: block; font-size: 14px; line-height: 1.7; max-width: 70%; overflow: visible; -webkit-line-clamp: unset; }
.services-page .sv-card-go { display: grid; place-items: center; position: absolute; inset: auto 24px 18px auto; transform: none; width: 36px; height: 36px; border: 1px solid #8a9f7d; border-radius: 50%; opacity: 1; font-size: 23px; font-weight: 400; line-height: 1; color: #36553d; background: #fafbf480; }
.services-page .sv-card:hover .sv-card-go { transform: translateX(3px); }
.services-page .sv-hall-scroll { display: flex; align-items: center; justify-content: center; gap: 14px; width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; color: #53694c; box-shadow: none; font-size: 13px; font-weight: 400; animation: none; line-height: 1.6; }
.services-page .sv-hall-scroll::before, .services-page .sv-hall-scroll::after { content: ''; width: 32px; height: 1px; background: #b2bea6; }
.services-page .sv-contentbar { background: #f3f3eaf7; border-block: 1px solid #e0e5d8; box-shadow: none; }
.services-page .sv-contentbar-in { flex-wrap: nowrap; gap: 20px; overflow: visible; padding-block: 10px; }
.sv-cb-list { display: flex; align-items: center; gap: 8px; overflow-x: auto; min-width: 0; padding: 5px; scrollbar-width: thin; scrollbar-color: #a8b69a transparent; }
.services-page .sv-cb-item { display: flex; align-items: center; min-height: 44px; background: transparent; color: #506847; padding: 8px 20px; }
.services-page .sv-cb-item.active { color: #fff; background: #4d7159; border-color: #4d7159; }
.services-page .sv-cb-top { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; color: #506847; }
.services-page .sv-panel { padding: 48px 0 56px; background: var(--home-paper); }
.services-page .sv-panel > .container { max-width: 1280px; width: calc(100% - 96px); padding: 0; }
.services-page .sv-panel .section-title, .services-page .sv-panel .section-subtitle { text-align: left; }
.services-page .sv-panel .section-title { font-size: 30px; letter-spacing: .02em; }
.services-page .sv-panel .section-subtitle { font-size: 15px; margin-bottom: 28px; }
.services-page .sv-panel .card, .services-page .sv-panel .service-card, .services-page .assessment-block, .services-page .product-table-wrap { background: #fffdf8; border: 1px solid #dce2d3; border-radius: 18px; box-shadow: none; }
.services-page .sv-panel .card:hover, .services-page .sv-panel .service-card:hover { transform: none; box-shadow: none; border-color: #a5b498; }
.services-page .sv-panel .card h3, .services-page .sv-panel .service-card h3 { line-height: 1.6; margin-bottom: 12px; }
.services-page .sv-panel .card p, .services-page .sv-panel .service-card p { color: #5f6c5b; line-height: 1.9; }
.services-page .sv-panel .card-icon { background: #e9eedf; color: #52714a; border-radius: 14px; }
.services-page .sv-panel .btn { min-height: 44px; border-radius: 24px; white-space: normal; text-align: center; }
.services-page .sv-panel a.btn-primary, .services-page .sv-panel a.btn-accent { color: #fff; }
.services-page .sv-panel a.btn-outline:hover { color: #fff; }
.services-page .sv-panel .step-num { background: #e7eddd; color: #4d7159; box-shadow: none; }
.services-page .sv-panel .steps::before { background: #c4cfb7; }
.services-page #upload-zone { max-width: 100%; padding: 28px 32px !important; background: #eff3e8 !important; border-color: #aaba9b !important; }
.services-page #upload-zone:focus-visible, .services-page .quiz-option:focus-visible { outline: 3px solid #ad572d; outline-offset: 4px; }
.services-page .quiz-option { background: #faf9f3; border-color: #dce2d3; color: #364b30; }
.services-page .quiz-option:hover, .services-page .quiz-option.selected { border-color: #718d64; background: #eaf0e0; color: #36543c; }
.services-page .quiz-progress { background: #e9eddf; }
.services-page .quiz-progress-bar { background: #6f8c61; }
html[lang="en"] .services-page .sv-card-name { font-size: clamp(19px, 1.7vw, 25px); }
html[lang="en"] .services-page .sv-card-desc { font-size: 13px; }
@media (max-width: 1200px) {
  .services-page { --header-h: 76px; }
  .services-page .sv-card { padding-inline: 22px; }
  .sv-card-number { left: 22px; }
  .services-page .sv-contentbar-in { gap: 10px; }
  .services-page .sv-cb-item { padding-inline: 14px; }
}
@media (max-width: 820px) {
  .services-page .sv-hall-inner, .services-page .sv-panel > .container { width: calc(100% - 40px); }
  .services-page .sv-hall-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(3, minmax(120px, 1fr)); gap: 12px; }
  .services-page .sv-card { padding: 16px 18px; }
  .sv-card-number { display: none; }
  .services-page .sv-card-name { font-size: 22px; }
  .services-page .sv-card-body { padding-block: 0; gap: 7px; }
  .services-page .sv-card-desc { font-size: 13px; }
  .services-page .sv-card-go { right: 15px; bottom: 14px; width: 30px; height: 30px; font-size: 21px; }
  .services-page .sv-cb-item { font-size: 13px; }
}
@media (max-width: 540px) {
  .services-page { --header-h: 64px; }
  .services-page .home-header { height: var(--header-h); }
  .services-page .home-nav { top: var(--header-h); max-height: calc(100dvh - var(--header-h)); }
  .services-page .home-brand { font-size: 20px; gap: 8px; }
  .services-page .home-brand-mark { width: 33px; height: 33px; }
  .services-page .sv-hall-inner { width: calc(100% - 32px); padding-block: 14px; gap: 12px; }
  .sv-breadcrumb { font-size: 11px; margin-bottom: 12px; }
  .services-page .sv-hall-eyebrow { font-size: 11px; margin-bottom: 5px; letter-spacing: .08em; }
  .services-page .sv-hall h1 { font-size: 32px; margin-bottom: 5px; }
  .services-page .sv-hall-sub { font-size: 13px; line-height: 1.55; }
  .services-page .sv-card { padding: 12px 14px 30px; gap: 4px; justify-content: flex-end; }
  .sv-card-art { position: static; align-self: flex-start; width: 86px; height: clamp(40px, 9dvh, 82px); flex: 1 1 40px; min-height: 32px; }
  .services-page .sv-card-name { font-size: 18px; max-width: none; line-height: 1.4; }
  .services-page .sv-card-desc { font-size: 12px; max-width: none; line-height: 1.55; }
  .services-page .sv-card-body { gap: 4px; }
  .services-page .sv-card-go { width: 24px; height: 24px; right: 11px; bottom: 7px; font-size: 18px; }
  .services-page .sv-hall-scroll { font-size: 11px; gap: 8px; }
  .services-page .sv-hall-scroll::before, .services-page .sv-hall-scroll::after { width: 18px; }
  .services-page .sv-contentbar-in { width: calc(100% - 24px); gap: 5px; padding-block: 6px; }
  .services-page .sv-cb-top { font-size: 12px; padding-inline: 5px; }
  .services-page .sv-panel { padding-block: 30px 40px; }
  .services-page .sv-panel .section-title { font-size: 25px; }
  .services-page .sv-panel .section-subtitle { font-size: 13px; }
  .services-page .assessment-block { padding: 22px 18px; }
  .services-page .sv-panel .card, .services-page .sv-panel .service-card { padding: 24px; }
  .services-page .sv-panel .card-grid { grid-template-columns: 1fr; }
  .services-page .sv-panel .steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 16px; }
  .services-page #upload-zone { padding: 24px 18px !important; }
  html[lang="en"] .services-page .sv-card-name { font-size: 16px; }
  html[lang="en"] .services-page .sv-card-desc { font-size: 12px; }
}
@media (max-height: 760px) and (min-width: 821px) {
  .services-page .sv-hall-inner { padding-block: 16px; gap: 14px; }
  .sv-breadcrumb { margin-bottom: 10px; }
  .services-page .sv-hall h1 { font-size: 36px; }
  .services-page .sv-hall-grid { gap: 14px; grid-template-rows: repeat(2,minmax(150px,1fr)); }
  .services-page .sv-card-body { padding-top: 20px; padding-bottom: 14px; }
  .sv-card-number { top: 12px; }
}
@media (max-width: 540px) and (max-height: 740px) {
  .services-page .sv-hall-inner { padding-block: 10px; gap: 9px; }
  .sv-breadcrumb { margin-bottom: 7px; }
  .services-page .sv-hall h1 { font-size: 28px; }
  .services-page .sv-hall-grid { gap: 9px; }
  .services-page .sv-card { padding: 9px 12px 25px; }
  .sv-card-art { height: 36px; min-height: 24px; flex-basis: 24px; }
  .services-page .sv-card-go { width: 21px; height: 21px; bottom: 4px; }
}
@media (max-width: 540px) and (max-height: 620px) {
  .services-page .sv-hall-grid { grid-template-rows: repeat(3,minmax(100px,1fr)); }
  .sv-breadcrumb, .services-page .sv-hall-eyebrow { display: none; }
  .sv-card-art { display: none; }
  .services-page .sv-card { justify-content: center; }
}
/* Landscape: shrink decoration before reducing readable text or touch targets. */
@media (max-height: 520px) and (min-width: 541px) {
  .services-page { --header-h: 60px; }
  .services-page .home-header { height: var(--header-h); }
  .services-page .home-nav { top: var(--header-h); max-height: calc(100dvh - var(--header-h)); }
  .services-page .sv-hall-inner { padding-block: 10px; gap: 10px; }
  .sv-breadcrumb, .services-page .sv-hall-eyebrow, .sv-card-number, .services-page .sv-hall-scroll { display: none; }
  .services-page .sv-hall h1 { font-size: 25px; margin-bottom: 2px; }
  .services-page .sv-hall-sub { font-size: 12px; }
  .services-page .sv-hall-grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(78px,1fr)); gap: 9px; }
  .services-page .sv-card { padding: 12px; }
  .services-page .sv-card-body { padding: 0; gap: 3px; }
  .services-page .sv-card-name { font-size: 17px; max-width: 80%; }
  .services-page .sv-card-desc { display: none; }
  .sv-card-art { width: 42px; height: 42px; top: auto; bottom: 10px; right: 10px; opacity: .55; }
  .services-page .sv-card-go { display: none; }
  html[lang="en"] .services-page .sv-card-name { font-size: 16px; }
}
