/* ORVAMEK V8 — consistent branding, language control and mobile polish. */
:root{color-scheme:dark}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{overflow-x:clip}
img{max-width:100%}
:where(h1,h2,h3,p,li,a){overflow-wrap:break-word}
:where(a,button,input,select,textarea):focus-visible{outline:2px solid #ffc18f!important;outline-offset:3px!important}
.brand{gap:10px;min-width:0}
.brand-mark{position:relative;display:block;flex:none;width:39px;height:39px;border:0;box-shadow:none;transform:none;border-radius:10px;overflow:hidden;background:#101114}
.brand-mark::before,.brand-mark::after{content:none!important;display:none!important}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.brand-txt{line-height:1.05}
/* Compact, clear language selection: no globe emoji and no orange dot. */
.lang-wrap{position:relative;display:flex;align-items:center;gap:9px;margin:0;min-width:0}
.lang-wrap::before,.lang-wrap::after{content:none!important;display:none!important}
.lang-label{display:inline-flex;color:#bcb1aa;letter-spacing:.1em;white-space:nowrap;font:700 10px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace}
.lang-field{position:relative;display:flex;align-items:center;width:157px;min-width:0;height:42px;border:1px solid #68513f;background:#1c1918;border-radius:9px;transition:background .15s,border-color .15s;isolation:isolate}
.lang-field:hover,.lang-field:focus-within{background:#2b211d;border-color:#ff9a53;box-shadow:0 0 0 2px #ff762c13}
.lang-code{position:absolute;left:11px;top:50%;transform:translateY(-50%);font:850 12px/1 ui-monospace,Consolas,monospace;color:#ffad72;z-index:0;pointer-events:none}
.lang-picker,.lang-wrap .lang-picker{position:relative;z-index:1;display:block;appearance:none;-webkit-appearance:none;outline:none!important;border:0!important;border-radius:9px;background:transparent!important;box-shadow:none!important;color:#f7f2ed;width:100%;max-width:none!important;min-width:0!important;height:100%;min-height:0!important;padding:0 27px 0 43px!important;margin:0;font:700 12px/1.2 system-ui,sans-serif;cursor:pointer}
.lang-picker:focus-visible{outline:none!important}
.lang-picker option{background:#17181b;color:#f8f0ea;font-size:14px}
.lang-chevron{position:absolute;right:11px;top:50%;height:7px;width:7px;border-right:2px solid #d7c8bc;border-bottom:2px solid #d7c8bc;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.gallery-controls{display:flex;align-items:center;gap:14px;margin-left:auto;flex:none}
.gallery-header .head-inner{gap:14px}
.gallery-header .lang-label{display:none}
.gallery-header .lang-field{width:126px}
.gallery-header .gallery-return{font-size:11px;padding:0 14px;min-height:42px}
.gallery-header .gallery-nav{flex:1;justify-content:center}
.gallery-hero h1,.detail-hero h1,.section-header h2,.request-intro h2{hyphens:auto;overflow-wrap:break-word;text-wrap:balance}
.project-info,.service-link{min-width:0}
:where(.gallery-grid,.projects,.service-grid,.fields,.request-fields) > *{min-width:0}
@media(max-width:1240px){.lang-label{display:none}.lang-field{width:140px}.gallery-header .gallery-nav{display:none}}
@media(max-width:790px){
 .brand-mark{width:34px;height:34px}
 .lang-field{width:112px;height:40px}
 .lang-wrap .lang-picker{color:transparent!important;font-size:1px!important;padding:0!important;opacity:.01}
 .lang-code{left:14px;font-size:13px}
 .lang-chevron{right:14px}
 .head-actions{gap:9px}
 .gallery-header .gallery-return{min-height:40px}
 .gallery-header .head-inner{height:72px}
 .gallery-header .lang-field{width:75px;height:40px}
 .gallery-header .lang-code{left:13px}
 .gallery-header .lang-chevron{right:11px}
}
@media(max-width:480px){
 .head-inner{gap:8px}
 .brand{gap:6px}
 .brand-mark{display:block!important;width:30px;height:30px}
 .brand-txt{font-size:14px}
 .brand-txt small{font-size:7px;letter-spacing:.08em}
 .lang-field{width:71px;height:38px}
 .lang-code{left:13px;font-size:12px}
 .lang-chevron{right:11px}
 .head-actions{gap:6px}
 .gallery-header .gallery-return{display:none}
 .gallery-header .head-inner{padding-left:0;padding-right:0}
 .gallery-controls{gap:7px}
}
@media(max-width:350px){.brand-mark{display:block!important;width:26px;height:26px}.brand-txt{font-size:12.5px}.lang-field{width:64px}}
@media(prefers-reduced-motion:reduce){.lang-field{transition:none}}


/* V9 — printed-part comparison, 17 localized home pages */
#materials .section-header{margin-bottom:28px}
.mat-compare{border:1px solid #363538;border-radius:18px;overflow:hidden;background:#17191c;box-shadow:0 15px 55px #00000025}
.mat-table-top{display:flex;gap:10px;align-items:center;color:#bdb5ae;font:600 11px/1.55 var(--mono);letter-spacing:.025em;background:#202124;border-bottom:1px solid #34343a;padding:14px 21px}
.mat-top-icon{color:var(--orange);font-size:17px}
.mat-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:12px}
.mat-table th,.mat-table td{padding:16px 13px;border-bottom:1px solid #ffffff0d;vertical-align:middle;overflow-wrap:anywhere}
.mat-table thead th{color:#d6c7bb;background:#1e2023;font:700 10px/1.45 var(--mono);letter-spacing:.025em}
.mat-table thead th:nth-child(1){width:15%}
.mat-table thead th:nth-child(2){width:14%}
.mat-table thead th:nth-child(3){width:13%}
.mat-table thead th:nth-child(4){width:13%}
.mat-table thead th:nth-child(5){width:12%}
.mat-table thead th:nth-child(6){width:14%}
.mat-table thead th:nth-child(7){width:19%}
.mat-table tbody tr{transition:background .18s ease}
.mat-table tbody tr:hover{background:#ec86340e}
.mat-table tbody tr:last-child th,.mat-table tbody tr:last-child td{border-bottom:none}
.mat-table tbody th{font:700 12px/1.4 var(--mono);color:#faf7f2;white-space:nowrap}
.mat-id{display:inline-flex;padding:6px 9px;border:1px solid #715039;background:#f0903020;border-radius:7px;white-space:nowrap;color:#ffc18f}
.mat-table tbody td{color:#ded9d2;line-height:1.45}
.mat-table td:last-child{color:#bcb5ac}
.mat-heat{display:inline-block;color:#e6d7c8;font:700 11px var(--mono);white-space:nowrap}
.mat-heat-hot{color:#ffae71}
.mat-heat-warm{color:#ffcf98}
.mat-heat-cool{color:#bfc6ca}
.mat-heat-flex{color:#b0ada9}
@media(min-width:791px) and (max-width:1040px){.mat-table th,.mat-table td{padding:15px 9px;font-size:11px}.mat-id{font-size:11px;padding:5px 6px}.mat-table thead th{font-size:9px}}
@media(max-width:790px){
 #materials .section-header{margin-bottom:24px}
 .mat-table-top{font-size:10px;padding:12px 15px}
 .mat-compare{border:0;background:none;box-shadow:none;border-radius:0;overflow:visible}
 .mat-table,.mat-table tbody{display:block;width:100%}
 .mat-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
 .mat-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:13px 0}
 .mat-table tr{display:flex;flex-direction:column;background:#1a1c1f;border:1px solid #373436;border-radius:13px;padding:12px 12px 13px;min-width:0;gap:5px}
 .mat-table th,.mat-table td{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:4px 0;border:0!important;min-width:0;font-size:11px}
 .mat-table tbody th{padding-bottom:8px;margin-bottom:5px;border-bottom:1px solid #383435!important}
 .mat-table td:before{content:attr(data-label);display:block;color:#a99f95;font-size:10px;min-width:0;flex:0 1 46%;line-height:1.35}
 .mat-table td{line-height:1.3;text-align:right}
 .mat-table td:last-child{align-items:flex-start;text-align:left;display:block}
 .mat-table td:last-child:before{margin-bottom:3px}
 .mat-heat{font-size:11px}
 .mat-id{font-size:11px}
}
@media(max-width:520px){.mat-table tbody{grid-template-columns:1fr}.mat-table tr{padding:13px 15px}.mat-table td:last-child{display:flex;align-items:flex-start;text-align:right}.mat-table td:last-child:before{margin:0}}
