@font-face{font-family:Inter;src:url(assets/inter.ttf) format("truetype");font-weight:100 900;font-display:swap}
*{box-sizing:border-box}
html{--u:calc(100vw / 1440);font-family:Inter,Arial,sans-serif;color:#0a0a0a}
body,p{margin:0}
body{background:#fff}
section{height:calc(var(--height) * var(--u));position:relative;overflow:clip}
section>div{height:100%}
a,button{color:inherit;text-decoration:none}
button{background:none;font:inherit;border:0;padding:0}
a:focus-visible{outline:3px solid #2872c7;outline-offset:3px}
.hover-preview{position:absolute;inset:0;opacity:0;transition:opacity .2s}
@media(hover:hover){[data-name^="Проект /"]:hover .hover-preview{opacity:1}}
[data-name^="Проект /"]:focus-visible .hover-preview{opacity:1}
[data-name^="Tower / Row"]{animation:appear .24s both}
[data-name$="Row 2"]{animation-delay:30ms}[data-name$="Row 3"]{animation-delay:60ms}[data-name$="Row 4"]{animation-delay:90ms}[data-name$="Row 5"]{animation-delay:120ms}
@keyframes appear{from{opacity:0;transform:translateY(3px)}}
@media(max-width:700px){
html{--u:.8px}
section{height:auto}
section>div{width:100%;height:auto}
section:has([data-name^="Pattern / Chequered ("]),section:has([data-name="Ticker Row"]){--u:calc(100vw / 1440);height:calc(var(--height)*var(--u))}
section>div.flex-col{padding:42px 18px;gap:22px}
section :is(div,p,a){max-width:100%}
section p,section a{white-space:normal;overflow-wrap:anywhere}
section .stack{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:18px;height:auto}
.stack>.flex,.stack>p,.stack>a{flex:auto;min-width:0;width:100%}
section .mobile-type{font-size:clamp(28px,8.5vw,47px);line-height:1;letter-spacing:-.04em}
section .mobile-body{font-size:18px;line-height:1.22}
[data-name="Header"]{width:100%;flex-direction:column;align-items:flex-start;gap:12px}
[data-name="Nav"]{display:flex;width:100%;justify-content:space-between;gap:4px}
[data-name="Nav"] a{font-size:14px;width:auto;text-align:left}
[data-name^="Первый экран"]{height:680px;overflow:hidden}
[data-name^="Первый экран"]>[data-name="Header"]{left:18px;right:18px;width:auto;top:24px}
[data-name^="Первый экран"]>[data-name^="Divider"]{top:109px;left:18px;width:calc(100% - 36px)}
[data-name="Type / BRAND"]{left:14px;top:127px;--u:calc(100vw / 1050)}
[data-name="Type / & GRAPHIC DESIGNER"]{left:18px;top:calc(132px + 22vw);--u:calc(100vw / 1800)}
[data-name="Image / Portrait (cutout)"]{left:4%;top:calc(144px + 20vw);width:100%;height:300px;object-fit:cover;object-position:center top}
[data-name="F1 / Timing tower"]{--u:.52px;left:auto;right:12px;top:400px}
[data-name="F1 / Driver plate"]{--u:.54px;left:12px;top:462px}
[data-name="Intro / Description block"]{left:18px;top:524px;width:90%}
[data-name="Button / Написать"]{left:18px;top:615px}
[data-name="Scheme / Стратегия — Функциональность — Эстетика"]{--u:calc((100vw - 36px) / 1280)}
[data-name="Case / Hero"]{padding:24px 18px 38px;display:grid;gap:22px}
[data-name="Case / Hero"]>.absolute{position:relative;inset:auto;width:100%}
[data-name^="Image /"]:not([data-name*="Portrait"]):not(.hover-preview){max-width:100%}
[data-name="Case / Финиш"]{min-height:320px}
[data-name="Services / List"],[data-name^="Mockup /"],[data-name^="Service /"]{height:auto}
[data-name="About / Principles"],[data-name="Contact / Top row"]{flex-wrap:wrap}
[data-name="Next / Card — Altai Vogue Camp"]{flex-direction:column}
a[data-name^="Проект /"] [data-name="Image / Main"]::after{content:"↗";position:absolute;right:12px;bottom:12px;background:#feb838;border-radius:50%;padding:8px 12px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-width:700px){
section p[class],section a[class]{white-space:normal;overflow-wrap:anywhere;min-width:0}
[data-name^="Первый экран"]>[data-name="Header"]>p{font-size:clamp(28px,10.5vw,42px)}
[data-name^="Brief / Row"]{height:auto;min-height:44px}
[data-name^="Brief / Row"]>p{flex:1}
[data-name^="Scheme /"] .mobile-body{font-size:calc(24 * var(--u));white-space:nowrap;line-height:1}
[data-name="Services / Title + Button"]>a{align-self:flex-start;width:auto}
section:has([data-name="Ticker Row"]){--u:.65px;height:36px}
[data-name^="Mockup /"]>div:first-child{width:100%;height:auto;aspect-ratio:1.55}
}
