/* Layout shell only. Design tokens live in tokens/*.css; reusable component
   classes (buttons, cards, glass surfaces, badges, etc.) live in components.css
   and are shared across all routes — this file composes them into page layout.
   The global reset and the fixed header/nav shell moved to critical.css
   (inlined in <head> — see functions.php tonsa_theme_output_critical_css)
   because they paint above the fold on every route; not duplicated here. */

.tonsa-template { min-height: 100dvh; position: relative; z-index: 1; }
/* .tonsa-route / .tonsa-route-frame / .tonsa-route-hero(+variants)/
   .tonsa-route-copy / .tonsa-route h1 / .tonsa-route-lede moved to
   critical.css (CLS fix — see banner comment there); not duplicated here. */
.tonsa-diagnostic-hero { position: relative; min-height: 100dvh; }

/* Generic content page (legal pages, future editorial pages) — templates/page.html.
   Reuses tonsa-prose for readable body typography; unlike the hard-coded marketing
   routes, this content is real, plain Gutenberg blocks editable in the block editor. */
/* position:relative + z-index:1 here (not on a wrapping .tonsa-template, whose
   wp:group tagName="main" wrapper does not actually render in this WP setup —
   confirmed empirically: its className never appears in the rendered HTML)
   places these directly in the same paint layer as the fixed .tonsa-bg-scene,
   which — being earlier in DOM order (output via wp_body_open) — then paints
   correctly *behind* rather than over this content. Same mechanism .tonsa-route
   relies on via its own position:relative. */
.tonsa-prose__title { position: relative; z-index: 1; width: min(760px, calc(100% - 40px)); margin: clamp(120px, 15vw, 160px) auto 1.75rem; color: var(--color-ink); font-size: var(--text-display-md-size); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.tonsa-prose { position: relative; z-index: 1; width: min(760px, calc(100% - 40px)); margin: auto; padding-bottom: clamp(56px, 8vw, 96px); color: var(--color-ink-muted); font-size: 1rem; line-height: 1.7; }
.tonsa-prose h2 { margin: 2.25rem 0 .85rem; color: var(--color-ink); font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.tonsa-prose h2:first-child { margin-top: 0; }
.tonsa-prose p { margin: 0 0 1.1rem; }
.tonsa-prose ul, .tonsa-prose ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.tonsa-prose li { margin-bottom: .4rem; }
.tonsa-prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: .2em; }
.tonsa-prose strong { color: var(--color-ink); }

/* Global ambient background — one fixed scroll-driven scene shared by every route
   (grayscale converging spheres + aurora glow + noise + scrim), matching the
   mockup's page-wide .scene3d/.aur system exactly rather than a per-route effect.
   Markup is output once via wp_body_open() in functions.php — a true body-level
   sibling, deliberately outside the header template part's own z-index:20
   stacking context — and painted behind .tonsa-template (z-index 1). */
.tonsa-bg-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.tonsa-bg-scene__gradient { position: absolute; inset: 0; background:
  radial-gradient(1400px 900px at 50% 22%, rgb(255 255 255 / 22%), transparent 60%),
  radial-gradient(900px 700px at 82% 12%, rgb(255 255 255 / 16%), transparent 58%),
  radial-gradient(1300px 1000px at 70% 35%, rgb(255 255 255 / 9%), transparent 62%),
  radial-gradient(1200px 1000px at 85% 105%, rgb(255 255 255 / 10%), transparent 65%),
  radial-gradient(700px 600px at 8% 100%, rgb(0 0 0 / 90%), transparent 60%),
  linear-gradient(125deg, #2b2b2b 0%, #161616 45%, #0a0a0a 100%); }
.tonsa-bg-scene__noise { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tonsa-bg-scene__scrim { position: absolute; inset: 0; background:
  radial-gradient(120% 82% at 50% 34%, transparent 55%, rgb(7 9 9 / 40%) 100%),
  linear-gradient(180deg, rgb(7 9 9 / 30%) 0%, transparent 22%, transparent 68%, rgb(7 9 9 / 85%) 100%); }
.tonsa-bg-scene__dim { position: absolute; inset: 0; background: #070909; opacity: .16; }
.tonsa-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; perspective: 1600px; overflow: hidden; }
.tonsa-scene-inner { position: relative; width: min(75vw, 900px); aspect-ratio: 1; transform-style: preserve-3d; animation: tonsa-assemble linear both; animation-timeline: scroll(root block); }
@keyframes tonsa-assemble { 0% { transform: rotateX(-30deg) rotateY(-60deg) rotateZ(10deg) scale(.6); } 40% { transform: rotateX(10deg) rotateY(120deg) rotateZ(-4deg) scale(.95); } 100% { transform: rotateX(-8deg) rotateY(360deg) rotateZ(-4deg) scale(1); } }
.tonsa-scene-layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tonsa-scene-layer svg { width: 100%; height: 100%; }
.tonsa-scene-layer--back { filter: blur(2px); animation: tonsa-converge-back linear both; animation-timeline: scroll(root block); }
@keyframes tonsa-converge-back { 0% { transform: translate3d(-155%, -100%, -1400px) scale(2.2); opacity: .22; } 55% { opacity: .45; } 100% { transform: translate3d(0, 0, -260px) scale(1.25); opacity: .55; } }
.tonsa-scene-layer--mid { animation: tonsa-converge-mid linear both; animation-timeline: scroll(root block); }
@keyframes tonsa-converge-mid { 0% { transform: translate3d(144%, -89%, -1200px) scale(.3); opacity: .15; } 100% { transform: translate3d(0, 0, -60px) scale(1.05); opacity: .8; } }
.tonsa-scene-layer--front { animation: tonsa-converge-front linear both; animation-timeline: scroll(root block); }
@keyframes tonsa-converge-front { 0% { transform: translate3d(-100%, 122%, 1400px) scale(2.6); opacity: .1; } 100% { transform: translate3d(0, 0, 160px) scale(.7); opacity: .95; } }
.tonsa-scene-layer--spark1 { animation: tonsa-converge-spark1 linear both; animation-timeline: scroll(root block); }
@keyframes tonsa-converge-spark1 { 0% { transform: translate3d(133%, 78%, 500px) scale(4); opacity: 0; } 100% { transform: translate3d(21%, -19%, 60px) scale(.32); opacity: .9; } }
.tonsa-scene-layer--spark2 { animation: tonsa-converge-spark2 linear both; animation-timeline: scroll(root block); }
@keyframes tonsa-converge-spark2 { 0% { transform: translate3d(-133%, -83%, 600px) scale(4); opacity: 0; } 100% { transform: translate3d(-23%, 21%, -30px) scale(.28); opacity: .85; } }
@media (prefers-reduced-motion: reduce) {
  .tonsa-button, .tonsa-desktop-nav a, .tonsa-mobile-menu, .tonsa-modal__close { transition-duration: 0s !important; }
  .tonsa-scene-inner, .tonsa-scene-layer { animation: none !important; }
  .tonsa-scene-layer--back { transform: translate3d(0, 0, -260px) scale(1.25); opacity: .55; }
  .tonsa-scene-layer--mid { transform: translate3d(0, 0, -60px) scale(1.05); opacity: .8; }
  .tonsa-scene-layer--front { transform: translate3d(0, 0, 160px) scale(.7); opacity: .95; }
  .tonsa-scene-layer--spark1 { transform: translate3d(21%, -19%, 60px) scale(.32); opacity: .9; }
  .tonsa-scene-layer--spark2 { transform: translate3d(-23%, 21%, -30px) scale(.28); opacity: .85; }
}

/* Sailboat Background — Portfolio routes only (tonsa_case archive/single), see
   functions.php tonsa_theme_output_sailboat_background(). Ported 1:1 from
   theme-claude_design/Sailboat Background.dc.html's inline styles; the WebGL
   canvas itself is injected into .tonsa-sailboat-bg__mount by
   assets/js/sailboat-background.js. Falls back to a plain dark stage + the
   static vignette/scrim/grain layers below if Three.js fails to load. */
.tonsa-sailboat-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #0b0d0e; }
.tonsa-sailboat-bg__stage { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0b0d0e; }
.tonsa-sailboat-bg__sky { position: absolute; inset: 0; background: linear-gradient(to bottom, #0a0c0d 0%, #14171a 20%, #4d5255 40%, #b9bec1 50%, #b9bec1 100%); }
.tonsa-sailboat-bg__mount { position: absolute; inset: 0; }
.tonsa-sailboat-bg__mount canvas { display: block; width: 100%; height: 100%; }
.tonsa-sailboat-bg__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 44%, rgba(0,0,0,0) 38%, rgba(6,8,9,.5) 100%); }
.tonsa-sailboat-bg__scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,13,17,.5) 0%, rgba(8,13,17,.5) 100%); }
.tonsa-sailboat-bg__grain { position: absolute; inset: 0; mix-blend-mode: overlay; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Source plain-gradient/noise ownership: portfolio archive/detail and article
   detail intentionally have no Sailboat layer (PP-13-01 remains source-exact). */
.tonsa-plain-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--color-canvas); }
.tonsa-plain-bg__gradient { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-ink-tertiary) 42%, var(--color-canvas)) 0%, var(--color-canvas) 62%); }
.tonsa-plain-bg__noise { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.tonsa-diagnostic-hero { display: grid; align-items: center; padding: 118px 0 48px; }
.tonsa-diagnostic-hero__grid { display: grid; grid-template-columns: 1.12fr minmax(300px, .68fr); gap: clamp(28px, 8vw, 144px); align-items: end; }
.tonsa-diagnostic-state { width: min(var(--content-max), calc(100% - 40px)); margin: 0 auto clamp(4rem, 8vw, 7rem); padding: 1rem 1.15rem; border: 1px solid rgb(172 255 98 / 25%); border-radius: var(--radius-lg); background: rgb(172 255 98 / 7%); color: var(--color-ink-muted); }
.tonsa-diagnostic-state p { margin: 0; }

.tonsa-section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--glass-border); }
.tonsa-route--audit #cta .tonsa-cta-banner p { font-size: var(--text-body-lg-size); }

/* Stage 15 Batch A R3/R4: the pinned Home/Audit bytes use `border-top` only
   in the footer — never between content sections — and most sections share
   `.tonsa-section`'s own clamp(48px,7vw,88px) vertical rhythm exactly, but a
   handful of sections carry their own distinct clamp() value in source. This
   is a route-scoped correction layer, not a change to `.tonsa-section`'s own
   shared default: Portfolio/Articles reuse that default as before and are
   unaffected. */
.tonsa-route--home .tonsa-section,
.tonsa-route--audit .tonsa-section {
  border-top: none;
}
@media (max-width: 767px) {
  /* Restores the shared clamp() rhythm at narrow widths before the more
     specific per-section overrides below (equal specificity, later wins) —
     must stay ABOVE them so it never clobbers a section's own value. */
  .tonsa-route--home .tonsa-section,
  .tonsa-route--audit .tonsa-section {
    padding: clamp(48px, 7vw, 88px) 0;
  }
}
.tonsa-route--home .tonsa-section--core-job {
  /* canon Лендинг TONSA.dc.html line 198: CORE JOB ("Под ключ") */
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.tonsa-route--home .tonsa-section--mechanism-bleed,
.tonsa-route--audit .tonsa-section--mechanism-bleed {
  /* canon: home MECHANISM line 269, audit METHOD line 250 */
  padding-bottom: clamp(24px, 4vw, 48px);
}
.tonsa-route--home .tonsa-section--compare {
  /* canon: COMPETITORS + CTA, line 383 */
  padding-bottom: clamp(16px, 2vw, 24px);
}
.tonsa-route--home .tonsa-home-portfolio {
  /* canon: PORTFOLIO PREVIEW, line 424 */
  padding-bottom: clamp(64px, 9vw, 104px);
}
.tonsa-route--audit #cta {
  /* canon: audit FINAL CTA, line 264 */
  padding-bottom: clamp(64px, 9vw, 112px);
}
/* No max-width here by default — a single-column section head should read
   at the full section width (canon relies on text-wrap:balance alone for
   line breaks in these sections). .tonsa-sticky-split narrows it back down
   for the sticky-left-column pattern below; .tonsa-split's own grid column
   width narrows it naturally without needing an extra cap. */
.tonsa-section__head h2 { margin: 0; color: var(--color-ink); font-size: var(--text-display-md-size); font-weight: 600; line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }
.tonsa-section__head p { max-width: 44rem; margin: 1rem 0 0; color: var(--color-ink-muted); font-size: var(--text-body-lg-size); letter-spacing: -.01em; line-height: 1.6; }

/* Sticky-split layout — reused by "Процесс" and "Что входит в работу": a left
   column that stays sticky while a taller right column (stat cards / card
   stack) scrolls past it. Canon uses this same pattern in both sections
   (PROCESS and VALUE in Лендинг TONSA.dc.html); "Под ключ" deliberately does
   NOT use it (canon's CORE JOB section is a plain, non-sticky two-column grid). */
.tonsa-sticky-split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.tonsa-sticky-split .tonsa-section__head { position: sticky; top: 130px; max-width: 440px; }
.tonsa-route--home .tonsa-sticky-split .tonsa-section__head:has(.tonsa-home-work-heading) { max-width: none; }
.tonsa-section__head .tonsa-home-work-heading { font-size: var(--text-display-lg-size); }

/* Plain (non-sticky) two-column split — "Под ключ" (canon's CORE JOB): eyebrow
   sits full-width above the grid rather than inside the left column. */
.tonsa-split { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; margin-top: 1.1rem; }
.tonsa-split .tonsa-checklist-card { margin-top: 0; }

/* Leader panel — owner profile ("Как работаем" / Дмитрий Воробьёв on home).
   Photo pins absolute over the left edge of a fixed-height glass panel; the
   body column carries a left margin equal to the photo's own clamp() width
   so it never overlaps (canon Лендинг TONSA.dc.html lines 339-364). */
.tonsa-leader-panel { position: relative; overflow: hidden; margin-top: 24px; min-height: clamp(400px, 44vw, 480px); height: auto; display: flex; align-items: flex-start; border-radius: var(--radius-glass-panel); background: var(--glass-surface-2); border: 1px solid var(--glass-border-strong); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--shadow-glass); }
.tonsa-leader-panel__photo { position: absolute; left: 0; bottom: 0; height: 100%; width: clamp(220px, 30%, 340px); object-fit: cover; object-position: 50% 0%; pointer-events: none; }
.tonsa-leader-panel__body { position: relative; box-sizing: border-box; min-width: 0; min-height: clamp(400px, 44vw, 480px); margin-left: clamp(220px, 30%, 340px); flex: 1; padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 16px; align-items: stretch; justify-content: flex-start; }
.tonsa-leader-panel__cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: stretch; }
.tonsa-leader-panel__card { border-radius: var(--radius-glass-card); padding: clamp(18px, 2.2vw, 24px); }
.tonsa-leader-panel__card h3 { margin: 0; color: var(--color-ink); font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.tonsa-leader-panel__card p { margin: 10px 0 0; color: var(--color-ink); font-size: 16px; line-height: 1.5; }
.tonsa-leader-panel__bio { margin-top: auto; }
.tonsa-leader-panel__bio h2 { margin: 0; color: var(--color-ink); font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.tonsa-leader-panel__role { margin-top: 6px; color: var(--color-primary); font-size: 14px; font-weight: 500; line-height: 1.4; }
.tonsa-leader-panel__bio p { max-width: 560px; margin: 12px 0 0; color: var(--color-ink-muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 700px) {
  .tonsa-leader-panel { min-height: auto !important; display: grid !important; grid-template-columns: clamp(112px, 34vw, 150px) 1fr !important; grid-template-areas: "cards cards" "photo bio" !important; column-gap: 14px !important; row-gap: 14px !important; padding: 18px !important; }
  .tonsa-leader-panel__body { display: contents !important; }
  .tonsa-leader-panel__cards { grid-area: cards !important; grid-template-columns: 1fr !important; }
  .tonsa-leader-panel__photo { grid-area: photo !important; position: static !important; left: auto !important; bottom: auto !important; top: auto !important; width: 100% !important; height: auto !important; aspect-ratio: 3 / 4 !important; align-self: end !important; justify-self: start !important; margin: 0 0 -18px !important; }
  .tonsa-leader-panel__bio { grid-area: bio !important; margin: 0 !important; align-self: end !important; }
  .tonsa-leader-panel__bio h2 { font-size: 19px !important; }
  .tonsa-leader-panel__bio > .tonsa-leader-panel__role { font-size: 13px !important; }
  .tonsa-leader-panel__bio p { font-size: 14px !important; line-height: 1.5 !important; }
}

/* Home "Портфолио" preview — reuses the shared .port-card/.port-arrow/.port-dot
   carousel from portfolio.css (see functions.php enqueue) rather than a
   one-off variant; only the section head (title + "Все проекты" link) is
   home-specific (canon lines 424-434). */
.tonsa-home-portfolio__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.tonsa-home-portfolio__head h2 { margin: 16px 0 0; color: var(--color-ink); font-size: clamp(24px, 3.4vw, 36px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.tonsa-home-portfolio__all { color: var(--color-ink-muted); font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none; transition: color var(--duration-standard) var(--ease-standard); }
.tonsa-home-portfolio__all:hover, .tonsa-home-portfolio__all:focus-visible { color: var(--color-ink); }

.tonsa-text-link { color: var(--color-primary); font-weight: 680; text-decoration: none; }
.tonsa-text-link:hover { text-decoration: underline; text-underline-offset: .3em; }

footer.wp-block-template-part { position: relative; z-index: 1; }
.tonsa-site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px 40px; width: min(1200px, calc(100% - 40px)); margin: auto; padding: 44px 0 56px; border-top: 1px solid var(--glass-border); color: var(--color-ink-muted); font-size: 14px; }
.tonsa-site-footer__brand { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tonsa-site-footer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.tonsa-site-footer nav { display: flex; gap: 1.25rem; }
.tonsa-site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-muted); text-decoration: none; }
.tonsa-site-footer nav a:hover, .tonsa-site-footer nav a:focus-visible { color: var(--color-ink); }
.tonsa-site-footer .tonsa-button { margin-top: 0; min-height: 44px; padding-inline: var(--tonsa-component-button-footer-padding-inline); font-size: var(--text-button-size); }
.tonsa-site-footer__meta { display: flex; flex: 0 0 100%; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; margin-top: 8px; padding-top: 22px; color: var(--color-ink-tertiary); font-size: var(--text-caption-size); line-height: 1.55; }
.tonsa-site-footer__meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tonsa-site-footer__meta a:hover, .tonsa-site-footer__meta a:focus-visible { color: var(--color-ink); }
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; }
/* .tonsa-field (modal text inputs) already has its own canon-matched focus
   treatment (border-color + background change, see components.css) — the
   generic offset outline above would stack on top of it as a visible double
   ring, which it does not have in the mockup. */
.tonsa-field:focus-visible { outline: none; }

@media (max-width: 767px) {
  header.wp-block-template-part { padding: 10px 0; }
  .tonsa-site-header { grid-template-columns: 1fr auto; min-height: 62px; margin: 0 12px; width: auto; padding: 9px 9px 9px 20px; }
  .tonsa-desktop-nav { display: none; }
  .tonsa-header-actions .tonsa-button--nav { min-height: 42px; margin-top: 0; padding: 0 8px 0 16px; }
  .tonsa-mobile-nav { display: inline-flex; }
  .tonsa-diagnostic-hero { min-height: 100dvh; }
  .tonsa-diagnostic-hero__grid { grid-template-columns: 1fr; }
  /* .tonsa-route-hero / .tonsa-route h1 / .tonsa-route--home,--audit h1 /
     .tonsa-route--audit .tonsa-route-copy 767px overrides moved to
     critical.css alongside their base rules — CLS fix, not duplicated here. */
  /* The pinned Home export lets Process cards scroll beneath the sticky lede.
     The owner explicitly approved correcting that mobile-only source defect. */
  .tonsa-route--home .tonsa-sticky-split .tonsa-section__head { position: static; }
  .tonsa-section__head .tonsa-home-work-heading { font-size: var(--text-display-md-size); }
  body:not(:has(.tonsa-diagnostic-app)) header.wp-block-template-part { inset: auto 0 0; }
  .tonsa-diagnostic-hero { align-items: end; padding: 102px 0 28px; }
  .tonsa-site-footer { align-items: flex-start; flex-direction: column; }
  .tonsa-section { padding: 3.6rem 0; }
  .tonsa-recognize-cta { flex-direction: column; align-items: flex-start; width: 100%; }
}

@media (min-width: 768px) {
  /* The Audit positioning deck is a three-card static desktop composition;
     the native scroll rail and its navigation remain the mobile interaction
     pattern. */
  .tonsa-route--audit .tonsa-portfolio-carousel .port-scroller { overflow: visible; mask-image: none; }
  .tonsa-route--audit .tonsa-card-grid--scroller { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tonsa-route--audit .tonsa-card-grid--scroller .tonsa-card { flex: none; }
  .tonsa-route--audit .tonsa-portfolio-case__gallery-nav { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .tonsa-site-header { background: var(--surface-container-low); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
