@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301,U+0400-052F,U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-cyrillic-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301,U+0400-052F,U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-cyrillic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301,U+0400-052F,U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301,U+0400-052F,U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-cyrillic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301,U+0400-052F,U+2116;
}
:root {
  color-scheme: dark;
  --bg: #101113;
  --surface: #18191c;
  --surface-elevated: #1c1e22;
  --text: #f3f2ef;
  --muted: #b4b4b9;
  --accent: #ffad86;
  --line: #323338;
  --mono: "JetBrains Mono", Consolas, monospace;
  --ui: Inter, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--ui); }
p, dd, li, blockquote { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1240px, calc(100% - clamp(40px, 9vw, 150px))); margin-inline: auto; }
.accent, .brand-end, .logomark { color: var(--accent); }
.skip { position: fixed; top: 10px; left: 10px; z-index: 30; padding: 10px 20px; border-radius: 6px; background: var(--accent); color: var(--bg); transform: translateY(-165%); }
.skip:focus { transform: none; }

/* Header */
.mast { position: sticky; top: 0; z-index: 15; border-bottom: 1px solid var(--line); background: rgba(16, 17, 19, .92); backdrop-filter: blur(12px); }
.mast-inner { min-height: 74px; display: flex; align-items: center; gap: clamp(20px, 3.6vw, 56px); }
.brand { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font: 700 1.36rem/1 var(--mono); letter-spacing: -.05em; white-space: nowrap; }
.logomark { display: inline-flex; }
.desktop-nav { display: flex; gap: clamp(18px, 2.8vw, 42px); align-items: center; margin-left: auto; }
.desktop-nav a, .footer a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; color: #cbcace; }
.head-contact { display: inline-flex; gap: 9px; align-items: center; justify-content: center; min-height: 44px; padding: 6px 18px; border: 1px solid #5a4c45; background: #211c1a; border-radius: 7px; font-size: .9rem; font-weight: 500; }
.head-contact svg { color: var(--accent); }
.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

/* Hero */
.hero { position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 3.8vw, 60px); align-items: center; padding-block: clamp(36px, 4.4vw, 72px); }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 400 .8rem/1.4 var(--mono); color: var(--muted); }
.crumb a { display: inline-flex; align-items: center; min-height: 34px; color: #e6e2de; }
.crumb span[aria-hidden] { color: #77777c; }
.hero h1, .detail-hero h1 { font-size: clamp(2.6rem, 4.65vw, 4.55rem); font-weight: 500; line-height: 1.06; letter-spacing: -.038em; margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(1.04rem, 1.2vw, 1.18rem); line-height: 1.6; max-width: 50ch; }
.lead strong { color: var(--text); font-weight: 500; }
.audience-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.audience-tags li { font: 400 .78rem/1.3 var(--mono); color: #d8d5d0; background: #191b1f; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { max-width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border-radius: 7px; border: 1px solid transparent; font-size: .96rem; line-height: 1.35; font-weight: 500; transition: background .18s, border-color .18s, transform .18s; }
.primary { background: var(--accent); border-color: var(--accent); color: #1f1611; }
.secondary { border-color: #505056; background: #18191c; color: #ecebea; }
.btn:active, .head-contact:active { transform: translateY(1px); }

/* Gallery */
.hero-art { position: relative; margin-inline: auto; width: min(100%, 490px); }
.art-canvas { position: relative; width: 100%; aspect-ratio: 1; isolation: isolate; overflow: hidden; background-color: var(--bg); background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px); background-size: 32px 32px; touch-action: pan-y pinch-zoom; }
.art-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: lighten; }
.reg { position: absolute; z-index: 2; height: 12px; width: 12px; border-color: #8e7568; border-style: solid; border-width: 0; pointer-events: none; }
.reg.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.reg.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.reg.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.reg.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.gallery-caption { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 12px; }
.slide-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.slide-counter { display: block; font: .76rem/1.2 var(--mono); color: var(--muted); }
.slide-link { display: inline-flex; min-height: 26px; align-items: center; gap: 7px; font-size: 1.02rem; line-height: 1.3; font-weight: 500; }
.slide-arrow, .gallery-controls button { color: var(--accent); }
.slide-arrow { display: inline-flex; flex-shrink: 0; }
.gallery-controls { display: flex; gap: 6px; flex: 0 0 auto; }
.gallery-controls button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #525052; border-radius: 7px; background: #191a1c; }

/* Sections & Typography */
.section, .detail-hero { padding-block: clamp(50px, 5.6vw, 84px); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.9rem, 3.1vw, 2.85rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 500; }
h3 { font-weight: 500; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.022em; }
.section-sub { color: var(--muted); max-width: 62ch; margin-top: 12px; font-size: 1.03rem; line-height: 1.58; }

/* Services */
.services { padding-top: clamp(44px, 4.4vw, 68px); }
.service-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px 20px; }
.service-heading .text-link { gap: 6px; padding-inline: 0; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: 28px; }
.service-panel { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color .18s; }
.service-panel[open] { border-color: #aa795f; background: #1a1b1f; }
.service-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: clamp(14px, 1.5vw, 20px); padding: clamp(22px, 2.3vw, 30px); min-height: 192px; list-style: none; border-radius: 9px; transition: background .18s; }
.service-card .expand { margin-top: 6px; }
.service-title { display: block; font-size: clamp(1.18rem, 1.5vw, 1.42rem); font-weight: 500; line-height: 1.28; letter-spacing: -.022em; }
.service-desc { display: block; margin-top: 8px; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.service-body { margin-inline: clamp(22px, 2.3vw, 30px); padding-block: 20px 26px; border-top: 1px solid var(--line); }
.service-body dl { margin: 0; }
.service-body dt { font-size: 1rem; line-height: 1.4; font-weight: 700; color: var(--text); }
.service-body dt:not(:first-child) { margin-top: 16px; }
.service-body dd { margin: 5px 0 0; color: var(--muted); line-height: 1.58; }
.service-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 50px; height: 50px; color: var(--accent); border-radius: 9px; border: 1px solid #4f3e35; background: #282220; }

/* Roles & Practice Model */
.process, .detail-results { background: #141518; }
.model-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 56px); align-items: end; }
.model-note { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.model-note strong { color: var(--text); font-weight: 500; }
.roles-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.role-card { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid #5d473c; border-radius: 10px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.role-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.role-badge { font: 500 .76rem/1.3 var(--mono); color: var(--accent); background: #261f1c; border: 1px solid #4a3931; border-radius: 999px; padding: 4px 10px; }
.role-card svg { color: var(--accent); flex-shrink: 0; }
.role-card h3 { font-size: 1.15rem; margin-top: 2px; }
.role-card p { color: var(--muted); font-size: .94rem; line-height: 1.56; }
.start-steps { margin-top: 24px; padding: 24px 26px; border-radius: 12px; border: 1px solid var(--line); background: #18191d; }
.start-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.start-eyebrow { font: 500 .78rem/1.2 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.start-line { height: 1px; flex: 1 1 auto; background: var(--line); }
.start-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.start-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.start-list li:not(:first-child) { border-left: 1px solid var(--line); padding-left: 24px; }
.step-num { width: 36px; height: 36px; border-radius: 9px; background: #261f1c; border: 1px solid #523f35; color: var(--accent); font: 700 .82rem/1 var(--mono); display: grid; place-items: center; }
.step-copy h3 { font-size: 1.06rem; font-weight: 500; line-height: 1.3; color: var(--text); }
.step-copy p { margin-top: 5px; font-size: .92rem; line-height: 1.54; color: var(--muted); }

/* FAQ */
.faq-layout, .detail-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 5.5vw, 84px); }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs details:first-child { border-top: 1px solid var(--line); }
.faqs summary { min-height: 64px; padding: 16px 2px; display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; font-weight: 500; line-height: 1.4; }
.expand { width: 14px; height: 14px; position: relative; flex-shrink: 0; color: var(--accent); }
.expand::before, .expand::after { content: ""; position: absolute; background: currentColor; top: 50%; left: 0; width: 14px; height: 1.5px; }
.expand::after { transform: rotate(90deg); }
details[open] .expand::after { display: none; }
.faqs p { color: var(--muted); margin: 0 0 20px; max-width: 64ch; line-height: 1.6; }

/* Spacious Contact Section */
.contact-section { background: #151619; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.section-intro { color: var(--muted); margin-top: 16px; max-width: 42ch; line-height: 1.6; }
.channels { display: grid; gap: 10px; margin-top: 22px; max-width: 380px; }
.channel-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); min-height: 56px; transition: border-color .18s, background .18s; }
.channel-card.tg { border-color: #5b463b; background: #211c19; }
.channel-card svg { flex: 0 0 auto; color: var(--accent); }
.channel-meta { display: flex; flex-direction: column; min-width: 0; }
.channel-label { font-size: .78rem; color: var(--muted); line-height: 1.25; }
.channel-val { font-weight: 500; color: var(--text); font-size: .98rem; line-height: 1.35; }
.trust-list { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 9px; color: var(--muted); font-size: .92rem; max-width: 40ch; }
.trust-list li { display: flex; align-items: baseline; gap: 9px; line-height: 1.45; }
.trust-list li::before { content: "•"; color: var(--accent); font-weight: 700; }

/* The Form Card ("Окно обращения") */
.draft { background: var(--surface-elevated); border: 1px solid #483d37; border-top: 2px solid var(--accent); border-radius: 12px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; min-width: 0; box-shadow: 0 18px 42px rgba(0, 0, 0, .28); }
.draft-head { display: flex; flex-direction: column; gap: 4px; }
.draft-title { font-size: 1.24rem; font-weight: 500; letter-spacing: -.02em; }
.draft-sub { font-size: .9rem; color: var(--muted); }
.field-block { display: grid; gap: 7px; min-width: 0; }
.field-block > label, .topics legend { font-size: .94rem; font-weight: 500; color: var(--text); }
.draft input[type="text"], .draft textarea { width: 100%; border: 1px solid #52535a; border-radius: 8px; color: var(--text); background: #101114; padding: 14px 16px; font-size: 1rem; line-height: 1.5; transition: border-color .18s; }
.draft input[type="text"]:focus, .draft textarea:focus { border-color: var(--accent); outline: none; }
.draft textarea { resize: vertical; min-height: 168px; }
.draft input::placeholder, .draft textarea::placeholder { color: #7c7d84; }
.topics { padding: 0; border: 0; margin: 0; min-width: 0; }
.topics legend { padding: 0; margin-bottom: 9px; }
.topic-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-choices label { display: inline-flex; gap: 8px; align-items: center; min-height: 42px; padding: 8px 13px; border: 1px solid #45464c; border-radius: 999px; background: #121317; font-size: .88rem; line-height: 1.3; cursor: pointer; transition: border-color .15s, background .15s; }
.topic-choices input { flex: 0 0 auto; margin: 0; accent-color: var(--accent); }
.topic-choices label:has(input:checked) { border-color: var(--accent); background: #2c211c; color: #fff; }
.topic-choices label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note, .form-feedback { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.form-feedback { padding: 10px 13px; border-radius: 7px; background: #231d1a; border: 1px solid #5d473c; color: var(--text); }
.form-feedback:empty { display: none; }
.draft .btn { width: 100%; min-height: 54px; font-size: 1rem; border-radius: 8px; margin-top: 2px; }
.draft button:disabled { opacity: .7; cursor: wait; }

/* Subpages */
.detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(32px, 5.5vw, 84px); }
.detail-hero .lead { max-width: 53ch; }
.example { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 10px; padding: clamp(24px, 2.8vw, 38px); }
.example .eyebrow { color: var(--accent); margin: 18px 0 8px; font: .8rem/1.4 var(--mono); }
.example blockquote { font-size: clamp(1.15rem, 1.75vw, 1.48rem); line-height: 1.38; font-weight: 500; letter-spacing: -.022em; }
.example > p:last-child, .work-list p, .outcome-grid p { color: var(--muted); margin-top: 9px; line-height: 1.6; }
.work-list article { border-top: 1px solid var(--line); padding-block: 20px; }
.work-list article:first-child { padding-top: 16px; }
.work-list article:last-child { padding-bottom: 0; }
.work-list article:target { border-color: var(--accent); }
.work-list article:target h3 { color: var(--accent); }
.outcome-grid > div { max-width: 64ch; }
.outcome-grid h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.detail-close { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.detail-close .actions { margin: 0; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; padding-inline: 6px; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }

/* Footer & Mobile Dock */
.footer { padding: 22px 0; }
.foot-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-inner .brand { margin-right: auto; font-size: 1.14rem; }
.foot-inner .brand svg { width: 23px; }
.mobile-dock { display: none; }

@media (max-width: 1060px) and (min-width: 768px) {
  .roles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-header { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .start-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .start-list li:not(:first-child) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}

@media (hover: hover) {
  .desktop-nav a:hover, .footer a:hover, .crumb a:hover, .text-link:hover, summary:hover, .hero-art figcaption a:hover { color: var(--accent); }
  .head-contact:hover, .secondary:hover, .channel-card:hover, .gallery-controls button:hover { border-color: var(--accent); }
  .primary:hover { background: #ffc09f; }
  .service-card:hover { background: #1e2024; }
  .service-card:hover .service-title { color: var(--accent); }
}

/* Mobile Block-by-Block Experience */
@media (max-width: 767px) {
  html { scroll-padding-top: 68px; }
  body { background: #0b0c0e; padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .wrap { width: calc(100% - 20px); }

  /* Compact Sticky Top Header */
  .mast-inner { min-height: 56px; gap: 8px; }
  .mast-inner .brand { font-size: 1.12rem; }
  .desktop-nav, .head-contact { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: inline-flex; gap: 7px; align-items: center; min-height: 42px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: .88rem; }
  .mobile-menu summary svg { color: var(--accent); }
  .mobile-menu nav { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; padding: 12px 18px 18px; background: #18191d; border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px rgba(0, 0, 0, .55); }
  .mobile-menu nav a { min-height: 46px; display: flex; align-items: center; border-bottom: 1px solid #26272c; }
  .mobile-menu nav a:last-child { border-bottom: 0; color: var(--accent); font-weight: 500; }

  /* Visual Card-Blocks so user moves cleanly block-by-block */
  .hero, .section, .detail-hero { border-bottom: 0; background: transparent; padding-block: 6px; }
  .hero { padding-top: 10px; }
  .hero > .wrap, .section > .wrap, .detail-hero > .wrap {
    background: #141519;
    border: 1px solid #282a30;
    border-radius: 16px;
    padding: 20px 16px;
  }
  .process > .wrap, .detail-results > .wrap { background: #16181d; }
  .contact-section > .wrap {
    background: #17181d;
    border-color: #463933;
    padding: 22px 15px;
  }

  .hero-grid, .service-grid, .model-header, .faq-layout, .contact-layout, .detail-layout, .detail-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 18px; padding-block: 0; }
  .hero h1, .detail-hero h1 { font-size: clamp(2rem, 8.2vw, 2.85rem); line-height: 1.08; margin: 8px 0 12px; }
  .hero h1 br { display: none; }
  .lead { font-size: .98rem; line-height: 1.52; }
  .audience-tags { gap: 6px; margin-top: 14px; }
  .audience-tags li { font-size: .73rem; padding: 5px 10px; }
  .actions { margin-top: 18px; gap: 8px; }
  .hero .actions .btn, .detail-hero .actions .btn { flex: 1 1 calc(50% - 4px); padding-inline: 12px; font-size: .9rem; min-height: 48px; }

  /* Compact Hero Gallery Card inside Hero Block */
  .hero-art { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: stretch; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: clip; }
  .art-canvas { min-height: 132px; aspect-ratio: auto; background-size: 24px 24px; }
  .art-canvas img { object-fit: contain; }
  .gallery-caption { flex-direction: column; align-items: start; justify-content: center; gap: 6px; padding: 10px 11px; }
  .slide-link { color: var(--text); font-size: .83rem; min-height: 36px; }
  .gallery-controls button { width: 40px; height: 40px; }

  /* Services Block on Mobile: concise descriptions kept visible */
  h2 { font-size: clamp(1.58rem, 6.2vw, 2.15rem); }
  .section-sub { font-size: .94rem; margin-top: 8px; }
  .service-grid { gap: 10px; margin-top: 16px; }
  .service-card { gap: 12px; padding: 15px 14px; min-height: 0; align-items: flex-start; }
  .service-icon { width: 40px; height: 40px; border-radius: 8px; margin-top: 2px; }
  .service-icon svg { width: 22px; height: 22px; }
  .service-title { font-size: 1.07rem; }
  .service-desc { font-size: .89rem; margin-top: 5px; line-height: 1.45; }
  .service-body { padding-block: 14px 18px; margin-inline: 14px; font-size: .93rem; }
  .service-body .actions .btn { width: 100%; }

  /* Horizontal Swipeable Role Cards on Mobile (saves 2 screens of scroll!) */
  .model-header { gap: 8px; }
  .model-note { font-size: .93rem; }
  .roles-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(83%, 285px);
    gap: 10px;
    margin-top: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .roles-grid::-webkit-scrollbar { display: none; }
  .role-card { scroll-snap-align: start; padding: 18px 16px; }
  .swipe-hint { display: block; margin-top: 8px; font: .76rem/1.3 var(--mono); color: var(--accent); }
  .start-steps { margin-top: 16px; padding: 18px 15px; border-radius: 12px; }
  .start-head { margin-bottom: 14px; }
  .start-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .start-list li { position: relative; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
  .start-list li:not(:first-child) { border-left: 0; padding-left: 0; }
  .start-list li:last-child { padding-bottom: 0; }
  .start-list li:not(:last-child)::after { content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1px; background: #463831; }
  .step-num { width: 34px; height: 34px; font-size: .78rem; border-radius: 8px; }
  .step-copy h3 { font-size: 1rem; }
  .step-copy p { font-size: .89rem; margin-top: 3px; }

  /* FAQ Block */
  .faq-layout, .contact-layout, .detail-layout, .detail-hero-grid { gap: 16px; }
  .faqs summary { min-height: 54px; padding-block: 11px; font-size: .96rem; }
  .faqs p { font-size: .92rem; margin-bottom: 16px; }

  /* Spacious Mobile Contact Window */
  .channels { max-width: none; grid-template-columns: 1fr; margin-top: 16px; }
  .trust-list { margin-top: 16px; font-size: .88rem; }
  .draft { padding: 18px 14px 20px; border-radius: 12px; gap: 14px; }
  .draft-title { font-size: 1.15rem; }
  .topic-choices { gap: 7px; }
  .topic-choices label { min-height: 40px; padding: 7px 12px; font-size: .85rem; }
  .draft input[type="text"], .draft textarea { padding: 13px 14px; font-size: 1rem; }
  .draft textarea { min-height: 164px; }
  .draft .btn { min-height: 54px; font-size: 1rem; }

  /* Subpages Mobile */
  .example { padding: 18px 16px; }
  .example .eyebrow { margin-top: 12px; }
  .detail-close .actions { width: 100%; }
  .detail-close .actions .btn { width: 100%; }

  /* Footer */
  .footer { padding: 16px 0 18px; }
  .foot-inner { column-gap: 16px; row-gap: 4px; }
  .foot-inner .brand { width: 100%; }

  /* Bottom Thumb Block-Navigator Bar */
  .mobile-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid #3c3a3e;
    background: rgba(20, 21, 25, .94);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
  }
  .mobile-dock a {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 6px 8px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 500;
    color: #c9c8cd;
    white-space: nowrap;
  }
  .mobile-dock a[aria-current="true"] {
    background: #26282e;
    color: var(--text);
  }
  .mobile-dock a.dock-cta {
    flex: 1.15 1 auto;
    background: var(--accent);
    color: #1f1611;
    font-weight: 700;
  }
  .mobile-dock a.dock-cta[aria-current="true"] {
    background: #ffc2a3;
    color: #1f1611;
  }
}

@media (min-width: 768px) {
  .swipe-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:active, .head-contact:active { transform: none; }
}
