/* THETIMMADE — действующие стили.
   Условия для телефонов, планшетов, мыши и светлой темы находятся рядом с компонентом.
   Порядок пересекающихся правил сохранён: он влияет на каскад. */


/* ===== Основа и общие элементы ===== */
html { background: rgb(0, 0, 0); }
html.is-loading { overflow-anchor: none; }
html.is-loading .boot-loader { position: fixed; inset: 0px; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; background: rgb(0, 0, 0); color: rgb(255, 255, 255); text-align: center; padding: 20px; }
:root { color-scheme: dark; --bg: #020202; --bg-soft: #0c0c0c; --line: rgba(255,255,255,.18); --line-strong: rgba(255,255,255,.34); --text: #ffffff; --muted: rgba(255,255,255,.72); --display: 'Bebas Neue','Oswald','Arial Narrow',Arial,sans-serif; --heading: 'Bebas Neue','Oswald','Arial Narrow',Arial,sans-serif; --heading-cyrillic: 'Oswald',Arial,sans-serif; --body: Inter,Arial,sans-serif;    }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0px; background: var(--bg); color: var(--text); font-family: var(--body); text-align: center; }
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: var(--text) solid 1px; outline-offset: 4px; }
section { position: relative; z-index: 1; }
h2 { margin: 0px 0px 18px; font: 400 clamp(28px,3.2vw,42px)/1.2 var(--heading); }
h2 { font-family: var(--heading-cyrillic); font-weight: 400; letter-spacing: 0.014em; text-transform: uppercase; }
h2 { font-size: clamp(37px, 4vw, 58px); line-height: 1.06; }
@media (max-width: 640px) {
h2 { font-size: clamp(37px, 10vw, 51px); }
}
html.is-starting { overflow-anchor: none; scroll-behavior: auto !important; }
body.modal-open .back-to-top { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
body.mobile-menu-open { overflow: hidden; }
}
:root { --project-rail-gap: clamp(14px,1.25vw,24px); --top-button-size: 42px; --project-side-space: calc(var(--top-button-size) + 2 * var(--project-rail-gap)); }
:root { --dock-bottom: max(22px,env(safe-area-inset-bottom)); --dock-size: 42px; --dock-gap: 12px; --dock-right: var(--project-rail-gap); }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
:root { --dock-bottom: max(16px,env(safe-area-inset-bottom)); --dock-size: 40px; --dock-right: 14px; }
}
body.modal-open .phone-copy-notice, body.mobile-menu-open .phone-copy-notice { opacity: 0; visibility: hidden; }
:root { --ui-fill: rgba(20,21,22,.8); --ui-edge: rgba(255,255,255,.28); --ui-hover: rgba(48,49,51,.92); --ui-ink: #eee; --ui-radius: 7px; --nav-rest:rgba(255,255,255,.832); }
html[data-theme="light"] { color-scheme: light; --bg: #fff; --bg-soft: #f4f4f3; --text: #171819; --muted: #55585a; --line: #00000022; --line-strong: #00000048; --ui-fill: rgba(255,255,255,.88); --ui-edge: #00000038; --ui-hover: #ededec; --ui-ink: #252729; background: rgb(255, 255, 255); }
html[data-theme="light"] body { background: rgb(255, 255, 255); color: var(--text); }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
html[data-theme="light"] body.mobile-menu-is-open > .mobile-menu-backdrop, html[data-theme="light"] body.mobile-menu-open > .mobile-menu-backdrop { background: rgba(255, 255, 255, 0.333); }
}
body.modal-open .button-hover-hint, body.mobile-menu-open .button-hover-hint { visibility: hidden; opacity: 0; }
:root { --section-space: clamp(48px,6vw,88px); --section-line: rgba(255,255,255,.27); --footer-leading-space: 132px; }
html[data-theme="light"] { --section-line: #00000030; --nav-rest:rgba(0,0,0,.572); }

/* ===== Главный экран и появление текста ===== */
.boot-loader { display: none; }
.boot-wordmark { font: 400 clamp(38px, 11vw, 180px) / 1 "Bebas Neue", "Arial Narrow", Impact, sans-serif; letter-spacing: 0.007em; white-space: nowrap; max-width: 100%; }
.boot-status { margin: 0px; font: 400 16px / 1.5 Inter, Arial, sans-serif; color: rgba(255, 255, 255, 0.72); }
.boot-status { opacity: 0; animation: 0.2s ease 0.7s 1 normal forwards running boot-status-appear; }
.boot-dots { display: inline-flex; width: 1em; text-align: left; }
.boot-dots > span { opacity: 0; animation: 1.2s steps(1) 0s infinite normal none running boot-dot-cycle; }
.boot-dots > span:nth-child(2) { animation-delay: 0.2s; }
.boot-dots > span:nth-child(3) { animation-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
.boot-dots > span { animation: auto ease 0s 1 normal none running none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.boot-status { animation-duration: 0.01s; }
}
.hero { position: relative; }
.hero-stage { position: sticky; top: 0px; height: 100svh; overflow: hidden; background: rgb(0, 0, 0); isolation: isolate; }
.hero-video { position: absolute; inset: 0px; width: 100%; height: 100%; object-fit: cover; z-index: -3; filter: saturate(1.02); }
.hero-shade { position: absolute; inset: 0px; z-index: -2; }
.hero-glow { position: absolute; inset: auto 0px 0px; height: 45vh; background: radial-gradient(at center bottom, rgba(255, 255, 255, 0.1), transparent 65%); z-index: -1; opacity: 0.8; }
.hero-copy { position: absolute; }
.hero-kicker { align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: rgba(255, 255, 255, 0.45); }
h1 { margin: 0px; max-width: 960px; font: 400 clamp(34px,6vw,88px)/1.06 var(--heading); text-wrap: balance; text-shadow: rgba(0, 0, 0, 0.5) 0px 5px 28px; }
.hero-description { text-shadow: rgba(0, 0, 0, 0.6) 0px 2px 16px; }
.hero-actions { gap: 18px; flex-wrap: wrap; }
.hero-link::after { content: ""; position: absolute; transform-origin: left center; }
.video-toggle { position: absolute; bottom: 22px; }
.video-toggle:focus-visible { opacity: 1; }
@media (max-width: 900px) {
h1 { font-size: clamp(28px, 9vw, 58px); }
}
@media (max-width: 640px) {
.hero-kicker { gap: 8px; }
}
@media (max-width: 640px) {
.hero-kicker::before { width: 28px; }
}
@media (max-width: 640px) {
.video-toggle { bottom: 16px; }
}
.hero { height: 120svh; }
.hero-stage { min-height: 440px; }
.hero-video { object-position: center center; }
.hero-shade { background: linear-gradient(rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.48) 32%, rgba(0, 0, 0, 0.57) 62%, rgba(0, 0, 0, 0.8) 100%); }
.hero-glow { display: none; }
.hero-copy { align-items: center; flex-direction: column; }
.hero-kicker::before { display: none; }
h1.brand-title { text-wrap: nowrap; cursor: default; user-select: none; }
.hero-play { justify-content: center; }
.video-toggle { width: 34px; height: 34px; border: 0px; border-radius: var(--ui-radius); background: transparent; backdrop-filter: none; opacity: 0.72; }
.video-toggle:hover { opacity: 1; }
@media (max-width: 900px) {
.hero { height: 113svh; }
}
@media (max-width: 640px) {
.hero { height: 108svh; }
}
@media (max-width: 640px) {
.hero-stage { min-height: 460px; }
}
@media (max-width: 640px) {
.hero-video { object-position: center center; }
}
h1.brand-title { text-transform: uppercase; text-shadow: rgba(0, 0, 0, 0.28) 0px 5px 36px; }
.brand-wordmark { display: block; white-space: nowrap; }
.hero-copy.reveal.is-visible { transform: translate(-50%, -50%); }
.hero-kicker { position: absolute; left: 50%; transform: translate(-50%, -100%); display: block; width: 100%; margin: 0px; font: 500 clamp(11px,.93vw,14px)/1.45 var(--body); text-transform: uppercase; white-space: nowrap; color: rgba(255, 255, 255, 0.78); }
h1.brand-title { position: absolute; left: 50%; top: 0px; transform: translate(-50%, -50%); display: block; width: max-content; max-width: none; margin: 0px; font: 400 clamp(105px, 16.1vw, 250px) / 0.91 "Bebas Neue", "Arial Narrow", Impact, sans-serif; letter-spacing: 0.007em; white-space: nowrap; text-align: center; }
.hero-description { position: absolute; left: 50%; transform: translateX(-50%); width: min(940px, 100%); max-width: 100%; margin: 0px; font: 400 clamp(15px,1.3vw,20px)/1.48 var(--body); letter-spacing: 0.008em; color: rgba(255, 255, 255, 0.86); text-align: center; text-wrap: balance; }
.hero-actions { position: absolute; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; width: max-content; margin: 0px; }
@media (max-width: 900px) {
h1.brand-title { font-size: clamp(76px, 17vw, 175px); }
}
@media (max-width: 900px) {
.hero-description { max-width: 720px; }
}
@media (max-width: 640px) {
h1.brand-title { font-size: clamp(57px, 17vw, 112px); letter-spacing: 0px; }
}
@media (max-width: 640px) {
.hero-description { width: min(330px, 100%); }
}
@media (max-width: 375px) {
h1.brand-title { font-size: 16.8vw; }
}
.hero-actions { align-items: center; }
.hero-link { vertical-align:middle; }
.hero-link-label { display:block; }
.hero-link .hero-play { flex:0 0 19px; }
.hero-link-label::after { content: ""; position: absolute; bottom: -6px; left: 0px; right: 0.22em; height: 1px; background: rgba(255, 255, 255, 0.7); transform-origin: left center; transition: transform 0.3s, opacity 0.3s; }
.hero-link:hover .hero-link-label::after { transform: scaleX(0.78); opacity: 0.85; }
.hero-play { transition: transform 0.28s; }
.hero-play svg { display: block; }

@media (max-width: 640px) {
.hero-play { flex-shrink: 0; }
}
@media (max-width: 640px) {
.hero-play svg { flex-shrink: 0; }
}
.hero-link::after { left: 0px; right: 0px; bottom: 3px; height: 1px; background: rgba(255, 255, 255, 0.7); transform: none; opacity: 1; transition: background 0.3s; }
.hero-link:hover::after { transform: none; opacity: 1; background: rgb(255, 255, 255); }
.hero-link:focus-visible::after { transform: none; opacity: 1; background: rgb(255, 255, 255); }
.hero-link { display:inline-flex; align-items:center; justify-content:center; text-align:center; gap:8px; min-height:54px; padding:12px 18px; border-radius: var(--ui-radius); background: rgba(255, 255, 255, 0.043); color: rgb(255, 255, 255); font: 500 14px/1.3 var(--body); text-transform: none; white-space: nowrap; }
.hero-link::after { display: none !important; }
.hero-link-label::after { display: none !important; }
.hero-play { display: grid; place-items: center; width: 19px; height: 19px; line-height: 1; transform: none; }
.hero-play svg { width:17px; height:17px; transform:none; }
.hero-link:hover { background: rgba(255, 255, 255, 0.1); }
.hero-link:hover .hero-play { transform: none; }
.hero-link:focus-visible { outline: rgb(255, 255, 255) solid 2px; outline-offset: 4px; }
@media (max-width: 640px) {
.hero-link { min-height: 50px; padding:12px 18px; gap:8px; }
}
.hero-kicker { font-size: clamp(11px, 0.9vw, 13px); letter-spacing: 0.2em; }
.hero-description { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }
.hero-link { font-size: 14px; line-height: 1.4; letter-spacing: 0.025em; }
.hero-link-label { line-height: 1.4; }
@media (max-width: 640px) {
.hero-kicker { font-size: 11px; letter-spacing: 0.14em; }
}
@media (max-width: 640px) {
.hero-description { font-size: 15px; line-height: 1.6; }
}
.hero-copy {  }
.hero-link { position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.36); background-clip: padding-box; backdrop-filter: none; transform: none !important; }
.hero-link:hover { background-color: rgba(255, 255, 255, 0.1); transform: none !important; }
.hero-link::before { content: ""; display: none; position: absolute; inset: -50% auto -50% 0; width: 40%; z-index: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08) 25%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.08) 75%, transparent); opacity: 0; transform: translateX(-160%) skewX(-18deg); }
@media (prefers-reduced-motion: no-preference) {
.hero-link::before { display: block; animation: showreel-sheen 3s ease-in-out 3s infinite; }
.hero-stage:has(.video-toggle[data-paused="true"]) .hero-link::before { animation-play-state: paused; }
}
html[data-theme="light"] .hero-link::before { background: linear-gradient(90deg, transparent, rgba(0,0,0,.03) 25%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.03) 75%, transparent); }
.hero-link-label { position: relative; z-index: 1; }
.hero-play { position: relative; z-index: 1; }
.hero-copy { --hero-top-gap: clamp(22px,2.8svh,34px); --hero-bottom-gap: clamp(10px,1.6svh,20px); --hero-button-gap: clamp(32px,4.4svh,48px); }
.hero-kicker { top: calc(var(--hero-heading-height)/-2 - var(--hero-top-gap)); }
.hero-description { top: calc(var(--hero-heading-height)/2 + var(--hero-bottom-gap)); }
.hero-actions { top: calc(var(--hero-heading-height)/2 + var(--hero-bottom-gap) + var(--hero-description-height) + var(--hero-button-gap)); }
.hero-link { border-color: rgba(255, 255, 255, 0.26); box-shadow: rgba(255, 255, 255, 0.1) 0px 0px 1px 1px, rgba(255, 255, 255, 0.14) 0px 0px 1px inset; transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s; }
.hero-link:hover { border-color: rgba(255, 255, 255, 0.42); box-shadow: rgba(255, 255, 255, 0.16) 0px 0px 3px 1px, rgba(255, 255, 255, 0.16) 0px 0px 2px inset; }
.hero-poster { position: absolute; inset: 0px; width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: -4; }
.hero-video { opacity: 0; transition: opacity 0.22s; }
.hero-video.is-ready { opacity: 1; }
.video-toggle { display: grid; place-items: center; padding: 0px; }
.video-toggle .hero-toggle-play, .video-toggle[data-paused="true"] .hero-toggle-pause { display: none; }
.video-toggle[data-paused="true"] .hero-toggle-play { display: block; }
.video-toggle { right: auto; left: 24px; }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.video-toggle { left: 16px; }
}
html.hero-intro-ready .hero-copy.reveal { animation: auto ease 0s 1 normal none running none; }
.hero-copy :is(.hero-kicker, .brand-title, .hero-description, .hero-actions) { opacity: 0; }
html.hero-intro-ready .hero-copy .hero-kicker { animation: 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0s 1 normal both running hero-type-appear; }
html.hero-intro-ready .hero-copy .brand-title { animation: 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) 0.08s 1 normal both running hero-type-appear; }
html.hero-intro-ready .hero-copy .hero-description { animation: 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.18s 1 normal both running hero-type-appear; }
html.hero-intro-ready .hero-copy .hero-actions { animation: 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s 1 normal both running hero-type-appear; }
@media (prefers-reduced-motion: reduce) {
html.hero-intro-ready .hero-copy :is(.hero-kicker, .brand-title, .hero-description, .hero-actions) { animation-duration: 0.01ms; animation-delay: 0s; }
}

/* ===== Шапка и навигация ===== */
header { position: fixed; inset: 0px 0px auto; pointer-events: none; }
.header-inner { pointer-events: auto; display: flex; }
nav { display: flex; align-items: center; justify-content: center; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; height: 1px; transform: scaleX(0); transform-origin: center center; transition: transform 0.32s; }
nav a:hover::after { transform: scaleX(1); }
nav a[aria-current="location"]::after { transform: scaleX(1); }
@media (max-width: 640px) {
nav { max-width: min(100%, 560px); }
}
@media (max-width: 390px) {
.header-inner { padding-inline: 10px; }
}
header { z-index: 35; }
.header-inner { justify-content: flex-end; max-width: 1680px; margin: 0px auto; padding: 30px clamp(24px, 5.4vw, 90px); }
nav { gap: clamp(16px, 2vw, 34px); flex-wrap: nowrap; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: 0px; background: transparent; box-shadow: none; backdrop-filter: none; padding: 0px; }
nav a { padding: 10px 0px; font: 500 clamp(10px,.75vw,12px)/1.4 var(--body); text-transform: uppercase; color: rgba(255, 255, 255, 0.78); transition: color 0.24s; }
nav a:hover { color: rgb(255, 255, 255); }
nav a[aria-current="location"] { color: rgb(255, 255, 255); }
nav a::after { left: -15%; right: -15%; bottom: 4px; background:linear-gradient(90deg,transparent,var(--nav-rest),transparent); }
@media (max-width: 640px) {
.header-inner { justify-content: center; }
}
@media (max-width: 640px) {
nav { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
nav a { padding: 7px 0px; }
}
@media (max-width: 970px) {
nav { gap: clamp(12px, 2vw, 24px); }
}
@media (max-width: 375px) {
.header-inner { padding: 20px 12px; }
}
@media (max-width: 375px) {
nav { gap: 10px; }
}
nav a { font-size: 12px; line-height: 1.4; letter-spacing: 0.12em; }
@media (max-width: 640px) {
nav a { font-size: 11px; }
}
header.is-hidden { pointer-events: none; }
header.is-hidden .header-inner { pointer-events: none; }
header { opacity: 1; transform: translate3d(0px, 0px, 0px); will-change: transform; }
header.is-hidden { opacity: 1; transform: translate3d(0px, -110%, 0px); }
.header-contacts { display: flex; align-items: center; gap: 6px; }
nav .header-contact { display: grid; place-items: center; width: 34px; height: 34px; padding: 0px; flex: 0 0 auto; border-radius: var(--ui-radius); color: rgba(255, 255, 255, 0.8); transition: background-color 0.2s, color 0.2s; }
nav .header-contact::after { display: none; }
nav .header-contact:hover { background: transparent; color: rgb(255, 255, 255); }
.header-contact svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
.header-inner { padding: 16px 10px; }
}
@media (max-width: 640px) {
nav { gap: clamp(7px, 2vw, 12px); }
}
@media (max-width: 640px) {
nav a { letter-spacing: 0.04em; }
}
@media (max-width: 640px) {
.header-contacts { gap: 2px; }
}
@media (max-width: 640px) {
nav .header-contact { width: 32px; height: 36px; }
}
@media (max-width: 640px) {
.header-contact svg { width: 17px; height: 17px; }
}
@media (max-width: 360px) {
nav a { font-size: 10px; letter-spacing: 0.02em; }
}
@media (max-width: 360px) {
nav { gap: 6px; }
}
@media (max-width: 360px) {
nav .header-contact { width: 28px; }
}
.header-contacts { border-left: 0px; padding-left: 0px; margin-left: 0px; }
header { isolation: isolate; transition: transform 0.32s cubic-bezier(0.22, 0.68, 0, 1); background: transparent !important; backdrop-filter: none !important; }
header.is-scrolled { isolation: isolate; transition: transform 0.32s cubic-bezier(0.22, 0.68, 0, 1); background: transparent !important; backdrop-filter: none !important; }
header::before { content: ""; position: absolute; inset: 0px 0px -44px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 42%, rgba(0, 0, 0, 0.35) 73%, rgba(0, 0, 0, 0) 100%); opacity: 0; transition: opacity 0.45s; }
header.is-scrolled::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
header nav.nav-underline-ready { position: relative; }
}
@media (hover: hover) and (pointer: fine) {
header nav.nav-underline-ready > a[href^="#"]::after { display: none; }
}
@media (hover: hover) and (pointer: fine) {
header nav.nav-underline-ready .nav-travel-underline { display: block; position: absolute; left: 0px; top: 0px; width: 0px; height: 1px; --nav-ink:rgba(255,255,255,.85); background:linear-gradient(90deg,transparent,var(--section-line),transparent); opacity: 0; pointer-events: none; transition: opacity 0.16s; }
}
.mobile-menu-toggle, .mobile-menu-backdrop { display: none; }
header.mobile-menu-initializing #site-navigation { transition: none !important; }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready, header.mobile-menu-ready.is-hidden { transform: none; pointer-events: none; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready::before { opacity: 0 !important; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready .header-inner { position: relative; justify-content: flex-end; min-height: 72px; padding: 14px 16px; pointer-events: none; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.mobile-menu-ready .mobile-menu-toggle { display:block; position:relative; z-index:2; width:44px; height:44px; flex:0 0 auto; padding:0; border:0; border-radius:var(--ui-radius); background:transparent; backdrop-filter:none; box-shadow:none; color:rgb(238,238,238); pointer-events:auto; -webkit-tap-highlight-color:transparent; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.mobile-menu-toggle:hover { background: transparent; box-shadow: none; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.mobile-menu-toggle span { position: absolute; width: 20px; height: 2px; background: currentcolor; border-radius: 1px; transform-origin: 10px 1px; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.mobile-menu-toggle span:nth-child(1) { transform: translateY(-6px); }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.mobile-menu-toggle span:nth-child(3) { transform: translateY(6px); }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.35); }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready #site-navigation { position: absolute; top: 66px; right: 16px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px; max-width: none; max-height: calc(100dvh - 82px); overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 16px; border: 0px; background: rgba(17, 17, 17, 0.93); backdrop-filter: blur(22px); box-shadow: rgba(0, 0, 0, 0.44) 0px 16px 48px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px) scale(0.97); transform-origin: right top; transition: opacity 0.25s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-is-open #site-navigation { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready #site-navigation > a { display: block; min-height: 44px; padding: 12px 0px; font: 400 12px/1.5 var(--body); letter-spacing: 0.08em; text-align: left; text-transform: uppercase; color: rgb(204, 204, 204); }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready #site-navigation > a[aria-current="location"], header.mobile-menu-ready #site-navigation > a:hover { color: rgb(255, 255, 255); }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready #site-navigation > a::after { display: block; bottom: 8px; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready #site-navigation .nav-travel-underline { display: none; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready nav .header-contact { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0px; border-radius: var(--ui-radius); background: rgba(255, 255, 255, 0.024); color: rgba(255, 255, 255, 0.8); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready nav .header-contact:hover { background: transparent; color: rgb(255, 255, 255); box-shadow: none; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready .header-contact svg { display: block; width: 18px; height: 18px; flex: 0 0 auto; }
}
nav .header-share { border: 0px; background: transparent; cursor: pointer; }
.header-share .contact-copied-icon, .header-share.is-copied .contact-share-icon { display: none; }
.header-share.is-copied .contact-copied-icon { display: block; }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready .header-contacts { gap: 8px; }
}
header .header-contacts .header-share:not(.is-copied) svg.contact-copied-icon { display: none; }
header .header-contacts .header-share:not(.is-copied) svg.contact-share-icon { display: block; }
header .header-contacts .header-share.is-copied svg.contact-share-icon { display: none; }
header .header-contacts .header-share.is-copied svg.contact-copied-icon { display: block; }
.theme-toggle { position: fixed; top: max(20px,env(safe-area-inset-top)); left: max(24px,env(safe-area-inset-left)); z-index: 46; display: grid; place-items: center; width: 52px; height: 40px; padding: 0px; border: 1px solid var(--ui-edge); border-radius: var(--ui-radius); color: var(--ui-ink); transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s; }
.theme-toggle { border-color: transparent; background: transparent; backdrop-filter: none; box-shadow: none; }
.theme-toggle:hover { border-color: transparent; background: transparent; }
.theme-toggle .theme-moon { stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 5; }
.theme-toggle:focus-visible { outline: currentcolor solid 2px; outline-offset: 4px; }
body.modal-open .theme-toggle { opacity: 0; visibility: hidden; pointer-events: none; }
html[data-theme="light"] header::before { background: linear-gradient(rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 42%, rgba(255, 255, 255, 0.44) 73%, rgba(255, 255, 255, 0) 100%); }
html[data-theme="light"] nav a, html[data-theme="light"] header.mobile-menu-ready #site-navigation > a { color: rgb(85, 88, 90); }
html[data-theme="light"] nav a:hover, html[data-theme="light"] nav a[aria-current="location"], html[data-theme="light"] header.mobile-menu-ready #site-navigation > a[aria-current="location"] { color: rgb(22, 24, 25); }
html[data-theme="light"] nav a::after { background:linear-gradient(90deg,transparent,var(--nav-rest),transparent); }
html[data-theme="light"] nav .nav-travel-underline { --nav-ink:rgba(37,39,41,.85); }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.theme-toggle { top: max(14px,env(safe-area-inset-top)); left: max(16px,env(safe-area-inset-left)); height: 44px; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.mobile-menu-toggle span { left: calc(50% - 10px); top: 20px; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready #site-navigation { border-radius: var(--ui-radius); width: min(190px, -32px + 100vw); }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
html[data-theme="light"] header.mobile-menu-ready #site-navigation { background: rgba(255, 255, 255, 0.96); box-shadow: rgba(0, 0, 0, 0.133) 0px 16px 48px; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
html[data-theme="light"] header.mobile-menu-ready .header-contacts { border-color: rgba(0, 0, 0, 0.094); }
}
.brief-unavailable-note { margin: 12px 0px 0px; color: rgb(229, 193, 91); font: 400 12px/1.6 var(--body); }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready #site-navigation > a { width: max-content; max-width: 100%; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready #site-navigation > a::after { left: -15%; right: auto; width: 130%; transform-origin: left center; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready #site-navigation > a::after { background: linear-gradient(90deg,transparent,var(--nav-rest),transparent); }
}
.brief-unavailable-note { display: flex; align-items: flex-start; gap: 7px; }

/* ===== Карточки проектов ===== */
.portfolio { background: linear-gradient(rgb(0, 0, 0) 0%, rgb(2, 2, 2) 50%, rgb(4, 4, 4) 100%); box-shadow: rgba(0, 0, 0, 0.65) 0px -40px 60px; }
.project-card { flex: 0 0 min(72vw, 760px); scroll-snap-align: center; position: relative; border: 0px; background: none; padding: 0px; text-align: left; }
.project-card-frame { position: relative; }
.project-card-frame::after { content: ""; position: absolute; inset: auto 0px 0px; height: 42%; background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.75) 100%); }
.project-card img { transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.project-card { flex-basis: min(65vw, 820px); display: block; transform: scale(0.79); transform-origin: center center; opacity: 0.38; filter: brightness(0.72) saturate(0.7); transition: transform 0.85s cubic-bezier(0.18, 0.76, 0.21, 1), opacity 0.8s, filter 0.8s; }
.project-card:hover { opacity: 1; filter: none; transform: scale(1.035); z-index: 3; }
.project-card:focus-visible { opacity: 1; filter: none; transform: scale(1.035); z-index: 3; }
.project-card-frame { display: block; aspect-ratio: 16 / 9; border: 0px; outline: 0px; overflow: hidden; border-radius: var(--ui-radius); background: rgb(0, 0, 0); box-shadow: rgba(0, 0, 0, 0.35) 0px 28px 68px; line-height: 0; isolation: isolate; }
.project-card-frame::after { display: block; pointer-events: none; }
.project-card img { display: block; height: 100%; width: 100%; object-fit: cover; }
.project-card:hover img { transform: scale(1.045); }
.project-card:focus-visible img { transform: scale(1.045); }
@media (max-width: 900px) {
.project-card { flex-basis: min(81vw, 650px); }
}
@media (max-width: 640px) {
.project-card { flex-basis: 86vw; transform: scale(0.82); }
}
@media (max-width: 640px) {
.project-card:hover { transform: scale(1.025); }
}
@media (max-width: 640px) {
.project-card:focus-visible { transform: scale(1.025); }
}
@media (max-width: 640px) {
.project-card-frame { border-radius: var(--ui-radius); }
}
.projects-grid { display: grid; align-items: start; }
.projects-grid .project-card { display: block; width: 100%; flex: 0 0 auto; opacity: 1; filter: none; transform: none; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.projects-grid .project-card:hover { opacity: 1; filter: none; }
.projects-grid .project-card:focus-visible { opacity: 1; filter: none; }
.projects-grid .project-card-frame { display: block; aspect-ratio: 16 / 9; }
.projects-grid .project-thumbnail { display: block; width: 100%; height: 100%; object-fit: cover; }
.projects-grid video.project-thumbnail { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== Основа и общие элементы ===== */
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
body.mobile-menu-ready > .mobile-menu-backdrop { display: block; position: fixed; inset: 0px; z-index: 34; backdrop-filter: blur(0px); background: rgba(0, 0, 0, 0); opacity: 0; visibility: hidden; pointer-events: none; transition: backdrop-filter 0.35s, -webkit-backdrop-filter 0.35s, background 0.35s, opacity 0.35s, visibility 0.35s; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
body.mobile-menu-open > .mobile-menu-backdrop { backdrop-filter: blur(4px); background: rgba(0, 0, 0, 0.08); opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
}
html[data-theme="light"] .theme-sun { display: none; }
html[data-theme="light"] .theme-moon { display: block; }

/* ===== Главный экран и появление текста ===== */
html[data-theme="light"] .hero-glow { display: none; }

/* ===== Шапка и навигация ===== */
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready .header-contacts { display: flex; align-items: center; justify-content: flex-start; padding: 14px 0px 0px; margin: 13px 0px 0px; border-width: 1px 0px 0px; border-style: solid none none; border-color: rgba(255, 255, 255, 0.08) currentcolor currentcolor; border-image: none; }
}

/* ===== Карточки проектов ===== */
.projects-grid .project-card-frame::after { height: 55%; }
.projects-grid .project-card-frame::after { display: none !important; }
.projects-grid .project-card-frame { background: rgb(5, 5, 5); }
.projects-grid .project-card img { width: 100%; height: 100%; object-fit: cover; }
.projects-grid .project-card:hover img { transform: scale(1.035); }
.projects-grid .project-card:focus-visible img { transform: scale(1.035); }
.portfolio::before { content: ""; position: absolute; z-index: 3; top: 0px; left: 50%; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.27), transparent); pointer-events: none; }
.projects-grid .project-card img { transform: none !important; }
.project-preview { position: absolute; inset: 0px; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 0.18s; }
.project-card.is-playing .project-preview { opacity: 1; }
.project-card:focus-visible { outline: white solid 2px; outline-offset: 6px; }
.portfolio { padding: 32px 0px; }
#portfolio-title { margin-bottom: 12px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.15; }
.portfolio .section-lead { font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
@media (max-width: 700px) and (orientation: portrait) {
.portfolio .section-lead { font-size: 13px; }
}
@media (max-height: 450px) and (orientation: landscape) {
.portfolio { padding: 16px 0px; }
}
@media (max-height: 450px) and (orientation: landscape) {
#portfolio-title { font-size: 28px; margin-bottom: 8px; }
}
@media (max-height: 450px) and (orientation: landscape) {
.portfolio .section-lead { margin-bottom: 12px; font-size: 13px; }
}
.portfolio #portfolio-title { padding-inline: 16px; }
.portfolio .section-lead { padding-inline: 16px; }
.projects-grid .project-card-frame { box-shadow: none; }
.projects-grid .project-card:hover { transform: none; }
.projects-grid .project-card:focus-visible { transform: none; }
.projects-grid .project-card:focus-visible { outline-offset: -3px; z-index: 2; }
@media (max-width: 600px) and (orientation: portrait) {
.portfolio { padding: 22px 0px; scroll-margin-top: -64px; }
}
@media (max-width: 600px) and (orientation: portrait) {
.portfolio .section-lead { margin-bottom: 16px; }
}
@media (max-height: 450px) and (orientation: landscape) {
.portfolio { scroll-margin-top: -64px; }
}
.portfolio > .wrap { margin-inline: auto; padding-inline: 0px; }
.projects-grid { width: 100%; gap: 0px; grid-template-columns: repeat(4, minmax(0px, 1fr)); }
.projects-grid .project-card { margin: 0px; padding: 0px; border: 0px; border-radius: 0px; min-width: 0px; }
.projects-grid .project-card-frame { border-radius: var(--ui-radius); border: 0px; }
@media (max-width: 600px) {
.projects-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 0px; }
}
@media (min-width: 601px) {
.projects-grid { grid-template-columns: repeat(3, minmax(0px, 1fr)); }
}
@media (max-width: 600px) {
.project-card[data-mobile-hidden] { display: none; }
}
.project-swipe-hint { display: none; }
.portfolio > .wrap { width: calc(100% - 2 * var(--project-side-space)); max-width: none; }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.portfolio > .wrap { width: calc(100% - 20px); max-width: none; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.projects-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 0px; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.project-card[data-mobile-hidden] { display: none; }
}
.projects-grid .project-preview { display: block; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.project-swipe-caption { display: none; }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.project-card { touch-action: pan-y pinch-zoom; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.project-swipe-caption { display: block; margin: 16px 0px 0px; text-align: center; font: 400 12px/1.5 var(--body); color: rgba(255, 255, 255, 0.46); }
}
html[data-theme="light"] .project-card:focus-visible { outline-color: rgb(37, 39, 41); }
.portfolio { overflow-x: clip; }

/* ===== Обо мне ===== */
.details-copy { max-width: 920px; margin: 28px auto 0px; font: 400 clamp(18px,2vw,21px)/1.8 var(--body); color: var(--muted); text-wrap: pretty; }
.details-copy p { margin: 0px; }
@media (max-width: 640px) {
.details-copy { font-size: 17px; line-height: 1.75; }
}
.details-copy { font-family: var(--body); }
.details { padding: 42px 24px 112px; background: rgb(2, 2, 2); }
.details > .wrap { position: relative; padding-top: clamp(76px, 7.4vw, 104px); }
.details > .wrap::before { content: ""; position: absolute; top: 0px; left: 9%; right: 9%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.27), transparent); }
.details #details-title { max-width: 850px; font: 500 clamp(44px,5vw,72px)/1.1 var(--body); color:var(--text); text-wrap: balance; }
.details .details-role { color: rgba(255, 255, 255, 0.64); }
.details .details-copy { margin: 0px auto; color: rgba(255, 255, 255, 0.77); font: 400 clamp(16px,1.38vw,19px)/1.74 var(--body); letter-spacing: -0.012em; text-wrap: pretty; }
.details .details-copy p { margin: 0px; }
@media (max-width: 640px) {
.details { padding: 0px 18px 88px; }
}
@media (max-width: 640px) {
.details > .wrap { padding-top: 74px; }
}
@media (max-width: 640px) {
.details #details-title { max-width: 100%; }
}
@media (max-width: 640px) {
.details .details-role { max-width: 100%; }
}
@media (max-width: 640px) {
.details .details-copy { letter-spacing: -0.008em; }
}
.details .details-copy { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; }
.details .details-copy { margin-inline: auto; text-align: center; }
@media (max-width: 640px) {
.details .details-copy { text-align: center; }
}
.about-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--ui-radius); background: rgba(255, 255, 255, 0.024); }
.about-switch button { display:inline-flex; align-items:center; justify-content:center; text-align:center; min-height: 40px; padding: 9px 16px; border: 0px; border-radius: var(--ui-radius); background: transparent; color: rgba(255, 255, 255, 0.58); font: 500 13px/1.4 var(--body); transition: background-color 0.25s, color 0.25s; }
.about-switch button[aria-selected="true"] { background: rgba(255, 255, 255, 0.11); color: rgb(255, 255, 255); }
.about-switch button:hover { color: rgb(255, 255, 255); }
.about-copy-stage { overflow: hidden; overflow-anchor: none; }
.details .about-copy-stage p + p { margin-top: 18px; }
.about-switch { margin: 26px auto 0px; }
.details #details-title { font-family: var(--heading-cyrillic); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.15; letter-spacing: 0.014em; text-transform: uppercase; margin: 0px auto 28px; }
.details .details-name { font: 500 clamp(20px,1.65vw,24px)/1.45 var(--body); letter-spacing: 0px; margin: 0px auto 6px; }
.details .details-role { font: 400 clamp(16px,1.3vw,18px)/1.7 var(--body); letter-spacing: -0.012em; margin: 0px auto 20px; }
@media (max-height: 450px) and (orientation: landscape) {
.details #details-title { font-size: 28px; }
}
.details { padding-inline: 0px; }
.details > .wrap { width: min(var(--hero-wordmark-width,1240px),calc(100% - 24px)); }
.details .details-copy { width: 100%; max-width: none; }
.details .about-copy-content { text-wrap: balance; }
.details .about-nda { font-size: 0.8em; color: rgba(255, 255, 255, 0.56); }
@media (min-width: 801px) {
.details .details-copy { font-size: var(--about-copy-size,18px); }
}
@media (max-width: 800px) {
.details .details-copy { font-size: 16px; }
}
.about-desktop-break { display: none; }
@media (min-width: 801px) {
.about-desktop-break { display: initial; }
}
.about-text[hidden] { display: none; }
html[data-theme="light"] .details .details-copy { color: rgb(69, 72, 75); }
html[data-theme="light"] .about-switch button { color: rgb(98, 101, 104); }
html[data-theme="light"] .about-switch button:hover { color: rgb(23, 24, 25); }
html[data-theme="light"] .about-switch button[aria-selected="true"] { background: rgba(0, 0, 0, 0.047); color: rgb(23, 24, 25); }

/* ===== Бриф: поля, файлы, голос и состояния ===== */
.brief-dialog { color: rgb(238, 238, 238); background: rgb(16, 16, 16); border: 1px solid rgb(41, 41, 41); border-radius: var(--ui-radius); padding: 0px; width: min(943px, 100% - 48px); max-width: none; max-height: calc(100dvh - 48px); overflow: hidden; box-shadow: rgba(0, 0, 0, 0.6) 0px 24px 100px; font-family: Inter, Arial, sans-serif; text-align: left; }
.brief-dialog[open] { display: flex; flex-direction: column; animation: 0.25s ease-out 0s 1 normal none running brief-enter; }
.brief-dialog::backdrop { background: rgba(0, 0, 0, 0.667); backdrop-filter: blur(7px); }
.brief-heading-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 32px; border-bottom: 1px solid rgb(40, 40, 40); flex-shrink: 0; }
.brief-heading-bar h2 { font: 400 20px / 1.25 Inter, Arial, sans-serif; letter-spacing: -0.02em; margin: 0px; text-transform: none; }
.brief-close { flex-shrink: 0; width: 36px; height: 36px; padding: 7px; cursor: pointer; transition: background 0.2s, box-shadow 0.2s; }
.brief-close:hover { background: rgba(255, 255, 255, 0.035); box-shadow: rgba(255, 255, 255, 0.055) 0px 0px 18px; }
.brief-close:focus-visible { outline: rgb(153, 153, 153) solid 1px; outline-offset: 3px; }
.brief-scroll { overflow: auto; overscroll-behavior: contain; min-height: 0px; scrollbar-width: thin; scrollbar-color: rgb(72, 72, 72) rgb(21, 21, 21); padding: 32px; }
.brief-success[hidden], .brief-consent-text[hidden] { display: none !important; }
.brief-success h3 { font-size: 24px; line-height: 1.3; font-weight: 400; letter-spacing: -0.03em; margin: 0px 0px 14px; }
.brief-new { display:inline-flex; align-items:center; justify-content:center; text-align:center; font: 400 14px / 1.3 Inter, Arial, sans-serif; letter-spacing: 0.015em; color: rgb(238, 238, 238); border: 1px solid rgb(85, 85, 85); border-radius: var(--ui-radius); background: rgba(255, 255, 255, 0.024); min-height: 46px; padding: 12px 18px; cursor: pointer; transition: background 0.2s, box-shadow 0.2s; }
.brief-new:hover { background: rgba(255, 255, 255, 0.047); box-shadow: rgba(255, 255, 255, 0.05) 0px 0px 18px; }
.brief-consent-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; color: rgb(170, 170, 170); font-size: 12px; line-height: 1.7; }
.brief-consent-row label { cursor: pointer; }
.brief-consent-toggle { font: inherit; color: rgb(221, 221, 221); background: none; border: 0px; padding: 0px; text-decoration: underline rgb(102, 102, 102); text-underline-offset: 3px; cursor: pointer; text-align: left; }
.brief-consent-toggle:hover { color: rgb(255, 255, 255); }
.brief-consent-toggle:focus, .brief-consent-toggle:focus-visible { outline:none; box-shadow:none; }
.brief-consent-toggle:focus-visible { text-decoration-thickness:2px; text-decoration-color:currentColor; }
.brief-consent-text { border: 0px; padding: 0px; margin: 28px 0px 0px; color: rgb(176, 176, 176); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; text-align: left; }
.brief-consent-subtitle { display: block; font-weight: 500; color: rgb(213, 213, 213); line-height: 1.6; margin-bottom: 6px; }
.brief-consent-text p:last-child { margin-bottom: 0px; }
.brief-success { padding: 32px 0px 64px; }
@media (max-width: 600px) {
.brief-dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0px; border: 0px; border-radius: var(--ui-radius); }
}
@media (max-width: 600px) {
.brief-heading-bar { gap: 12px; }
}
@media (max-width: 600px) {
.brief-dialog { background: rgb(16, 16, 16); color: rgb(238, 238, 238); overscroll-behavior: contain; }
}
@media (max-width: 600px) {
.brief-heading-bar { padding: calc(10px + env(safe-area-inset-top)) 16px 10px 20px; min-height: 64px; background: rgb(16, 16, 16); border-bottom: 1px solid rgba(255, 255, 255, 0.07); align-items: center; }
}
@media (max-width: 600px) {
.brief-close { width: 44px; height: 44px; padding: 11px; margin-right: -5px; }
}
@media (max-width: 600px) {
.brief-scroll { padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); scroll-padding-block: 18px; scrollbar-width: none; }
}
@media (max-width: 600px) {
.brief-consent-row { font-size: 12px; line-height: 1.65; gap: 12px; margin-top: 20px; }
}
@media (max-width: 600px) {
.brief-consent-toggle { text-underline-offset: 3px; }
}
@media (max-width: 600px) {
.brief-consent-text { font-size: 12px; line-height: 1.8; margin-top: 25px; }
}
.brief-consent-row { position: relative; border-radius: var(--ui-radius); width: fit-content; max-width: 100%; box-sizing: border-box; }
.brief-consent-row.is-consent-required::before { content: ""; position: absolute; inset: -10px; border: 1.5px solid rgb(255, 75, 80); border-radius: var(--ui-radius); pointer-events: none; }
.brief-consent-row.is-consent-required input:not(:checked) { -webkit-appearance: none; appearance: none; border: 2px solid rgb(255, 75, 80); border-radius: var(--ui-radius); outline: 0px; background: transparent; animation: 1s ease-in-out 0s infinite normal none running brief-consent-flicker; }
.brief-consent-row.is-consent-required label, .brief-consent-row.is-consent-required .brief-consent-toggle { text-decoration: none; }
.hero-link:hover, .brief-new:hover { background: var(--ui-hover); border-color: rgb(170, 170, 170); box-shadow: rgba(255, 255, 255, 0.03) 0px 0px 14px; }
.about-switch { border-radius: var(--ui-radius); }
.about-switch button { border-radius: var(--ui-radius); }
.brief-close { border-radius: var(--ui-radius); border: 1px solid var(--ui-edge); background: var(--ui-fill); color: var(--ui-ink); }
html[data-theme="light"] .brief-scroll { scrollbar-color: rgb(188, 190, 189) rgb(244, 244, 243); }
html[data-theme="light"] .brief-success h3 { color: rgb(37, 39, 41); }
html[data-theme="light"] .brief-consent-row input { accent-color: rgb(51, 51, 51); }
#brief-title:focus { outline: none; box-shadow: none; }
.brief-section { padding: 0px 24px 80px; text-align: left; color: var(--text); background: transparent; }
.brief-section-wrap { position: relative; padding-top: 72px; isolation: isolate; }
.brief-section-wrap::after { content: ""; position: absolute; inset: 0px -12px; z-index: -1; pointer-events: none;  }
.brief-section #brief-section-title { font: 400 clamp(30px,3.2vw,44px)/1.15 var(--heading-cyrillic); letter-spacing: 0.014em; text-transform: uppercase; text-align: center; margin: 0px auto 12px; }
html[data-theme="light"] :is(.details > .wrap, .brief-section-wrap)::before { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.19), transparent); }
@media (max-width: 600px) {
.brief-section { padding: 0px 16px 56px; }
}
@media (max-height: 450px) and (orientation: landscape) {
.brief-section #brief-section-title { font-size: 28px; }
}

/* ===== Кнопки и общие действия ===== */
.skip { position: fixed; top: -100px; left: 16px; z-index: 50; background: rgb(0, 0, 0); padding:12px 18px; border: 1px solid var(--line-strong); }
.skip:focus { top: 16px; }
.reveal { opacity: 1; transform: none; filter: none; transition: opacity 0.9s, transform 0.9s, filter 0.9s; }

/* ===== Главный экран и появление текста ===== */
.hero-copy { --hero-heading-height: 0px; --hero-description-height: 0px; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(1600px, 100% - 44px); height: 0px; display: block; text-align: center; overflow: visible; }
@media (max-width: 900px) {
.hero-copy { width: calc(100% - 34px); top: 50%; }
}
@media (max-width: 640px) {
.hero-copy { width: calc(100% - 28px); top: 49%; }
}

/* ===== Кнопки и общие действия ===== */
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ===== Главный экран и появление текста ===== */
.hero-copy.reveal { transform: translate(-50%, -50%); }

/* ===== Кнопки и общие действия ===== */
.wrap { width: min(1240px, 100% - 56px); margin: auto; }
.section-lead { max-width: 660px; margin: 0px auto 34px; font: 400 clamp(16px,1.9vw,19px)/1.6 var(--body); color: var(--muted); }
.contacts-text { margin: 0px auto 28px; font: 400 18px/1.7 var(--body); color: var(--muted); }
@media (max-width: 640px) {
.wrap { width: calc(100% - 30px); }
}

/* ===== Бриф: поля, файлы, голос и состояния ===== */
@media (max-width: 600px) {
.brief-section-wrap { width: 100%; padding-top: 48px; }
}

/* ===== Кнопки и общие действия ===== */
@media (max-width: 640px) {
.section-lead { margin-bottom: 26px; }
}
@media (max-width: 640px) {
.contacts-text { font-size: 16px; line-height: 1.7; }
}
.contacts-text { max-width: 650px; margin-bottom: 35px; }
.section-lead { font-family: var(--body); }
.contacts-text { font-family: var(--body); }
.section-lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
@media (max-width: 640px) {
.section-lead { font-size: 15px; }
}
.project-prev { left: max(22px,env(safe-area-inset-left)); }
.project-next { right: max(22px,env(safe-area-inset-right)); }
.motion-ready .reveal.is-visible { animation: 0.7s ease 0s 1 normal both running content-reveal; }
main { position: relative; z-index: 1; }
.button-hover-hint { position: fixed; z-index: 65; box-sizing: border-box; width: max-content; max-width: 240px; padding: 8px 10px; border-radius: var(--ui-radius); background: rgba(22, 23, 24, 0.96); color: rgb(238, 238, 238); box-shadow: rgba(0, 0, 0, 0.133) 0px 3px 16px; font: 400 12px/1.45 var(--body); text-align: center; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.14s, visibility 0.14s; overflow-wrap: anywhere; }
.button-hover-hint.is-visible { opacity: 1; visibility: visible; }

/* ===== Контакты и плавающая панель ===== */
.contacts-section { background: rgb(2, 2, 2); }
.contacts-card { margin: 0px auto; }
.phone-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; padding: 6px 0px; font: 500 clamp(15px,2vw,18px)/1.5 var(--display); }
.contact-handle { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; padding: 6px 0px; font: 500 clamp(15px,2vw,18px)/1.5 var(--display); }
.phone-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-handle svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
.contact-links { display: grid; }
}
.contacts-card { background: none; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: 0px; position: relative; }
.contacts-card::before { content: ""; position: absolute; top: 0px; height: 1px; }
.contacts-section h2 { margin-bottom: 21px; }
.contact-links { gap: 26px 42px; }
.phone-link { border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.contact-handle { border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.phone-link:hover { border-color: rgba(255, 255, 255, 0.65); }
.contact-handle:hover { border-color: rgba(255, 255, 255, 0.65); }
@media (max-width: 640px) {
.contact-links { gap: 12px; }
}
.contacts-section { padding: 42px 24px 112px; }
.contacts-card { width: min(1060px, 100%); max-width: 1060px; padding: clamp(76px, 7.4vw, 104px) 20px 8px; }
.contacts-card::before { left: 9%; right: 9%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.27), transparent); }
.contacts-section #contacts-heading { text-transform: none; color: rgb(255, 255, 255); }
.contacts-section .contacts-text { font: 400 clamp(16px,1.33vw,19px)/1.55 var(--body); text-wrap: balance; }
@media (max-width: 640px) {
.contacts-section { padding: 0px 18px 82px; }
}
.back-to-top { position: fixed; z-index: 45; display: grid; place-items: center; padding: 0px; border-radius: var(--ui-radius); opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity 0.22s, transform 0.22s, visibility 0.22s, background-color 0.22s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top { border: 0px; box-shadow: none; background: transparent; color: rgba(255, 255, 255, 0.8); }
.back-to-top:hover { background: transparent; color: rgb(255, 255, 255); }
.back-to-top:active { border: 0px; box-shadow: none; }
.contacts-section > .wrap { width: min(var(--hero-wordmark-width,1240px),calc(100% - 24px)); max-width: none; }
.contacts-section .contacts-card { width: 100%; max-width: none; }
.contacts-section .contacts-card { padding: 72px 0px 24px; text-align: center; }
.contacts-section .contacts-text { max-width: 640px; color: rgba(255, 255, 255, 0.66); letter-spacing: 0px; }
@media (max-width: 600px) {
.contacts-section .contacts-card { padding: 52px 0px 16px; }
}
@media (max-width: 600px) {
.contacts-section #contacts-heading { white-space: nowrap; }
}
.contacts-section .contacts-card { flex-direction: column; align-items: center; gap: 24px; }
.contacts-section #contacts-heading { margin: 0px; }
.contacts-section .contacts-text { margin: 0px; font-size: 16px; line-height: 1.6; }
@media (max-width: 600px) {
.contacts-section .contacts-card { gap: 20px; }
}
@media (max-width: 600px) {
.contacts-section .contacts-text { font-size: 15px; line-height: 1.6; max-width: 310px; }
}
.contacts-section .contacts-card { padding-bottom: 0px; }
.contacts-section#contacts { padding-bottom: 132px; }
@media (max-width: 600px) {
.contacts-section#contacts { padding-bottom: 70px; }
}
.contact-dock { position: fixed; right: var(--dock-right); bottom: var(--dock-bottom); z-index: 45; transition: opacity 0.22s, visibility 0.22s; }
.contact-dock-toggle, .contact-dock-action { display: grid; place-items: center; position: relative; flex: 0 0 auto; padding: 0px; border: 0px; border-radius: var(--ui-radius); background: transparent; backdrop-filter: none; box-shadow: none; color: inherit; cursor: pointer; text-decoration: none; transition: background 0.2s, color 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.contact-dock-toggle:hover, .contact-dock-action:hover, .contact-dock.is-expanded .contact-dock-toggle { background: transparent; color: rgb(255, 255, 255); }
.contact-dock-actions { position: absolute; right: 100%; bottom: 0px; display: flex; align-items: center; gap: 8px; padding-right: 10px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(12px); transition: opacity 0.2s, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s; }
.contact-dock.is-expanded .contact-dock-actions { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.contact-dock-actions .contact-dock-action:hover { background: transparent; }
.contact-dock-share .contact-copied-icon, .contact-dock-share.is-copied .contact-share-icon { display: none; }
.contact-dock-share.is-copied .contact-copied-icon { display: block; }
.contact-dock-status { position: absolute; right: calc(100% + 10px); bottom: calc(100% + 8px); width: max-content; max-width: calc(-80px + 100vw); padding: 8px 12px; border-radius: var(--ui-radius); background: rgba(12, 12, 12, 0.92); color: rgba(255, 255, 255, 0.88); font: 400 12px/1.4 var(--body); opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none; transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.contact-dock.has-message .contact-dock-status { opacity: 1; visibility: visible; transform: none; }
body.modal-open .contact-dock, body.mobile-menu-open .contact-dock, body.mobile-menu-open .back-to-top { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.contact-dock-toggle::before, .contact-dock-action::before { content: ""; position: absolute; inset: -2px; border-radius: var(--ui-radius); }
}
.phone-copy-notice { position: fixed; z-index: 60; left: 0px; top: 0px; display: block; width: max-content; max-width: calc(-20px + 100vw); padding: 8px 12px; border: 0px; border-radius: var(--ui-radius); background: rgba(12, 12, 12, 0.94); backdrop-filter: blur(10px); color: rgba(255, 255, 255, 0.9); font: 400 12px/1.4 var(--body); text-align: center; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(3px); transition: opacity 0.16s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s; }
.phone-copy-notice.is-visible { opacity: 1; visibility: visible; transform: none; }
.portfolio, .details, .contacts-section { background: transparent; box-shadow: none; }
.contacts-section #contacts-heading { font: 500 clamp(20px,1.65vw,24px)/1.45 var(--body); letter-spacing: 0px; max-width: 100%; text-wrap: balance; }
:is(button, a.hero-link, a.contact-handle, a.phone-link, a.header-contact, .contact-dock-action) { border-radius: var(--ui-radius); }
.contact-dock-toggle, .contact-dock-action, .back-to-top { border-radius: var(--ui-radius); border: 0; background: transparent; -webkit-tap-highlight-color: transparent; color: var(--ui-ink); }
nav .header-contact:hover { background: transparent; border-color: transparent; }
.contact-dock { --dock-size: 44px; color: var(--ui-ink); }
.phone-copy-notice, .contact-dock-status { border-radius: var(--ui-radius); }
html[data-theme="light"] .details .details-name { color: rgb(23, 24, 25); }
html[data-theme="light"] .contacts-section #contacts-heading { color: rgb(23, 24, 25); }
html[data-theme="light"] .contacts-section .contacts-text { color: rgb(98, 101, 104); }
html[data-theme="light"] .contacts-card::before { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.19), transparent); }
html[data-theme="light"] .contacts-section .phone-link { color: rgb(37, 39, 41); }
html[data-theme="light"] .header-contact:hover, html[data-theme="light"] header.mobile-menu-ready nav .header-contact:hover { color: rgb(37, 39, 41); background: transparent; border-color: transparent; }
.contact-dock { width: 52px; height: 44px; }
.contact-dock-toggle, .contact-dock-action { width: 52px; height: 44px; }
.back-to-top { right: var(--dock-right); width: 52px; height: 44px; bottom: calc(var(--dock-bottom) + 44px + var(--dock-gap)); }
.contact-dock-actions .contact-dock-action:hover, .contact-dock.is-expanded .contact-dock-toggle { background: transparent; color: var(--ui-ink); }
main > :is(.portfolio, .details, .brief-section, .contacts-section#contacts) { padding-block: var(--section-space); }
main > .contacts-section#contacts { padding-top: calc(var(--section-space) + var(--footer-leading-space)); }
main > :is(.portfolio, .details, .brief-section, .contacts-section)::before { content: ""; position: absolute; top: 0px; left: 50%; right: auto; width: min(1220.4px, 98.4% - 31.488px); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg,transparent,var(--section-line),transparent); pointer-events: none; }
.contacts-section .contact-links :is(.phone-link, .contact-handle) { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0px; margin: 0px; box-shadow: none; color: var(--ui-ink); letter-spacing: 0px; white-space: nowrap; text-align: center; gap: 10px; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.contacts-section .contact-links .phone-link { width: auto; max-width: 100%; min-height: 44px; padding: 0px; border: 0px; border-radius: var(--ui-radius); background: transparent; font:500 clamp(18.4px,1.518vw,22.08px)/1.45 var(--body); text-decoration: none; }
.contacts-section .contact-links .contact-handle { display:inline-flex; align-items:center; justify-content:center; gap:8px; text-align:center; width:max-content; max-width: 100%; min-height: 50px; padding:12px 18px; border:1px solid var(--ui-edge); border-radius:var(--ui-radius); background:var(--ui-fill); font:500 14px/1.4 var(--body); transition:background-color .25s,border-color .25s; }
.contacts-section .contact-links .contact-handle > svg { flex:0 0 18px; }
.contacts-section .contact-links .contact-handle > span { display:block; }
.contacts-section .contact-links .contact-handle::before { content:none; }
.contacts-section .contact-links :is(.phone-link, .contact-handle) svg { display: block; flex: 0 0 auto; width: 18px; height: 18px; }
@media (min-width: 801px) and (hover: hover) and (pointer: fine) {
.contacts-section .contact-links .contact-handle:hover { background: var(--ui-hover); border-color: var(--ui-ink); }
}
@media (max-width: 800px), (hover: none), (pointer: coarse) {
.contacts-section .contact-links .contact-handle:is(:hover, :active, :focus) { background: var(--ui-fill); box-shadow: none; color: var(--ui-ink); }
}
@media (prefers-reduced-motion: reduce) {
.contacts-section .contact-links :is(.phone-link, .contact-handle) { transition: none; }
}

/* ===== Футер ===== */
.footer { font: 400 12px/1.8 var(--body); color: rgba(255, 255, 255, 0.46); }
.footer { font-size: 12px; line-height: 1.65; }
.footer { margin-top: 0px; padding: var(--footer-leading-space) 20px 28px; }
@media (max-width: 600px) {
:root { --footer-leading-space: 128px; }
.footer { padding: var(--footer-leading-space) 20px 24px; }
}
.footer { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer { position: relative; z-index: 1; background: transparent; }
#portfolio-title, .portfolio .section-lead, .details > .wrap, .contacts-card, .footer { position: relative; isolation: isolate; }
#portfolio-title::after, .portfolio .section-lead::after, .details > .wrap::after, .contacts-card::after, .footer::after { content: ""; position: absolute; inset: -16px -12px; z-index: -1; pointer-events: none; background: radial-gradient(rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.44) 55%, transparent 78%); }

/* ===== Карточки проектов ===== */
@media (max-width: 600px) {
#portfolio-title::after, .portfolio .section-lead::after { inset: -12px 0px; }
}

/* ===== Обо мне ===== */
:is(.details > .wrap, .brief-section-wrap)::after { inset: -24px -20px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.5) 15%, rgba(0, 0, 0, 0.5) 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, rgb(0, 0, 0) 8%, rgb(0, 0, 0) 92%, transparent); mask-image: linear-gradient(90deg, transparent, rgb(0, 0, 0) 8%, rgb(0, 0, 0) 92%, transparent); }
@media (max-width: 600px) {
:is(.details > .wrap, .brief-section-wrap)::after { inset: -18px -8px; }
}

/* ===== Контакты и плавающая панель ===== */
.contacts-card::after { inset: 32px -12px -12px; }
@media (max-width: 600px) {
.contacts-card::after { inset: 22px -8px -10px; }
}

/* ===== Футер ===== */
.footer::after { inset: 0px; }
html[data-theme="light"] :is(#portfolio-title, .portfolio .section-lead, .details > .wrap, .brief-section-wrap, .contacts-card, .footer)::after { background: radial-gradient(rgba(255, 255, 255, 0.875) 0%, rgba(255, 255, 255, 0.65) 55%, rgba(255, 255, 255, 0) 78%); }
.footer-policy { display: inline-block; max-width: 100%; margin: 0px; padding: 0px; border: 0px; background: transparent; color: inherit; font: inherit; text-align: center; opacity: 1; cursor: default; -webkit-text-fill-color: currentcolor; }

/* ===== Видеоплееры ===== */
.modal-backdrop { position: fixed; inset: 0px; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.42); backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
.modal-backdrop { padding: 10px; }
}
.showreel-backdrop { z-index: 100; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(20px); }
.showreel-dialog { width: min(1420px, -48px + 100vw); transform: translateY(25px) scale(0.972); transition: transform 0.62s cubic-bezier(0.2, 0.9, 0.18, 1); max-height: 96svh; }
.showreel-backdrop.is-open .showreel-dialog { transform: none; }
.showreel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0px 3px; }
.showreel-headline { display: flex; align-items: baseline; gap: 14px; font: 500 13px/1.35 var(--body); letter-spacing: 0.17em; }
.showreel-label { color: rgba(255, 255, 255, 0.55); font-size: 11px; }
.showreel-close { border: 0px; background: transparent; font: 400 23px/1 var(--body); padding: 9px 12px; opacity: 0.75; transition: opacity 0.2s; }
.showreel-close:hover { opacity: 1; }
.showreel-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: rgb(3, 3, 3); box-shadow: rgba(0, 0, 0, 0.6) 0px 30px 90px; overflow: hidden; border-radius: var(--ui-radius); }
.showreel-custom-controls { position: absolute; left: 18px; bottom: 12px; gap: 4px; z-index: 3; }
.showreel-screen:hover .showreel-custom-controls { opacity: 1; }
.showreel-screen:focus-within .showreel-custom-controls { opacity: 1; }
.showreel-custom-controls button { font: 500 13px/1 var(--body); letter-spacing: 0.04em; }
@media (max-width: 640px) {
.showreel-dialog { width: calc(-16px + 100vw); }
}
@media (max-width: 640px) {
.showreel-screen { border-radius: var(--ui-radius); }
}
@media (max-width: 640px) {
.showreel-head { padding: 0px 5px; }
}
#project-viewer { position: fixed; inset: 0px; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0px; padding: 0px; border: 0px; background: rgb(0, 0, 0); overflow: hidden; }
#project-viewer::backdrop { background: rgb(0, 0, 0); }
#project-viewer video { display: block; width: 100%; height: 100%; object-fit: contain; }
#project-viewer:not([open]) { display: none !important; }
.showreel-backdrop:not(.is-open) { visibility: hidden; }
#project-viewer { cursor: default; touch-action: pan-y; }
#project-viewer video { cursor: default; }
#project-viewer button { position: absolute; z-index: 2; display: grid; place-items: center; border-radius: var(--ui-radius); width: 48px; height: 48px; cursor: pointer; }
#project-viewer button:focus-visible { outline: white solid 2px; outline-offset: 4px; }
#project-viewer svg { fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; }
.project-close { top: max(22px,env(safe-area-inset-top)); right: max(22px,env(safe-area-inset-right)); }
.project-arrow { top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
#project-viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
}
@media (max-width: 600px) {
#project-viewer video { width: 100%; height: auto; aspect-ratio: 16 / 9; flex: 0 0 auto; object-fit: contain; }
}
#project-viewer button { padding: 0px; }
#project-viewer svg { display: block; width: 24px; height: 24px; flex: 0 0 auto; shape-rendering: geometricprecision; overflow: visible; }
#project-viewer svg path { vector-effect: non-scaling-stroke; }
#project-viewer .project-arrow { top: calc(50% - 24px); transform: none; }
#project-viewer svg { stroke-width: 2.5; }
#project-viewer button { border: 0px; box-shadow: none; background: transparent; color: rgba(255, 255, 255, 0.8); transition: background-color 0.2s, color 0.2s; }
#project-viewer button:hover { border: 0px; box-shadow: none; background: rgba(255, 255, 255, 0.09); color: rgb(255, 255, 255); }
#project-viewer svg { filter: none; }
@media (max-width: 600px) {
#project-viewer .project-close { display: grid; width: 44px; height: 44px; top: max(12px,env(safe-area-inset-top)); right: max(12px,env(safe-area-inset-right)); }
}
@media (max-width: 600px) {
#project-viewer .project-close svg { width: 22px; height: 22px; stroke-width: 2.3; }
}
@media (max-width: 600px) {
#project-viewer[open] { padding: max(64px,calc(env(safe-area-inset-top) + 52px)) 0 max(64px,calc(env(safe-area-inset-bottom) + 52px)); }
}
@media (max-width: 600px) {
#project-viewer .project-close { outline: none; box-shadow: none; border: 0px; background: transparent; -webkit-tap-highlight-color: transparent; }
}
@media (max-width: 600px) {
#project-viewer .project-close:focus { outline: none; box-shadow: none; border: 0px; background: transparent; -webkit-tap-highlight-color: transparent; }
}
@media (max-width: 600px) {
#project-viewer .project-close:focus-visible { outline: none; box-shadow: none; border: 0px; background: transparent; -webkit-tap-highlight-color: transparent; }
}
@media (max-width: 600px) {
#project-viewer .project-close:active { outline: none; box-shadow: none; border: 0px; background: transparent; -webkit-tap-highlight-color: transparent; }
}
@media (max-width: 600px) {
#project-viewer[open] { gap: 20px; }
}
@media (max-width: 600px) {
#project-viewer .project-swipe-hint { display: flex; align-items: center; justify-content: center; gap: 12px; flex: 0 0 auto; pointer-events: none; }
}
@media (max-width: 600px) {
#project-viewer .project-swipe-hint svg { display: block; width: 16px; height: 16px; stroke-width: 1.4; fill: none; filter: none; }
}
@media (max-width: 600px) {
#project-viewer video { max-height: calc(100dvh - 200px); }
}
@media (max-width: 600px) {
#project-viewer .project-swipe-hint .swipe-hand-classic { display: block; stroke-linecap: round; stroke-linejoin: round; fill: none; filter: none; animation: auto ease 0s 1 normal none running none; }
}
@media (max-width: 600px) {
#project-viewer .swipe-hand-classic path { vector-effect: non-scaling-stroke; }
}
@media (max-width: 600px) {
#project-viewer .project-swipe-hint { height: 22px; }
}
@media (max-width: 600px) {
#project-viewer .project-swipe-hint .swipe-hand-classic { width: 22px; height: 22px; overflow: visible; stroke-width: 1.35; }
}
@media (max-width: 600px) {
#project-viewer .swipe-hand-tilt { transform-origin: 48px 98px; animation: 2s cubic-bezier(0.45, 0, 0.55, 1) 0s infinite normal none running swipe-hand-smooth; }
}
@media (max-width: 600px) {
#project-viewer .project-swipe-hint { color: rgba(255, 255, 255, 0.8); }
}
@media (max-width: 600px) {
#project-viewer { touch-action: none; overscroll-behavior: contain; }
}
.project-viewer-navigation { display: contents; }
@media (max-width: 600px) {
#project-viewer .project-viewer-navigation { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; width: 100%; padding-inline: max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right)); height: 44px; flex: 0 0 auto; }
}
@media (max-width: 600px) {
#project-viewer .project-arrow { position: static; display: grid; width: 44px; height: 44px; transform: none; }
}
@media (max-width: 600px) {
#project-viewer .project-prev { grid-area: 1 / 1; }
}
@media (max-width: 600px) {
#project-viewer .project-next { grid-area: 1 / 3; }
}
@media (max-width: 600px) {
#project-viewer .project-swipe-hint { grid-area: 1 / 2; }
}
@media (max-width: 600px) {
#project-viewer .project-arrow svg { width: 22px; height: 22px; stroke-width: 2.3; }
}
@media (max-width: 600px) {
#project-viewer .project-arrow:focus { outline: none; }
}
@media (max-width: 600px) {
#project-viewer .project-arrow:focus-visible { outline: none; }
}
#showreel-film { display: block; width: 100%; height: 100%; object-fit: contain; touch-action: manipulation; }
.showreel-custom-controls { display: flex; opacity: 1; }
.showreel-custom-controls button { border: 0px; border-radius: var(--ui-radius); min-width: 44px; min-height: 44px; background: rgba(0, 0, 0, 0.5); color: rgb(255, 255, 255); backdrop-filter: blur(10px); }
.showreel-seek-feedback { position: absolute; top: 50%; transform: translate(-50%, -50%); padding: 12px; background: rgba(0, 0, 0, 0.45); color: white; font: 500 16px/1.4 var(--body); opacity: 0; pointer-events: none; }
.showreel-seek-feedback.is-visible { opacity: 1; }
@media (max-width: 640px) {
.showreel-custom-controls { left: 8px; bottom: 6px; gap: 4px; }
}
@media (max-width: 640px) {
.showreel-custom-controls button { font-size: 11px; }
}
.showreel-custom-controls button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0px; cursor: pointer; }
.showreel-custom-controls svg { display: block; flex: 0 0 auto; }

/* ===== Главный экран и появление текста ===== */
.video-toggle svg { display: block; width: 17px; height: 17px; }

/* ===== Шапка и навигация ===== */
nav .nav-travel-underline { display: none; }

/* ===== Бриф: поля, файлы, голос и состояния ===== */
.brief-close svg { width: 100%; height: 100%; display: block; }

/* ===== Контакты и плавающая панель ===== */
.contact-dock-toggle svg, .contact-dock-action svg { display: block; width: 19px; height: 19px; }
.contact-dock-toggle svg { width: 21px; height: 21px; }

/* ===== Видеоплееры ===== */
.showreel-fullscreen { position: absolute; right: 18px; bottom: 12px; z-index: 4; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0px; border: 0px; border-radius: var(--ui-radius); background: rgba(0, 0, 0, 0.5); color: rgb(255, 255, 255); backdrop-filter: blur(10px); cursor: pointer; }
.showreel-fullscreen:hover { background: rgba(255, 255, 255, 0.15); }
.showreel-custom-controls button:hover { background: rgba(255, 255, 255, 0.15); }
.showreel-dialog:fullscreen { width: 100vw; max-height: none; height: 100dvh; background: rgb(3, 3, 3); display: flex; flex-direction: column; justify-content: center; padding: 16px; box-sizing: border-box; }
.showreel-dialog:fullscreen .showreel-screen { min-height: 0px; max-height: calc(100dvh - 70px); }
@media (max-width: 640px) {
.showreel-fullscreen { right: 8px; bottom: 6px; }
}
@media (max-width: 640px) {
.showreel-dialog { touch-action: none; }
}
.showreel-dialog:is(:fullscreen, .is-expanded) { padding: 0px; width: 100vw; height: 100dvh; max-width: none; max-height: none; }
.showreel-dialog:is(:fullscreen, .is-expanded) .showreel-head { position: absolute; top: max(12px,env(safe-area-inset-top)); left: 16px; right: 16px; z-index: 5; margin: 0px; text-shadow: rgb(0, 0, 0) 0px 1px 8px; }
.showreel-dialog:is(:fullscreen, .is-expanded) .showreel-screen { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: var(--ui-radius); box-shadow: none; }
.showreel-dialog:is(:fullscreen, .is-expanded) #showreel-film { width: 100%; height: 100%; }
.showreel-dialog:is(:fullscreen, .is-expanded) .showreel-custom-controls { left: max(16px,env(safe-area-inset-left)); bottom: max(16px,env(safe-area-inset-bottom)); }
.showreel-dialog:is(:fullscreen, .is-expanded) .showreel-fullscreen { right: max(16px,env(safe-area-inset-right)); bottom: max(16px,env(safe-area-inset-bottom)); }
.showreel-seek-feedback { border-radius: var(--ui-radius); white-space: nowrap; transition: opacity 0.65s cubic-bezier(0.2, 0.6, 0.3, 1); }
.showreel-seek-feedback.is-visible { transition-duration: 0.12s; }
.showreel-dialog.is-expanded { position: fixed; inset: 0px; margin: 0px; z-index: 101; }
.showreel-dialog:is(:fullscreen, .is-expanded) #showreel-film { object-fit: contain; }
.showreel-dialog { -webkit-tap-highlight-color: transparent; outline: 0px !important; border: 0px !important; }
.showreel-screen { -webkit-tap-highlight-color: transparent; outline: 0px !important; border: 0px !important; }
#showreel-film { -webkit-tap-highlight-color: transparent; outline: 0px !important; border: 0px !important; }
.showreel-dialog * { -webkit-tap-highlight-color: transparent; }
.showreel-dialog :focus:not(:focus-visible) { outline: 0px; }
.showreel-volume { width: 78px; height: 32px; align-self: center; accent-color: rgb(238, 238, 238); cursor: pointer; margin: 0px 8px 0px 2px; }
@media (orientation: portrait) and (pointer: coarse) {
.showreel-dialog:is(:fullscreen, .is-expanded) { position: fixed; inset: 50% auto auto 50%; width: 100dvh; height: 100dvw; translate: -50% -50%; rotate: 90deg; }
}
.showreel-head { transition: opacity 0.4s; }
.showreel-custom-controls { transition: opacity 0.4s; }
.showreel-fullscreen { transition: opacity 0.4s; }
.showreel-dialog.ui-idle .showreel-head { opacity: 0; pointer-events: none; }
.showreel-dialog.ui-idle .showreel-custom-controls { opacity: 0; pointer-events: none; }
.showreel-dialog.ui-idle .showreel-fullscreen { opacity: 0; pointer-events: none; }
.showreel-dialog.ui-idle { cursor: none; }
.showreel-volume { touch-action: none; }
#showreel-fullscreen { outline: none; outline-offset: 0px; border: 0px; }
#showreel-fullscreen:focus { outline: none; outline-offset: 0px; border: 0px; }
#showreel-fullscreen:focus-visible { outline: none; outline-offset: 0px; border: 0px; }
#showreel-fullscreen:focus-visible { box-shadow: rgba(255, 255, 255, 0.2) 0px 0px 16px; background: rgba(255, 255, 255, 0.14); }
@media (pointer: coarse), (max-width: 640px) {
.showreel-dialog:not(:fullscreen):not(.is-expanded) .showreel-volume { display: none; }
}
@media (pointer: coarse), (max-width: 640px) {
.showreel-seek-feedback { font-weight: 300; letter-spacing: 0.04em; }
}
.showreel-pause-indicator { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: rgba(0, 0, 0, 0.32); backdrop-filter: blur(8px); color: rgba(255, 255, 255, 0.9); opacity: 0; transition: none; pointer-events: none; }
.showreel-screen.is-paused .showreel-pause-indicator { opacity: 1; transition: opacity 0.3s; }
@media (max-width: 640px) {
.showreel-pause-indicator { width: 48px; height: 48px; }
}
@media (max-width: 640px) {
.showreel-pause-indicator svg { width: 24px; height: 24px; }
}
.showreel-dialog { display: flex; flex-direction: column; }
.showreel-screen { flex: 0 1 auto; min-height: 0px; }
.showreel-timeline { display: flex; align-items: center; gap: 14px; width: 100%; margin: 10px 0px 0px; min-height: 32px; padding: 0px 3px; box-sizing: border-box; color: rgba(255, 255, 255, 0.75); transition: opacity 0.4s; }
.showreel-timeline input { --progress: 0%; flex: 1 1 0%; min-width: 0px; height: 28px; margin: 0px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; touch-action: none; }

/* ===== Бриф: поля, файлы, голос и состояния ===== */
.brief-consent-row input { -webkit-appearance: auto; appearance: auto; accent-color: rgb(221, 221, 221); margin: 4px 0px 0px; width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.brief-consent-text h3 { font-size: 16px; font-weight: 400; letter-spacing: -0.015em; color: rgb(238, 238, 238); line-height: 1.45; margin: 0px 0px 20px; }
.brief-consent-text p { margin: 0px 0px 18px; }
@media (max-width: 600px) {
.brief-consent-text h3 { font-size: 15px; margin-bottom: 18px; }
}
@media (max-width: 600px) {
.brief-consent-text p { margin-bottom: 16px; }
}

/* ===== Видеоплееры ===== */
.showreel-timeline input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right,rgba(255,255,255,.9) var(--progress),rgba(255,255,255,.22) var(--progress)); border-radius: 2px; }
.showreel-timeline input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 10px; height: 10px; margin-top: -4px; border: 0px; border-radius: 50%; background: rgb(238, 238, 238); box-shadow: rgba(255, 255, 255, 0.13) 0px 0px 8px; }
.showreel-timeline input:disabled { cursor: default; opacity: 0.35; }
.showreel-timeline output { flex: 0 0 auto; min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Бриф: поля, файлы, голос и состояния ===== */
.brief-consent-row { overflow-wrap: anywhere; }

/* ===== Видеоплееры ===== */
.showreel-dialog:is(:fullscreen, .is-expanded) { display: block; }

/* ===== Бриф: поля, файлы, голос и состояния ===== */

/* ===== Видеоплееры ===== */
.showreel-dialog:is(:fullscreen, .is-expanded) .showreel-timeline { position: absolute; left: max(16px,env(safe-area-inset-left)); right: max(16px,env(safe-area-inset-right)); bottom: max(10px,env(safe-area-inset-bottom)); width: auto; margin: 0px; z-index: 4; padding: 0px 10px; border-radius: var(--ui-radius); background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); }
.showreel-dialog:is(:fullscreen, .is-expanded) .showreel-custom-controls, .showreel-dialog:is(:fullscreen, .is-expanded) .showreel-fullscreen { bottom: max(54px,calc(env(safe-area-inset-bottom) + 44px)); }
.showreel-dialog.ui-idle .showreel-timeline { opacity: 0; pointer-events: none; }
.showreel-recovery { position: absolute; inset: 0px; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(3, 3, 3, 0.88); backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: opacity 0.35s; box-sizing: border-box; }
.showreel-recovery[hidden] { display: none; }

/* ===== Бриф: поля, файлы, голос и состояния ===== */

/* ===== Главный экран и появление текста ===== */

/* ===== Шапка и навигация ===== */
.theme-toggle .theme-moon { display: none; }
.brief-unavailable-note[hidden] { display: none !important; }

/* ===== Обо мне ===== */
.details .about-switch { display: flex; width: max-content; max-width: 100%; }

/* ===== Бриф: поля, файлы, голос и состояния ===== */
.brief-section .brief-content { max-width: 760px; margin: auto; }
@media (min-width: 801px) and (hover: hover) and (pointer: fine) {
.brief-new { min-height: 50px; padding: 12px 18px; font-size: 14px; line-height: 1.4; }
}

/* ===== Контакты и плавающая панель ===== */
.contact-dock-actions .contact-dock-action { background: transparent; color: var(--ui-ink); }
.details > .wrap, .brief-section-wrap, .contacts-section .contacts-card { padding-block: 0px; display: flow-root; }
.contacts-section .contacts-card { display: flex; }
.contacts-section .contact-links { display: flex; flex-direction: column; align-items: center; width: min(320px, 100%); max-width: 100%; gap: 16px; border: 0px; border-radius: var(--ui-radius); background: transparent; box-sizing: border-box; }

/* ===== Видеоплееры ===== */
.showreel-recovery.is-visible { opacity: 1; pointer-events: auto; }
.showreel-recovery-content { text-align: center; max-width: 100%; transform: translateY(7px); transition: transform 0.35s; }
.showreel-recovery.is-visible .showreel-recovery-content { transform: none; }
.showreel-recovery-message { margin: 0px 0px 20px; color: rgba(255, 255, 255, 0.72); font: 400 16px/1.5 var(--body); }
.showreel-recovery-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; }
.showreel-recovery-actions button, .showreel-recovery-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; box-sizing: border-box; border: 0px; border-radius: var(--ui-radius); background: rgba(255, 255, 255, 0.035); box-shadow: rgba(255, 255, 255, 0.2) 0px 0px 1px 1px, rgba(255, 255, 255, 0.08) 0px 0px 1px inset; color: rgba(255, 255, 255, 0.85); font: 400 13px/1.4 var(--body); text-decoration: none; cursor: pointer; transition: color 0.25s, background 0.25s, box-shadow 0.25s; }

/* ===== Бриф: поля, файлы, голос и состояния ===== */
.brief-consent-text a { color: rgb(221, 221, 221); text-decoration: underline rgb(98, 98, 98); text-underline-offset: 3px; }
.brief-success p { font-size: 14px; color: rgb(170, 170, 170); margin-bottom: 28px; }

/* ===== Видеоплееры ===== */
.showreel-recovery-actions button:hover, .showreel-recovery-actions a:hover { color: rgb(255, 255, 255); background: rgba(255, 255, 255, 0.08); box-shadow: rgba(255, 255, 255, 0.08) 0px 0px 12px, rgba(255, 255, 255, 0.35) 0px 0px 1px 1px; }

/* ===== Бриф: поля, файлы, голос и состояния ===== */
.brief-consent-text a:hover { color: rgb(255, 255, 255); }

/* ===== Основа и общие элементы ===== */
html[data-theme="light"] .boot-loader { background: rgb(255, 255, 255); color: rgb(23, 24, 25); }
html[data-theme="light"] .boot-status { color: rgb(98, 101, 104); }
html[data-theme="light"] .video-toggle { color: rgb(37, 39, 41); }
html[data-theme="light"] .button-hover-hint { background: rgba(255, 255, 255, 0.97); color: rgb(37, 39, 41); box-shadow: rgba(0, 0, 0, 0.133) 0px 3px 16px; }

/* ===== Главный экран и появление текста ===== */
html[data-theme="light"] .hero-stage { background: rgb(255, 255, 255); }
html[data-theme="light"] .hero-shade { background: linear-gradient(rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 32%, rgba(255, 255, 255, 0.85) 65%, rgb(255, 255, 255) 100%); }
html[data-theme="light"] h1.brand-title, html[data-theme="light"] .hero-description { text-shadow: none; color: rgb(23, 24, 25); }
html[data-theme="light"] .hero-kicker { color: rgb(75, 78, 81); }
html[data-theme="light"] .hero-link { color: var(--ui-ink); }

/* ===== Шапка и навигация ===== */
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready .mobile-menu-toggle { width:52px; height:44px; border:0; border-radius:var(--ui-radius); background:transparent; backdrop-filter:none; color:var(--ui-ink); box-shadow:none; }
}
html[data-theme="light"] .brief-unavailable-note { color: rgb(138, 105, 0); }

/* ===== Карточки проектов ===== */
html[data-theme="light"] .details .details-role, html[data-theme="light"] .details .about-nda, html[data-theme="light"] .project-swipe-caption { color: rgb(98, 101, 104); }

/* ===== Обо мне ===== */
html[data-theme="light"] .about-switch { border-color: rgba(0, 0, 0, 0.208); background: rgba(0, 0, 0, 0.016); }

/* ===== Бриф: поля, файлы, голос и состояния ===== */
html[data-theme="light"] .brief-dialog { background: rgb(250, 250, 249); color: rgb(37, 39, 41); border-color: rgb(216, 217, 216); box-shadow: rgba(0, 0, 0, 0.2) 0px 24px 100px; }
html[data-theme="light"] .brief-heading-bar { background: rgb(250, 250, 249); border-color: rgb(221, 221, 221); }
html[data-theme="light"] .brief-consent-row, html[data-theme="light"] .brief-consent-text { color: rgb(98, 101, 104); }
html[data-theme="light"] .brief-consent-toggle, html[data-theme="light"] .brief-consent-text :is(h3, a, .brief-consent-subtitle) { color: rgb(37, 39, 41); text-decoration-color: rgb(136, 136, 136); }

/* ===== Контакты и плавающая панель ===== */
html[data-theme="light"] .portfolio, html[data-theme="light"] .details, html[data-theme="light"] .contacts-section { background: transparent; box-shadow: none; }

/* ===== Футер ===== */
html[data-theme="light"] .footer { color: rgb(101, 104, 106); }

/* ===== Видеоплееры ===== */
.showreel-screen.has-recovery .showreel-custom-controls, .showreel-screen.has-recovery .showreel-fullscreen, .showreel-screen.has-recovery .showreel-pause-indicator { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
.showreel-timeline { gap: 10px; margin-top: 7px; }
}
@media (max-width: 640px) {
.showreel-timeline output { font-size: 11px; }
}
@media (max-width: 640px) {
.showreel-recovery { padding: 14px; }
}
@media (max-width: 640px) {
.showreel-recovery-message { font-size: 13px; margin-bottom: 14px; }
}
@media (max-width: 640px) {
.showreel-recovery-actions { gap: 10px; }
}
@media (max-width: 640px) {
.showreel-recovery-actions button, .showreel-recovery-actions a { font-size: 11px; padding: 10px 14px; min-height: 40px; }
}

/* ===== Бриф: поля, файлы, голос и состояния ===== */

/* ===== Главный экран и появление текста ===== */

/* ===== Бриф: поля, файлы, голос и состояния ===== */
@media (max-width: 600px) {
.brief-heading-bar h2 { font-size: 18px; line-height: 1.35; letter-spacing: -0.02em; }
}
@media (max-width: 600px) {
.brief-consent-row input { width: 20px; height: 20px; margin: 1px 0px 0px; }
}

/* ===== Шапка и навигация ===== */
nav .header-contact, header.mobile-menu-ready nav .header-contact { border-radius: var(--ui-radius); border: 1px solid var(--ui-edge); background: var(--ui-fill); width: 44px; min-height: 36px; color: var(--ui-ink); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentcolor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
header.mobile-menu-ready nav .header-contact { width: 40px; height: 36px; min-height: 36px; }
}
header nav .header-contact, header.mobile-menu-ready nav .header-contact, header.mobile-menu-ready .mobile-menu-toggle { border-color: transparent; background: transparent; box-shadow: none; border-radius: var(--ui-radius); }
header nav .header-contact:hover, header.mobile-menu-ready nav .header-contact:hover, header.mobile-menu-ready .mobile-menu-toggle:hover, .theme-toggle:hover { border-color: transparent; background: transparent; box-shadow: none; }
html[data-theme="light"] header nav .header-contact:hover, html[data-theme="light"] header.mobile-menu-ready nav .header-contact:hover, html[data-theme="light"] header.mobile-menu-ready .mobile-menu-toggle:hover, html[data-theme="light"] .theme-toggle:hover { border-color: transparent; background: transparent; box-shadow: none; }
.brief-unavailable-note svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; stroke: currentcolor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Карточки проектов ===== */
.portfolio::before { width: min(1220.4px, 98.4% - 55.2px); }
@media (max-width: 600px) {
.portfolio::before { width: calc(98.4% - 30px); }
}

/* ===== Бриф: поля, файлы, голос и состояния ===== */
.brief-dialog { border-radius: var(--ui-radius); }

/* ===== Контакты и плавающая панель ===== */
.details > .wrap::before, .contacts-card::before, .brief-section-wrap::before { content: ""; position: absolute; top: 0px; left: 0.8%; right: 0.8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.27), transparent); pointer-events: none; }
.details > .wrap::before, .brief-section-wrap::before, .contacts-card::before { content: none; }

/* ===== Видеоплееры ===== */
.showreel-content { display: contents; }
@media (orientation: portrait) and (pointer: coarse) {
.showreel-dialog:fullscreen { rotate: none; translate: none; }
}
@media (orientation: portrait) and (pointer: coarse) {
.showreel-dialog:fullscreen .showreel-content { display: block; position: absolute; left: 50%; top: 50%; width: 100dvh; height: 100dvw; translate: -50% -50%; rotate: 90deg; }
}
.hero-link, .brief-new, .showreel-recovery-actions button, .showreel-recovery-actions a { border-radius: var(--ui-radius); border: 1px solid var(--ui-edge); background: var(--ui-fill); color: var(--ui-ink); box-shadow: none; }
#project-viewer button, .showreel-close, .showreel-custom-controls button, .showreel-fullscreen { border-radius: var(--ui-radius); border: 1px solid rgba(255, 255, 255, 0.314); background: rgba(16, 17, 18, 0.78); color: rgb(238, 238, 238); box-shadow: none; }
#project-viewer .project-close, #project-viewer .project-arrow { width: 52px; height: 44px; }
.showreel-pause-indicator { border-radius: var(--ui-radius); }
#project-viewer .project-play-retry { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 48px; z-index: 4; }
#project-viewer .project-play-retry[hidden] { display: none; }
#project-viewer .project-play-retry svg { width: 24px; height: 24px; fill: currentcolor; stroke: none; }
.showreel-vpn-note { display: none; }
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.showreel-vpn-note { display: flex; justify-content: center; align-items: flex-start; gap: 6px; margin: 5px 0px 0px; padding: 0px 3px; color: rgba(255, 255, 255, 0.55); font: 400 11px/1.6 var(--body); text-align: center; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.showreel-vpn-note svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; stroke: currentcolor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.showreel-dialog:is(:fullscreen, .is-expanded) .showreel-vpn-note { position: absolute; z-index: 4; left: max(16px,env(safe-area-inset-left)); right: max(16px,env(safe-area-inset-right)); bottom: max(8px,env(safe-area-inset-bottom)); margin: 0px; padding: 2px 4px; background: rgba(0, 0, 0, 0.6); }
}

/* ===== Контакты и плавающая панель ===== */
.contacts-section .contact-links :is(.phone-link, .contact-handle):focus-visible { outline: 2px solid var(--ui-ink); outline-offset: 4px; z-index: 1; }

/* ===== Видеоплееры ===== */
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
.showreel-dialog:is(:fullscreen, .is-expanded) .showreel-timeline { bottom: calc(max(10px,env(safe-area-inset-bottom)) + 38px); }
}
@media (min-width: 801px) and (hover: hover) and (pointer: fine) {
.showreel-recovery-actions button, .showreel-recovery-actions a { min-height: 44px; font-size: 14px; }
}

/* ===== Фон и декоративные эффекты ===== */
.page-film { --film-reveal-top: 100vh; position: fixed; inset: 0px; z-index: 0; pointer-events: none; overflow: hidden; background: rgb(0, 0, 0); clip-path: inset(var(--film-reveal-top) 0 0); contain: paint; }
.film-artifacts { position: absolute; inset: 0px; display: block; width: 100%; height: 100%; opacity: 0.53; }
html[data-theme="light"] .page-film { background: rgb(255, 255, 255); }
html[data-theme="light"] .film-artifacts { filter: invert(1); opacity: 0.76; }
.cursor-background-string { position: fixed; inset: 0px; z-index: 0; display: block; width: 100%; height: 100%; user-select: none; contain: strict; pointer-events: none !important; }

/* ===== Анимации ===== */
@keyframes boot-status-appear { 
  100% { opacity: 1; }
}
@keyframes boot-dot-cycle { 
  0%, 75% { opacity: 0; }
  25% { opacity: 1; }
}
@keyframes showreel-sheen {
  0% { opacity: 0; transform: translateX(-160%) skewX(-18deg); }
  5% { opacity: 1; }
  28% { opacity: 1; transform: translateX(400%) skewX(-18deg); }
  32%, 100% { opacity: 0; transform: translateX(400%) skewX(-18deg); }
}
@keyframes swipe-hand-smooth { 
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
@keyframes content-reveal { 
  0% { opacity: 0; filter: blur(4px); }
  100% { opacity: 1; filter: none; }
}
@keyframes brief-enter { 
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0px); }
}

@keyframes brief-consent-flicker { 
  0%, 100% { box-shadow: rgba(255, 75, 80, 0.1) 0px 0px 2px; }
  50% { box-shadow: rgba(255, 75, 80, 0.7) 0px 0px 9px 2px; }
}



@keyframes hero-type-appear { 
  0% { opacity: 0; filter: blur(3px); }
  100% { opacity: 1; filter: blur(0px); }
}

/* ===== Бриф: прогресс и возврат к сохранённым ответам ===== */


/* ===== Бриф: переписка, вложения и голос ===== */
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.chat-section { overflow-anchor:none; }
.chat-section .brief-section-wrap { width:min(1035px,100%); }
.chat-section #brief-section-title { margin-bottom:24px; }
.brief-section .chat-content { max-width:1035px; }
.chat-content { --chat-placeholder-ink:var(--chat-dim); --chat-dim:rgba(255,255,255,.52); --chat-answer-bg:#171819; --chat-user-bg:#111213; --chat-thumb:rgba(255,255,255,.35); --chat-warning:#e5c15b; color:var(--text); width:100%; height:clamp(420px,calc(100svh - 208px),740px); text-align:left; overflow-anchor:none; }
html[data-theme="light"] .chat-content { --chat-dim:#777a7d; --chat-answer-bg:#f0f0ef; --chat-user-bg:#f5f5f4; --chat-thumb:#0005; --chat-warning:#8a6900; }
.chat-form { display:flex; flex-direction:column; height:100%; min-height:0; gap:0; position:relative; }
.chat-content [hidden] { display:none!important; }
.chat-scroll-area { position:relative; flex:1 1 auto; min-height:80px; }
.chat-log { width:100%; height:100%; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:none; outline-offset:4px; text-align:left; }
.chat-log::-webkit-scrollbar { display:none; }
.chat-assistant.is-fading-top { -webkit-mask-image:linear-gradient(to bottom,transparent calc(var(--chat-fade-end) - 32px),#000 var(--chat-fade-end)); mask-image:linear-gradient(to bottom,transparent calc(var(--chat-fade-end) - 32px),#000 var(--chat-fade-end)); }
.chat-scrollbar { position:absolute; top:0; bottom:0; right:calc(-1 * var(--chat-scroll-outset,14px)); width:12px; border:0; border-radius:var(--ui-radius); background:transparent; box-shadow:none; opacity:0; pointer-events:none; touch-action:none; transition:opacity .45s ease; }
.chat-scrollbar.is-visible,.chat-scrollbar:focus-visible { opacity:1; pointer-events:auto; transition-duration:.2s; }
.chat-scroll-thumb { position:absolute; top:0; left:4px; width:4px; min-height:24px; border-radius:var(--ui-radius); background:var(--chat-thumb); }
.chat-messages { display:flex; flex-direction:column; gap:28px; padding:18px 18px 28px 2px; }
.chat-message { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.chat-message p { margin:0; white-space:pre-wrap; }
.chat-assistant { align-self:flex-start; width:min(60%,640px); margin-left:0; margin-right:auto; padding-right:0; text-align:left; }
.chat-question { font:400 17px/1.55 var(--body); color:var(--text); }
.chat-description { font:400 14px/1.75 var(--body); color:var(--muted); margin-top:10px!important; }
.chat-user { margin-left:auto; width:fit-content; max-width:62%; padding:8px 12px; border:0; border-radius: var(--ui-radius); background:var(--chat-user-bg); box-shadow:none; text-align:right; }
.chat-answer-text { font:400 15px/1.7 var(--body); }
.chat-edit { font:400 11px/1.5 var(--body); color:var(--chat-dim); padding:3px 0; margin-top:8px; background:transparent; border:0; text-decoration:underline; text-underline-offset:3px; }
.chat-composer { position:relative; display:flex; align-items:center; gap:8px; flex:0 0 auto; border:1px solid var(--ui-edge); border-radius: var(--ui-radius); padding:12px; background:var(--bg); min-height:70px; transition:border-color .2s; }
.chat-composer:focus-within, .chat-composer.is-dragging { border-color:var(--line-strong); }
.chat-answer { display:block; flex:1; width:100%; min-width:0; min-height:44px; max-height:112px; margin:0; resize:none; border:0; border-radius:var(--ui-radius); color:var(--text); background:transparent; padding:10px 6px; font:400 16px/24px var(--body); overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; scrollbar-width:thin; }
.chat-content :is(.chat-answer,.brief-consent-text,.chat-files) { scrollbar-width:thin; scrollbar-color:var(--chat-thumb) transparent; }
@supports selector(::-webkit-scrollbar) {
  .chat-content :is(.chat-answer,.brief-consent-text,.chat-files) { scrollbar-width:auto; scrollbar-color:auto; }
  .chat-content :is(.chat-answer,.brief-consent-text,.chat-files)::-webkit-scrollbar { width:4px; height:4px; background:transparent; }
  .chat-content :is(.chat-answer,.brief-consent-text,.chat-files)::-webkit-scrollbar-track,
  .chat-content :is(.chat-answer,.brief-consent-text,.chat-files)::-webkit-scrollbar-corner { background:transparent; border:0; box-shadow:none; }
  .chat-content :is(.chat-answer,.brief-consent-text,.chat-files)::-webkit-scrollbar-thumb { border:0; border-radius:var(--ui-radius); background:var(--chat-thumb); box-shadow:none; }
  .chat-content :is(.chat-answer,.brief-consent-text,.chat-files)::-webkit-scrollbar-button { display:none; width:0; height:0; background:transparent; }
}
.chat-answer::placeholder { color:var(--chat-placeholder-ink); opacity:.65; font:inherit; }
.chat-answer:placeholder-shown { overflow-y:hidden; }
.chat-icon { position:relative; flex:0 0 44px; display:flex; align-items:center; justify-content:center; width:44px; height:44px; margin:0; padding:9px; border:1px solid transparent; border-radius:var(--ui-radius); background:transparent; color:var(--ui-ink); }
.chat-icon svg { display:block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.chat-send { background:transparent; border-color:transparent; color:var(--text); }
.chat-send svg { width:26px; height:26px; flex-shrink:0; stroke-width:1.9; }
.chat-composer .chat-send:disabled { opacity:.5; }
.chat-answer:focus,.chat-answer:focus-visible { outline:none; box-shadow:none; }
.chat-icon:disabled { opacity:.4; cursor:default; }
.chat-icon::after { content:attr(data-chat-hint); position:absolute; bottom:calc(100% + 12px); left:50%; transform:translateX(-50%); width:max-content; max-width:240px; padding:7px 10px; border-radius: var(--ui-radius); background:var(--chat-answer-bg); color:var(--text); font:400 11px/1.5 var(--body); pointer-events:none; opacity:0; visibility:hidden; }
@media (hover:hover) and (pointer:fine) {
.chat-icon:hover:not(:disabled) { background:var(--ui-hover); }
.chat-send:hover:not(:disabled) { background:transparent; border-color:transparent; color:var(--text); }
.chat-icon:hover::after, .chat-icon:focus-visible::after { opacity:1; visibility:visible; }
}
.chat-below { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:8px; flex:0 0 auto; color:var(--chat-dim); font:400 11px/1.5 var(--body); }
.chat-below-actions { display:flex; flex:0 0 auto; align-items:center; justify-content:flex-end; }
.chat-return { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; min-height:44px; padding:10px 14px; border:0; border-radius:var(--ui-radius); background:transparent; box-shadow:none; color:var(--text); font:500 14px/1.4 var(--body); text-align:center; -webkit-tap-highlight-color:transparent; }
.chat-return:hover { color:var(--muted); background:transparent; }
.chat-content.is-voice-mode .chat-below { display:flex; justify-content:flex-end; }
.chat-content.is-voice-mode .chat-below > span { display:none; }
.chat-content.is-voice-mode .chat-message:not(.chat-voice-thread),
.chat-content:not(.is-voice-mode) .chat-voice-thread { display:none; }
.chat-warning { display:flex; align-items:flex-start; gap:7px; margin:10px 0 0; color:var(--chat-warning); font:400 12px/1.6 var(--body); }
.chat-warning svg { flex:0 0 16px; width:16px; height:16px; margin-top:1px; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; }
.chat-trap { position:absolute; width:1px; height:1px; clip-path:inset(50%); opacity:0; pointer-events:none; }
.chat-files { flex:0 0 auto; max-height:86px; overflow:auto; overscroll-behavior:contain; margin-bottom:10px; }
.chat-files ul { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.chat-files li { display:flex; align-items:center; gap:12px; padding:6px 10px; max-width:100%; background:var(--chat-answer-bg); border-radius: var(--ui-radius); font:400 12px/1.5 var(--body); }
.chat-files li span { overflow-wrap:anywhere; min-width:0; }
.chat-files button { background:transparent; border:0; font:inherit; color:var(--chat-dim); padding:4px; }
.chat-recording { flex:1; min-width:0; height:44px; display:flex; align-items:center; justify-content:center; gap:8px; }
.chat-recording time { flex:0 0 auto; min-width:28px; color:var(--muted); font:400 12px/1.5 var(--body); font-variant-numeric:tabular-nums; }
.chat-meter { display:block; flex:1; height:36px; width:100%; min-width:0; color:var(--text); }
.chat-meter svg { display:block; width:100%; height:100%; overflow:hidden; }
.chat-meter path { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.chat-thread-main { stroke-width:1.4; opacity:.9; }
.chat-thread-echo { stroke-width:.8; opacity:.22; }
.chat-microphone[aria-pressed="true"] { color:#ff4b50; animation:chat-mic-blink 1s ease-in-out infinite; }
.chat-voice-guide { margin:12px 0 0; padding-left:22px; font:400 14px/1.8 var(--body); color:var(--muted); }
.chat-voice-message { width:min(360px,90%); }
.chat-voice-message audio { display:block; width:100%; height:40px; }
.chat-voice-message .chat-edit { display:block; margin:8px auto 0; }
.brief-dialog:has(.chat-content) { height:min(840px,calc(100dvh - 48px)); }
.brief-dialog .brief-scroll:has(.chat-content) { display:flex; flex:1; overflow:hidden; padding:18px 26px 24px; }
.brief-dialog .chat-content { height:100%; min-height:0; }
@keyframes chat-mic-blink { 0%,100% {opacity:1} 50% {opacity:.4} }
@media (max-width:600px) {
.chat-section .brief-section-wrap { width:100%; }
.chat-content { height:var(--chat-mobile-height,clamp(220px,calc(100svh - 316px),700px)); }
.chat-section #brief-section-title { margin-bottom:18px; }
.chat-messages { padding:12px 10px 22px 0; gap:22px; }
.chat-assistant { width:86%; padding-right:0; }
.chat-user { max-width:84%; }
.chat-question { font-size:16px; }
.chat-description { font-size:13px; line-height:1.7; }
.chat-answer-text { font-size:14px; }
.chat-composer { gap:4px; padding:8px; min-height:62px; }
.chat-icon { flex-basis:44px; width:44px; height:44px; padding:9px; }
.chat-answer { min-height:44px; padding:10px 4px; }
.chat-below { min-height:28px; }
.chat-below > span { font-size:10px; }
.chat-edit, .chat-files button { min-height:36px; }
.chat-voice-guide { font-size:13px; }
.brief-dialog:has(.chat-content) { height:100dvh; max-height:100dvh; }
.brief-dialog .brief-scroll:has(.chat-content) { padding:8px 14px calc(16px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) {
.chat-microphone[aria-pressed="true"] { animation:none; }
}

/* ===== Контакты: единый порядок и футер в конце раздела ===== */
.contacts-section > .footer { width:100%; }
.contacts-section .contact-links .contact-handle { order:0; }
.contacts-section .contact-links .phone-link { order:1; }

/* ===== ПК: один раздел на экран, мобильная сетка остаётся прежней ===== */
@media (min-width:801px) and (hover:hover) and (pointer:fine) {
html { scroll-padding-top:0; }
.hero { height:100svh; }
.hero-stage { min-height:0; }
main > :is(.portfolio,.details,.brief-section,.contacts-section#contacts) { min-height:100svh; padding:70px 30px 30px; display:flex; flex-direction:column; justify-content:center; scroll-margin-top:0; }
main > .portfolio > .wrap { width:min(calc(100% - 90px),calc((100svh - 210px) * 16 / 9)); max-width:1680px; }
.portfolio #portfolio-title { margin:0 0 12px; font-size:clamp(30px,4.8svh,44px); }
.portfolio .section-lead { font-size:14px; margin:0 auto 22px; text-align:center; }
.portfolio .projects-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.portfolio .project-card[data-mobile-hidden] { display:block; }
.details > .wrap { width:min(1240px,calc(100% - 48px)); }
main > .details#about { padding-block:70px; }
.details #details-title { margin-bottom:28px; font-size:clamp(30px,4.8svh,44px); }
.details .details-role { margin-bottom:20px; }
.details .details-copy { font-size:var(--about-screen-font,18px); line-height:1.7; overflow:visible; height:auto!important; }
.details .about-copy-content { min-height:0; display:block; text-wrap:balance; }
.details #about-short { width:100%; margin-inline:auto; }
.details #about-long:not([hidden]) { display:block; text-align:center; }
.details #about-long p { margin:0; }
.details #about-long p + p { margin-top:18px; }
.details .about-switch { margin-top:26px; }
.details .about-desktop-break { display:initial; }
main > .chat-section#brief { height:100svh; min-height:100svh; padding-top:84px; padding-bottom:44px; }
.chat-section .brief-section-wrap { display:flex; flex-direction:column; flex:0 1 auto; min-height:0; }
.chat-section .brief-inline-slot { flex:0 1 auto; min-height:0; }
.chat-section .chat-content { --chat-scroll-outset:74px; height:min(680px,calc(100svh - 210px)); padding:48px 60px 12px; position:relative; isolation:isolate; }
.chat-section #brief-section-title { flex:0 0 auto; margin:0 0 24px; font-size:clamp(30px,4.8svh,44px); }
main > .contacts-section#contacts { height:100svh; min-height:100svh; padding:70px 30px 22px; justify-content:flex-start; gap:22px; }
.contacts-section#contacts > .wrap { flex:1; display:flex; align-items:center; justify-content:center; min-height:0; }
.contacts-section#contacts .contacts-card { gap:24px; }
.contacts-section#contacts > .footer { flex:0 0 auto; margin:0; padding:0 70px; }
header::before { display:none; }
header.is-hidden { transform:none; }
header.is-hidden .header-inner { pointer-events:auto; }
  @media (max-height:650px) {
main > :is(.portfolio,.details,.brief-section,.contacts-section#contacts) { padding-top:60px; padding-bottom:20px; }
.details #details-title { margin-bottom:12px; }
.details .details-role { margin-bottom:12px; }
.details .about-switch { margin-top:14px; }
main > .details#about { padding-block:40px; }
.chat-section #brief-section-title { margin-bottom:14px; }
.chat-section .chat-content { --chat-scroll-outset:30px; height:calc(100svh - 150px); padding:0 16px; }
.contacts-section#contacts .contacts-card { gap:16px; }
.portfolio .section-lead { margin-bottom:14px; }
  }
}
@media (max-width:800px), (hover:none) and (pointer:coarse) {
html { scroll-padding-top:0; --section-line:rgba(255,255,255,.16); }
html[data-theme="light"] { --section-line:rgba(0,0,0,.11); }
main > :is(.portfolio,.details,.brief-section,.contacts-section#contacts) { height:auto; min-height:0; padding:var(--section-space) 18px; display:block; scroll-margin-top:0; }
main > :is(.portfolio,.details,.brief-section,.contacts-section#contacts)::before { top:1px; }
main > :is(.portfolio,.details,.brief-section,.contacts-section#contacts)::after { content:none; }
main > :is(.portfolio,.details) > .wrap { width:100%; max-height:none; overflow:visible; }
.details > .wrap::after { inset:-18px -8px; }
main > .chat-section#brief { height:100svh; min-height:100svh; padding:72px 18px 16px; display:flex; flex-direction:column; scroll-margin-top:0; }
.chat-section .brief-section-wrap { display:flex; flex:1; flex-direction:column; width:100%; height:100%; min-height:0; }
.chat-section #brief-section-title { flex:0 0 auto; font-size:32px; margin-bottom:20px; }
.chat-section .brief-inline-slot { flex:1; min-height:0; }
.chat-section .chat-content { height:100%; min-height:0; }
.chat-section .chat-scroll-area { min-height:48px; }
/* Одна мобильная панель: текст сверху, действия и подпись внутри общей поверхности. */
.chat-content { --mobile-panel-padding:12px 8px 4px; --mobile-input-min:34px; --mobile-input-max:112px; --mobile-input-padding:2px 6px 8px; --mobile-caption-padding:2px 12px 10px; --mobile-note-margin:8px 2px 10px; --mobile-note-size:11px; --mobile-note-line:1.5; --mobile-hint-display:block; }
.chat-content .chat-composer { display:grid; grid-template-columns:44px minmax(0,1fr)44px 44px; grid-template-rows:auto 44px; align-items:center; gap:2px 4px; min-height:0; padding:var(--mobile-panel-padding); border:1px solid var(--line); border-bottom:0; border-radius:7px 7px 0 0; background:var(--bg-soft); }
.chat-content .chat-answer { grid-column:1 / -1; grid-row:1; min-height:var(--mobile-input-min); max-height:var(--mobile-input-max); padding:var(--mobile-input-padding); font-size:16px; line-height:24px; }
.chat-content .chat-recording { grid-column:1 / -1; grid-row:1; min-width:0; width:100%; padding-inline:6px; }
.chat-content .chat-attach { grid-column:1; grid-row:2; }
.chat-content .chat-microphone { grid-column:3; grid-row:2; }
.chat-content .chat-send { grid-column:4; grid-row:2; }
.chat-content .chat-icon { width:44px; height:44px; }
.chat-content .chat-below { min-height:0; gap:12px; padding:var(--mobile-caption-padding); border:1px solid var(--line); border-top:0; border-radius:0 0 7px 7px; background:var(--bg-soft); transition:border-color .2s; }
.chat-content:not(.is-voice-mode) #chat-input-help { display:var(--mobile-hint-display); }
.chat-content .chat-below-actions { margin-left:auto; }
.chat-content .chat-form:focus-within :is(.chat-composer,.chat-below) { border-color:var(--line-strong); }
.chat-content .chat-scroll-area { order:0; }
.chat-content .chat-files { order:1; }
.chat-content .chat-warning { order:3; }
.chat-content .chat-form > .brief-unavailable-note { order:4; margin:var(--mobile-note-margin); font-size:var(--mobile-note-size); line-height:var(--mobile-note-line); opacity:.85; }
.chat-content .chat-composer { order:5; }
.chat-content .chat-below { order:6; }
.brief-dialog:has(.chat-content) { position:fixed; top:var(--brief-view-top,0px); left:0; bottom:auto; width:100%; height:var(--brief-view-height,100dvh); max-height:var(--brief-view-height,100dvh); margin:0; }
.brief-dialog .brief-scroll:has(.chat-content) { flex:1; min-height:0; }
.brief-dialog .chat-content { height:100%; min-height:0; }
body.brief-mobile-editing { overflow:hidden; }
body.brief-mobile-editing main > section:not(#brief),body.brief-mobile-editing main > section:not(#brief) * { visibility:hidden; pointer-events:none; }
body.brief-mobile-editing > :is(header,.theme-toggle,.contact-dock,.back-to-top) { opacity:0; visibility:hidden; pointer-events:none; transition:none; }
.chat-section.is-mobile-editing { z-index:90; isolation:isolate; }
.chat-section.is-mobile-editing .brief-section-wrap { position:fixed; z-index:80; top:var(--brief-view-top,0px); left:0; right:0; width:100%; height:var(--brief-view-height,100dvh); padding:12px 18px 8px; background:var(--bg); }
.chat-section.is-mobile-editing #brief-section-title { font-size:28px; margin:0 0 14px; }
.brief-dialog.is-mobile-editing { animation:none; }
.brief-dialog.is-mobile-editing .brief-scroll:has(.chat-content) { padding-bottom:8px; }
.chat-section.is-mobile-editing .chat-files,.brief-dialog.is-mobile-editing .chat-files { max-height:42px; }
:is(.chat-section,.brief-dialog).is-mobile-editing .chat-scroll-area { order:0; min-height:32px; }
:is(.chat-section,.brief-dialog).is-mobile-editing .chat-files { order:1; }
:is(.chat-section,.brief-dialog).is-mobile-editing .chat-warning { order:3; }
:is(.chat-section,.brief-dialog).is-mobile-editing .chat-form > .brief-unavailable-note { order:4; margin:var(--mobile-note-margin); font-size:var(--mobile-note-size); }
:is(.chat-section,.brief-dialog).is-mobile-editing .chat-composer { order:5; }
:is(.chat-section,.brief-dialog).is-mobile-editing .chat-below { order:6; justify-content:space-between; padding-top:2px; min-height:0; }
body.brief-mobile-compact .chat-content { --mobile-panel-padding:8px 8px 2px; --mobile-input-min:30px; --mobile-input-max:48px; --mobile-input-padding:0 6px 6px; --mobile-caption-padding:2px 12px 6px; --mobile-note-margin:4px 2px 6px; --mobile-note-size:10.5px; --mobile-note-line:1.4; --mobile-hint-display:none; }
body.brief-mobile-compact .chat-section.is-mobile-editing .brief-section-wrap { padding-top:8px; }
body.brief-mobile-compact .chat-section.is-mobile-editing #brief-section-title { font-size:22px; margin-bottom:8px; }
body.brief-mobile-compact .brief-dialog.is-mobile-editing .brief-heading-bar { min-height:44px; padding:8px 14px; }
main > .contacts-section#contacts { height:auto; min-height:100svh; padding:64px 18px 24px; display:flex; flex-direction:column; gap:20px; scroll-margin-top:0; }
.contacts-section#contacts > .wrap { flex:1; display:flex; flex-direction:column; align-items:center; min-height:0; overflow:visible; width:100%; }
.contacts-section#contacts .contacts-card { flex:0 0 auto; margin-block:auto; }
.contacts-section#contacts > .footer { flex:0 0 auto; margin:0; padding:24px 56px 0; }
  @media (max-height:550px) {
    main > :is(.portfolio,.details,.brief-section,.contacts-section#contacts),main > .chat-section#brief { padding-top:64px; }
    .chat-section #brief-section-title { font-size:22px; margin-bottom:8px; }
    .chat-content { --mobile-panel-padding:8px 8px 2px; --mobile-input-min:30px; --mobile-input-max:48px; --mobile-input-padding:0 6px 6px; --mobile-caption-padding:2px 12px 6px; --mobile-note-margin:4px 2px 6px; --mobile-note-size:10.5px; --mobile-note-line:1.4; --mobile-hint-display:none; }
    .chat-content .chat-scroll-area { min-height:24px; }
    .chat-content.is-voice-mode .chat-composer { display:flex; gap:4px; padding:6px; min-height:58px; }
    .chat-content.is-voice-mode .chat-recording { flex:1; padding:0; }
    .chat-content.is-voice-mode .chat-answer { min-height:44px; padding:10px 4px; }
    .chat-scroll-area { min-height:48px; }
    .chat-composer { padding:6px; gap:4px; min-height:58px; }
    .contacts-section#contacts .contacts-card { gap:14px; }
    .contacts-section#contacts > .footer { padding-top:12px; }
  }
}
@media (min-width:801px) and (hover:hover) and (pointer:fine) and (max-height:550px) {
  .chat-scroll-area { min-height:48px; }
  .chat-composer { padding:6px; min-height:50px; }
  .chat-icon { width:34px; height:34px; flex-basis:34px; padding:6px; }
  .chat-answer { min-height:36px; padding-block:7px; font-size:14px; line-height:22px; }
  .chat-below { display:flex; justify-content:flex-end; }
  .chat-below > span { display:none; }
  .chat-files { max-height:34px; margin-bottom:6px; }
  .chat-form > .brief-unavailable-note { margin-top:6px; font-size:11px; }
  .chat-messages { gap:18px; padding-top:8px; }
  .details .details-copy { line-height:1.5; }
  .details #about-long p + p { margin-top:12px; }
  .details #details-title { margin-bottom:10px; }
  .details .details-role { margin-bottom:10px; }
  .details .about-switch { margin-top:12px; }
  main > .chat-section#brief { padding-top:60px; padding-bottom:20px; }
  .chat-section .chat-content { height:calc(100svh - 132px); }
}
@media (min-width:801px) and (hover:hover) and (pointer:fine) and (max-height:450px) {
  main > .details#about { padding-block:32px; }
  .details #details-title { font-size:24px; margin-bottom:8px; }
  .details .details-name { font-size:18px; margin-bottom:4px; }
  .details .details-role { font-size:14px; line-height:1.4; margin-bottom:8px; }
  .details .details-copy { line-height:1.4; }
  .details #about-long p + p { margin-top:8px; }
  .details .about-switch { margin-top:10px; }
  .details .about-switch button { min-height:32px; padding:5px 18px; }
}

@media (max-width:800px), (hover:none) and (pointer:coarse) {
  .chat-section .chat-content { position:relative; isolation:isolate; }
}

/* Короткая вспышка только на летящем конце подчёркивания. */
nav .nav-travel-head { display:none; position:absolute; width:0; height:1px; border-radius:0; color:var(--text); opacity:0; pointer-events:none; }
nav .nav-travel-head::before { content:""; position:absolute; inset:-2px 0; background:inherit; filter:blur(2.5px); opacity:.55; pointer-events:none; }
@media (hover:hover) and (pointer:fine) { header nav.nav-underline-ready .nav-travel-head { display:block; } }
@media (max-width:800px), (hover:none) and (pointer:coarse) { header.mobile-menu-ready #site-navigation .nav-travel-head { display:none; } }

/* Brief heading: progress stays beside the title, outside the answer panel. */
.chat-heading { position:relative; flex:0 0 auto; margin-bottom:24px; }
.chat-section .chat-heading #brief-section-title { margin:0; }
.brief-heading-bar { display:grid; grid-template-columns:64px minmax(0,1fr) 44px; }
.brief-heading-bar h2 { text-align:center; }
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  .chat-heading { margin-bottom:20px; }
  .is-mobile-editing .chat-heading { margin-bottom:14px; }
  body.brief-mobile-compact .chat-heading { margin-bottom:8px; }
  .chat-content:not(.is-voice-mode) .chat-composer { padding:8px 8px 6px; border-bottom:1px solid var(--line); border-radius:7px; }
  .chat-content:not(.is-voice-mode) .chat-answer { min-height:30px; padding:0 6px 4px; }
}

/* Mobile brief shell: a stable page slot, with a viewport-sized chat while filling. */
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  html:has(body.brief-mobile-pinned) { overflow:hidden; overscroll-behavior:none; }
  body.brief-mobile-pinned { position:fixed; top:var(--brief-page-y,0px); left:0; width:100%; overflow:hidden; }
  body.brief-mobile-pinned > header { z-index:96; }
  body.brief-mobile-pinned > .theme-toggle { z-index:97; }
  body.brief-mobile-pinned > .mobile-menu-backdrop { z-index:94; }
  body:is(.brief-mobile-visible,.brief-mobile-pinned) :is(.back-to-top,.contact-dock) { opacity:0; visibility:hidden; pointer-events:none; }
  body.brief-mobile-pinned main > section:not(#brief),body.brief-mobile-pinned main > section:not(#brief) * { visibility:hidden; pointer-events:none; }
  .chat-section.is-mobile-pinned { z-index:90; isolation:isolate; }
  .chat-section.is-mobile-pinned .brief-section-wrap { position:fixed; z-index:80; top:var(--brief-view-top,0px); left:0; right:0; width:100%; height:var(--brief-view-height,100dvh); padding:72px 18px max(12px,env(safe-area-inset-bottom)); background:var(--bg); }
  .chat-section.is-mobile-pinned.is-mobile-editing .brief-section-wrap { padding:12px 18px 8px; }
  body.brief-mobile-compact .chat-section.is-mobile-pinned.is-mobile-editing .brief-section-wrap { padding-top:8px; }
  main > .contacts-section#contacts { overflow-anchor:none; }
}

/* Fullscreen mobile navigation, with the existing film texture above the site background. */
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  body.mobile-menu-open:not(.brief-mobile-pinned) { position:fixed; top:var(--menu-page-y,0px); left:0; width:100%; overflow:hidden; }
  body.mobile-menu-open > header { z-index:102; }
  body.mobile-menu-open > .theme-toggle { z-index:103; top:max(14px,env(safe-area-inset-top)); left:16px; width:44px; height:44px; }
  body.mobile-menu-open > .mobile-menu-backdrop { z-index:100; background:var(--bg); backdrop-filter:none; }
  html[data-theme="light"] body.mobile-menu-open > .mobile-menu-backdrop { background:var(--bg); }
  body.mobile-menu-open > .page-film { z-index:101; background:transparent; clip-path:none; }
  body.mobile-menu-open .film-artifacts { opacity:.53; filter:none; }
  html[data-theme="light"] body.mobile-menu-open .film-artifacts { opacity:.76; filter:invert(1); }
  body.mobile-menu-open > :is(.back-to-top,.contact-dock) { opacity:0; visibility:hidden; pointer-events:none; }
  body.mobile-menu-open > .theme-toggle,html[data-theme="light"] body.mobile-menu-open > .theme-toggle { color:var(--text); }
  html[data-theme] header.mobile-menu-ready #site-navigation { position:fixed; inset:0; width:100%; height:100dvh; max-height:none; padding:80px 20px 100px; display:flex; align-items:center; justify-content:center; gap:clamp(4px,1.2svh,12px); overflow-y:auto; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; transform:translateY(6px); transform-origin:center; transition:opacity .24s,transform .3s cubic-bezier(.2,.7,.2,1),visibility .3s; }
  html[data-theme] header.mobile-menu-is-open #site-navigation { transform:none; }
  html[data-theme] header.mobile-menu-ready #site-navigation > a { flex:0 0 auto; width:max-content; min-width:170px; min-height:44px; padding:10px 12px; text-align:center; font:400 clamp(16px,2.1svh,20px)/1.4 var(--body); letter-spacing:.07em; color:var(--muted); }
  html[data-theme] header.mobile-menu-ready #site-navigation > a[aria-current="location"],html[data-theme] header.mobile-menu-ready #site-navigation > a:hover { color:var(--text); }
  html[data-theme] header.mobile-menu-ready #site-navigation > a::after { bottom:4px; left:18%; right:18%; width:auto; transform-origin:center; background:linear-gradient(90deg,transparent,var(--muted),transparent); }
  html[data-theme] header.mobile-menu-ready #site-navigation .header-contacts { position:absolute; left:50%; bottom:max(22px,env(safe-area-inset-bottom)); transform:translateX(-50%); display:flex; justify-content:center; width:max-content; gap:24px; margin:0; padding:0; border:0; }
  html[data-theme] header.mobile-menu-ready #site-navigation .header-contact { width:44px; height:44px; color:var(--text); background:transparent; }
  html[data-theme] header.mobile-menu-ready #site-navigation .header-contact svg { width:21px; height:21px; }
  html[data-theme] header.mobile-menu-is-open .mobile-menu-toggle { color:var(--text); }
}
@media (prefers-reduced-motion:reduce) {
  html[data-theme] header.mobile-menu-ready #site-navigation { transition:none; }
}

@media (hover:none) and (pointer:coarse) and (min-width:768px) {
  main > .chat-section#brief { padding-bottom:clamp(32px,6svh,80px); }
  .chat-section.is-mobile-pinned:not(.is-mobile-editing) .brief-section-wrap { padding-bottom:max(clamp(32px,6svh,80px),env(safe-area-inset-bottom)); }
}
@media (max-height:550px) and (max-width:800px), (max-height:550px) and (hover:none) and (pointer:coarse) {
  html[data-theme] header.mobile-menu-ready #site-navigation { padding:72px 18px 60px; gap:2px; }
  html[data-theme] header.mobile-menu-ready #site-navigation > a { font-size:16px; }
  html[data-theme] header.mobile-menu-ready #site-navigation .header-contacts { bottom:8px; }
}

/* Consent gates local data entry; the same form is shared by inline and fullscreen chat. */
.chat-composer .chat-icon:is(:hover,:active,:focus) { background:transparent; border-color:transparent; box-shadow:none; -webkit-tap-highlight-color:transparent; }
.chat-user.chat-voice-message { background:transparent; padding:0; border:0; box-shadow:none; }
.chat-voice-message .chat-edit { width:max-content; min-height:32px; margin:4px 0 0 auto; padding:6px 0 6px 12px; text-align:right; }
.chat-voice-guide { list-style:none; counter-reset:voice-question; padding-left:0; }
.chat-voice-guide li { counter-increment:voice-question; padding-left:23px; position:relative; }
.chat-voice-guide li::before { content:counter(voice-question) ")"; position:absolute; left:0; }
.chat-consent { flex:0 1 auto; min-height:0; max-height:30%; overflow:auto; overscroll-behavior:contain; padding:8px 0 0; text-align:left; }
.chat-consent .brief-consent-row { margin:0; align-items:center; gap:8px; font:400 11px/1.6 var(--body); color:var(--muted); }
.chat-consent .brief-consent-row input { flex:0 0 18px; width:18px; height:18px; margin:0; accent-color:var(--ui-ink); }
.chat-consent .brief-consent-toggle { color:var(--muted); }
.chat-consent .brief-consent-text { max-height:120px; overflow:auto; margin:8px 0; font-size:12px; }
html[data-theme] .brief-dialog:has(.chat-content) { position:fixed; inset:var(--brief-view-top,0px) 0 auto; width:100%; height:var(--brief-view-height,100dvh); max-width:none; max-height:var(--brief-view-height,100dvh); margin:0; border:0; border-radius:0; box-shadow:none; background:var(--bg); color:var(--text); }
html[data-theme] .brief-dialog::backdrop { background:var(--bg); backdrop-filter:none; }
html[data-theme] .brief-dialog .brief-heading-bar { position:relative; padding:20px max(18px,calc((100vw - 1035px)/2)); border:0; background:transparent; }
html[data-theme] .brief-dialog .brief-heading-bar h2 { font:400 36px/1.2 var(--heading-cyrillic); text-align:center; }
html[data-theme] .brief-dialog .brief-heading-bar { display:grid; grid-template-columns:64px minmax(0,1fr) 44px; }
html[data-theme] .brief-dialog .brief-close { width:44px; height:44px; background:transparent; border:0; box-shadow:none; padding:10px; }
html[data-theme] .brief-dialog .brief-close:is(:hover,:active) { background:transparent; box-shadow:none; }
html[data-theme] .brief-dialog .brief-scroll:has(.chat-content) { flex:1; min-height:0; width:100%; max-width:1087px; margin:0 auto; padding:16px 26px 28px; }
html[data-theme] .brief-dialog .chat-content { flex:1; min-height:0; height:100%; }
body.brief-fullscreen-open > :not(#brief-dialog) { visibility:hidden; }
body.brief-fullscreen-open .brief-dialog { visibility:visible; }
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  .chat-consent { order:7; padding-top:8px; }
  .chat-consent .brief-consent-row { font-size:10px; line-height:1.45; }
  html[data-theme] .brief-dialog .brief-scroll:has(.chat-content) { padding:8px 18px max(12px,env(safe-area-inset-bottom)); }
  html[data-theme] .brief-dialog .brief-heading-bar { padding:12px 18px; min-height:64px; }
  html[data-theme] .brief-dialog .brief-heading-bar h2 { font-size:28px; }
}

@media (min-width:801px) and (hover:hover) and (pointer:fine) {
  .chat-composer { min-height:58px; padding:6px 12px; }
  .chat-form > .chat-consent { order:1; }
  .chat-form > .brief-unavailable-note { order:3; }
}
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  .chat-content:not(.is-voice-mode) .chat-composer { padding:4px 8px; }
  .chat-content:not(.is-voice-mode) .chat-answer { min-height:28px; padding:0 6px 2px; }
}

.brief-dialog[open] { animation:brief-fullscreen-enter .2s ease-out; }
@keyframes brief-fullscreen-enter { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .brief-dialog[open] { animation:none; } }

html[data-theme] .brief-dialog .page-film { z-index:0; background:transparent; clip-path:none; }
.brief-dialog :is(.brief-heading-bar,.brief-scroll) { position:relative; z-index:1; }

.chat-consent { flex-shrink:0; }
body.brief-mobile-compact .brief-dialog.is-mobile-editing .brief-heading-bar { padding:4px 14px; min-height:52px; }
body.brief-mobile-compact :is(.chat-section,.brief-dialog).is-mobile-editing .chat-scroll-area { min-height:16px; }
body.brief-mobile-compact .chat-content:not(.is-voice-mode) .chat-answer { max-height:32px; }
body.brief-mobile-compact .chat-consent { padding-top:4px; }

html[data-theme] .brief-dialog .brief-heading-bar { grid-template-columns:64px minmax(0,1fr) 64px; }
.brief-dialog .brief-heading-bar > h2 { grid-column:2; grid-row:1; }
.brief-dialog .brief-heading-bar > .brief-close { grid-column:3; grid-row:1; justify-self:end; }

/* A single transient state clears the draft and blocks only the shared chat. */
.chat-content { position:relative; }
.chat-clearing-overlay { position:absolute; inset:0; z-index:10; display:flex; align-items:center; justify-content:center; gap:10px; border-radius:7px; background:rgba(2,2,2,.92); color:#f5f5f5; font:500 16px/1.5 var(--body); text-align:center; pointer-events:auto; touch-action:none; cursor:wait; }
.chat-clearing-spinner { flex:0 0 18px; width:18px; height:18px; border:2px solid #ffffff30; border-top-color:#eee; border-radius:50%; animation:chat-clear-spin .75s linear infinite; }
.chat-content.is-clearing .chat-form { pointer-events:none; user-select:none; }
@keyframes chat-clear-spin { to { transform:rotate(360deg); } }
@media (min-width:801px) and (hover:hover) and (pointer:fine) {
  .chat-content .chat-below { display:flex; justify-content:flex-end; }
  .chat-content .chat-below-actions { margin-left:auto; min-height:44px; }
}
@media (prefers-reduced-motion:reduce) { .chat-clearing-spinner { animation:none; } }

/* Comfortable consent spacing; desktop actions share the same row at the opposite edge. */
@media (min-width:801px) and (hover:hover) and (pointer:fine) {
  .chat-consent { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; column-gap:20px; padding-top:16px; }
  .chat-consent > .brief-consent-row { grid-column:1; grid-row:1; min-height:44px; }
  .chat-consent > .chat-below-actions { grid-column:2; grid-row:1; }
  .chat-consent > .brief-consent-text { grid-column:1/-1; grid-row:2; }
}
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  .chat-consent { padding-top:14px; }
  body.brief-mobile-compact .chat-consent { padding-top:8px; }
}

@media (max-width:800px), (hover:none) and (pointer:coarse) {
  .chat-content.is-keyboard-open .chat-consent:has(#brief-consent:checked) { display:none; }
}

/* Keep the live mobile editor at its measured height without rebuilding its typing surface. */
.chat-input-measure { position:absolute; top:0; left:-10000px; height:0; min-height:0; max-height:0; overflow:hidden; margin:0; border:0; visibility:hidden; pointer-events:none; white-space:pre-wrap; overflow-wrap:break-word; word-break:normal; contain:layout style; }
.chat-answer { -webkit-text-fill-color:var(--text); caret-color:var(--text); opacity:1; }
.chat-answer:disabled { -webkit-text-fill-color:var(--muted); }
.chat-answer::placeholder { -webkit-text-fill-color:var(--chat-placeholder-ink); }
.chat-clearing-status { display:inline-flex; align-items:center; justify-content:center; gap:10px; }

/* Clearing remains readable in either theme while the old history stays visible until completion. */
.chat-clearing-overlay { background:rgba(2,2,2,.8); color:var(--text); }
html[data-theme="light"] .chat-clearing-overlay { background:rgba(255,255,255,.8); }
.chat-clearing-spinner { border-color:var(--line-strong); border-top-color:var(--text); }
/* Equal mobile control frames, optical centres and stroke weights. */
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  :root { --dock-right:max(16px,env(safe-area-inset-right)); }
  .theme-toggle,body.mobile-menu-open > .theme-toggle { top:max(14px,env(safe-area-inset-top)); left:max(16px,env(safe-area-inset-left)); width:44px; height:44px; }
  header.mobile-menu-ready .mobile-menu-toggle { width:44px; height:44px; }
  .mobile-menu-toggle span { top:calc(50% - .75px); height:1.5px; transform-origin:10px .75px; }
  header.mobile-menu-ready .header-inner { padding-top:max(14px,env(safe-area-inset-top)); padding-left:max(16px,env(safe-area-inset-left)); padding-right:max(16px,env(safe-area-inset-right)); }
  .theme-toggle svg,.video-toggle svg,.contact-dock-toggle svg,.contact-dock-action svg,.back-to-top svg { width:22px; height:22px; stroke-width:1.5; }
  .video-toggle { left:max(16px,env(safe-area-inset-left)); bottom:var(--dock-bottom); width:44px; height:44px; opacity:1; }
  .contact-dock,.contact-dock-toggle,.contact-dock-action,.back-to-top { width:44px; height:44px; }
}

/* One centred title/progress hierarchy in both inline and fullscreen brief. */
.chat-heading { display:flex; flex-direction:column; align-items:center; gap:8px; }
.chat-question-number { display:inline-block; margin-inline-start:6px; color:var(--muted); font:400 12px/1.4 var(--body); font-variant-numeric:tabular-nums; white-space:nowrap; }
html[data-theme] .brief-dialog[open] { justify-content:center; padding:clamp(24px,6svh,72px) 0; }
html[data-theme] .brief-dialog .brief-heading-bar { display:flex; flex:0 0 auto; flex-direction:column; align-items:center; gap:8px; width:min(960px,calc(100% - 48px)); min-height:0; margin:0 auto 24px; padding:0; }
html[data-theme] .brief-dialog .brief-heading-bar h2 { margin:0; font-size:clamp(28px,4svh,42px); }
html[data-theme] .brief-dialog .brief-close { position:fixed; top:max(18px,env(safe-area-inset-top)); right:max(18px,env(safe-area-inset-right)); }
html[data-theme] .brief-dialog .brief-scroll:has(.chat-content) { flex:0 1 620px; width:min(960px,calc(100% - 48px)); height:620px; max-height:calc(100% - 100px); margin:0 auto; padding:0; }
@media (min-width:801px) and (hover:hover) and (pointer:fine) {
  .chat-section .chat-content { height:min(680px,calc(100svh - 240px)); }
}
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  html[data-theme] .brief-dialog[open] { justify-content:flex-start; padding:0; }
  html[data-theme] .brief-dialog .brief-heading-bar { gap:4px; width:100%; min-height:0; margin:0; padding:12px 64px 8px; }
  html[data-theme] .brief-dialog .brief-heading-bar h2 { font-size:28px; }
  html[data-theme] .brief-dialog .brief-close { top:max(10px,env(safe-area-inset-top)); right:max(10px,env(safe-area-inset-right)); }
  html[data-theme] .brief-dialog .brief-scroll:has(.chat-content) { flex:1; width:100%; height:auto; max-height:none; min-height:0; padding:8px 18px max(12px,env(safe-area-inset-bottom)); }
  .chat-content .chat-composer { border:1px solid var(--line); border-radius:7px; }
  .chat-content .chat-below { min-height:0; padding:6px 0 0; border:0; border-radius:0; background:transparent; }
  .chat-heading { gap:4px; }
  body.brief-mobile-compact .brief-dialog.is-mobile-editing .brief-heading-bar { padding:4px 64px; }
  body.brief-mobile-compact .brief-dialog .brief-heading-bar h2 { font-size:22px; }
}

/* The consent is a full document, never a clipped text box inside the composer. */
body.brief-legal-open { overflow:hidden; }
.brief-legal-dialog { position:fixed; inset:0; width:100%; max-width:none; height:100dvh; max-height:none; margin:0; padding:64px 24px 24px; border:0; border-radius:0; background:var(--bg); color:var(--text); overflow:auto; overscroll-behavior:contain; }
.brief-legal-dialog::backdrop { background:var(--bg); }
.brief-legal-document { width:min(1040px,100%); margin:0 auto; }
.brief-legal-dialog .brief-consent-text { height:auto; max-height:none; overflow:visible; margin:0; padding:0; color:var(--muted); font:400 14px/1.65 var(--body); }
.brief-legal-dialog .brief-consent-text h3 { margin:0 0 24px; color:var(--text); font:500 22px/1.4 var(--body); }
.brief-legal-close { position:fixed; top:max(12px,env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right)); display:grid; place-items:center; width:44px; height:44px; padding:10px; border:0; background:transparent; color:var(--text); }
.brief-legal-close svg { width:24px; height:24px; }

/* Multiple answers flow inline; picked checkboxes move above the editor. */
.chat-answer-options { margin-top:18px; }
.chat-choice-list,.chat-choice-categories { display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px 22px; }
.chat-choice-slot { display:contents; }
.chat-choice { display:inline-flex; align-items:center; gap:9px; flex:0 1 auto; width:fit-content; max-width:100%; min-height:32px; margin:0; padding:4px 0; border:0; border-radius:0; background:transparent; color:var(--muted); font:400 13px/1.55 var(--body); text-align:left; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.chat-choice input { flex:0 0 16px; width:16px; height:16px; margin:0; accent-color:var(--text); cursor:inherit; }
.chat-choice-text { min-width:0; overflow-wrap:anywhere; }
.chat-choice input:focus-visible { outline:2px solid var(--line-strong); outline-offset:2px; }
.chat-choice-category { flex:0 1 auto; min-width:0; max-width:100%; }
.chat-choice-category[open] { flex-basis:100%; }
.chat-choice-category summary { display:flex; align-items:center; justify-content:flex-start; gap:12px; min-height:36px; padding:6px 0; border:0; border-radius:0; color:var(--text); font:400 13px/1.5 var(--body); cursor:pointer; list-style:none; -webkit-tap-highlight-color:transparent; }
.chat-choice-category summary::-webkit-details-marker { display:none; }
.chat-choice-category summary::after { content:''; flex:0 0 8px; width:8px; height:8px; border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg) translateY(-2px); transition:transform .2s; }
.chat-choice-category[open] summary::after { transform:rotate(225deg) translate(-1px,-1px); }
.chat-choice-category .chat-choice-list { padding-top:12px; }
.chat-form > .chat-picked { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:flex-end; gap:4px 12px; flex:0 0 auto; width:fit-content; max-width:88%; max-height:min(112px,calc(var(--brief-view-height,100dvh) * .18)); margin:18px 0 10px auto; padding:0 2px; border:0; background:transparent; box-shadow:none; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--chat-thumb) transparent; }
.chat-picked .chat-choice { min-height:28px; max-width:min(100%,280px); padding:2px 0; color:var(--text); background:transparent; border:0; font-size:12px; line-height:1.5; }
.chat-picked .chat-choice input { flex-basis:14px; width:14px; height:14px; }
.chat-choice-flight { z-index:2147483000; pointer-events:none; overflow:hidden; background:var(--bg-soft); will-change:transform,opacity; }
.chat-answer-list { margin:0; padding-left:22px; text-align:left; }
.chat-answer-list li + li { margin-top:6px; }
.chat-message .chat-answer-extra { margin-top:18px; padding-top:0; border:0; text-align:left; }
.chat-composer .chat-send { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; width:auto; min-width:96px; height:44px; margin:0; padding:8px 10px; border:0; border-radius:7px; background:transparent; box-shadow:none; color:var(--text); font:500 14px/1.2 var(--body); text-align:center; white-space:nowrap; -webkit-tap-highlight-color:transparent; }
.chat-composer .chat-send:disabled { opacity:.45; cursor:default; }
.chat-composer .chat-send:focus-visible { outline:1px solid var(--line-strong); outline-offset:1px; }
.is-consent-locked .chat-composer > :is(textarea,button),.is-consent-locked .chat-choice { pointer-events:none; }
/* The checkbox frame is drawn once; its halo lives outside clipped chat columns. */
.chat-consent .brief-consent-row #brief-consent { appearance:none; -webkit-appearance:none; display:grid; place-items:center; padding:0; border:1px solid var(--line-strong); border-radius:3px; outline:0; box-shadow:none; background:var(--bg-soft); }
.chat-consent .brief-consent-row #brief-consent::before { content:''; width:5px; height:9px; border:solid var(--bg); border-width:0 2px 2px 0; transform:translateY(-1px) rotate(45deg); opacity:0; }
.chat-consent .brief-consent-row #brief-consent:checked { background:var(--ui-ink); border-color:var(--ui-ink); }
.chat-consent .brief-consent-row #brief-consent:checked::before { opacity:1; }
.chat-consent .brief-consent-row #brief-consent:focus-visible { outline:2px solid var(--line-strong); outline-offset:3px; }
.brief-consent-pulse { position:absolute; z-index:2147483001; box-sizing:border-box; border:1px solid transparent; border-radius:3px; background:transparent; pointer-events:none; animation:brief-consent-glow 3.2s linear 1; }
@keyframes brief-consent-glow {
  0%,100% { border-color:transparent; box-shadow:0 0 0 0 #ff414800,0 0 0 0 #ff414800; }
  3.5% { border-color:#ff4148; box-shadow:0 0 12px 8px #ff414838,0 0 66px 27px #ff414877; }
  24%,46%,73% { border-color:#ff4148; box-shadow:0 0 4px 3px #ff414838,0 0 22px 9px #ff414855; }
  36%,63% { border-color:#ff414860; box-shadow:0 0 0 1px #ff414810,0 0 16px 5px #ff414818; }
}
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  .chat-content .chat-composer { grid-template-columns:44px minmax(0,1fr) 44px 96px; }
  .chat-content .chat-form > .chat-picked { order:5; }
  .chat-content .chat-composer .chat-send { width:96px; min-width:96px; }
  .chat-choice { min-height:40px; font-size:12px; padding:6px 0; }
  .chat-picked .chat-choice { min-height:32px; padding:2px 0; }
  .chat-form > .chat-picked { max-width:94%; }
  .chat-choice-category summary { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) {
  .brief-consent-pulse { animation:brief-consent-glow-soft 3.2s ease-out 1; }
  .chat-choice-category summary::after { transition:none; }
}
body.brief-mobile-compact .chat-content:not(.is-voice-mode) .chat-composer { display:grid; grid-template-columns:44px minmax(0,1fr) 44px 84px; grid-template-rows:auto; padding:4px; }
body.brief-mobile-compact .chat-content:not(.is-voice-mode) .chat-composer .chat-answer { grid-column:2; grid-row:1; padding:0 2px; }
body.brief-mobile-compact .chat-content:not(.is-voice-mode) .chat-composer .chat-attach { grid-column:1; grid-row:1; }
body.brief-mobile-compact .chat-content:not(.is-voice-mode) .chat-composer .chat-microphone { grid-column:3; grid-row:1; }
body.brief-mobile-compact .chat-content:not(.is-voice-mode) .chat-composer .chat-send { grid-column:4; grid-row:1; width:84px; min-width:84px; padding-inline:6px; font-size:12px; }
body.brief-mobile-compact .chat-content .chat-picked { margin-block:6px; }

@keyframes brief-consent-glow-soft {
  0%,100% { border-color:transparent; box-shadow:0 0 0 0 #ff414800,0 0 0 0 #ff414800; }
  12% { border-color:#ff4148; box-shadow:0 0 12px 8px #ff414838,0 0 66px 27px #ff414877; }
}

/* A finite mobile halo fades out inside the visible viewport instead of clipping a shadow. */
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  .brief-consent-pulse { isolation:isolate; box-shadow:none!important; animation-name:brief-consent-mobile-outline; }
  .brief-consent-pulse::after { content:''; position:absolute; z-index:-1; inset:calc(-1 * var(--consent-mobile-halo-outset,12px)); border-radius:50%; pointer-events:none; background:radial-gradient(circle closest-side,#ff414866 0%,#ff414833 40%,#ff414800 100%); animation:brief-consent-mobile-halo 3.2s linear 1; }
  @supports (background:radial-gradient(circle closest-side in oklab,#ff414866,#ff414800)) {
    .brief-consent-pulse::after { background:radial-gradient(circle closest-side in oklab,#ff414866 0%,#ff414833 40%,#ff414800 100%); }
  }
}
@keyframes brief-consent-mobile-outline {
  0%,100% { border-color:transparent; }
  3.5%,24%,46%,73% { border-color:#ff4148; }
  36%,63% { border-color:#ff414860; }
}
@keyframes brief-consent-mobile-halo {
  0%,100% { opacity:0; }
  3.5% { opacity:1; }
  24%,46%,73% { opacity:.55; }
  36%,63% { opacity:.16; }
}
@media (prefers-reduced-motion:reduce) and (max-width:800px), (prefers-reduced-motion:reduce) and (hover:none) and (pointer:coarse) {
  .brief-consent-pulse { animation-name:brief-consent-mobile-outline-soft; }
  .brief-consent-pulse::after { animation-name:brief-consent-mobile-halo-soft; animation-timing-function:ease-out; }
}
@keyframes brief-consent-mobile-outline-soft { 0%,100% { border-color:transparent; } 12% { border-color:#ff4148; } }
@keyframes brief-consent-mobile-halo-soft { 0%,100% { opacity:0; } 12% { opacity:1; } }

/* All inactive chat content shares a neutral grey; consent and notices stay legible. */
.chat-content.is-consent-locked { --chat-disabled-ink:#777; }
html[data-theme="light"] .chat-content.is-consent-locked { --chat-disabled-ink:#858585; }
.chat-content.is-consent-locked :is(.chat-scroll-area,.chat-picked,.chat-files,.chat-composer,.chat-below) {
  --text:var(--chat-disabled-ink);
  --muted:var(--chat-disabled-ink);
  --ui-ink:var(--chat-disabled-ink);
  --chat-dim:var(--chat-disabled-ink);
  color:var(--chat-disabled-ink);
  filter:grayscale(1);
}
.chat-content.is-consent-locked .chat-composer :is(.chat-icon,.chat-send):disabled { opacity:1; }

/* Continuous answer flow: keep complete wording without rigid text columns. */
.chat-choice-list { display:block; font:400 13px/2.55 var(--body); }
.chat-choice-list .chat-choice { display:inline; width:auto; max-width:none; min-height:0; margin:0 20px 0 0; padding:5px 0; font:inherit; border:0; border-radius:0; background:transparent; }
.chat-choice-lead { white-space:nowrap; }
.chat-choice-lead input { display:inline-block; vertical-align:-3px; margin:0 8px 0 0; }
.chat-choice-list .chat-choice-text { display:inline; }
.chat-form > .chat-picked { display:block; width:88%; max-width:88%; margin:12px 0 8px auto; padding:0; text-align:right; font:400 10px/20px Arial,Helvetica,sans-serif; --chat-picked-ink:rgba(255,255,255,.6); }
html[data-theme="light"] .chat-form > .chat-picked { --chat-picked-ink:#707477; }
.chat-picked .chat-choice { display:inline; width:auto; max-width:none; min-height:0; margin:0 0 0 12px; padding:3px 0; border:0; border-radius:0; background:transparent; color:var(--chat-picked-ink); font:inherit; text-align:inherit; }
.chat-picked .chat-choice-lead input { flex-basis:10px; width:10px; height:10px; vertical-align:-1px; margin-right:5px; accent-color:var(--chat-picked-ink); }
.chat-choice-flight { background:transparent; }
@media (min-width:801px) and (hover:hover) and (pointer:fine) {
  .chat-consent { padding-top:12px; }
  .chat-consent > .brief-consent-row { min-height:28px; }
}
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  .chat-choice-list { font-size:12px; line-height:36px; }
  .chat-choice-list .chat-choice { margin-right:18px; }
  .chat-form > .chat-picked { width:94%; max-width:94%; font-size:10.5px; line-height:24px; }
}
.chat-content.is-consent-locked .chat-picked { --chat-picked-ink:var(--chat-disabled-ink); }

.chat-form > .chat-picked { max-height:80px; }
@media (max-width:800px), (hover:none) and (pointer:coarse) { .chat-form > .chat-picked { max-height:72px; } }
body.brief-mobile-compact .chat-content .chat-picked { max-height:24px; }

/* Bot messages keep their own left lane, including expanded answer categories. */
@media (max-width:800px) { .chat-content .chat-assistant { width:86%; max-width:640px; } }
@media (min-width:801px) and (hover:none) and (pointer:coarse) { .chat-content .chat-assistant { width:66%; max-width:640px; } }
.brief-consent-hint { position:fixed; z-index:2147483002; display:block; width:max-content; max-width:min(320px,calc(100vw - 16px)); padding:7px 10px; border:0; border-radius:7px; background:var(--bg-soft); color:var(--text); box-shadow:0 4px 18px #0002; font:400 12px/1.5 var(--body); white-space:normal; pointer-events:none; opacity:1; visibility:visible; animation:none; transition:none; }

/* Keep a fitting answer intact, and let the packing logic place longer ones first. */
.chat-choice-list .chat-choice.is-choice-whole { display:inline-block; white-space:nowrap; vertical-align:middle; padding-block:0; margin-right:var(--choice-pack-gap,20px); }
/* Quoted choices are secondary to the person's own words in the same message. */
.chat-answer-text > .chat-answer-list { font:400 13px/1.65 var(--body); color:var(--muted); }
.chat-answer-text > .chat-answer-list li + li { margin-top:4px; }
.chat-answer-text > .chat-answer-extra { color:var(--text); }
@media (max-width:800px), (hover:none) and (pointer:coarse) { .chat-answer-text > .chat-answer-list { font-size:12px; } }

/* Reading/choosing in chat must not accidentally select text. Editing stays native. */
.chat-content,.chat-heading,.brief-heading-bar { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.chat-content .chat-answer,.brief-legal-document,.brief-legal-document * { -webkit-user-select:text; user-select:text; -webkit-touch-callout:default; }

/* Keep the departing trace inside one letter beyond the section labels. */
nav .nav-departure, nav .nav-departure > span { position:absolute; inset:0; pointer-events:none; }

/* Desktop conversation lanes meet near the center, with a clear gap. */
@media (min-width:801px) and (hover:hover) and (pointer:fine) {
  .chat-content .chat-assistant { width:calc(50% - 18px); max-width:none; }
  .chat-content .chat-user { max-width:calc(50% - 18px); }
}
/* Confirmed delivery replaces the conversation with a calm centered finish. */
.chat-content .chat-form[hidden] { display:none!important; }
:is(.chat-section,.brief-dialog).is-brief-complete .chat-heading { opacity:0; pointer-events:none; transition:opacity .3s; }
.chat-content .brief-success { position:fixed; inset:0; z-index:5; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:24px; text-align:center; pointer-events:none; }
.chat-content .brief-success h3 { position:relative; margin:0; font:400 clamp(24px,3vw,32px)/1.3 var(--body); color:var(--text); }
.chat-content .brief-success .brief-new { position:relative; pointer-events:auto; border:0; background:transparent; box-shadow:none; color:var(--muted); font:400 13px/1.5 var(--body); min-height:44px; padding:8px 16px; letter-spacing:0; }
.chat-content .brief-success .brief-new:hover { background:transparent; box-shadow:none; border:0; color:var(--text); }
.brief-celebration { position:absolute; left:50%; top:calc(50% - 23px); pointer-events:none; }
.brief-celebration > span { position:absolute; left:0; top:0; width:10px; height:1px; border-radius:1px; color:var(--text); background:currentColor; opacity:0; transform:rotate(var(--spark-angle)) translateX(25px); }
.brief-success.is-celebrating .brief-celebration > span { animation:brief-finish-spark .75s cubic-bezier(.15,.6,.3,1) var(--spark-delay) both; }
@keyframes brief-finish-spark { 0% { opacity:0; transform:rotate(var(--spark-angle)) translateX(18px) scaleX(.3); } 18% { opacity:.45; } 100% { opacity:0; transform:rotate(var(--spark-angle)) translateX(140px) scaleX(.15); } }
@media (prefers-reduced-motion:reduce) { .brief-success.is-celebrating .brief-celebration > span { animation:none; } }

.chat-section:not(.is-completion-visible) .brief-success { visibility:hidden; }

.brief-dialog.is-brief-complete .brief-heading-bar > h2 { opacity:0; pointer-events:none; transition:opacity .3s; }

.chat-content .brief-success h3 { display:flex; align-items:center; justify-content:center; gap:10px; }


/* The completion flight stays within the same success surface, including the modal. */
.chat-content .brief-flight { position:absolute; inset:0; width:100%; height:100%; opacity:0; pointer-events:none; touch-action:none; transition:opacity .8s; }
.chat-content .brief-success.is-flight-visible .brief-flight { opacity:1; pointer-events:auto; }
.chat-content .brief-success.is-flight-visible :is(h3,.brief-new) { opacity:0; visibility:hidden; pointer-events:none; transition:opacity .6s,visibility 0s .6s; }
@media(prefers-reduced-motion:reduce) { .chat-content .brief-flight,.chat-content .brief-success.is-flight-visible h3 { transition:none; } }

/* An unobtrusive footer entry to the same flight, independent of brief progress. */
.footer .footer-game { position:relative; display:inline; margin:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; color:inherit; font:inherit; letter-spacing:inherit; cursor:pointer; text-transform:none; }
.footer .footer-game::before { content:""; position:absolute; inset:-12px -3px; }
.footer .footer-game:focus-visible { outline:1px solid currentColor; outline-offset:4px; }
.rocket-dialog { position:fixed; inset:0; margin:0; padding:0; width:100%; height:100%; height:100dvh; max-width:none; max-height:none; border:0; background:var(--bg,#050505); color:var(--text); overflow:hidden; }
.rocket-dialog::backdrop { background:var(--bg,#050505); }
.rocket-surface { position:absolute; inset:0; z-index:1; }
.rocket-surface .brief-flight { position:absolute; inset:0; width:100%; height:100%; opacity:0; pointer-events:none; touch-action:none; transition:opacity .8s; }
.rocket-surface.is-flight-visible .brief-flight { opacity:1; pointer-events:auto; }
.rocket-close { position:absolute; z-index:2; top:max(14px,env(safe-area-inset-top)); right:max(14px,env(safe-area-inset-right)); display:grid; place-items:center; width:44px; height:44px; padding:10px; border:0; background:transparent; color:var(--text); box-shadow:none; cursor:pointer; }
.rocket-close svg { width:24px; height:24px; }
@media(prefers-reduced-motion:reduce) { .rocket-surface .brief-flight { transition:none; } }
.contact-email { display:block; order:2; width:100%; min-height:44px; margin:0; padding:8px 0; border:0; background:transparent; text-align:center; }
.contact-email span { display:inline-block; min-width:230px; }
.completion-game-close { display:none; position:fixed; z-index:100; top:max(14px,env(safe-area-inset-top)); right:max(16px,env(safe-area-inset-right)); width:44px; height:44px; padding:10px; border:0; background:transparent; color:var(--text); pointer-events:auto; }
.completion-game-close svg { width:24px; height:24px; }
.is-flight-visible .completion-game-close { display:block; }
.flight-sound-toggle { display:none; position:fixed; z-index:100; top:max(14px,env(safe-area-inset-top)); left:max(16px,env(safe-area-inset-left)); width:44px; height:44px; padding:10px; border:0; background:transparent; color:#eee; box-shadow:none; cursor:pointer; pointer-events:auto; }
.is-flight-visible .flight-sound-toggle { display:grid; place-items:center; }
.flight-sound-toggle svg { width:24px; height:24px; }
.flight-sound-toggle:focus-visible { outline:1px solid currentColor; outline-offset:2px; border-radius:4px; }
body.completion-game-active :is(.mobile-menu-toggle,.brief-close) { visibility:hidden!important; pointer-events:none; }
body.completion-game-active .page-film,.rocket-dialog .page-film { visibility:hidden; }
.rocket-dialog,.rocket-dialog::backdrop { background:#02060c; color:#eee; }
body.completion-game-active .completion-game-close { color:#eee; }
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  main > .chat-section#brief.is-mobile-aligned { padding-top:0; }
  .chat-section:not(.is-mobile-pinned) :is(.chat-log,.chat-answer) { overscroll-behavior-y:auto; }
  .chat-section.is-mobile-aligned .brief-section-wrap { padding-top:max(14px,env(safe-area-inset-top)); }
  .chat-section.is-mobile-aligned .chat-heading { min-height:44px; padding-inline:52px; margin-bottom:18px; justify-content:center; }
  .chat-section.is-mobile-aligned #brief-section-title { font-size:36px; line-height:44px; }
  .chat-section.is-mobile-aligned:not(.is-mobile-pinned) .chat-content { height:calc(100svh - 104px); }
  .chat-section.is-mobile-aligned.is-mobile-pinned:not(.is-mobile-editing) .brief-section-wrap { padding-top:max(14px,env(safe-area-inset-top)); }
  body.brief-mobile-visible:not(.brief-mobile-editing) > header { transform:none!important; visibility:visible; }
}

/* Contacts: centered text axis and a consistent vertical rhythm. */
.contacts-section#contacts .contacts-card { gap:0; text-align:center; }
.contacts-section#contacts #contacts-heading { margin:0 0 1.5rem; font-size:clamp(1.25rem,.925rem + .85vw,1.5rem); line-height:1.25; text-box:trim-both cap alphabetic; }
.contacts-section#contacts .contacts-text { font:400 clamp(.9375rem,.85rem + .2vw,1rem)/1.5 var(--body); letter-spacing:0; text-align:center; }
.contacts-section#contacts .contacts-card > p.contacts-text { max-inline-size:min(100%,42rem); margin:0 0 1.75rem; }
.contacts-section#contacts .contact-links { gap:1.25rem; }
.contacts-section#contacts .contact-links .phone-link { display:grid; grid-template-columns:1.125rem minmax(0,1fr) 1.125rem; gap:.625rem; width:max-content; max-width:100%; white-space:normal; font-size:clamp(1.15rem,1rem + .3vw,1.38rem); line-height:1.3; }
.contacts-section#contacts .contact-links .contact-handle { font-size:.875rem; }
.contacts-section#contacts .phone-link::after { content:""; grid-column:3; grid-row:1; width:1.125rem; }
.contacts-section#contacts .phone-link > svg { grid-column:1; grid-row:1; align-self:center; }
.contacts-section#contacts .phone-link > span { grid-column:2; grid-row:1; overflow-wrap:anywhere; text-wrap:balance; }
.contacts-section#contacts .contact-links :is(.phone-link,.contact-handle) > span { text-box:trim-both cap alphabetic; }
.contacts-section#contacts .contacts-card > .contact-email { margin-top:.75rem; }
.contacts-section#contacts .contact-email span { min-inline-size:min(14.375rem,100%); max-inline-size:100%; overflow-wrap:anywhere; }
@media (max-height:550px) {
  .contacts-section#contacts #contacts-heading { margin-bottom:1.125rem; }
  .contacts-section#contacts .contact-links { gap:.875rem; }
  .contacts-section#contacts .contacts-card > p.contacts-text { margin-bottom:1.25rem; }
  .contacts-section#contacts .contacts-card > .contact-email { margin-top:.5rem; }
}

/* Consent attention is drawn only on glyphs; the original text stays readable below. */
.brief-consent-copy-glow { position:absolute; z-index:2147483001; margin:0; padding:0; border:0; background:none; box-shadow:none; pointer-events:none; color:#ff4148; text-shadow:0 0 6px #ff414877; opacity:0; mask-image:linear-gradient(90deg,#000 45%,transparent 55%); -webkit-mask-image:linear-gradient(90deg,#000 45%,transparent 55%); mask-size:300% 100%; -webkit-mask-size:300% 100%; mask-position:10% 0; -webkit-mask-position:10% 0; mask-repeat:no-repeat; -webkit-mask-repeat:no-repeat; animation:consent-glyph-flow .5s linear both; }
.brief-consent-copy-glow > span { color:inherit; text-shadow:inherit; background:none; border-color:transparent; text-decoration-color:currentColor; pointer-events:none; }
@keyframes consent-glyph-flow {
  0% { opacity:0; mask-position:10% 0; -webkit-mask-position:10% 0; }
  12%,28% { opacity:1; mask-position:10% 0; -webkit-mask-position:10% 0; }
  100% { opacity:1; mask-position:83% 0; -webkit-mask-position:83% 0; }
}
.brief-consent-pulse.is-receiving { animation:consent-box-arrive .8s ease-out both; }
@keyframes consent-box-arrive {
  0%,100% { border-color:#ff414860; box-shadow:0 0 0 1px #ff414810,0 0 16px 5px #ff414818; }
  30% { border-color:#ff4148; box-shadow:0 0 6px 4px #ff414838,0 0 26px 10px #ff414855; }
}
.brief-consent-pulse.is-persisting { animation:consent-box-wait 1.8s ease-in-out infinite; }
@keyframes consent-box-wait {
  0%,100% { border-color:#ff414860; box-shadow:0 0 0 1px #ff414810,0 0 16px 5px #ff414818; }
  50% { border-color:#ff4148; box-shadow:0 0 4px 3px #ff414838,0 0 22px 9px #ff414855; }
}
@media (max-width:800px), (hover:none) and (pointer:coarse) {
  .brief-consent-copy-glow { text-shadow:0 0 4px #ff414866; }
  .brief-consent-pulse.is-receiving { animation-name:consent-box-arrive-mobile; }
  .brief-consent-pulse.is-receiving::after { animation:consent-halo-arrive-mobile .8s ease-out both; }
  .brief-consent-pulse.is-persisting { animation-name:consent-box-wait-mobile; }
  .brief-consent-pulse.is-persisting::after { animation:consent-halo-wait-mobile 1.8s ease-in-out infinite; }
}
@keyframes consent-box-arrive-mobile { 0%,100% { border-color:#ff414860; } 30% { border-color:#ff4148; } }
@keyframes consent-halo-arrive-mobile { 0%,100% { opacity:.16; } 30% { opacity:1; } }
@keyframes consent-box-wait-mobile { 0%,100% { border-color:#ff414860; } 50% { border-color:#ff4148; } }
@keyframes consent-halo-wait-mobile { 0%,100% { opacity:.16; } 50% { opacity:.55; } }
@media (prefers-reduced-motion:reduce) {
  .brief-consent-copy-glow { animation-name:consent-glyph-fade; mask-image:none; -webkit-mask-image:none; }
  .brief-consent-pulse:is(.is-receiving,.is-persisting) { animation:none; border-color:#ff4148; box-shadow:0 0 4px 3px #ff414838,0 0 22px 9px #ff414855; }
  .brief-consent-pulse:is(.is-receiving,.is-persisting)::after { animation:none; opacity:.35; }
}
@keyframes consent-glyph-fade { 0%,100% { opacity:0; } 20%,35% { opacity:1; } }
.brief-consent-pulse.is-gathering { opacity:0; animation:none!important; border-color:transparent; box-shadow:none; }
.brief-consent-pulse.is-gathering::after { opacity:0; animation:none!important; }

/* Scroll consent decoration with its owner, including compositor-driven touch scrolling. */
.chat-consent:has(.brief-consent-pulse) { overflow:visible; }
