:root { --sm-panel-height: 0px; }
.seo-body.seo-complete { max-height: none; overflow: visible; mask-image: none; -webkit-mask-image: none; }
.seo-body.seo-complete::after { content: none; }
#problems .problem-grid.carousel-track { grid-auto-columns: calc((100% - 48px) / 3); }
.services-carousel .service-card:nth-child(4n + 1) { background: #e6f0fb; }
.services-carousel .service-card:nth-child(4n + 2) { background: #e6f3e9; }
.services-carousel .service-card:nth-child(4n + 3) { background: #fcf0dd; }
.services-carousel .service-card:nth-child(4n + 4) { background: #eee9f7; }
.services-carousel .service-illustration { width: 100%; height: 180px; object-fit: contain; object-position: left center; }
.work-gallery .work-track { grid-auto-columns: calc((100% - 48px) / 3); }
.work-card { margin: 0; min-width: 0; }
.work-card .work-photo { display: block; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #eef5f1; }
.work-image { display: block; aspect-ratio: 4 / 3; }
.work-image img { width: 100%; height: 100%; object-fit: cover; }
.work-card figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.model-layout + .work-gallery { padding: 48px 0 24px; }
.model-layout + .work-gallery > .container { width: 100%; }
.model-layout + .work-gallery h2 { font-size: clamp(26px, 2.45vw, 40px); }
@media (min-width: 1250px) {
    #problems .problem-grid.carousel-track { grid-auto-columns: calc((100% - 72px) / 4); }
}
@media (min-width: 761px) and (max-width: 1000px) {
    #problems .problem-grid.carousel-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (min-width: 761px) and (max-width: 1249px) {
    .work-gallery .work-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 760px) {
    #problems .problem-grid.carousel-track { grid-auto-columns: calc((100% - 4.8px) / 1.3); }
    #problems .problem-card { padding: 16px; font-size: 17px; }
    .work-gallery .work-track { grid-auto-columns: calc((100% - 3.2px) / 1.2); }
}
html { scroll-padding-top: calc(var(--sm-panel-height) + 180px); }
.header { top: var(--sm-panel-height); }
.hero-copy, .hero-form-wrap, .service-card, .price-row > *, .contact-details, .contacts-grid > * { min-width: 0; }
.hero-photo > img, .compact-photo > img, .team-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.expert-caption p { max-height: none; }
.service-card a { color: inherit; overflow-wrap: anywhere; }
.service-card ul { margin-bottom: 20px; }
.price-row { gap: 16px; }
.price-row > span:first-child { flex: 1 1 auto; }
.price-row > span { overflow-wrap: anywhere; }
.price-row a { color: inherit; }
.problem-card { color: inherit; text-decoration: none; min-width: 0; }
.problem-card > span { min-width: 0; overflow-wrap: anywhere; }
.page-device-photo { width: min(100%, 360px); max-height: 320px; object-fit: contain; margin: 32px auto; }
.data-table { margin-top: 24px; }
.data-row { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.data-row > span { min-width: 0; overflow-wrap: anywhere; }
.seo-body img, .seo-body table { max-width: 100%; }
.seo-body table { width: 100%; table-layout: fixed; }
.seo-body, .faq-item, .team-info, .expert-caption, .under-form { overflow-wrap: anywhere; }
.original-ratings .reviews, .original-ratings .feedback { margin: 0; padding: 0; width: 100%; }
.original-ratings .inner { margin-bottom: 0; }
.original-ratings .advantages-reviews-container { cursor: pointer; }
.original-ratings .tab-pane:not(.act) { display: none; }
.original-ratings .reviews__review img { max-width: 100%; }
.consent { display: block; }
.consent a { text-decoration: underline; }
.footer-bottom a { color: inherit; }
.document-viewer { max-width: calc(100vw - 24px); }
.catalog-section { padding: 16px 0; }
.catalog-section .section-head { margin-bottom: 12px; }
.catalog-section h2 { font-size: clamp(22px, 2vw, 28px); }
.catalog-grid, .catalog-section .service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.catalog-link, .catalog-section .service-card, .catalog-section .service-card:last-child { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); grid-column: auto; font-size: 17px; line-height: 1.4; color: var(--ink); text-decoration: none; }
.catalog-link span, .catalog-section .service-card span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.catalog-link { background: #f3f7f6; }
.catalog-section .service-card > .icon { width: 20px; height: 20px; margin: 0; flex: none; }
.catalog-section .service-card:nth-child(4n+1) { background: #e6f0fb; }
.catalog-section .service-card:nth-child(4n+2) { background: #e6f3e9; }
.catalog-section .service-card:nth-child(4n+3) { background: #fcf0dd; }
.catalog-section .service-card:nth-child(4n) { background: #eee9f7; }
.catalog-pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.catalog-pagination a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: #087e76; text-decoration: none; }
.catalog-section .device-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.catalog-section .device-card { padding: 8px; border-radius: 10px; }
.catalog-section .device-image { height: 42px; margin: 0 0 5px; }
.catalog-section .device-image img { height: 42px; width: 80px; object-fit: contain; }
.catalog-section .device-name { font-size: 16px; line-height: 1.35; gap: 6px; }
#problems .problem-card { display: flex; flex-direction: column; text-align: left; align-items: flex-start; gap: 16px; padding: 24px; }
#problems .problem-image { display: block; width: 100%; height: 112px; overflow: hidden; border-radius: 10px; background: transparent; padding: 0; margin: 0; }
#problems .problem-image img { width: min(100%, 180px); height: 112px; object-fit: contain; object-position: left center; margin: 0; }
#problems .problem-card strong { width: 100%; text-align: left; font-size: 18px; overflow-wrap: anywhere; }
#problems .problem-card > .icon { align-self: flex-end; margin-top: auto; }
.staff-page .team-grid { grid-template-columns: minmax(0, 1fr); }
.staff-page .team-card { max-width: 1000px; grid-template-columns: minmax(140px, 240px) minmax(0, 1fr); }
.staff-biography { margin-top: 16px; overflow-wrap: anywhere; }
#prices .estimate-card { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
#prices .estimate-field { min-width: 0; margin: 0; }
#prices .estimate-field label { display: block; }
#prices .estimate-field .input { display: block; width: 100%; }
#prices .estimate-card .btn { grid-column: auto; }
#prices .estimate-card .consent { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.grecaptcha-badge { visibility: hidden !important; position: fixed !important; right: 0 !important; bottom: 0 !important; margin: 0 !important; max-width: 100vw; }
.recaptcha-disclosure, #prices .estimate-card .recaptcha-disclosure { font-size: 12px; line-height: 1.6; margin: 14px 0 0; color: inherit; opacity: .85; grid-column: 1 / -1; }
.recaptcha-disclosure a { text-decoration: underline; color: inherit; }
.footer { margin-bottom: 0; }
[data-carousel] > .container { position: relative; }
.carousel-controls { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.carousel-controls button { pointer-events: auto; }
.carousel-controls button { width: 46px; height: 46px; border: 1px solid #bed4cc; border-radius: 50%; background: white; color: #173937; font: inherit; font-size: 24px; cursor: pointer; }
.carousel-controls button:disabled { opacity: .35; cursor: default; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 1px; padding: 4px 1px 18px; margin-inline: 56px; scrollbar-width: none; cursor: grab; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; scroll-behavior: auto; }
#problems .problem-grid.carousel-track { grid-template-columns: none; grid-auto-flow: column; }
#problems .problem-card { grid-column: auto; width: auto; }
.header .nav { flex-wrap: wrap; justify-content: flex-start; gap: 14px 24px; }
.header .nav a { white-space: normal; overflow-wrap: anywhere; }
.team-grid .team-card { display: flex; flex-direction: column; height: 100%; }
.team-grid .team-info { display: flex; flex-direction: column; flex: 1; }
.team-grid .team-info .profile-link { margin-top: auto; padding-top: 18px; }
.staff-page .team-grid .team-card { display: grid; height: auto; }
.carousel-track > * { scroll-snap-align: start; min-width: 0; }
.carousel-track:focus-visible, .model-tablist button:focus-visible, .carousel-controls button:focus-visible { outline: 3px solid #087e76; outline-offset: -3px; }
.services-carousel .service-card, .services-carousel .service-card:first-child, .services-carousel .service-card:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; grid-column: auto; padding: 28px; color: #173937; text-decoration: none; font-size: 23px; font-weight: 650; overflow-wrap: anywhere; }
.services-carousel .service-card > .icon:first-child { width: 38px; height: 38px; }
.services-carousel .service-card > .icon:last-child { align-self: flex-end; margin-top: auto; }
.brand-track { grid-auto-columns: calc((100% - 72px) / 4); }
.brand-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; background: white; }
.brand-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }
.brand-card.has-logo img { object-fit: contain; padding: 20px; }
.brand-card strong { font-size: 20px; line-height: 1.45; overflow-wrap: anywhere; }
.brand-card > span { font-size: 15px; color: #087e76; margin-top: auto; }
.price-groups { margin-top: 30px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.price-group-title { margin: 0; padding: 22px 24px; font-size: 23px; background: #dfeee7; color: #173937; }
#prices .price-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, auto); align-items: center; margin: 0; padding: 20px 24px; gap: 24px; background: white; }
#prices .price-row:nth-child(even) { background: #f2f7f4; }
#prices .price-row[data-columns="3"] { grid-template-columns: minmax(0, 1fr) minmax(100px, auto) minmax(110px, auto); }
#prices .price-row.price-columns { background: #173937; color: white; font-size: 16px; }
.price-name { min-width: 0; }
.price-value { text-align: right; font-weight: 750; color: #087e76; font-variant-numeric: tabular-nums; }
.price-columns .price-value { color: inherit; }
.price-value a { color: inherit; }
.steps-section .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.steps-section .step { min-width: 0; display: block; text-align: center; }
.steps-section .step-number { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; font-size: 34.5px; line-height: 1; margin-bottom: 20px; flex: none; }
.steps-section .step h3 { margin: 0 0 12px; max-width: none; font-size: 24px; line-height: 1.35; text-align: center; }
.steps-section .step p { max-width: none; font-size: 18px; line-height: 1.65; text-align: center; }
.model-detail h1 { max-width: 1200px; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.2; overflow-wrap: anywhere; margin: 12px 0 22px; }
.model-detail > .container > .intro { margin-bottom: 36px; }
.model-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); grid-template-areas: "visual summary" "tabs tabs"; gap: 24px 32px; align-items: start; }
.model-visual { grid-area: visual; display: grid; gap: 24px; min-width: 0; }
.model-main, .model-summary { min-width: 0; }
.model-main { display: contents; }
.model-photo { padding: 36px; background: white; border: 1px solid var(--line); border-radius: 18px; margin: 0; }
.model-tabs { grid-area: tabs; min-width: 0; }
.model-photo img { width: 100%; height: 450px; object-fit: contain; }
.model-summary { grid-area: summary; display: grid; gap: 24px; }
.model-expert, .model-mini, .model-payments { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #eef5f1; }
.model-expert { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; }
.model-expert > img { width: 100px; height: 136px; object-fit: cover; object-position: top; border-radius: 12px; }
.model-summary h2 { font-size: 24px; line-height: 1.35; margin: 0 0 16px; }
.model-expert p { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.model-mini { background: #173937; color: white; }
.model-mini .price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-color: #ffffff30; font-size: 15px; }
.model-mini .price-value, .model-mini .text-link { color: #d5ed8a; }
.model-mini .text-link { margin-top: 18px; }
.model-payments > div { display: flex; flex-wrap: wrap; gap: 14px; }
.model-payments { min-width: 0; }
.model-payments h2 { font-size: 24px; line-height: 1.35; margin: 0 0 16px; }
.model-payments img { width: 68px; height: 38px; object-fit: contain; }
.model-tablist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.model-tablist button { min-width: 0; padding: 16px 12px; border: 1px solid var(--line); border-radius: 12px; background: #eef5f1; color: #173937; font: inherit; font-size: 17px; font-weight: 650; cursor: pointer; overflow-wrap: anywhere; }
.model-tablist button[aria-selected="true"] { background: #173937; color: white; }
.model-panel[hidden] { display: none; }
.model-panel > h2 { font-size: 28px; }
.model-tabs #prices { padding: 0; }
.model-tabs #prices > .container { width: 100%; max-width: none; padding: 0; }
.model-tabs #prices .price-layout > div { padding: 24px; }
.model-tabs #prices h2 { font-size: 29px; }
.model-tabs #prices .estimate-card { grid-template-columns: minmax(0, 1fr); }
.model-tabs #prices .estimate-card .btn { width: 100%; }
.model-tabs #prices .price-row { grid-template-columns: minmax(0, 1fr) auto; padding: 18px; gap: 16px; font-size: 17px; }
.model-tabs #prices .price-row[data-columns="3"] { grid-template-columns: minmax(0, 1fr) minmax(100px, auto) minmax(110px, auto); }
.model-specifications { font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.model-specifications ul { padding-left: 24px; }
.model-specifications li { margin: 16px 0; }
.model-specifications img, .model-specifications table { max-width: 100%; }
.model-panel .data-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.model-panel .data-row > span:last-child { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.model-enquiry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 48px; }
.model-enquiry .utp-list { margin: 24px 0; }
.model-enquiry #under-form, .model-enquiry #under-form p { color: var(--muted); }
.model-enquiry .utp-item .icon { color: var(--brand); }
.model-panel { scroll-margin-top: calc(var(--sm-panel-height) + 200px); }
@media (max-width: 1150px) {
    .brand-track { grid-auto-columns: calc((100% - 48px) / 3); }
    .steps-section .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .model-expert { grid-template-columns: minmax(0, 1fr); }
    .model-photo img { height: 350px; }
    #problems .problem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .catalog-grid, .catalog-section .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .catalog-section .device-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .carousel-track, .brand-track { grid-auto-columns: 100%; gap: 16px; margin-inline: 48px; }
    .services-carousel .service-card, .services-carousel .service-card:first-child, .services-carousel .service-card:last-child { padding: 24px; font-size: 21px; }
    .carousel-controls button { width: 44px; height: 44px; }
    #prices .price-row { padding: 18px; gap: 12px; grid-template-columns: minmax(0, 1fr); }
    #prices .price-row.price-columns { display: none; }
    #prices .price-row[data-columns="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #prices .price-row[data-columns="3"] .price-name { grid-column: 1 / -1; }
    #prices .price-row[data-columns="3"] .price-value::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 400; color: #526964; margin-bottom: 5px; }
    #prices .price-value { text-align: left; font-size: 20px; }
    #prices .price-row[data-columns="3"] .price-value { font-size: 18px; }
    .price-group-title { padding: 18px; font-size: 21px; }
    .steps-section .steps { gap: 32px 20px; }
    .steps-section .step-number { width: 84px; height: 84px; font-size: 31.5px; margin-bottom: 16px; }
    .steps-section .step h3 { font-size: 21px; }
    .steps-section .step p { font-size: 17px; }
    .model-layout, .model-enquiry { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .model-layout { grid-template-areas: "photo" "summary" "payments" "tabs"; }
    .model-visual { display: contents; }
    .model-layout .model-payments { grid-area: payments; }
    .model-photo { grid-area: photo; padding: 20px; }
    .model-photo img { height: 300px; }
    .model-expert { grid-template-columns: 100px minmax(0, 1fr); }
    .model-tablist { gap: 6px; }
    .model-tablist button { font-size: 15px; padding: 14px 8px; }
    .model-tabs #prices .price-layout > div { padding: 20px 16px; }
    .model-tabs #prices .price-row { grid-template-columns: minmax(0, 1fr); }
    .model-tabs #prices .price-row[data-columns="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #problems .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .staff-page .team-card { grid-template-columns: minmax(0, 1fr); }
    .staff-page .team-photo { max-height: 360px; }
    .footer-bottom a { display: block; margin-top: 10px; }
    .price-row { flex-wrap: wrap; }
    .price-row > span:first-child { flex-basis: 100%; }
    .contacts-grid { min-width: 0; }
    .catalog-grid, .catalog-section .service-grid, .catalog-section .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-link, .catalog-section .service-card, .catalog-section .service-card:last-child { padding: 10px; font-size: 16px; gap: 8px; }
    .catalog-section .service-card > .icon:first-child { display: none; }
    .catalog-section .section-head { margin-bottom: 10px; }
    #problems .problem-card { padding: 12px; }
    #problems .problem-image { height: 112px; }
    #problems .problem-card strong { font-size: 17px; }
    #prices .estimate-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
    #prices .estimate-card .btn { width: 100%; margin: 0; }
    #prices .estimate-card .consent { grid-column: auto; }
}
@media (max-width: 360px) {
    #prices .price-row[data-columns="3"] .price-value { font-size: 16px; }
}

/* Stage 7: compact portrait and service cards, shared dark consultation forms. */
@media (min-width: 1001px) {
    .hero .hero-grid { grid-template-columns: 1.5fr .6fr .98fr; }
    .hero .expert-portrait { align-self: start; height: 520px; }
    .hero .hero-photo { height: 100%; min-height: 0; }
}
@media (min-width: 1001px) and (max-width: 1250px) {
    .hero .hero-grid { grid-template-columns: 1.3fr .55fr 1fr; }
    .hero .expert-portrait { height: 560px; }
}
.hero .hero-photo > img { object-fit: cover; object-position: 50% 15%; }
.services-carousel .service-track { grid-auto-columns: calc((100% - 48px) / 3); }
.services-carousel .service-card, .services-carousel .service-card:first-child, .services-carousel .service-card:last-child { padding: 22px; gap: 14px; align-items: center; font-size: 21px; line-height: 1.35; }
.services-carousel .service-illustration { width: 100%; height: 132px; object-fit: contain; object-position: center; }
.services-carousel .service-card > span { align-self: stretch; text-align: center; }
.services-carousel .service-card > .icon:last-child { width: 24px; height: 24px; margin: auto 0 0; }
@media (min-width: 1250px) {
    .services-carousel .service-track { grid-auto-columns: calc((100% - 72px) / 4); }
}
@media (min-width: 761px) and (max-width: 1000px) {
    .services-carousel .service-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
:is(#prices .estimate-card, .final-form) { background: linear-gradient(110deg, #102a2b, #173937); color: #edf6f3; border-color: #173937; }
:is(#prices .estimate-card, .final-form) h3 { color: #fff; }
:is(#prices .estimate-card, .final-form) :is(p, label, .field-label, .consent, .recaptcha-disclosure) { color: #edf6f3; opacity: 1; }
:is(#prices .estimate-card, .final-form) a { color: #edf6f3; text-decoration: underline; text-underline-offset: 2px; }
:is(#prices .estimate-card, .final-form) .input { background: #fffef6; color: #173937; border-color: #c1d4ce; }
:is(#prices .estimate-card, .final-form) .input::placeholder { color: #526460; opacity: 1; }
:is(#prices .estimate-card, .final-form) .btn { background: #d4ed8a; color: #173937; }
:is(#prices .estimate-card, .final-form) .btn:hover { background: #e1f5ad; color: #173937; }
:is(#prices .estimate-card, .final-form) :is(a, button, input):focus-visible { outline: 3px solid #d4ed8a; outline-offset: 3px; }
.steps-section .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; max-height: none; }
.steps-section .step { display: block; overflow: visible; }
.seo-body { --seo-collapsed-height: 240px; }
.seo-body:not(.seo-complete):not(.expanded) { max-height: var(--seo-collapsed-height); }
.seo-toggle[hidden] { display: none; }

/* The root stays a link; its adjacent button controls the same-source descendants. */
.header .nav { position: relative; }
.nav-item { display: flex; align-items: center; min-width: 0; }
.submenu-toggle { flex: none; width: 32px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: #173937; cursor: pointer; font-size: 23px; }
.submenu-toggle[aria-expanded="true"] { background: #e6f3e9; }
.nav-submenu[hidden] { display: none; }
.nav-submenu { position: absolute; top: 100%; left: 0; width: min(920px, calc(100vw - 40px)); max-height: var(--sm-submenu-height, 60dvh); overflow-y: auto; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: 0 14px 30px #103b2626; z-index: 2; }
.nav-submenu ul { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 24px; }
.nav-submenu li { break-inside: avoid; }
.header .nav-submenu a { display: block; padding: 10px 6px; color: #173937; font-size: 16px; line-height: 1.4; }
.header .nav-submenu a:hover { background: #eef5f1; }
.header .mobile-menu.open { display: flex; flex-direction: column; max-height: var(--sm-submenu-height, 65dvh); }
.mobile-menu .nav-item { display: grid; grid-template-columns: minmax(0, 1fr) 44px; }
.mobile-menu .submenu-toggle { width: 44px; height: 44px; }
.header .mobile-menu .nav-submenu { position: static; grid-column: 1 / -1; width: 100%; max-height: none; overflow: visible; padding: 0 0 12px 14px; border: 0; border-radius: 0; box-shadow: none; }
.mobile-menu .nav-submenu ul { columns: 1; }
.header .mobile-menu .nav-submenu a { padding: 10px 0; font-size: 16px; }
@media (max-width: 1000px) {
    .steps-section .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .hero .expert-portrait { width: 78%; height: 210px; justify-self: center; }
    .hero .hero-photo { height: 210px; min-height: 0; }
    .hero .expert-caption { padding: 10px; left: 8px; right: 8px; bottom: 8px; }
    .hero .expert-caption .pill { margin-bottom: 5px; }
    .hero .expert-caption strong { font-size: 18px; }
    .hero .expert-caption p { display: none; }
    .hero .expert-caption a { margin-top: 5px; }
    .services-carousel .service-track { grid-auto-columns: 100%; }
    .services-carousel .service-illustration { height: 124px; }
    .services-carousel .service-card, .services-carousel .service-card:first-child, .services-carousel .service-card:last-child { padding: 18px; font-size: 19px; }
    .steps-section .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
    .steps-section .step h3 { font-size: 19px; overflow-wrap: anywhere; }
    .steps-section .step p { font-size: 16px; }
    .seo-body { --seo-collapsed-height: 310px; }
}
.hero .expert-caption p { font-size: 12px; line-height: 1.5; }
.hero .expert-caption strong { font-size: 22px; }
@media (max-width: 760px) {
    .hero .expert-portrait { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
    .hero .expert-caption { position: static; display: flex; flex-direction: column; justify-content: center; margin: 0; border: 0; border-radius: 0; padding: 8px; min-width: 0; }
    .hero .expert-caption strong { font-size: 17px; }
    .hero .expert-caption .pill { padding: 4px; font-size: 9px; align-self: start; }
}

/* Stage 8: paired hero, full-width staff cards and plain section navigation. */
.hero .hero-grid { grid-template-columns: minmax(0, 1.38fr) minmax(0, 1.7fr); align-items: start; }
.hero-right { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, .98fr); gap: 0 35px; min-width: 0; align-items: stretch; }
.hero .hero-right .expert-portrait { width: auto; height: auto; min-height: 0; align-self: stretch; grid-column: 1; grid-row: 1; }
.hero .hero-right .hero-photo { height: 100%; min-height: 0; }
.hero .hero-right .hero-photo > img { position: absolute; inset: 0; object-fit: cover; object-position: 50% 15%; }
.hero-right .hero-form-wrap { grid-column: 2; grid-row: 1; align-self: start; }
.hero-right #under-form { grid-column: 1 / -1; grid-row: 2; padding: 23px 0 0; }
.hero .compact-expert { display: none; }
.team-grid .team-info .profile-link { align-self: flex-end; justify-content: flex-end; margin-top: auto; padding: 18px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; width: auto; }
.team-grid .team-info .profile-link:hover { text-decoration: underline; }
.staff-page .team-card { max-width: none; width: 100%; }
.header .nav { justify-content: space-between; column-gap: 16px; }
.nav-item > .nav-root { padding: 10px 0; }
.nav .nav-item:focus-within:not(.submenu-dismissed) > .nav-submenu:not([hidden]) { display: block; }
.nav .submenu-section-link { display: none; }
.nav .nav-item[data-touch-menu] .submenu-section-link { display: list-item; }
.mobile-menu .nav-item { display: block; }
.mobile-menu .nav-root { display: block; width: 100%; }
.mobile-menu .submenu-section-link { display: list-item; font-weight: 650; }
@media (min-width: 1024px) and (max-width: 1250px) {
    .hero .hero-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1.67fr); }
    .hero-right { grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); column-gap: 20px; }
}
@media (min-width: 1024px) and (max-width: 1600px) {
    .hero-right { column-gap: 29px; }
}
@media (min-width: 1024px) and (max-width: 1250px) {
    .hero-right { column-gap: 20px; }
}
@media (max-width: 1023px) {
    .hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-right { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .hero-right .hero-form-wrap { grid-column: 1; grid-row: 1; }
    .hero .hero-right .expert-portrait { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-column: 1; grid-row: 2; width: min(100%, 400px); height: 240px; justify-self: center; }
    .hero .hero-right .hero-photo { height: 240px; }
    .hero .hero-right .expert-caption { position: static; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 12px; border: 0; border-radius: 0; min-width: 0; }
    .hero-right #under-form { grid-column: 1; grid-row: 3; padding: 0; }
}
@media (max-width: 760px) {
    .hero .hero-right .expert-portrait { width: 78%; height: 210px; }
    .hero .hero-right .hero-photo { height: 210px; }
}
/* Keep the hover target continuous across the navigation's vertical padding. */
.nav > .nav-item { align-self: stretch; margin-block: -17px; padding-block: 17px; }

/* One controller and one row for every former expandable link list. */
.link-track { grid-template-columns: none; grid-template-rows: 1fr; grid-auto-flow: column; grid-auto-columns: clamp(210px, 24%, 300px); gap: 12px; padding-bottom: 4px; }
.link-track .catalog-link { min-height: 56px; padding: 12px 16px; overflow-wrap: anywhere; }
.geo-section { padding: 22px 0; }
.geo-section h2 { margin: 0 0 12px; }
.geo-tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.geo-tablist button, .geo-district-tabs button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f3f7f6; color: var(--ink); font: inherit; font-size: 14px; line-height: 20px; cursor: pointer; }
.geo-tablist button[aria-selected="true"], .geo-district-tabs button[aria-selected="true"] { background: #173937; color: white; }
.geo-carousel, .geo-district-nav { position: relative; }
.geo-carousel .section-head, .geo-district-nav .section-head { margin: 0; }
.geo-track { grid-template-columns: none; grid-template-rows: repeat(3, 1fr); grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 6px 12px; padding-block: 4px; }
.geo-track .catalog-link { min-height: 40px; padding: 6px 10px; font-size: 14px; line-height: 18px; }
.geo-district-tabs { grid-auto-columns: max-content; gap: 8px; padding-block: 4px; }
.geo-district-tabs button { max-width: 220px; }
.geo-parent { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 8px 56px; font-size: 14px; line-height: 20px; }
.geo-parent a { color: #087e76; }
.geo-parent span { font-weight: 400; }
.geo-section button:focus-visible { outline: 3px solid #087e76; outline-offset: -3px; }
@media (max-width: 767px) {
    .link-track { grid-auto-columns: 100%; }
    .geo-section h2 { font-size: 26px; }
    .geo-tablist { gap: 6px; }
    .geo-tablist button { padding: 6px 8px; font-size: 12px; }
    .geo-track { grid-auto-columns: 100%; }
    .geo-parent { margin-inline: 48px; }
}
@media (max-width: 767px) {
    .geo-tablist { display: grid; grid-template-columns: 1.6fr .8fr .8fr; }
    .geo-tablist button { font-size: 12px; line-height: 16px; padding: 6px; }
    .geo-track { grid-template-rows: 1fr; }
    .geo-parent { margin-inline: 0; }
}

/* The shared carousel also displays every active expert in one row. */
#experts[data-carousel] .team-grid.carousel-track {
    grid-template-columns: none;
    grid-template-rows: auto;
    grid-auto-columns: calc((100% - 24px) / 2);
    gap: 24px;
}
#experts[data-carousel] .team-photo { width: 100%; height: auto; min-height: 0; aspect-ratio: 1; flex: none; }
#experts[data-carousel] .team-info { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1250px) {
    #experts[data-carousel] .team-grid.carousel-track { grid-auto-columns: calc((100% - 48px) / 3); }
}
@media (max-width: 760px) {
    #experts[data-carousel] .team-grid.carousel-track { grid-auto-columns: calc((100% - 3.2px) / 1.2); gap: 16px; }
}
