/* Shared audit corrections. Load after design-system.css. */
:root{--bg:#080d0e;--panel:#101617;--text:#f0ece4;--muted:#c0c5c1;--accent:#dfbc88;--gold:var(--accent);--line:#ffffff30;--body-font:Manrope,Arial,Helvetica,sans-serif;--serif:Cormorant,Georgia,'Times New Roman',serif;--space-section:clamp(2rem,5vw,4rem)}
html{font-size:100%;scroll-padding-top:1.5rem;text-size-adjust:100%;-webkit-text-size-adjust:100%}
body{font-family:var(--body-font);font-size:1rem;line-height:1.65}
h1,h2,h3,h4,h5,h6{overflow-wrap:break-word;line-height:1.2;letter-spacing:normal}
h1{font-size:clamp(2rem,4.8vw,4.5rem)}h2{font-size:clamp(1.75rem,3.5vw,3rem)}h3{font-size:clamp(1.35rem,2.3vw,2rem)}h4{font-size:1.125rem}h5{font-size:1rem}h6{font-size:.875rem}
p,li,dd{overflow-wrap:break-word}.model-description,.model-details,.group-hero-copy>p:not(.eyebrow),.company-cover-description,.vksvet-dialog-info>p,.vksvet-detail-narrative p,.planter-product-copy p,.terrace-card-copy p{font-size:1rem;line-height:1.7}
.eyebrow,.breadcrumbs,.catalog-nav a,.header-action,.text-link,.outline-button,.button,.model-type,.model-order-note,.slot-caption,.reference-heading>a,.company-type-strip a,.cinema-footer a,.cinema-footer p{font-size:.875rem;line-height:1.5}
.eyebrow{letter-spacing:.075em}.outline-button,.button,.header-action{font-weight:600;min-height:44px;white-space:normal;text-align:center;gap:.75rem}
small,.model-bottom small,.fabric-colors span,.price-tag small,.ecosystem-facts span{font-size:.8125rem;line-height:1.55}
button,input,select,textarea{font-family:inherit}input,select,textarea{font-size:1rem;max-width:100%;color:var(--text);accent-color:var(--accent)}input::placeholder,textarea::placeholder{color:#b3bbb7;opacity:1}
.site-wrap,.shell{width:min(1600px,calc(100% - 2rem));margin-inline:auto}
main,.model-card,.model-copy,.model-visual,.planter-product-copy,.vksvet-dialog-info,.vksvet-detail-narrative,.vksvet-detail-layout>*{min-width:0}
.group-items,.terrace-models,.vksvet-catalog{padding-block:var(--space-section)}
.model-grid,.terrace-grid,.group-item-grid,.restoma-furniture-categories{gap:clamp(1rem,2.2vw,1.5rem)}
.model-copy,.planter-product-copy{padding:clamp(1.125rem,3vw,2rem)}
.model-bottom,.section-intro,.group-next-inner{gap:1.25rem}.model-bottom{flex-wrap:wrap}.model-bottom>*{min-width:0}.model-bottom strong{line-height:1.3}
.breadcrumbs{gap:.5rem}.breadcrumbs a{text-decoration:underline;text-underline-offset:.2em}
.reference-layout .company-cover{height:auto;min-height:clamp(430px,28vw,580px)}
.reference-layout .company-cover .group-hero-content{padding-top:120px;padding-bottom:105px}
.company-cover .group-hero-copy h1{line-height:1.1}.company-cover-title{line-height:1.35}
.catalog-nav{flex-wrap:wrap;gap:1rem}.header-inner{min-height:88px;height:auto;padding-block:12px}.catalog-nav a{padding-block:.5rem}
.company-type-strip a{line-height:1.5;min-height:48px}.company-type-strip svg{flex-shrink:0}
img{max-width:100%;vertical-align:middle}
.model-thumbs button,.terrace-thumbnails button,.planter-product-thumbs button,.vksvet-dialog-thumbs button{min-width:44px;min-height:44px}
.model-thumbs,.terrace-thumbnails,.planter-product-thumbs,.vksvet-dialog-thumbs{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.model-photo-img,.vksvet-dialog-photo>img,.product-photo-fullscreen>img,.terrace-photo-dialog>img,.vksvet-lightbox>img{object-fit:contain}
.photo-unavailable{display:grid;place-items:center;min-height:160px;padding:1rem;border:1px solid var(--line);background:var(--panel);color:var(--text);font-size:.875rem;text-align:center}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--accent);outline-offset:4px}
:where(button,a,summary){touch-action:manipulation}summary{cursor:pointer}
:where(.outline-button,.header-action,.text-link):hover{color:#fff;border-color:#efd3aa}.outline-button:active,.button:active{transform:translateY(1px)}
:where(button):disabled{cursor:not-allowed}.model-card,.terrace-card,.vksvet-product,.planter-product{position:relative}
.card-open-control{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0;border:0}
:where(.model-card,.terrace-card,.vksvet-product,.planter-product):has(.card-open-control:focus-visible){outline:3px solid var(--accent);outline-offset:4px}
.builder-upload input[type=file]{width:100%;min-height:44px}.builder-fields label{line-height:1.5}.builder-error{color:#ffd2c8}
.product-fullscreen,.product-photo-fullscreen,.vksvet-product-dialog,.terrace-card-dialog,.terrace-photo-dialog,.vksvet-lightbox{max-width:100vw;max-height:100dvh;overflow-y:auto}
.product-viewer-close,.vksvet-dialog-close,.terrace-dialog-close,.vksvet-lightbox-close{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));min-width:44px;min-height:44px;z-index:10}
.product-photo-counter,.terrace-photo-counter,.vksvet-lightbox-counter{padding:.35rem .5rem;line-height:1.5;font-size:.875rem;background:#091217ed;color:#fff}
.product-photo-fullscreen{overflow:hidden}.product-photo-fullscreen>img{padding-bottom:90px}.product-fullscreen-content{padding-top:80px;padding-bottom:max(28px,env(safe-area-inset-bottom))}
@media(min-width:768px){.site-wrap,.shell{width:min(1600px,calc(100% - 3rem))}}
@media(min-width:1280px){.site-wrap,.shell{width:min(1600px,calc(100% - 5.5rem))}}
@media(max-width:1024px){.header-action{display:none}.catalog-nav{gap:.875rem}.company-type-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.catalog-menu,.menu{display:block}.header-inner{justify-content:space-between;gap:1rem}.catalog-nav{display:none;position:absolute;top:100%;left:1rem;right:1rem;margin:0;max-height:calc(100dvh - 100px);overflow:auto;padding:1rem;background:#101617f5;border:1px solid var(--line);z-index:30}.catalog-nav.open{display:flex;flex-direction:column;align-items:stretch}.catalog-nav a{min-height:44px;white-space:normal}.reference-layout .company-cover .group-hero-content{padding-bottom:2rem}.group-next-inner,.section-intro{flex-wrap:wrap}}
@media(max-width:767px){.model-card,.product-fullscreen .model-card,.planter-product,.vksvet-detail-layout{grid-template-columns:minmax(0,1fr)}.vksvet-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.restoma-chair-specs>div{grid-template-columns:minmax(0,1fr);gap:.3rem}.group-hero-copy h1,.terrace-hero h1,.planter-hero h1{font-size:clamp(2rem,8vw,3rem);line-height:1.15}.vksvet-dialog-layout{padding-inline:1rem}.vksvet-detail-hero .site-wrap{padding-top:110px}.vksvet-detail-hero h1{font-size:clamp(2rem,7vw,3rem);line-height:1.15;overflow-wrap:anywhere}.vksvet-detail-hero p{font-size:1rem;line-height:1.65}}
@media(max-width:480px){.vksvet-product-grid,.group-item-grid,.restoma-furniture-categories,.reference-gallery-row{grid-template-columns:minmax(0,1fr)}.fabric-colors{grid-template-columns:repeat(3,minmax(0,1fr))}.fabric-colors span{font-size:.8125rem}.reference-layout .group-hero-content{width:calc(100% - 2rem)}.brand-home,.company-brand{max-width:calc(100% - 60px)}.model-bottom .outline-button{width:100%}.product-photo-fullscreen>img{padding-inline:10px}.product-photo-counter{width:calc(100% - 2rem)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

.group-hero-copy h1,.company-cover .group-hero-copy h1,.render-home .render-hero-copy h1,.configurator .configurator-hero h1,.terrace-hero h1,.planter-hero-layout h1,.vksvet-detail-hero h1{font-size:clamp(2rem,4.8vw,4.5rem);line-height:1.13;letter-spacing:normal}
.section-intro h2,.reference-heading h2,.group-next h2,.render-projects h2{font-size:clamp(1.75rem,3.5vw,3rem);line-height:1.2}
.model-type,.model-order-note,.model-spec li,.vksvet-count,.vksvet-price-note,.cinema-footer p,.terrace-subtitle{color:var(--muted)}
@media(max-width:767px){.group-hero-copy h1,.company-cover .group-hero-copy h1,.render-home .render-hero-copy h1,.configurator .configurator-hero h1,.terrace-hero h1,.planter-hero-layout h1,.vksvet-detail-hero h1{font-size:clamp(2rem,8vw,3rem)}}

.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.product-photo-fullscreen>img{width:100%;height:100%;object-fit:contain}

/* Final interaction pass: consistent header, readable original marks and compact grids. */
.catalog-nav a[aria-current],#navigation a[aria-current]{color:var(--accent);text-decoration:underline;text-underline-offset:.4em}
.official-company-logo.logo-upakdrev,.brand-tabs .logo-upakdrev{filter:brightness(2.8)}
.company-brand:has(.logo-upakdrev){width:120px}
.company-brand .logo-upakdrev{height:72px}
.ecosystem-card,.group-item{transition:border-color .2s,box-shadow .2s}
.ecosystem-card:hover,.group-item:hover{border-color:var(--accent);box-shadow:inset 0 0 0 1px #dfbc8822}
.render-hero-content>*{min-width:0}.ecosystem-card p{font-size:.875rem;line-height:1.5}
.product-fullscreen .model-card,.product-fullscreen .planter-product{max-width:100%;min-width:0}
.product-fullscreen .model-visual,.product-fullscreen .model-copy,.product-fullscreen .planter-product-media{min-width:0}
.vksvet-landscape-hero{min-height:clamp(520px,42vw,700px)}
.vksvet-landscape-hero .group-hero-copy{max-width:620px}
.vksvet-options .vksvet-variant-choice{grid-column:1/-1}
@media(max-width:1100px){
 .catalog-menu,.configurator>header .menu{display:block;flex:none}
 .header-action,.configurator>header>.compact{display:none}
 .header-inner{justify-content:space-between;gap:1rem}
 .catalog-nav,.configurator>header #navigation{display:none;position:absolute;top:100%;left:1rem;right:1rem;margin:0;max-height:calc(100dvh - 120px);overflow-y:auto;overscroll-behavior:contain;padding:1rem;background:#101617f5;border:1px solid var(--line);z-index:30;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
 .catalog-nav.open,.configurator>header #navigation.open{display:flex;flex-direction:column;align-items:stretch;gap:.35rem}
 .catalog-nav a,.configurator>header #navigation a{display:flex;align-items:center;min-height:48px;padding:.6rem .4rem;font-size:1rem;white-space:normal}
 .company-type-strip{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-columns:auto}
 .company-type-strip a{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:600px){
 .configurator>header{width:calc(100% - 2rem);min-height:88px;gap:1rem}
 .configurator>header #navigation{left:0;right:0}
 .render-hero{height:auto;min-height:max(600px,85svh)}
 .render-hero-content{min-height:max(600px,85svh);padding-top:120px;padding-bottom:85px}
 .render-hero-copy h1{font-size:clamp(1.8rem,8vw,3rem)}
 .ecosystem-card h2{font-size:clamp(1rem,4.5vw,1.4rem);overflow-wrap:normal}
 .company-type-strip a{padding:.75rem;gap:.6rem;font-size:.875rem}
 .product-photo-prev,.product-photo-next,.terrace-photo-prev,.terrace-photo-next,.vksvet-lightbox-prev,.vksvet-lightbox-next{min-width:44px;min-height:48px}
 .builder-product-choice{padding:1rem;overflow-wrap:anywhere}
}

.vksvet-product[data-collection="0240"] .vksvet-product-photo{aspect-ratio:3/2;background:#171918}
.vksvet-product[data-collection="0240"] .vksvet-product-photo img{inset:0;width:100%;height:100%;object-fit:contain}
.vksvet-product[data-collection="0240"] .vksvet-product-photo>span{display:none}

/* Fullscreen photographs support real magnification and dragging. */
.photo-zoom-toggle{position:fixed;left:18px;top:18px;z-index:12;min-height:46px;padding:10px 16px;border:1px solid #ffffff90;border-radius:4px;background:#091217ed;color:#fff;font:inherit;cursor:pointer}
.product-photo-fullscreen>img,.terrace-photo-dialog>img,.vksvet-lightbox>img{cursor:zoom-in;transform-origin:center;touch-action:none;user-select:none;-webkit-user-drag:none}
.photo-is-zoomed>img{cursor:grab}.photo-is-zoomed>img:active{cursor:grabbing}

/* CAD hero copy must grow below the transparent header, never center upward. */
.reference-layout[data-group=chad] .company-cover{height:auto;min-height:clamp(487px,29.1vw,610px);align-items:flex-start}
.reference-layout[data-group=chad] .company-cover .group-hero-content{padding-top:128px;padding-bottom:64px}
@media(max-width:900px){.reference-layout[data-group=chad] .company-cover .group-hero-content{padding-top:120px;padding-bottom:40px}}
@media(max-width:600px){.reference-layout[data-group=chad] .company-cover{min-height:540px}.reference-layout[data-group=chad] .company-cover .group-hero-content{padding-top:116px;padding-bottom:36px}}
