:root { --ink: #0b0f14; --surface: #10161f; --surface-strong: #151d28; --void: #080c10; --line: #1b222c; --slate: #253346; --text: #f5f3ef; --muted: #9ea7b3; --copy: #b8c0cb; --gold-text: #d4af37; --gold-fill: #d4af37; --gold-hover: #e6ca85; --accent-text: #e6ca85; --on-gold: #080b10; --input: #0b1118; --input-line: #39424d; --placeholder: #929ca9; --floating: rgba(17,24,33,.97); --floating-hover: #202a35; }
html[data-theme="light"] { --ink: #f4eee3; --surface: #e9e0cf; --surface-strong: #f3ecdc; --void: #e9e0cf; --line: #d6cdbe; --slate: #bfb29b; --text: #23211c; --muted: #635e52; --copy: #635e52; --gold-text: #765c26; --gold-fill: #b08d3c; --gold-hover: #c9aa66; --accent-text: #765c26; --on-gold: #23211c; --input: #fcf8f0; --input-line: #bfb29b; --placeholder: #706a5d; --floating: rgba(243,236,220,.97); --floating-hover: #e9e0cf; }
/* Original compiled design is in index-DkW7BLX3.css. These are editable enhancements. */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ink); }
section[id], [data-tabpanel] { scroll-margin-top: 0; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-hover); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); background: var(--gold-fill); color: var(--on-gold); padding: 12px 18px; border-radius: 6px; }
.skip-link:focus { transform: none; }
[data-menu-toggle] { display: none; }
.js [data-menu-toggle] { display: flex; }
.js [data-mobile-menu]:not(.is-open) { display: none; }
[data-mobile-menu] { max-height: calc(100dvh - var(--header-height,72px)); overflow-y: auto; }
html:not(.js) [data-testid="landing-navbar"] { position: relative; }
html:not(.js) [data-testid="hero-section"] { padding-top: 0; }
.js [data-tab][aria-selected="true"] { border-color: var(--gold-fill); background-color: var(--surface-strong); box-shadow: 0 0 36px rgba(212,175,55,.18); }
.js [data-tab][aria-selected="true"] span:first-child { color: var(--gold-text); }
.js [data-tab][aria-selected="true"] span:last-child { color: var(--accent-text); }
[data-progress] { width: 0; transition: width .6s cubic-bezier(.22,1,.36,1); }
.faq-summary { list-style: none; }
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::marker { content: ''; }
[data-faq][open] > summary > span:nth-child(2) { color: var(--accent-text); }
[data-faq][open] > summary > svg { transform: rotate(45deg); }
[data-faq] .faq-answer { padding-bottom: 2rem; }
[data-testid="hero-section"] > [data-motion]:last-child > span[data-motion] { animation: scroll-hint 2.4s ease-in-out infinite; }
@keyframes scroll-hint { 0%,100% { transform: scaleY(0); opacity: 0; } 40%,65% { transform: scaleY(1); opacity: 1; } }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; color: var(--text); font-family: 'Manrope Variable', sans-serif; }
.error-page main { max-width: 42rem; text-align: center; }
.error-page p { color: var(--gold-text); font-size: 1.25rem; }
.error-page h1 { font-family: 'Playfair Display Variable', serif; font-size: clamp(2rem,5vw,3.5rem); margin: 1rem 0 2rem; }
.error-page a { color: var(--accent-text); text-decoration: underline; }
@media (min-width: 64rem) { .js [data-menu-toggle], [data-mobile-menu] { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-parallax] { translate: none !important; }
}

/* Service pages share the landing's palette, typography and contact form. */
.service-page { max-width: 1200px; margin: 0 auto; padding: 116px 24px 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .8125rem; line-height: 1.65; color: var(--muted); }
.breadcrumbs a { color: var(--accent-text); text-underline-offset: 4px; }
.breadcrumbs a:hover { text-decoration: underline; }
.service-intro { max-width: 940px; padding: clamp(2.5rem,6vw,5rem) 0 3.5rem; }
.service-intro h1 { margin-top: 1.25rem; font-family: 'Playfair Display Variable',serif; font-size: clamp(2.35rem,5.2vw,4.6rem); line-height: 1.15; overflow-wrap: break-word; }
.service-lead { max-width: 780px; margin-top: 1.8rem; color: var(--copy); font-size: 1.0625rem; line-height: 1.85; }
.service-primary { display: inline-flex; align-items: center; gap: .8rem; min-height: 52px; margin-top: 2rem; padding: .9rem 1.5rem; border-radius: 999px; background: var(--gold-fill); color: var(--on-gold); font-weight: 600; font-size: .9375rem; transition: background 350ms ease, transform 450ms var(--motion-ease); }
.service-primary:hover { background: var(--gold-hover); transform: translateY(-2px); }
.service-layout { display: grid; grid-template-columns: minmax(0,2.3fr) minmax(0,1fr); gap: clamp(2rem,5vw,5rem); align-items: start; border-top: 1px solid var(--line); }
.service-copy section { padding: 2.3rem 0; border-bottom: 1px solid var(--line); }
.service-copy h2 { margin-bottom: 1.25rem; color: var(--text); font-family: 'Playfair Display Variable',serif; font-size: clamp(1.65rem,3vw,2.2rem); line-height: 1.25; }
.service-copy p, .service-copy li { color: var(--copy); font-size: 1rem; line-height: 1.85; }
.service-copy p + p { margin-top: 1rem; }
.service-copy ul { list-style: disc; padding-left: 1.4rem; margin-top: 1.4rem; }
.service-copy li + li { margin-top: .65rem; }
.service-copy li::marker { color: var(--gold-text); }
.service-aside { position: sticky; top: 100px; padding: 2rem 0; font-size: .9375rem; line-height: 1.8; }
.service-aside > p + p { color: var(--copy); margin-top: 1rem; }
.service-aside h2 { margin-top: 2rem; font-size: 1.2rem; }
.service-aside a { display: block; padding: .65rem 0; color: var(--accent-text); text-underline-offset: 4px; }
.service-aside a:hover { text-decoration: underline; }
.service-faq { border-bottom: 1px solid var(--line); }
.service-faq summary { padding: 1.2rem 0; cursor: pointer; font-size: 1rem; line-height: 1.6; color: var(--text); }
.service-faq p { padding: 0 0 1.2rem; }
@media (max-width: 52rem) { .service-layout { grid-template-columns: minmax(0,1fr); gap: 0; } .service-aside { position: static; } .service-page { padding: 100px 20px 0; } }
@media (max-width: 30rem) { .service-primary { border-radius: 20px; padding: .9rem 1.1rem; } .service-page { padding-right: 16px; padding-left: 16px; } }

/* Shared motion rhythm: gentle starts, restrained movement, no layout jumps. */
:root { --motion-ease: cubic-bezier(.25,.65,.3,1); }
html { scroll-padding-top: 88px; }
a, button, summary, [class*="transition-"] { transition-duration: 450ms; transition-timing-function: var(--motion-ease); }
[data-testid="hero-section"] .animate-ping { animation: none; }
.animate-spin-slower { animation-duration: 130s; }
.js .reveal-pending { opacity: 0; transform: translateY(18px); }
.js [data-mobile-menu], .js [data-mobile-menu]:not(.is-open) {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  border-top-color: transparent; overflow: hidden;
  transition: grid-template-rows 480ms var(--motion-ease), opacity 360ms ease, visibility 0s linear 480ms, border-color 480ms ease;
}
.js [data-mobile-menu].is-open {
  grid-template-rows: 1fr; opacity: 1; visibility: visible; border-top-color: rgba(158,167,179,.15);
  transition-delay: 0s;
}
.mobile-menu-inner { min-height: 0; overflow: hidden; }
.mobile-menu-inner > div { max-height: calc(100dvh - var(--header-height,72px)); overflow-y: auto; }
[data-menu-toggle] { border-radius: 8px; }
.js [data-testid="deep-check-detail"] { display: grid; margin-top: 1.5rem; }
.js [data-tabpanel] {
  grid-area: 1 / 1; align-self: stretch; margin-top: 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 180ms ease, transform 550ms var(--motion-ease), visibility 0s linear 180ms;
}
.js [data-tabpanel].is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 480ms ease 100ms, transform 550ms var(--motion-ease) 100ms, visibility 0s;
}
[data-faq] { box-sizing: border-box; }
[data-faq][data-expanded="false"] > summary > svg { transform: none; }
[data-faq][data-expanded="false"] > summary > span:nth-child(2) { color: var(--text); }
[data-faq][data-expanded="true"] > summary > svg { transform: rotate(45deg); }

.contact-card {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: clamp(2rem,5vw,5rem);
  padding: clamp(1.5rem,4vw,4rem); border: 1px solid rgba(212,175,55,.25); border-radius: 22px;
  background: radial-gradient(ellipse at 0 0,rgba(212,175,55,.075),transparent 65%),var(--surface);
}
.contact-eyebrow { color: var(--accent-text); font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.7; }
.contact-intro h2 { max-width: 11em; margin-top: 1.3rem; font-size: clamp(2.25rem,4vw,3.75rem); line-height: 1.12; }
.contact-description { margin-top: 1.6rem; max-width: 29rem; font-size: 1rem; line-height: 1.8; color: var(--copy); }
.contact-prompts { display: grid; gap: 1rem; margin: 2rem 0; padding: 0; list-style: none; }
.contact-prompts li { display: flex; align-items: baseline; gap: 1rem; font-size: .9375rem; line-height: 1.65; color: var(--text); }
.contact-prompts span { font-size: .8125rem; color: var(--gold-text); font-family: 'JetBrains Mono Variable',monospace; }
.contact-direct { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--accent-text); font-size: 1rem; text-underline-offset: 5px; }
.contact-direct:hover { color: var(--text); text-decoration: underline; }
.contact-handle { margin-top: .2rem; color: var(--muted); font-size: .875rem; }
.contact-form { align-self: center; min-width: 0; }
.contact-form label { display: block; font-size: 1.125rem; font-weight: 600; }
.contact-hint { margin-top: .5rem; font-size: .875rem; line-height: 1.6; color: var(--copy); }
.contact-form textarea {
  display: block; box-sizing: border-box; width: 100%; min-height: 190px; max-height: 480px;
  margin-top: 1.15rem; padding: 1rem 1.15rem; border: 1px solid var(--input-line); border-radius: 12px;
  background: var(--input); color: var(--text); font: inherit; font-size: 1rem; line-height: 1.75; resize: vertical;
  transition: border-color 350ms ease, box-shadow 350ms ease;
}
.contact-form textarea::placeholder { color: var(--placeholder); opacity: 1; }
.contact-form textarea:focus { border-color: var(--gold-fill); box-shadow: 0 0 0 3px rgba(212,175,55,.1); outline: none; }
.contact-tools { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .35rem; color: var(--muted); font-size: .8125rem; }
.contact-tools button { min-height: 40px; padding: .35rem 0; color: var(--accent-text); font-size: .875rem; }
.contact-tools button:disabled { color: var(--muted); opacity: .65; cursor: default; }
html:not(.js) .contact-tools { display: none; }
.contact-submit {
  display: flex; align-items: center; justify-content: center; gap: .8rem; width: 100%; min-height: 56px;
  margin-top: .9rem; padding: .9rem 1.1rem; border-radius: 999px; background: var(--gold-fill); color: var(--on-gold);
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.45;
  transition: background 450ms ease, transform 450ms var(--motion-ease), box-shadow 450ms ease;
}
.contact-submit:hover { background: var(--gold-hover); box-shadow: 0 8px 28px rgba(212,175,55,.12); transform: translateY(-2px); }
.contact-submit:active { transform: none; }
.contact-submit svg { flex: 0 0 auto; }
.contact-note { margin-top: 1rem; color: var(--copy); font-size: .875rem; line-height: 1.65; }
.contact-status { min-height: 1.5rem; margin-top: .7rem; color: var(--accent-text); font-size: .875rem; line-height: 1.5; }
.contact-float {
  position: fixed; z-index: 40; right: max(24px,env(safe-area-inset-right)); bottom: max(24px,env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 54px; padding: .85rem 1.25rem;
  border: 1px solid rgba(212,175,55,.55); border-radius: 999px; background: var(--floating); color: var(--accent-text);
  box-shadow: 0 8px 28px rgba(0,0,0,.25); backdrop-filter: blur(12px); font-size: .875rem; font-weight: 600;
  transition: opacity 400ms ease, transform 500ms var(--motion-ease), background 400ms ease, visibility 0s;
}
.contact-float:hover { background: var(--floating-hover); transform: translateY(-2px); }
.contact-float.is-resting { opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; transition-delay: 0s,0s,0s,400ms; }
@media (min-width: 64rem) { .js [data-mobile-menu], .js [data-mobile-menu]:not(.is-open) { display: none !important; } }
@media (max-width: 52rem) {
  .contact-card { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .contact-intro h2 { max-width: 16em; }
}
@media (max-width: 30rem) {
  .contact-card { padding: 1.4rem 1.1rem; border-radius: 16px; }
  .contact-form textarea { padding: .9rem; }
  .contact-submit { gap: .45rem; font-size: .9375rem; }
  .contact-float { right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); min-height: 48px; padding: .75rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal-pending { opacity: 1; transform: none; }
  [data-parallax] { translate: none !important; }
}

@media (prefers-reduced-motion: reduce) { .service-primary { transition: none; } }
.article-meta { margin-top: 1.25rem; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.article-archive { margin-top: 1rem; color: var(--copy); font-size: .9375rem; line-height: 1.8; }
.blog-topics, .blog-pagination { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
.blog-topics { margin-bottom: 1.2rem; }
.blog-pagination { margin-top: 2rem; }
.blog-topics a, .blog-pagination a, .blog-pagination span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: .6rem .9rem; border: 1px solid var(--input-line); border-radius: 10px; color: var(--text); background: var(--surface); font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.blog-topics a[aria-current], .blog-pagination span[aria-current] { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--on-gold); }
.blog-topics a:hover, .blog-pagination a:hover { border-color: var(--accent-text); }
.blog-count { margin-bottom: 1.5rem; color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.article-sources a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.article-sources p { margin-top: 1.4rem; font-size: .875rem; }

/* Catalogs and page contents use the same typography on every route. */
.page-toc { max-width: 940px; padding: 1.4rem 1.6rem; margin: 0 0 2.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.page-toc > p { font-weight: 600; margin-bottom: .8rem; }
.page-toc ol { list-style: decimal; padding-left: 1.2rem; }
.page-toc li { padding: .3rem 0; line-height: 1.6; }
.page-toc a, .catalog-all-link a { color: var(--accent-text); text-underline-offset: 4px; }
.page-toc a:hover, .catalog-all-link a:hover { text-decoration: underline; }
.catalog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.catalog-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.35rem,3vw,2rem); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color 350ms ease, background 350ms ease, transform 450ms var(--motion-ease); }
.catalog-card:hover { border-color: #8e793f; background: var(--surface-strong); transform: translateY(-3px); }
.catalog-number { color: var(--gold-text); font-family: 'JetBrains Mono Variable',monospace; font-size: .8125rem; }
.catalog-card h2 { margin: 1.2rem 0 1rem; font-family: 'Playfair Display Variable',serif; font-size: clamp(1.45rem,2.5vw,1.9rem); line-height: 1.35; overflow-wrap: anywhere; }
.catalog-card p { margin-bottom: 1.4rem; color: var(--copy); font-size: .9375rem; line-height: 1.8; }
.catalog-action { margin-top: auto; color: var(--accent-text); font-size: .875rem; line-height: 1.7; }
.catalog-all-link { margin-top: 2rem; font-size: 1rem; line-height: 1.7; }
.service-aside ul { list-style: none; padding: 0; }
.service-copy, .service-aside, .breadcrumbs { min-width: 0; overflow-wrap: anywhere; }
.contact-form, .contact-form textarea { scroll-margin-bottom: 6rem; }
#when a:focus-visible svg { opacity: 1; color: var(--accent-text); }
/* Native page transitions preserve ordinary links and history behavior. */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: 220ms; animation-timing-function: ease; }
@media (max-width: 40rem) { .catalog-grid { grid-template-columns: minmax(0,1fr); } .page-toc { padding: 1.2rem; } }
@media (max-width: 30rem) { .contact-float { bottom: max(10px,env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .catalog-card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } ::view-transition-group(root) { animation-duration: .01ms; } }

/* Materials remain crawlable and readable without JavaScript. */
.content-filters { margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: end; }
.filter-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-group button { min-height: 44px; padding: .6rem 1rem; border: 1px solid var(--input-line); border-radius: 999px; color: var(--text); font: inherit; font-size: .9375rem; background: var(--surface); }
.filter-group button[aria-pressed="true"] { background: var(--gold-fill); color: var(--on-gold); border-color: var(--gold-fill); }
.format-filter { display: grid; gap: .35rem; color: var(--copy); font-size: .875rem; }
.format-filter select { min-height: 44px; max-width: 100%; padding: .6rem 2rem .6rem .8rem; border: 1px solid var(--input-line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; }
.filter-status { flex-basis: 100%; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.filter-empty { padding: 2rem; border: 1px solid var(--line); border-radius: 12px; color: var(--copy); font-size: 1rem; line-height: 1.8; }
.checklist-card { border-color: #665932; }
.article-checklist .service-primary { margin-top: 1rem; }
@media (max-width: 40rem) { .content-filters { align-items: stretch; } .format-filter { width: 100%; } .filter-group button { flex-grow: 1; } }

/* Reflow for enlarged text without changing the normal page proportions. */
html { scroll-padding-top: calc(var(--header-height,72px) + 16px); }
[data-testid="landing-navbar"] > div { height: auto; min-height: 72px; padding-top: 8px; padding-bottom: 8px; gap: .6rem; }
[data-testid="nav-brand-button"] { min-width: 0; }
[data-testid="nav-brand-button"] > span:first-child, [data-menu-toggle] { flex-shrink: 0; }
[data-testid="nav-brand-button"] > span:last-child { min-width: 0; overflow-wrap: anywhere; }
[data-testid="landing-navbar"] > div > div:last-child { flex-shrink: 0; }
[data-testid="hero-section"] { padding-top: var(--header-height,72px); }
[data-testid="hero-headline"] { overflow-wrap: anywhere; }
[data-testid="hero-headline"] > span { overflow: visible; }
.hero-photo-frame { max-width: 100%; }
[data-testid="hero-telegram-badge"] { max-width: 100%; white-space: normal; }
[data-testid="hero-telegram-badge"] > span:first-child { flex-shrink: 0; }
[data-testid="hero-check-page-button"], [data-testid="hero-services-scroll-button"] { max-width: 100%; }
[data-testid="hero-section"] a svg { flex-shrink: 0; }
.service-page { padding-top: max(116px,calc(var(--header-height,72px) + 28px)); }
.contact-intro, .contact-form { min-width: 0; }
.contact-intro h2 { overflow-wrap: anywhere; }
.contact-tools { flex-wrap: wrap; }
.contact-float { max-width: calc(100vw - 32px); min-width: 0; white-space: normal; }
.contact-float svg { flex-shrink: 0; }
.filter-group, .filter-group button, .format-filter, .format-filter select { min-width: 0; max-width: 100%; }
.filter-group button { overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  [data-testid="hero-check-page-button"], [data-testid="hero-services-scroll-button"] { padding-left: 1.25rem; padding-right: 1.25rem; }
  .format-filter select { width: 100%; }
}
[data-testid="nav-brand-button"] { gap: 12px; }
[data-testid="nav-brand-button"] > span:first-child { width: 40px; height: 40px; font-size: 18px; }
[data-menu-toggle] { width: 44px; height: 44px; }
[data-menu-toggle] svg { width: 24px; height: 24px; }
[data-testid="landing-navbar"] .header-actions { gap: 12px; }
[data-testid="hero-overline"] { overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .contact-float { padding: 12px 16px; gap: 10px; border-radius: 24px; }
  [data-testid="hero-telegram-badge"] { padding: 12px 16px; gap: 10px; }
  [data-testid="nav-brand-button"] > span:last-child > span:last-child { letter-spacing: .12em; }
}
@media (max-width: 63.99rem) {
  [data-testid="hero-section"] > .grid { grid-template-columns: minmax(0,1fr); }
  [data-testid="hero-section"] > .grid > div { min-width: 0; }
}
@media (max-width: 40rem) {
  [data-testid="landing-navbar"] > div { padding-left: 16px; padding-right: 16px; }
  [data-testid="hero-section"] > .grid { padding-left: 16px; padding-right: 16px; }
}
main h2, .contact-description, .contact-handle, .contact-hint, .contact-note { overflow-wrap: anywhere; }
.contact-submit { overflow-wrap: anywhere; }
@media (max-width: 40rem) { .contact-card { padding: 20px 16px; } }
.contact-prompts li, .contact-direct, .contact-tools button { overflow-wrap: anywhere; }
.contact-submit > span { min-width: 0; }
@media (max-width: 40rem) { .format-filter select { padding: 10px 12px; } }
main, .catalog-card p, .page-toc { overflow-wrap: anywhere; }

/* Visual audit: keep content inside its columns at narrow widths and larger text. */
.about-photo-frame { max-width: 100%; }
#process > div > div.relative > div.absolute { left: .875rem; transform: translateX(-50%); }
[data-testid^="process-step-"] > div, #about [data-motion], #about [data-testid="about-topics"] li { min-width: 0; overflow-wrap: anywhere; }
[data-testid^="service-card-"], [data-testid^="legal-secret-card-"] { gap: .75rem 16px; }
[data-testid^="service-card-"] { grid-template-columns: 2rem minmax(0,1fr) minmax(0,1.2fr) auto; }
[data-testid^="legal-secret-card-"] { grid-template-columns: 2rem minmax(0,1.3fr) minmax(0,1fr); }
[data-testid^="service-card-"] > *, [data-testid^="legal-secret-card-"] > * { grid-column: auto; min-width: 0; overflow-wrap: anywhere; }
[data-testid^="service-card-"] > span:last-child { margin-top: 0; letter-spacing: .08em; }
#about [data-testid="about-experience-badge"] { max-width: 100%; }
[data-testid="about-telegram-link"], [data-testid="secrets-channel-cta-button"] { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 52rem) {
  [data-testid^="service-card-"], [data-testid^="legal-secret-card-"] { grid-template-columns: 2rem minmax(0,1fr); }
  [data-testid^="service-card-"] > p, [data-testid^="legal-secret-card-"] > p { grid-column: 2; }
  [data-testid^="service-card-"] > span:last-child { grid-column: 2; margin-top: .5rem; }
}
@media (max-width: 40rem) {
  .hero-photo-frame > .animate-spin-slower, .about-photo-frame > .animate-spin-slower { display: none; }
  .hero-photo-frame > div:first-child, .about-photo-frame > div:first-child { inset: -6px; }
  .contact-float { width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; gap: 0; }
  .contact-float > span { display: none; }
  #process [data-testid^="process-step-"] { gap: 16px; }
}
#about > div > div, footer .grid > div { min-width: 0; }
footer a, footer p { max-width: 100%; overflow-wrap: anywhere; }
footer a svg { flex-shrink: 0; }
@media (max-width: 63.99rem) { #about > div { grid-template-columns: minmax(0,1fr); } }

#secrets > div > [data-motion]:last-child > div > div { min-width: 0; }
@media (max-width: 63.99rem) {
  footer .grid { grid-template-columns: minmax(0,1fr); }
  footer .grid > div { grid-column: auto; }
}
@media (max-width: 52rem) {
  #secrets > div > [data-motion]:last-child > div { flex-direction: column; align-items: flex-start; padding: 24px 16px; }
}
/* The decorative experience badge keeps its size while surrounding text reflows. */
[data-testid="about-experience-badge"] { padding: 20px 28px; }
[data-testid="about-experience-badge"] > span:first-child { font-size: 48px; }
@media (max-width: 40rem) {
  [data-testid^="service-card-"], [data-testid^="legal-secret-card-"] { grid-template-columns: minmax(20px,max-content) minmax(0,1fr); }
  [data-testid="secrets-channel-cta-button"] { padding: 12px 16px; gap: 10px; }
}
[data-mobile-menu], .mobile-menu-inner > div { max-height: calc(100dvh - var(--header-height,72px)); }
body:has([data-mobile-menu].is-open) .contact-float { visibility: hidden; opacity: 0; }
@media (max-width: 63.99rem) { [data-testid="nav-telegram-cta-button"] { display: none; } }

html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; --background: #f4eee3; --foreground: #23211c; --card: #f3ecdc; --card-foreground: #23211c; --border: #d6cdbe; }
.theme-toggle { display: none; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-text); background: transparent; }
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { background: var(--surface-strong); border-color: var(--gold-text); }
.theme-moon, html[data-theme="light"] .theme-sun { display: none; }
html[data-theme="light"] .theme-moon { display: block; }
.about-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.about-metrics strong { display: block; color: var(--accent-text); font-family: 'Playfair Display Variable',serif; font-size: clamp(1.75rem,3vw,2.5rem); }
.about-metrics span { display: block; margin-top: .35rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.about-credentials { margin-top: 1.75rem; padding-left: 1.2rem; list-style: disc; color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.about-credentials li+li { margin-top: .45rem; }
.contact-phone { display: block; width: fit-content; padding: .65rem 0; color: var(--accent-text); font-size: 1.125rem; text-underline-offset: 5px; }
.contact-phone:hover { text-decoration: underline; }
.service-audience { margin-top: 2rem; color: var(--copy); line-height: 1.8; }
.service-audience a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 64rem) and (max-width: 78rem) { [data-testid="nav-links"] { gap: 1rem; } [data-testid="nav-telegram-cta-button"] { display: none; } }
@media (max-width: 24rem) { [data-testid="nav-brand-button"] { gap: .5rem; } [data-testid="nav-brand-button"] > span:first-child { width: 32px; height: 36px; } [data-testid="nav-brand-button"] .text-base { font-size: 14px; } [data-testid="nav-brand-button"] .text-\[10px\] { font-size: 8px; letter-spacing: .1em; } .header-actions { gap: 6px; } .about-metrics { gap: .7rem; } }

.catalog-card h3 { font-family: "Playfair Display Variable",serif; font-size: 1.55rem; line-height: 1.3; color: var(--text); }

/* Keep short numeric hints intact on narrow screens. */
.contact-prompts span { flex: 0 0 1.4rem; white-space: nowrap; }
#services .catalog-grid { margin-top: 2rem; }
.practice-note { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; }
.practice-note h3 { margin: .75rem 0; font-family: 'Playfair Display Variable',serif; font-size: 1.5rem; line-height: 1.4; }
.practice-note p { color: var(--copy); line-height: 1.8; }
.practice-note a { display: inline-flex; min-height: 44px; align-items: center; color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }

/* Root-relative fit: enlarged text receives the same usable compact menu. */
.compact-nav [data-testid="nav-links"], .compact-nav [data-testid="nav-telegram-cta-button"] { display: none !important; }
.js.compact-nav [data-menu-toggle] { display: flex !important; }
.js.compact-nav [data-mobile-menu], .js.compact-nav [data-mobile-menu]:not(.is-open) { display: grid !important; }

/* Native scrollbar arrows add no navigation beyond normal scrolling. */
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

.blog-search { margin: 2rem 0; padding: clamp(1rem,3vw,1.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.blog-search label { display: grid; gap: .6rem; min-width: 0; color: var(--copy); font-size: 1rem; }
.blog-search input, .blog-search select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: .75rem; background: var(--surface-strong); color: var(--text); font: inherit; }
.blog-search input:focus-visible, .blog-search select:focus-visible, .blog-search button:focus-visible, .search-more:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.blog-search-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.blog-search-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1rem; }
.blog-search button, .search-more { min-height: 44px; font: inherit; cursor: pointer; }
.blog-search [data-search-reset], .search-more { padding: .7rem 0; color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.blog-search .service-primary { margin-top: 0; }
.blog-search-results > h2 { font-family: 'Playfair Display Variable',serif; font-size: 1.75rem; margin-bottom: .75rem; }
.blog-search-results > p { color: var(--muted); line-height: 1.6; }
.search-more { margin: 1.5rem 0; }
.article-next { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; }
.article-next .service-primary { max-width: 100%; white-space: normal; }
@media (max-width: 40rem) { .blog-search-options { grid-template-columns: minmax(0,1fr); } .blog-search-actions { align-items: stretch; flex-direction: column; } .blog-search button { width: 100%; } }

/* Editorial introductions belong only to the first thematic catalog page. */
.topic-guide h2 { font-size: 1.35rem; font-weight: 600; line-height: 1.4; margin: 0 0 1rem; }
.topic-guide h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.6; margin-bottom: .35rem; }
.topic-guide ol > li + li { margin-top: 1rem; }
.topic-guide li p { color: var(--copy); margin-bottom: .45rem; }
.topic-guide ol + h2 { margin-top: 1.6rem; }
.topic-guide > p { font-weight: 400; line-height: 1.7; }
.topic-guide ul { padding-left: 1.2rem; list-style: disc; }
.topic-guide > p:last-child { margin-top: .9rem; }
