*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
:root{
--serif:'Fraunces',Georgia,serif;
/* Spacing scale — 8px */
--space-1:8px;--space-2:16px;--space-3:24px;--space-4:32px;
--space-5:48px;--space-6:64px;--space-7:80px;--space-8:96px;
/* 12-column grid */
--cols:12;--gutter:24px;
/* Layout tokens (stepped) */
--pad:24px;--w:1120px;--sec-y:64px;--gap:48px;--hero-y:48px;
--hdr-h:64px;--stack:32px;--body-gap:16px
}
/* ===== tokens ===== */
body[data-style=a]{--bgbody:#1a1a1b;--bg:#1a1a1b;--s1:#222224;--s2:#2a2a2c;--text:#ece8df;--text2:#ddd8cc;--muted:#a6a396;--acc:#d8c28a;--on-acc:#12110e;--cream:#d8c28a;--line:rgba(236,232,223,.18);--soft:rgba(236,232,223,.1);--sans:'Manrope',Arial,sans-serif;--r:0px;--rbtn:0px;--pad:24px;--w:1120px;--sec-y:64px;--gap:48px;--hero-y:48px}
body[data-style=b]{--bgbody:#161617;--bg:#1e1e20;--s1:#262628;--s2:#2e2e31;--text:#ece8df;--text2:#cdc9bd;--muted:#a3a094;--acc:#d8c28a;--on-acc:#12110e;--cream:#d8c28a;--line:rgba(236,232,223,.26);--soft:rgba(236,232,223,.12);--sans:'Inter','Helvetica Neue',Arial,sans-serif;--r:0px;--rbtn:2px;--pad:24px;--w:1240px;--sec-y:48px;--gap:0px;--hero-y:40px}
body[data-style=c]{--bgbody:#1a1816;--bg:#1a1816;--s1:#242220;--s2:#2c2926;--text:#f0e8da;--text2:#d3c8b6;--muted:#b0a490;--acc:#d9b87a;--on-acc:#14110d;--cream:#f2eadb;--line:rgba(240,232,218,.2);--soft:rgba(240,232,218,.11);--sans:'Inter','Helvetica Neue',Arial,sans-serif;--r:20px;--rbtn:999px;--pad:24px;--w:1240px;--sec-y:64px;--gap:48px;--hero-y:48px}
body[data-theme=light][data-style=a]{--bgbody:#f3f1ea;--bg:#f3f1ea;--s1:#eae6dc;--s2:#e2ddd2;--text:#1c1b17;--text2:#3f3c34;--muted:#6e695c;--acc:#8a7030;--on-acc:#fff;--cream:#8a7030;--line:rgba(28,27,23,.16);--soft:rgba(28,27,23,.09)}
body[data-theme=light][data-style=b]{--bgbody:#e6e5e1;--bg:#f8f7f4;--s1:#efede8;--s2:#e8e5de;--text:#1a1916;--text2:#3a3832;--muted:#6c6860;--acc:#7a6528;--on-acc:#fff;--cream:#7a6528;--line:rgba(26,25,22,.22);--soft:rgba(26,25,22,.1)}
body[data-theme=light][data-style=c]{--bgbody:#f6f0e6;--bg:#f6f0e6;--s1:#ebe2d3;--s2:#e0d4c2;--text:#1f1812;--text2:#4a4034;--muted:#7a6f5e;--acc:#9a7228;--on-acc:#fff;--cream:#1f1812;--line:rgba(31,24,18,.18);--soft:rgba(31,24,18,.1)}
body{background:var(--bgbody);color:var(--text);font:400 clamp(16px,.94rem + .18vw,18px)/1.68 var(--sans);transition:background .25s,color .25s}
/* overflow-x на html/body ломает position:sticky у шапки — горизонтальный скролл режем на .page */
img,svg{display:block;max-width:100%;height:auto}a{color:inherit}button,input{font:inherit;color:inherit}button{cursor:pointer;background:none;border:0}
:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
.skip{position:fixed;top:8px;left:8px;transform:translateY(-200%);background:var(--acc);color:var(--on-acc);padding:10px 16px;z-index:220}.skip:focus{transform:none}
/* 12-col container: equal columns, gutter between them */
.c{
max-width:var(--w);margin-inline:auto;
padding-inline:max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));column-gap:var(--gutter);row-gap:0;align-items:start
}
.c>*{grid-column:1/-1;min-width:0}
/* header row stays flex, full width of the 12-col shell */
.c.hdr{display:flex;align-items:center;gap:var(--space-3);min-height:var(--hdr-h);padding-block:0}
.idx{font-size:.75rem;letter-spacing:.06em;color:var(--acc);font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.small{font-size:.86rem}
.label{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
/* ===== tools ===== */
.tools{position:relative;z-index:70;display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;padding:8px max(clamp(14px,3vw,32px), env(safe-area-inset-left)) 8px max(clamp(14px,3vw,32px), env(safe-area-inset-right));padding-top:max(8px, env(safe-area-inset-top));background:rgba(26,26,28,.92);border-bottom:1px solid rgba(236,232,223,.18);backdrop-filter:blur(10px);color:#ece8df;font-family:'Inter',Arial,sans-serif}
.tools[hidden]{display:none}.tools .tag{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#a6a396}
.seg{display:flex;gap:6px;flex-wrap:wrap}.seg button,.tbtn{min-height:44px;padding:6px 14px;border:1px solid rgba(236,232,223,.25);font-size:.82rem;color:#b9b5a8;display:inline-flex;align-items:center;cursor:pointer;position:relative}
.seg button:hover,.tbtn:hover{color:#fff;border-color:#d8c28a}.seg button[aria-pressed=true]{background:#d8c28a;color:#0b0a06;border-color:#d8c28a}
.tbtn input{position:absolute;opacity:0;width:1px;height:1px}.tbtn:focus-within{outline:2px solid #d8c28a;outline-offset:3px}
.tool-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.seg-theme{margin-left:4px;padding-left:10px;border-left:1px solid rgba(236,232,223,.2)}
body[data-theme=light] .seg-theme{border-left-color:var(--line)}
.show-tools{position:fixed;right:max(12px, env(safe-area-inset-right));bottom:max(12px, env(safe-area-inset-bottom));z-index:70;min-height:44px;padding:8px 16px;background:#d8c28a;color:#0b0a06;font-size:.82rem;font-family:'Inter',Arial,sans-serif}.show-tools[hidden]{display:none}
/* отладка: колоночная сетка как у .c (12 кол., gutter) */
html.grid-debug-available .grid-debug-toggle{position:fixed;left:max(12px, env(safe-area-inset-left));bottom:max(12px, env(safe-area-inset-bottom));z-index:220;min-height:44px;padding:8px 14px;background:var(--acc);color:var(--on-acc);font:500 .82rem var(--sans);border:1px solid var(--acc);border-radius:var(--rbtn);cursor:pointer;box-shadow:0 4px 20px rgba(0,0,0,.25)}
html.grid-debug-available .grid-debug-toggle:hover{filter:brightness(1.08)}
html.grid-debug-available .grid-debug-toggle[aria-pressed=true]{outline:2px solid var(--text);outline-offset:2px}
.grid-debug-overlay{position:fixed;inset:0;z-index:210;pointer-events:none}
.grid-debug-overlay[hidden]{display:none}
.grid-debug-inner{box-sizing:border-box;width:100%;max-width:var(--w);min-height:100%;margin-inline:auto;padding-inline:max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));column-gap:var(--gutter);align-content:stretch}
.grid-debug-inner>span{display:block;min-height:100%;background:rgba(216,194,138,.06);outline:1px solid rgba(216,194,138,.22)}
body[data-theme=light] .grid-debug-inner>span{background:rgba(138,112,48,.08);outline:1px solid rgba(138,112,48,.22)}
body[data-theme=light] .tools{background:rgba(255,255,255,.92);border-bottom-color:var(--line);color:var(--text)}
body[data-theme=light] .tools .tag{color:var(--muted)}
body[data-theme=light] .seg button,body[data-theme=light] .tbtn{color:var(--text2);border-color:var(--line)}
body[data-theme=light] .seg button:hover,body[data-theme=light] .tbtn:hover{color:var(--text);border-color:var(--acc)}
body[data-theme=light] .seg button[aria-pressed=true]{background:var(--acc);color:var(--on-acc);border-color:var(--acc)}
body[data-theme=light] .hero-a .photo{background:linear-gradient(165deg,#e6e0d2 0%,#f0ebe2 55%,#f6f3ec 100%);box-shadow:0 clamp(16px,3vw,32px) clamp(32px,6vw,64px) rgba(28,27,23,.12)}
body[data-theme=light] .hero-a .right::before{background:radial-gradient(closest-side,rgba(154,122,48,.22),rgba(154,122,48,.06) 62%,transparent 80%)}
body[data-theme=light] .hero-b .band{background:radial-gradient(55% 130% at 68% 38%,#d8d0bc 0%,#ece8de 52%,#f3f1ea 100%)}
body[data-theme=light] .herobox{background:linear-gradient(145deg,#f0e8da,#f6f0e6 60%)}
body[data-theme=light][data-style=c] .herobox .room{opacity:.28}
body[data-theme=light] .shade{background:linear-gradient(90deg,rgba(246,240,230,.94) 0%,rgba(246,240,230,.72) 38%,rgba(246,240,230,.25) 72%,rgba(246,240,230,0) 100%)}
body[data-theme=light][data-style=c] .qbox::after{background:linear-gradient(180deg,rgba(246,240,230,.88),rgba(246,240,230,.2) 70%)}
body[data-theme=light] .tilewrap .cap{background:rgba(255,255,255,.88);color:var(--text)}
body[data-theme=light] .maproad{stroke:rgba(28,27,23,.12)}
body[data-theme=light][data-style=c] .hero-c .btn:not(.ghost){background:var(--acc);border-color:var(--acc);color:var(--on-acc)}
body[data-theme=light][data-style=c] .cta{background:var(--acc);border-color:var(--acc);color:var(--on-acc)}
body[data-theme=light][data-style=c] .hero-c .btn.ghost{border-color:var(--line);color:var(--text)}
/* ===== mono + section layout ===== */
body[data-mono=on] .page{filter:grayscale(1) contrast(1.04)}
body[data-layout=left] .two:not(.stack)>.head,body[data-layout=left] .c.two:not(.stack)>.head{grid-column:1/span 4;order:0;text-align:left;align-self:start}
body[data-layout=left] .two:not(.stack)>.body,body[data-layout=left] .c.two:not(.stack)>.body{grid-column:7/span 6;order:1}
body[data-layout=right] .two:not(.stack)>.head,body[data-layout=right] .c.two:not(.stack)>.head{grid-column:7/span 6;order:2;text-align:right;align-self:start;justify-self:stretch;max-width:none}
body[data-layout=right] .two:not(.stack)>.body,body[data-layout=right] .c.two:not(.stack)>.body{grid-column:1/span 6;order:1}
/* left/right: .stack stays 5+7 (title | content), not full-width */
body[data-layout=left][data-style=a] .two.stack,body[data-layout=left][data-style=c] .two.stack,
body[data-layout=left][data-style=a] .c.two.stack,body[data-layout=left][data-style=c] .c.two.stack,
body[data-layout=right][data-style=a] .two.stack,body[data-layout=right][data-style=c] .two.stack,
body[data-layout=right][data-style=a] .c.two.stack,body[data-layout=right][data-style=c] .c.two.stack{display:grid}
body[data-layout=left][data-style=a] .two.stack>.head,body[data-layout=left][data-style=c] .two.stack>.head,
body[data-layout=left][data-style=a] .c.two.stack>.head,body[data-layout=left][data-style=c] .c.two.stack>.head{grid-column:1/span 4;margin-bottom:0}
body[data-layout=left][data-style=a] .two.stack>.body,body[data-layout=left][data-style=c] .two.stack>.body,
body[data-layout=left][data-style=a] .c.two.stack>.body,body[data-layout=left][data-style=c] .c.two.stack>.body{grid-column:7/span 6}
body[data-layout=right][data-style=a] .two.stack>.head,body[data-layout=right][data-style=c] .two.stack>.head,
body[data-layout=right][data-style=a] .c.two.stack>.head,body[data-layout=right][data-style=c] .c.two.stack>.head{grid-column:7/span 6;margin-bottom:0;text-align:right}
body[data-layout=right][data-style=a] .two.stack>.body,body[data-layout=right][data-style=c] .two.stack>.body,
body[data-layout=right][data-style=a] .c.two.stack>.body,body[data-layout=right][data-style=c] .c.two.stack>.body{grid-column:1/span 6}
body[data-layout=center] .sec .c>.two,body[data-layout=center] .sec .c.two{max-width:none;text-align:center}
body[data-layout=center] .sec .two>.head,body[data-layout=center] .sec .c.two>.head,
body[data-layout=center] .sec .two>.body,body[data-layout=center] .sec .c.two>.body{grid-column:3/span 8}
body[data-layout=center] .sec .two>.head{margin-bottom:var(--stack)}
body[data-layout=center] .sec .two>.head h2{margin-inline:auto}
body[data-layout=center] .sec .two>.body{text-align:left}
body[data-layout=center] .sec .two .body p,body[data-layout=center] .reqnote{margin-inline:unset}
body[data-layout=center] #skills .two>.head{text-align:center}
body[data-layout=center] .duo{max-width:var(--w);margin-inline:auto}
body[data-layout=right][data-style=b] .two:not(.stack){grid-template-columns:minmax(0,1fr) minmax(220px,300px)}
body[data-layout=right][data-style=b] .two:not(.stack)>.head{order:2;border-left:1px solid var(--line);border-right:0;padding-left:clamp(18px,2.4vw,32px);padding-right:0;text-align:right;max-width:none}
body[data-layout=right][data-style=b] .two:not(.stack)>.body{order:1;padding-right:clamp(18px,3vw,48px);padding-left:0}
body[data-layout=left][data-style=b] .two:not(.stack)>.head{order:2}
body[data-layout=left][data-style=b] .two:not(.stack)>.body{order:1}
body[data-layout=mix] .two[data-ly=left]:not(.stack)>.head{grid-column:1/span 4;order:0;text-align:left;align-self:start;margin-bottom:0}
body[data-layout=mix] .two[data-ly=left]:not(.stack)>.body{grid-column:7/span 6;order:1}
body[data-layout=mix] .two[data-ly=right]:not(.stack)>.head{grid-column:7/span 6;order:2;text-align:right;align-self:start;justify-self:stretch;max-width:none;margin-bottom:0}
body[data-layout=mix] .two[data-ly=right]:not(.stack)>.body{grid-column:1/span 6;order:1}
body[data-layout=mix][data-style=a] .two.stack[data-ly=left],body[data-layout=mix][data-style=c] .two.stack[data-ly=left],body[data-layout=mix][data-style=a] .two.stack[data-ly=right],body[data-layout=mix][data-style=c] .two.stack[data-ly=right]{display:grid}
body[data-layout=mix][data-style=a] .two.stack[data-ly=left]>.head,body[data-layout=mix][data-style=c] .two.stack[data-ly=left]>.head{grid-column:1/span 4;margin-bottom:0}
body[data-layout=mix][data-style=a] .two.stack[data-ly=left]>.body,body[data-layout=mix][data-style=c] .two.stack[data-ly=left]>.body{grid-column:7/span 6}
body[data-layout=mix][data-style=a] .two.stack[data-ly=right]>.head,body[data-layout=mix][data-style=c] .two.stack[data-ly=right]>.head{grid-column:7/span 6;margin-bottom:0;text-align:right}
body[data-layout=mix][data-style=a] .two.stack[data-ly=right]>.body,body[data-layout=mix][data-style=c] .two.stack[data-ly=right]>.body{grid-column:1/span 6}
body[data-layout=mix] .two[data-ly=center]{text-align:center}
body[data-layout=mix] .two[data-ly=center]>.head,body[data-layout=mix] .two[data-ly=center]>.body{grid-column:3/span 8}
body[data-layout=mix] .two[data-ly=center]>.head{margin-bottom:var(--stack)}
body[data-layout=mix] .two[data-ly=center]>.head h2{margin-inline:auto}
body[data-layout=mix] .two[data-ly=center]>.body{text-align:left}
body[data-layout=mix] #skills .two[data-ly=center]>.head{text-align:center}
body[data-layout=mix][data-style=b] .two[data-ly=right]:not(.stack){grid-template-columns:minmax(0,1fr) minmax(220px,300px)}
body[data-layout=mix][data-style=b] .two[data-ly=right]:not(.stack)>.head{order:2;border-left:1px solid var(--line);padding-left:clamp(18px,2.4vw,32px);text-align:right;max-width:none}
body[data-layout=mix][data-style=b] .two[data-ly=right]:not(.stack)>.body{order:1;padding-right:clamp(18px,3vw,48px);padding-left:0}
body[data-layout=mix][data-style=b] .two[data-ly=left]:not(.stack)>.head{order:2}
body[data-layout=mix][data-style=b] .two[data-ly=left]:not(.stack)>.body{order:1}
.seg-layout{margin-left:4px;padding-left:10px;border-left:1px solid rgba(236,232,223,.2)}
body[data-theme=light] .seg-layout{border-left-color:var(--line)}
.seg-layout button{min-width:0;padding-inline:10px}
#mono-toggle[aria-pressed=true]{background:#888;color:#fff;border-color:#888}
body[data-theme=light] #mono-toggle[aria-pressed=true]{background:#555;border-color:#555;color:#fff}
.fontpick{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid rgba(236,232,223,.25);min-height:44px;font-size:.82rem;color:#b9b5a8}
.fontpick span{font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:#a6a396}
.fontpick select{appearance:none;background:transparent;border:0;color:inherit;font:inherit;font-size:.82rem;cursor:pointer;max-width:min(11em,28vw);padding:2px 18px 2px 2px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath stroke='%23b9b5a8' stroke-width='1.2' d='m1 1 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right center}
.fontpick select option{background:#1a1a1b;color:#ece8df}
body[data-theme=light] .fontpick{border-color:var(--line);color:var(--text2)}
body[data-theme=light] .fontpick span{color:var(--muted)}
body[data-theme=light] .fontpick select option{background:#f3f1ea;color:#1c1b17}
/* ===== page frame (b) ===== */
body[data-style=b]{padding:0}
body[data-style=b] .page{position:relative;max-width:var(--w);margin:auto;background:var(--bg);padding:var(--space-1)}
body[data-style=b] .page::before{content:'';position:absolute;inset:4px;border:1px solid var(--line);pointer-events:none;z-index:2}
body[data-style=b] .c{max-width:none}
/* ===== page + header ===== */
.page{overflow-x:clip;max-width:100%;position:relative;z-index:0}
/* Шапка следует при скролле: fixed (sticky ломается из‑за overflow на .page / html) */
header.top,.top{
position:fixed!important;
top:0!important;
left:0!important;
right:0!important;
z-index:200;
width:100%;
margin:0;
border-bottom:1px solid var(--soft);
background:rgba(26,26,27,.94);
backdrop-filter:blur(12px);
-webkit-backdrop-filter:blur(12px)
}
body[data-theme=light] header.top,body[data-theme=light] .top{background:rgba(243,241,234,.94)}
body[data-style=b] header.top,body[data-style=b] .top{background:rgba(30,30,32,.96)}
body[data-theme=light][data-style=b] header.top,body[data-theme=light][data-style=b] .top{background:rgba(248,247,244,.96)}
body[data-style=c] header.top,body[data-style=c] .top{background:rgba(26,24,22,.94)}
body[data-theme=light][data-style=c] header.top,body[data-theme=light][data-style=c] .top{background:rgba(246,240,230,.94)}
/* Запас под фиксированную шапку */
.page{padding-top:var(--hdr-h)}
.sec{scroll-margin-top:calc(var(--hdr-h) + var(--space-2))}
html{scroll-padding-top:calc(var(--hdr-h) + var(--space-2))}
.brand{margin-right:auto;text-decoration:none;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.call-icon{display:none;flex-shrink:0;width:44px;height:44px;border-radius:50%;background:transparent;color:var(--acc);align-items:center;justify-content:center;text-decoration:none;border:0;touch-action:manipulation}
.call-icon:hover{opacity:.92}
.call-icon svg{width:22px;height:22px;stroke:currentColor}
.nav-toggle{display:none;flex-shrink:0;width:44px;height:44px;padding:0;border:0;border-radius:var(--rbtn);background:transparent;color:var(--text2);align-items:center;justify-content:center;touch-action:manipulation}
.nav-toggle svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;fill:none}
.nav-toggle .ico-close{display:none}
body.nav-open .nav-toggle .ico-menu{display:none}
body.nav-open .nav-toggle .ico-close{display:block}
body[data-theme=light] .nav-toggle{color:var(--text)}
.nav-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:150;-webkit-tap-highlight-color:transparent}
body.nav-open .nav-backdrop{display:block}
body[data-theme=light] .nav-backdrop{background:rgba(28,27,23,.35)}
body[data-style=a] .brand{font-weight:500;font-size:.98rem}body[data-style=b] .brand{font-weight:500;font-size:.8rem;letter-spacing:.02em}body[data-style=c] .brand{font:500 1.35rem/1 var(--serif);letter-spacing:-.01em}
nav.main{display:flex;gap:var(--space-3);font-size:.86rem;font-weight:300}nav.main a{text-decoration:none;color:var(--text2);display:inline-flex;align-items:center;min-height:44px}nav.main a:hover,.tel:hover{color:var(--acc)}
.nav-phone{display:none}.nav-tg{display:none;align-items:center;gap:8px;font-size:.95rem;color:var(--text2)}.nav-tg .tg-ico{display:grid;place-items:center}.nav-tg .tg-label{font-size:.78rem;color:var(--muted);font-weight:400}
body[data-style=b] nav.main{font-size:.78rem}
.hr{display:none;align-items:center;gap:16px;font-size:.85rem}.tel{text-decoration:none;color:var(--text2);display:inline-flex;min-height:44px;align-items:center}
.tg{width:36px;height:36px;border-radius:50%;background:var(--acc);color:var(--on-acc);display:grid;place-items:center;text-decoration:none}
body[data-style=a] .hr{display:flex}body[data-style=a] .cta{display:none}
@media(min-width:901px){body[data-style=a] .call-icon{display:none}nav.main .nav-phone,nav.main .nav-tg{display:none}}
body[data-style=b] .top{border-bottom:1px solid var(--line);margin-inline:var(--pad)}
body[data-style=c] .top>.c{max-width:none;width:100%;padding-inline:clamp(18px,4vw,96px)}
body[data-style=c] .hero-c{max-width:none;width:100%;padding-inline:0;padding-block:0}
body[data-style=c] .herobox{border-radius:0;min-height:clamp(520px,min(74vh,58vw),980px)}
body[data-style=c] .herotext{padding:clamp(28px,5vw,88px) clamp(18px,4vw,96px);max-width:min(680px,42vw)}
body[data-style=c] .hero-c .trust{max-width:var(--w);width:100%;margin-inline:auto;padding-inline:var(--pad);box-sizing:border-box}
/* ===== buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 26px;background:var(--acc);color:var(--on-acc);text-decoration:none;font-size:.9rem;font-weight:500;border:1px solid var(--acc);border-radius:var(--rbtn)}.btn:hover{filter:brightness(1.1)}
.btn.ghost{background:none;color:var(--text);border-color:var(--line)}.btn.ghost:hover{border-color:var(--acc);filter:none}
body[data-style=c] .cta,body[data-style=c] .hero-c .btn:not(.ghost){background:var(--cream);border-color:var(--cream)}
body[data-style=c] .hero-c .btn.ghost{border-color:rgba(240,232,218,.5)}
body[data-style=b] .cta{min-height:32px;padding:0 14px;font-size:.78rem}
/* ===== heroes ===== */
.hero-a,.hero-b,.hero-c{display:none}
body[data-style=a] .hero-a{display:block}body[data-style=b] .hero-b{display:block}body[data-style=c] .hero-c{display:block}
.ph{padding:20px;text-align:center;color:var(--muted);font-size:.88rem}
/* hero a — 12-col: текст 1–6, фото 7–12 (левый край контента = колонка 7, как у секций) */
.hero-a .grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));column-gap:var(--gutter);align-items:center;padding-block:var(--space-3) calc(var(--space-3) * 2)}
.hero-a .left{grid-column:1/-1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:var(--space-1);min-width:0}
.hero-a .hero-kicker{display:flex;flex-direction:column;gap:4px;margin:0}
.hero-a .tagline{font-weight:300;color:var(--muted);max-width:28ch;font-size:.88rem;margin:0}.hero-a .lab{font-size:.92rem;color:var(--text2);margin:0}
.hero-a .hero-main{display:flex;flex-direction:column;align-items:flex-start;margin-top:var(--space-2)}
.hero-a h1{font:400 clamp(3.1rem,1.2rem + 4.4vw,5.6rem)/.92 var(--serif);letter-spacing:-.035em;margin:0}.hero-a h1 span{display:block}.hero-a h1 em{font-style:italic;color:var(--acc)}
.hero-a .statement{margin-top:var(--space-4);font-size:clamp(1.02rem,.98rem + .25vw,1.2rem);line-height:1.45;max-width:32ch;letter-spacing:.02em}.hero-a .btn{align-self:flex-start;width:fit-content;min-height:46px;margin-top:var(--space-6);padding:10px 22px}
.hero-a .right{grid-column:1/-1;position:relative;isolation:isolate;display:flex;justify-content:center;align-items:stretch;min-width:0}
.hero-a .right::before{content:'';position:absolute;z-index:-1;inset:8% -6% -10% 20%;background:radial-gradient(closest-side,rgba(216,194,138,.38),rgba(216,194,138,.1) 62%,transparent 80%);filter:blur(24px)}
.hero-a .photo{position:relative;aspect-ratio:4/5;width:100%;background:linear-gradient(165deg,#2e2e30 0%,#242426 55%,#1a1a1b 100%);border:1px solid var(--line);border-radius:0;display:grid;place-items:center;overflow:hidden;box-shadow:0 clamp(24px,4vw,48px) clamp(48px,8vw,96px) rgba(0,0,0,.32)}
.hero-a .photo .ph{margin:0;padding:20px}
.hero-a{overflow-x:clip}
@media(min-width:901px){
.hero-a .grid{align-items:center;padding-block:var(--hero-y) calc(var(--hero-y) * 2)}
.hero-a .left{grid-column:1/span 6;min-height:0;align-self:start;margin-top:clamp(var(--space-3),7vw + 44px,135px)}
.hero-a .left>.tagline{display:block;font-weight:300;color:var(--muted);max-width:28ch;font-size:.88rem;margin:0;text-align:left}
.hero-a .lab{font:inherit;font-size:clamp(1.02rem,.98rem + .25vw,1.2rem);line-height:1.45;letter-spacing:.02em;color:var(--acc);font-weight:400;margin:0 0 var(--space-3) 0;text-transform:none}
.hero-a .hero-main{margin-top:0}
.hero-a .hero-main .statement{display:block;margin-top:var(--space-4)}
.hero-a .hero-main .btn{width:fit-content;max-width:none;align-self:flex-start;min-height:46px;margin-top:var(--space-6);padding:10px 22px}
.hero-a h1{margin-top:0;min-width:0;max-width:100%}
/* колонки 7–12: фото на всю ширину до правого края сетки .c */
.hero-a .right{grid-column:7/span 6;justify-content:flex-start;align-items:stretch;align-self:stretch;width:100%;min-width:0}
.hero-a .right::before{display:block}
/* ширина на колонки 7–12; высота от aspect-ratio 4:5 (без искусственного max-height) */
.hero-a .photo{flex:0 0 auto;width:100%;max-width:100%;aspect-ratio:4/5;margin:0;border:1px solid var(--line);box-shadow:0 clamp(16px,2.5vw,36px) clamp(28px,4vw,64px) rgba(0,0,0,.28)}
.hero-a .photo::after{display:none}
.hero-a .photo>.photoimg{filter:none}
}
/* hero b */
.hero-b h1{font:400 clamp(3.2rem,1.2rem + 8vw,9rem)/.9 var(--serif);letter-spacing:-.04em;padding:clamp(24px,4vw,48px) var(--pad) clamp(22px,3.4vw,40px)}.hero-b h1 span{display:block}.hero-b h1 em{font-style:italic;color:var(--acc)}
.hero-b .band{position:relative;height:clamp(180px,27vw,380px);background:radial-gradient(55% 130% at 68% 38%,#3a3a3c 0%,#262628 52%,#1a1a1b 100%);display:grid;place-items:center;overflow:hidden;border-block:1px solid var(--soft)}
/* hero c */
.herobox{position:relative;isolation:isolate;overflow:hidden;border-radius:var(--r);min-height:clamp(480px,62vw,680px);display:flex;align-items:center;background:linear-gradient(145deg,#2a2724,#1a1816 60%)}
.herobox .room{position:absolute;inset:0;width:100%;height:100%;z-index:-3}
.shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(22,20,18,.9) 0%,rgba(22,20,18,.72) 34%,rgba(22,20,18,.22) 68%,rgba(22,20,18,0) 100%)}
.herotext{padding:clamp(28px,5vw,72px);max-width:min(640px,100%)}
.chip{display:inline-block;font-size:.8rem;padding:4px 14px;border:1px solid rgba(240,232,218,.4);border-radius:999px;color:var(--text2);margin-bottom:22px}
.hero-c h1{font:500 clamp(3rem,1.4rem + 5.8vw,6.6rem)/.94 var(--serif);letter-spacing:-.035em}
.lede{margin-top:22px;font-size:clamp(1rem,.95rem + .4vw,1.2rem);line-height:1.5;color:var(--text2);max-width:34ch}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.trust{display:grid;grid-template-columns:minmax(120px,200px) 1fr;gap:20px;align-items:center;padding-block:28px 6px}
.trust ul{list-style:none;display:flex;flex-wrap:wrap;gap:10px 36px}.trust li{font:500 clamp(1.05rem,.95rem + .4vw,1.35rem)/1.2 var(--serif);color:var(--text2)}
.herobox>.photoimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% 25%;z-index:-2}
.photoimg{object-fit:cover}.photo>.photoimg,.band>.photoimg{position:absolute;inset:0;width:100%;height:100%}.hero-a .photo>.photoimg{object-position:center 12%}.band>.photoimg{object-position:center 32%}
/* ===== sections ===== */
.sec{scroll-margin-top:calc(var(--hdr-h) + var(--space-2))}
body[data-style=a] .sec,body[data-style=c] .sec{padding-block:var(--sec-y)}
body[data-style=a] .sec{border-top:1px solid var(--line)}body[data-style=c] .sec{border-top:1px solid var(--soft)}
body[data-style=b] .sec>.c{margin-inline:var(--pad);padding:var(--sec-y) 0;border-top:1px solid var(--line)}
/* .two on 12-col: head = 1–4, кол. 5–6 «воздух», body = 7–12 (6 колонок) */
.two{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));column-gap:var(--gutter);row-gap:0}
.two>.head{grid-column:1/span 4;min-width:0}
.two>.body{grid-column:7/span 6;min-width:0}
/* .c.two — same placement on the outer 12-col shell */
.c.two>.head{grid-column:1/span 4}
.c.two>.body{grid-column:7/span 6}
body[data-style=b] .two{grid-template-columns:minmax(0,1fr) minmax(220px,300px);column-gap:0}
body[data-style=b] .two>.head,body[data-style=b] .c.two>.head{grid-column:auto;order:2;border-left:1px solid var(--line);padding-left:var(--space-3)}
body[data-style=b] .two>.body,body[data-style=b] .c.two>.body{grid-column:auto;order:1;padding-right:var(--space-4)}
/* center / default stack: title above, full width */
body[data-layout=center][data-style=a] .two.stack,body[data-layout=center][data-style=c] .two.stack,
body[data-layout=center][data-style=a] .c.two.stack,body[data-layout=center][data-style=c] .c.two.stack{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));column-gap:var(--gutter)}
body[data-layout=center][data-style=a] .two.stack>.head,body[data-layout=center][data-style=c] .two.stack>.head,
body[data-layout=center][data-style=a] .c.two.stack>.head,body[data-layout=center][data-style=c] .c.two.stack>.head{grid-column:3/span 8;margin-bottom:var(--stack)}
body[data-layout=center][data-style=a] .two.stack>.body,body[data-layout=center][data-style=c] .two.stack>.body,
body[data-layout=center][data-style=a] .c.two.stack>.body,body[data-layout=center][data-style=c] .c.two.stack>.body{grid-column:3/span 8}
body[data-layout=mix][data-style=a] .two.stack[data-ly=center]>.head,body[data-layout=mix][data-style=c] .two.stack[data-ly=center]>.head{grid-column:3/span 8;margin-bottom:var(--stack)}
body[data-layout=mix][data-style=a] .two.stack[data-ly=center]>.body,body[data-layout=mix][data-style=c] .two.stack[data-ly=center]>.body{grid-column:3/span 8}
body[data-style=b] .eyebrow{display:none}.eyebrow{display:block;margin-bottom:var(--space-2)}
h2{text-wrap:balance}
body[data-style=a] h2{font:300 clamp(1.8rem,1.2rem + 2.2vw,3rem)/1.12 var(--sans)}
body[data-style=b] h2{font:500 clamp(1.05rem,.95rem + .4vw,1.3rem)/1.25 var(--sans)}
body[data-style=c] h2{font:500 clamp(1.9rem,1.2rem + 2.4vw,3.2rem)/1.05 var(--serif);letter-spacing:-.02em}
.body>*+*{margin-top:var(--body-gap)}.body p{max-width:62ch;color:var(--text2);letter-spacing:.02em}
.reqnote{letter-spacing:.02em}
.body ol.rows li,.body ul.reqs li{letter-spacing:.02em}
@media(min-width:901px){
.body p,.reqnote{max-width:60ch}
body[data-style=a] .body p{max-width:58ch}
}
.lead{font-family:var(--serif);letter-spacing:-.03em;color:var(--text)!important;max-width:none!important}
body[data-style=a] .lead{font-weight:400;font-size:clamp(2.6rem,1.6rem + 4.2vw,5.6rem);line-height:.95}
body[data-style=b] .lead{font-weight:400;font-size:clamp(2rem,1.2rem + 3vw,3.8rem);line-height:1}
body[data-style=c] .lead{font-weight:500;font-size:clamp(2.4rem,1.5rem + 3.6vw,5rem);line-height:.95}
ol.rows{list-style:none}ol.rows li{display:grid;grid-template-columns:40px 1fr;gap:10px;padding:16px 0;border-top:1px solid var(--soft);color:var(--text2)}
body[data-style=a] ol.rows{border-top:1px solid var(--line)}body[data-style=a] ol.rows li{border-top:0;border-bottom:1px solid var(--line)}
body[data-style=b] ol.rows li{font-size:.95rem;padding:14px 0}ol.rows li:first-child{border-top:0}
.docs-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);margin-top:var(--space-5)}
.arrows{display:flex;gap:8px}.arrows button{width:44px;height:44px;border:1px solid var(--line);border-radius:50%}.arrows button:hover{border-color:var(--acc);color:var(--acc)}
.strip{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:16px 0 10px;scrollbar-width:thin;scrollbar-color:#554 transparent;max-width:100%;min-width:0}
.strip .empty{flex:0 0 100%;padding:48px 24px;border:1px dashed var(--line);color:var(--muted);text-align:center;font-size:.9rem;border-radius:var(--r)}
.doc{flex:0 0 min(80%,340px);scroll-snap-align:start;border:1px solid var(--soft);background:var(--s1);padding:10px;border-radius:calc(var(--r)*.7)}.doc img{width:100%;height:clamp(300px,32vw,480px);object-fit:contain}
.doc-pdf object{width:100%;height:clamp(300px,32vw,480px);display:block;background:var(--s2);border:0}
.doc-pdf .pdfopen{display:inline-flex;margin-top:10px;font-size:.82rem;color:var(--acc);text-decoration:underline;text-underline-offset:4px}
.doc-pdf .pdfopen:hover{color:var(--text)}
.filebtn{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid var(--line);font-size:.82rem;cursor:pointer;color:var(--muted);border-radius:var(--rbtn);margin-top:8px}.filebtn:hover{border-color:var(--acc);color:var(--text)}.filebtn input{position:absolute;opacity:0;width:1px;height:1px}.filebtn:focus-within{outline:2px solid var(--acc);outline-offset:3px}
/* requests */
ul.reqs{list-style:none}
body[data-style=a] ul.reqs{margin-top:20px;border-top:1px solid var(--line)}
body[data-style=a] ul.reqs li{display:grid;grid-template-columns:40px 1fr;gap:10px;padding:16px 0;border-bottom:1px solid var(--line);font-size:1rem;font-weight:500;color:var(--text2);line-height:1.45;align-items:baseline}
body[data-style=b] ul.reqs{columns:2;column-gap:clamp(18px,3vw,40px);border-top:1px solid var(--soft);margin-top:18px}
body[data-style=b] ul.reqs li{break-inside:avoid;display:grid;grid-template-columns:34px 1fr;gap:8px;padding:12px 0;border-bottom:1px solid var(--soft);font:400 clamp(1.1rem,1rem + .5vw,1.4rem)/1.25 var(--serif);align-items:baseline}
body[data-style=b] ul.reqs .idx{font-family:var(--sans)}
body[data-style=c] ul.reqs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(18px,3vw,40px);margin-top:20px;border-top:1px solid var(--soft)}
body[data-style=c] ul.reqs li{display:grid;grid-template-columns:34px 1fr;gap:6px;padding:16px 0;border-bottom:1px solid var(--soft);color:var(--text);font:500 clamp(1.1rem,1rem + .5vw,1.35rem)/1.25 var(--serif);align-items:baseline}
body[data-style=c] ul.reqs .idx{font-family:var(--sans);font-weight:400}
.reqnote{max-width:62ch}
body[data-style=a] ul.reqs .idx{font-size:.82rem;font-weight:500;letter-spacing:.04em}
/* запросы: свёрнуто (5 пунктов) + «Подробнее» на всех ширинах */
.expand-list{display:inline-flex;width:auto;max-width:100%;box-sizing:border-box;justify-content:flex-start;margin-top:var(--space-3)}
#requests-list:not(.is-expanded) li:nth-child(n+6){display:none!important}
#requests-list.is-expanded li:nth-child(n+6){display:grid!important}
#requests-list.is-expanded+#requests-more{display:none}
/* компетенции: полный список на десктопе; сворачивание только в @media(max-width:900px) */
@media(min-width:901px){
#skills-more{display:none!important}
#skills-rows li{display:grid!important}
}
/* conditions */
.cond{display:grid;gap:16px}
.cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.card{display:flex;flex-direction:column;gap:12px;color:var(--text2);font-size:.96rem}
body[data-style=a] .card{background:var(--s1);padding:24px;min-height:160px}
body[data-style=a] .card.hi{background:none;border:1px solid var(--acc);color:var(--text)}
body[data-style=b] .cards{gap:0;border-top:1px solid var(--soft)}body[data-style=b] .card{padding:24px 0;border-bottom:1px solid var(--soft)}body[data-style=b] .card:nth-child(odd){padding-right:clamp(14px,2vw,28px)}body[data-style=b] .card:nth-child(even){padding-left:clamp(14px,2vw,28px);border-left:1px solid var(--soft)}
body[data-style=c] .cards{gap:14px}body[data-style=c] .card{background:var(--s1);border:1px solid var(--soft);border-radius:var(--r);padding:clamp(20px,2.4vw,32px);min-height:190px}
body[data-style=c] .card.hi{background:var(--s2);border-color:rgba(217,184,122,.45);color:var(--text)}
.card .big{font:400 4.6rem/.8 var(--serif);color:var(--acc);letter-spacing:-.04em}body[data-style=c] .card .big{font-weight:500;font-size:5rem}
/* format — full 12 cols inside body */
.fmt{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));column-gap:var(--gutter);row-gap:var(--space-3);align-items:start}
.fmt>.txt,.fmt>.mapwrap{grid-column:1/-1;min-width:0}
.mapwrap{display:grid;gap:var(--space-2)}
.mapframe{width:100%;max-width:100%;height:clamp(280px,42vw,420px);border:1px solid var(--line);background:var(--s1);display:block}
.maplink{font-size:.88rem;color:var(--acc);text-underline-offset:4px;width:fit-content}
/* contact */
.phone{display:inline-block;text-decoration:none;color:var(--acc);min-height:44px;white-space:nowrap;letter-spacing:-.03em;line-height:1;max-width:100%}
body[data-style=a] .phone{font:300 clamp(1.35rem,1.1rem + 4.2vw,4.6rem)/1.1 var(--sans)}body[data-style=b] .phone{font:400 clamp(1.35rem,1rem + 4.4vw,4.8rem)/1 var(--serif)}body[data-style=c] .phone{font:500 clamp(1.4rem,1.1rem + 4.4vw,5rem)/1 var(--serif)}
.actions{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-3)}.status{min-height:1.7em;margin-top:var(--space-2);color:var(--acc);font-size:.88rem}.ulink{color:var(--acc);text-underline-offset:5px}
.round{display:none;gap:var(--space-2);margin-top:var(--space-3)}body[data-style=b] .round,body[data-style=c] .round{display:flex}.round a{width:38px;height:38px;border-radius:50%;background:var(--acc);color:var(--on-acc);display:grid;place-items:center;text-decoration:none}
/* duo */
.duo{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-2)}
.duo .card{gap:var(--space-2)}.duo h2{font-size:clamp(1.4rem,1.1rem + 1vw,2rem)!important;margin-bottom:4px}.duo p{max-width:56ch}.duo p+p{margin-top:var(--space-2)}
body[data-style=a] .duo .card{background:none;padding:0;border-left:1px solid var(--line);padding-left:var(--space-4)}body[data-style=a] .duo .card:first-child{border-left:0;padding-left:0}
body[data-style=b] .duo{gap:0;border-top:0}body[data-style=b] .duo .card{padding:0 var(--space-4)}body[data-style=b] .duo .card:first-child{padding-left:0}body[data-style=b] .duo .card+.card{border-left:1px solid var(--soft)}
body[data-style=c] .duo .card{background:var(--s1);border:1px solid var(--soft);border-radius:var(--r);padding:var(--space-3)}
/* quote */
.qin{text-align:center;display:flex;flex-direction:column;align-items:center;padding-bottom:var(--space-2)}
.pull{font-family:var(--serif);font-style:italic;letter-spacing:-.02em;max-width:36ch;text-wrap:balance;margin-top:0;color:var(--text)!important;line-height:1.15;text-align:center;font-weight:400;font-size:clamp(1.8rem,1.2rem + 2.2vw,3rem)}.pull em{font-style:normal;color:var(--acc)}
/* цитата: на всю ширину сетки .c (как у .c>* — 12 колонок) */
#quote .qin{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding-bottom:var(--space-2)}
.quote-body{margin:0;padding:0;border:0;max-width:100%;margin-inline:0;text-align:left;font-family:var(--serif);font-style:italic;font-weight:400;color:var(--text);font-size:1.15em;line-height:1.55;letter-spacing:-.01em}
.quote-body p{margin:0 0 var(--space-3)}
.quote-body p:last-child{margin-bottom:0}
.quote-body em{font-style:normal;color:var(--acc)}
#quote .quote-attr{margin-top:var(--space-3);font:300 1em/1.2 var(--sans);color:var(--text);letter-spacing:.04em;text-align:left;max-width:100%;margin-inline:0}
.endart-full{overflow:hidden;margin-top:var(--space-5);width:100%;box-sizing:border-box}
.endart-full .art{display:block;width:100%;height:auto;max-height:clamp(240px,30vw,520px);object-fit:cover;object-position:center 42%}
footer{display:flex;justify-content:space-between;gap:var(--space-2);flex-wrap:wrap;padding-block:var(--space-3);padding-bottom:max(var(--space-3), env(safe-area-inset-bottom));font-size:.82rem;color:var(--muted)}
body[data-style=c] footer{margin-top:var(--space-5)}
body[data-style=b] footer{margin-inline:var(--pad);padding-inline:0}
/* ===== wide steps: only token jumps (8px grid), no continuous clamp on spacing ===== */
/* Laptop+ */
@media(min-width:1440px){
:root,body[data-style=a],body[data-style=b],body[data-style=c]{--pad:32px;--gutter:24px;--sec-y:72px;--gap:48px;--hero-y:56px;--hdr-h:64px;--stack:32px}
body[data-style=a]{--w:1200px}
body[data-style=b],body[data-style=c]{--w:1320px}
.hero-b .band{height:280px}
.herobox{min-height:560px}
}
/* Full HD / 2K */
@media(min-width:1920px){
:root,body[data-style=a],body[data-style=b],body[data-style=c]{--pad:40px;--gutter:24px;--sec-y:80px;--gap:56px;--hero-y:64px;--hdr-h:72px;--stack:40px;--body-gap:16px}
body[data-style=a]{--w:1280px}
body[data-style=b],body[data-style=c]{--w:1440px}
body[data-style=b]{padding:16px}
body[data-style=b] .page{padding:8px}
body{font-size:17px}
nav.main{font-size:.9rem;gap:var(--space-3)}
.hero-a h1{font-size:clamp(3.4rem,2vw + 1rem,5rem)}
.hero-a .lab{font-size:1.1rem;line-height:1.45;letter-spacing:.02em}
.hero-a .statement{font-size:1.1rem;max-width:34ch;letter-spacing:.02em}
.hero-b h1{font-size:clamp(4.5rem,4vw + .5rem,8rem);padding-block:var(--space-5)}
.hero-b .band{height:320px}
.hero-c h1{font-size:clamp(3.6rem,2.5vw + 1rem,7rem)}
.herotext{padding:var(--space-6);max-width:min(720px,52%)}
.doc{flex:0 0 min(42%,420px)}.doc img{height:400px}
}
/* 3K / QHD+ */
@media(min-width:2560px){
:root,body[data-style=a],body[data-style=b],body[data-style=c]{--pad:48px;--gutter:32px;--sec-y:88px;--gap:64px;--hero-y:72px;--hdr-h:80px;--stack:48px}
body[data-style=a]{--w:1440px}
body[data-style=b],body[data-style=c]{--w:1600px}
.c{max-width:var(--w)}
body{font-size:18px}
body[data-style=a] h2{font-size:clamp(2.2rem,1.4vw + 1rem,3.2rem)}
body[data-style=c] h2{font-size:clamp(2.4rem,1.4vw + 1rem,3.4rem)}
body[data-style=a] .pull{font-size:clamp(2.2rem,1.4vw + 1rem,3.2rem);line-height:1.12}
nav.main{font-size:.95rem}
.hero-a h1{font-size:clamp(3.8rem,1.8vw + 1.2rem,5.4rem)}
.hero-b h1{font-size:clamp(5.5rem,3.5vw + 1rem,9rem)}
.hero-b .band{height:360px}
.hero-c h1{font-size:clamp(4.2rem,2.2vw + 1.2rem,8rem)}
.herobox{min-height:640px}
.doc{flex:0 0 min(34%,480px)}.doc img{height:440px}.strip{gap:var(--space-3)}
.mapframe{height:400px}
.endart-full .art{max-height:480px}
footer{font-size:.88rem}
}
/* 4K */
@media(min-width:3840px){
:root,body[data-style=a],body[data-style=b],body[data-style=c]{--pad:56px;--gutter:32px;--sec-y:96px;--gap:72px;--hero-y:80px;--hdr-h:88px;--stack:48px;--body-gap:24px}
body[data-style=a]{--w:1600px}
body[data-style=b],body[data-style=c]{--w:1760px}
.c{max-width:var(--w)}
body{font-size:19px}
nav.main{font-size:1rem;gap:var(--space-4)}
.hero-a h1{font-size:clamp(4.2rem,1.5vw + 1.4rem,5.8rem)}
.hero-b h1{font-size:clamp(6.5rem,3vw + 1.5rem,10rem)}
.hero-c h1{font-size:clamp(5rem,2vw + 1.6rem,8.5rem)}
body[data-style=a] h2{font-size:clamp(2.6rem,1.5vw + 1rem,3.6rem)}
body[data-style=c] h2{font-size:clamp(2.8rem,1.5vw + 1rem,3.8rem)}
body[data-style=a] .pull{font-size:clamp(2.6rem,1.5vw + 1rem,3.6rem)}
body[data-style=a] .phone,body[data-style=c] .phone{font-size:clamp(2rem,1.5vw + 1rem,4.2rem)}
body[data-style=b] .phone{font-size:clamp(1.9rem,1.4vw + 1rem,4rem)}
.btn{min-height:52px;padding:12px 32px;font-size:1rem}
.doc{flex:0 0 min(30%,520px)}.doc img{height:480px}.strip{gap:var(--space-3)}
.mapframe{height:440px}
.endart-full .art{max-height:560px}
footer{font-size:.9rem}
}
@media(max-width:900px){
:root,body[data-style=a],body[data-style=b],body[data-style=c]{--pad:16px;--gutter:16px;--sec-y:48px;--gap:24px;--hero-y:32px;--hdr-h:56px;--stack:24px;--body-gap:16px}
/* шапка всегда поверх контента hero (stacking / blur) */
header.top,.top{z-index:200;background:var(--bgbody);backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom-color:var(--line)}
body[data-theme=light] header.top,body[data-theme=light] .top{background:var(--bgbody)}
body[data-style=b] header.top,body[data-style=b] .top{background:var(--bg)}
body[data-theme=light][data-style=b] header.top,body[data-theme=light][data-style=b] .top{background:var(--bg)}
body[data-style=c] header.top,body[data-style=c] .top{background:var(--bgbody)}
body[data-theme=light][data-style=c] header.top,body[data-theme=light][data-style=c] .top{background:var(--bgbody)}
.top{padding-top:max(0px, env(safe-area-inset-top))}
/* шапка всегда видна на мобиле (в т.ч. на первом экране) */
body.past-hero header.top,body.past-hero .top{top:0!important;opacity:1;visibility:visible;pointer-events:auto}
.page{padding-top:calc(var(--hdr-h) + env(safe-area-inset-top,0px))}
.sec{scroll-margin-top:calc(var(--space-2) + env(safe-area-inset-top,0px))}
body.past-hero .sec{scroll-margin-top:calc(var(--hdr-h) + var(--space-2) + env(safe-area-inset-top,0px))}
html{scroll-padding-top:calc(var(--space-2) + env(safe-area-inset-top,0px))}
html.past-hero{scroll-padding-top:calc(var(--hdr-h) + var(--space-2) + env(safe-area-inset-top,0px))}
.nav-toggle{display:inline-flex}
/* mobile: one column for .two — override desktop layout-* column spans (higher specificity) */
.two,.c.two{display:grid;grid-template-columns:1fr;column-gap:0;row-gap:0}
.two>.head,.two>.body,.c.two>.head,.c.two>.body,
body[data-layout=left] .two:not(.stack)>.head,body[data-layout=left] .c.two:not(.stack)>.head,
body[data-layout=left] .two:not(.stack)>.body,body[data-layout=left] .c.two:not(.stack)>.body,
body[data-layout=right] .two:not(.stack)>.head,body[data-layout=right] .c.two:not(.stack)>.head,
body[data-layout=right] .two:not(.stack)>.body,body[data-layout=right] .c.two:not(.stack)>.body,
body[data-layout=mix] .two[data-ly=left]:not(.stack)>.head,body[data-layout=mix] .two[data-ly=left]:not(.stack)>.body,
body[data-layout=mix] .two[data-ly=right]:not(.stack)>.head,body[data-layout=mix] .two[data-ly=right]:not(.stack)>.body,
body[data-layout=center] .sec .two>.head,body[data-layout=center] .sec .c.two>.head,
body[data-layout=center] .sec .two>.body,body[data-layout=center] .sec .c.two>.body,
body[data-layout=mix] .two[data-ly=center]>.head,body[data-layout=mix] .two[data-ly=center]>.body{grid-column:1/-1!important}
.hero-a .left,.hero-a .right{grid-column:1/-1!important}
/* hero-a mobile: сначала фото, затем ФИО, пояснение, CTA на всю ширину */
body[data-style=a] .hero-a .grid{display:flex;flex-direction:column;row-gap:var(--space-4);column-gap:0}
body[data-style=a] .hero-a .right{order:1}
body[data-style=a] .hero-a .left{order:2;width:100%;align-items:stretch}
body[data-style=a] .hero-a .right{isolation:auto}
body[data-style=a] .hero-a.c{padding-inline:0;max-width:none;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);box-sizing:border-box}
body[data-style=a] .hero-a .grid{padding-block:0;row-gap:var(--space-4)}
body[data-style=a] .hero-a .left{padding-inline:max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));box-sizing:border-box}
body[data-style=a] .hero-a .right{width:100%;max-width:none;margin-inline:0;align-self:stretch}
body[data-style=a] .hero-a .hero-main{width:100%;align-items:stretch;max-width:100%}
body[data-style=a] .hero-a .statement{max-width:100%;align-self:stretch}
.two>.head,.c.two>.head{margin-bottom:var(--stack)}
body[data-style=b] .two:not(.stack),body[data-style=b] .c.two:not(.stack){grid-template-columns:1fr}
body[data-style=b] .two>.head,body[data-style=b] .c.two>.head,
body[data-style=b] .two>.body,body[data-style=b] .c.two>.body{grid-column:1/-1!important}
body[data-layout=left][data-style=a] .two.stack>.head,body[data-layout=left][data-style=c] .two.stack>.head,
body[data-layout=left][data-style=a] .c.two.stack>.head,body[data-layout=left][data-style=c] .c.two.stack>.head,
body[data-layout=left][data-style=a] .two.stack>.body,body[data-layout=left][data-style=c] .two.stack>.body,
body[data-layout=left][data-style=a] .c.two.stack>.body,body[data-layout=left][data-style=c] .c.two.stack>.body,
body[data-layout=right][data-style=a] .two.stack>.head,body[data-layout=right][data-style=c] .two.stack>.head,
body[data-layout=right][data-style=a] .c.two.stack>.head,body[data-layout=right][data-style=c] .c.two.stack>.head,
body[data-layout=right][data-style=a] .two.stack>.body,body[data-layout=right][data-style=c] .two.stack>.body,
body[data-layout=right][data-style=a] .c.two.stack>.body,body[data-layout=right][data-style=c] .c.two.stack>.body,
body[data-layout=mix][data-style=a] .two.stack[data-ly=left]>.head,body[data-layout=mix][data-style=c] .two.stack[data-ly=left]>.head,
body[data-layout=mix][data-style=a] .two.stack[data-ly=left]>.body,body[data-layout=mix][data-style=c] .two.stack[data-ly=left]>.body,
body[data-layout=mix][data-style=a] .two.stack[data-ly=right]>.head,body[data-layout=mix][data-style=c] .two.stack[data-ly=right]>.head,
body[data-layout=mix][data-style=a] .two.stack[data-ly=right]>.body,body[data-layout=mix][data-style=c] .two.stack[data-ly=right]>.body{grid-column:1/-1;text-align:left}
body[data-layout=left][data-style=a] .two.stack>.head,body[data-layout=left][data-style=c] .two.stack>.head,
body[data-layout=left][data-style=a] .c.two.stack>.head,body[data-layout=left][data-style=c] .c.two.stack>.head,
body[data-layout=right][data-style=a] .two.stack>.head,body[data-layout=right][data-style=c] .two.stack>.head,
body[data-layout=right][data-style=a] .c.two.stack>.head,body[data-layout=right][data-style=c] .c.two.stack>.head,
body[data-layout=mix][data-style=a] .two.stack[data-ly=left]>.head,body[data-layout=mix][data-style=c] .two.stack[data-ly=left]>.head,
body[data-layout=mix][data-style=a] .two.stack[data-ly=right]>.head,body[data-layout=mix][data-style=c] .two.stack[data-ly=right]>.head{margin-bottom:var(--stack)}
.call-icon{display:inline-flex}
body.nav-open{overflow:hidden;touch-action:none}
body.nav-open .hdr{flex-wrap:nowrap}
body.nav-open .nav-backdrop{display:block}
nav.main{display:none;flex-direction:column;gap:0;order:5;width:100%;min-width:0}
body.nav-open nav.main{
display:flex;
position:fixed;
left:0;right:0;bottom:0;
top:calc(var(--hdr-h) + env(safe-area-inset-top,0px));
z-index:190;
margin:0;
padding:var(--space-2) 0 max(var(--space-3), env(safe-area-inset-bottom));
background:var(--bg);
border-top:1px solid var(--line);
box-shadow:none;
border-radius:0;
max-height:none;
min-height:0;
overflow:auto;
overscroll-behavior:contain;
-webkit-overflow-scrolling:touch
}
body[data-theme=light].nav-open nav.main{border-top-color:var(--line)}
nav.main a{display:flex;align-items:center;min-height:48px;padding:14px max(var(--pad), env(safe-area-inset-left)) 14px max(var(--pad), env(safe-area-inset-right));font-size:1.02rem;color:var(--text);border-bottom:1px solid var(--soft);border-top:0}
nav.main a:last-child{border-bottom:0}
.nav-phone{display:flex;align-items:center;min-height:48px;padding:14px max(var(--pad), env(safe-area-inset-left)) 14px max(var(--pad), env(safe-area-inset-right));font-size:1.05rem;color:var(--acc);border-bottom:1px solid var(--soft);text-decoration:none;font-weight:500;margin-top:var(--space-2);border-top:1px solid var(--line)}
.nav-tg{display:flex;align-items:center;gap:10px;padding:14px max(var(--pad), env(safe-area-inset-left)) 14px max(var(--pad), env(safe-area-inset-right));border-bottom:1px solid var(--soft);text-decoration:none;color:var(--text)}
.nav-tg:hover,.nav-phone:hover,nav.main a:active{background:var(--soft)}
.nav-tg .tg-label{color:var(--text);font-weight:500}
body[data-style=a] .hdr .hr,body[data-style=b] .hdr .hr,body[data-style=c] .hdr .hr{display:none}
.hdr{flex-wrap:nowrap;align-items:center;gap:var(--space-2);row-gap:0;min-height:var(--hdr-h)}
.brand{flex:1 1 auto;min-width:0;order:0;margin-right:0}
.call-icon{order:1}
.nav-toggle{order:2;margin-left:auto}
.btn.cta{order:4}
.top .btn.cta{display:none}
body[data-style=b] .two>.head,body[data-style=b] .c.two>.head{order:-1;border-left:0;padding-left:0;margin-bottom:var(--space-2)}body[data-style=b] .two>.body,body[data-style=b] .c.two>.body{padding-right:0}
body[data-layout=right] .two:not(.stack)>.head,body[data-layout=mix] .two[data-ly=right]:not(.stack)>.head,
body[data-layout=right] .c.two:not(.stack)>.head{text-align:left;justify-self:stretch;max-width:none;grid-column:1/-1!important}
body[data-layout=right] .two:not(.stack)>.body,body[data-layout=mix] .two[data-ly=right]:not(.stack)>.body,
body[data-layout=right] .c.two:not(.stack)>.body,
body[data-layout=left] .two:not(.stack)>.head,body[data-layout=left] .two:not(.stack)>.body,
body[data-layout=mix] .two[data-ly=left]:not(.stack)>.head,body[data-layout=mix] .two[data-ly=left]:not(.stack)>.body{grid-column:1/-1!important}
body[data-layout=mix][data-style=b] .two[data-ly=right]:not(.stack)>.head{border-left:0;padding-left:0}
body[data-layout=mix][data-style=b] .two[data-ly=right]:not(.stack)>.body{padding-right:0}
body[data-style=c] ul.reqs{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-style=b] ul.reqs{columns:1}
.cards,.duo{grid-template-columns:minmax(0,1fr)}
body[data-style=b] .card:nth-child(n){padding-left:0;padding-right:0;border-left:0}
body[data-style=a] .duo .card,body[data-style=b] .duo .card{border-left:0!important;padding-left:0!important;padding-right:0!important}body[data-style=a] .duo .card+.card,body[data-style=b] .duo .card+.card{border-top:1px solid var(--soft);padding-top:20px!important;margin-top:20px}
.strip,.mapwrap{max-width:100%}
.hero-a{contain:inline-size}
.hero-a .grid{padding-block:var(--space-2) calc(var(--space-2) * 2);width:100%;max-width:100%;row-gap:var(--space-4)}
.hero-a .left{display:flex;width:100%;max-width:100%;contain:inline-size}
.hero-a .hero-kicker{display:flex;flex-direction:column;gap:4px;margin:0}
.hero-a .hero-main{display:flex;flex-direction:column;width:100%;min-width:0;max-width:100%;margin-top:var(--space-2)}
.hero-a .left>.tagline{font-size:.84rem;font-weight:400;color:var(--text2);letter-spacing:.02em;margin:0;text-align:left;max-width:100%}
.hero-a .left .lab{margin:0;font-size:.78rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--acc)}
.hero-a .left h1{margin-top:var(--space-2);width:auto;max-width:100%}
.hero-a .left .statement{display:block;width:auto;max-width:32ch;margin-top:var(--space-3)}
.hero-a .left .btn{box-sizing:border-box;width:fit-content;min-height:46px;margin-top:var(--space-5);padding:10px 20px}
body[data-style=a] .hero-a .hero-main .btn,body[data-style=a] .hero-a .left .btn{display:flex!important;width:100%!important;max-width:none!important;align-self:stretch!important;justify-content:center;box-sizing:border-box}
.hero-a .lab{font-size:.78rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--acc)}
.hero-a .right{display:flex;justify-content:center;align-items:stretch;width:100%;max-width:100%;contain:inline-size}
.hero-a .photo{width:100%;max-width:none;height:auto;min-height:min(58vh,520px);max-height:none;margin-inline:0;aspect-ratio:auto;box-shadow:none;border:0;border-radius:0}
.hero-a .right::before{display:none}
.hero-a .photo::after{display:none}
.hero-a .photo>.photoimg{filter:none;object-fit:cover}
.hero-a h1{font-size:clamp(1.85rem,7.4vw,2.45rem);line-height:.96}
.hero-a .statement{font-size:clamp(.98rem,3.6vw,1.08rem);max-width:32ch;margin-top:var(--space-3);letter-spacing:.02em}
.hero-b h1{font-size:clamp(2.9rem,12.6vw,5.6rem)}
.herobox{align-items:flex-end;min-height:min(88vh,640px)}
body[data-style=c] .herobox{min-height:min(88svh,620px)}
.shade{background:linear-gradient(0deg,rgba(22,20,18,.94) 0%,rgba(22,20,18,.8) 48%,rgba(22,20,18,.14) 100%)}body[data-theme=light] .shade{background:linear-gradient(0deg,rgba(246,240,230,.96) 0%,rgba(246,240,230,.84) 48%,rgba(246,240,230,.22) 100%)}
.herotext{padding:clamp(24px,8vw,40px) clamp(16px,5vw,28px) clamp(32px,10vw,48px);max-width:100%;padding-top:clamp(120px,36vw,220px)}
body[data-style=c] .herotext{padding-inline:max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));max-width:100%}
.herobox>.photoimg{object-position:60% 18%}
.trust{grid-template-columns:1fr;gap:12px}
.mapframe{height:min(52vh,380px)}
.phone{white-space:normal;word-break:break-word}
/* компетенции: первые 2 пункта + «Подробнее» (как на мобиле) */
#skills-rows:not(.is-expanded) li:nth-child(n+3){display:none!important}
#skills-rows.is-expanded li:nth-child(n+3){display:grid!important}
#skills-rows.is-expanded+#skills-more{display:none}
}
@media(max-width:560px){
body[data-style=c] ul.reqs{grid-template-columns:minmax(0,1fr);row-gap:0}
.doc img{height:300px}.tools .tag{display:none}.seg{width:100%}.seg button{flex:1;padding-inline:4px;font-size:.74rem}.seg-theme,.seg-layout{width:auto;border-left:0;padding-left:0;margin-left:0;margin-top:4px}.seg-theme button,.seg-layout button{flex:1}}
@media(max-width:420px){.hdr{gap:10px}body[data-style=c] .brand{font-size:1.1rem}body[data-style=a] .brand{font-size:.9rem}.brand{white-space:normal;text-overflow:unset;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body{transition:none}}
