/* Изопласт – izoplastbg.com rebuilt.
   PVC white and graphite from the logo, its orange and green, and a thermal scale (cold blue to amber)
   for the profile drawings and the Uf ladder. Advent Pro for headings, PT Sans for text. */

@font-face { font-family: "Advent Pro"; src: url("/fonts/advent-pro.woff2") format("woff2"); font-weight: 100 900; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("/fonts/pt-sans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("/fonts/pt-sans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("/fonts/pt-sans-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
    --paper: #f4f4f1;
    --sheet: #ffffff;
    --ink: #1f2124;
    --ink-2: #4a4d52;
    --line: #c5c6c6;
    --line-soft: #dfe0dd;
    --orange: #ef7f1a;
    --orange-ink: #a24c08;
    --green: #91c02c;
    --green-ink: #4b6910;
    --slate: #1d2230;
    --slate-2: #272e40;
    --on-slate: #e8ebf1;
    --on-slate-2: #b9c0cf;
    --cold: #3b6fe0;
    --violet: #8a4fd0;
    --amber: #ffc83d;
    --thermal: linear-gradient(90deg, var(--cold) 0%, var(--violet) 22%, var(--orange) 55%, var(--amber) 100%);
    --display: "Advent Pro", "Arial Narrow", sans-serif;
    --text: "PT Sans", "Segoe UI", Arial, sans-serif;
    --r-lg: 22px;
    --r: 12px;
    --wrap: 1180px;
    --gut: clamp(16px, 4vw, 40px);
    --lb-bg: rgba(20, 24, 34, 0.96);
    --lb-accent: var(--orange);
    --lb-accent-soft: rgba(239, 127, 26, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-2); max-width: 40em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.5em; min-height: 48px; padding: 0.7em 1.3em; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 700; text-decoration: none; border: 2px solid var(--orange); transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:hover { background: #f7963f; border-color: #f7963f; transform: translateY(-1px); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--on-slate); color: var(--on-slate); }
.btn-ghost:hover { background: var(--on-slate); border-color: var(--on-slate); color: var(--slate); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(244, 244, 241, 0.9); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid var(--line-soft); }
.top-row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand tools" "nav nav"; align-items: center; gap: 4px 16px; padding-top: 8px; padding-bottom: 6px; }
.brand { grid-area: brand; display: block; }
.brand img { width: clamp(120px, 26vw, 170px); height: auto; }
.top-tools { grid-area: tools; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.phones { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.phone { display: inline-flex; flex-direction: column; line-height: 1.1; padding: 6px 12px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.98rem; white-space: nowrap; }
.phone:hover { background: #33363b; }
.phone-city { font-weight: 400; font-size: 0.75rem; color: #cfd2d6; }
.fb { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); border: 1.5px solid var(--line); }
.fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.lang { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; font-weight: 700; font-size: 0.9rem; }
.lang a, .lang span { padding: 8px 10px; text-decoration: none; color: var(--ink); }
.lang span { background: var(--ink); color: #fff; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 0.95rem var(--text); cursor: pointer; }
.menu-btn[hidden] { display: none; }
.nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 700; }
.nav a:hover { background: var(--line-soft); }
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 8px 8px 0 0; }
@media (max-width: 899px) {
    .js-menu .nav { display: none; flex-direction: column; padding: 6px 0 10px; }
    .js-menu .nav.is-open { display: flex; }
    .js-menu .nav a { padding: 12px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
}
@media (max-width: 559px) {
    .top-row { grid-template-columns: 1fr auto; grid-template-areas: "brand tools2" "phones phones" "nav nav"; }
    .top-tools { display: contents; }
    .phones { grid-area: phones; display: grid; grid-template-columns: 1fr 1fr; }
    .phone { align-items: center; }
    .fb, .lang, .menu-btn { grid-area: tools2; }
    .top-row > .top-tools > .fb { display: none; }
    .lang { justify-self: end; margin-right: 98px; }
    .menu-btn { justify-self: end; }
}
@media (min-width: 900px) {
    .menu-btn { display: none !important; }
    .top-row { grid-template-columns: auto 1fr; }
}
@media (min-width: 1360px) {
    .top-row { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav tools"; }
    .nav { justify-content: center; flex-wrap: nowrap; gap: 0; }
    .nav a { padding: 8px 9px; white-space: nowrap; }
    .brand img { width: 150px; }
    .top .wrap { max-width: 1300px; }
    .top-tools, .phones { flex-wrap: nowrap; }
}

/* ---- breadcrumbs ---- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 18px 0 0; font-size: 0.95rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: #8a8d92; }
.crumbs a { color: var(--ink-2); }

/* ---- bands ---- */
.band { padding: clamp(48px, 7vw, 96px) 0; }
.band.dark { background: var(--slate); color: var(--on-slate); }
.band.dark a { color: var(--amber); }
.sheet-band { background: var(--sheet); }

/* ---- home: hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 72px) 0 clamp(48px, 6vw, 84px);
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(197, 198, 198, 0.45) calc(50% - 1px), rgba(197, 198, 198, 0.45) calc(50% + 1px), transparent calc(50% + 1px)),
        var(--paper); }
.hero::before { content: ""; position: absolute; inset: 14px; border: 14px solid rgba(197, 198, 198, 0.35); border-radius: 6px; pointer-events: none; }
@media (max-width: 959px) { .hero { background: var(--paper); } .hero::before { display: none; } }
.hero-grid { position: relative; display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.9rem); font-stretch: 118%; max-width: 14ch; animation: rise 0.7s ease-out both; }
.hero .lead { color: var(--ink-2); animation: rise 0.7s 0.1s ease-out both; }
.hero-calls { display: flex; flex-wrap: wrap; gap: 10px; animation: rise 0.7s 0.2s ease-out both; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---- the profile section (thermo) ---- */
.thermo { background: var(--slate); color: var(--on-slate); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 28px); box-shadow: 0 30px 60px -30px rgba(29, 34, 48, 0.55); }
.thermo-title { font-size: 1.35rem; margin-bottom: 12px; }
.thermo-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.thermo-pick[hidden] { display: none; }
.thermo-pick button { font: 700 0.9rem var(--text); color: var(--on-slate); background: var(--slate-2); border: 1.5px solid #3c4559; border-radius: 999px; padding: 7px 12px; cursor: pointer; min-height: 40px; }
.thermo-pick button:hover { border-color: var(--amber); }
.thermo-pick button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.thermo-panel[hidden] { display: none; }
.profile { width: 100%; height: auto; display: block; }
.pf-out { fill: rgba(59, 111, 224, 0.2); }
.pf-in { fill: rgba(239, 127, 26, 0.17); }
.pf-side { fill: var(--on-slate-2); font: 600 15px var(--display); font-stretch: 110%; }
.pf-glass { fill: rgba(190, 222, 245, 0.85); }
.pf-spacer { fill: #8d95a5; }
.pf-gap { fill: rgba(190, 222, 245, 0.16); }
.pf-frame { fill: #eef0ef; }
.pf-cell { fill: var(--c); animation: heat 0.9s calc(var(--d) * 0.14s + 0.3s) ease-out both; }
.pf-dim { stroke: var(--on-slate-2); stroke-width: 1.5; fill: none; }
.pf-mm { fill: var(--on-slate); font: 700 15px var(--display); font-stretch: 110%; }
@keyframes heat { from { fill: #c5c6c6; } }
.thermo-read { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 14px 0 0; }
.thermo-read div { border-top: 1px solid #3c4559; padding-top: 6px; }
.thermo-read dt { font-size: 0.85rem; color: var(--on-slate-2); }
.thermo-read dd { margin: 0; font: 700 1.5rem/1.1 var(--display); font-stretch: 110%; }
.thermo-read dd small { font: 400 0.85rem var(--text); color: var(--on-slate-2); }
.thermo-read a { color: var(--amber); }
@media (min-width: 480px) { .thermo-read { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); } }
.thermo-note { margin: 12px 0 0; font-size: 0.85rem; color: var(--on-slate-2); }
.thermo-small { padding: 14px; }

/* ---- home: what we make ---- */
.make-strip { list-style: none; margin: 0 0 36px; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
.make-strip li { scroll-snap-align: start; }
.make-strip a { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--slate); color: #fff; text-decoration: none; }
.make-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.make-strip a:hover img { transform: scale(1.04); }
.make-strip span { position: absolute; left: 12px; bottom: 12px; padding: 6px 14px; border-radius: 999px; background: rgba(29, 34, 48, 0.88); font: 700 1.5rem var(--display); font-stretch: 112%; }
.make-lists { display: grid; gap: 24px 48px; }
@media (min-width: 860px) { .make-lists { grid-template-columns: 1.2fr 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; font-size: 1.1rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 6px; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231f2124' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checks-quiet li { font-size: 1rem; }
.checks-quiet li::before { background-color: var(--line-soft); }

/* ---- home: Uf ladder ---- */
.uf-head { display: grid; gap: 8px 48px; margin-bottom: 28px; }
@media (min-width: 860px) { .uf-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.uf-head p { color: var(--on-slate-2); margin: 0; }
.uf-group { font-size: 1.1rem; color: var(--on-slate-2); font-stretch: 105%; margin: 26px 0 10px; }
.uf-scale { display: none; }
.uf-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.uf-rows li { --track: var(--slate); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "bar bar"; align-items: center; gap: 4px 12px; }
.uf-rows a { grid-area: name; color: var(--on-slate); text-decoration: none; font-weight: 700; }
.uf-rows a:hover { color: var(--amber); text-decoration: underline; }
.uf-bar { grid-area: bar; position: relative; height: 16px; border-radius: 4px; background: var(--thermal); overflow: hidden; }
.uf-bar::before, .uf-bar::after { content: ""; position: absolute; top: 0; bottom: 0; background: #2b3245; }
.uf-bar::before { left: 0; width: max(0%, calc(var(--a) - 0.8%)); }
.uf-bar::after { left: max(calc(var(--b) + 0.8%), 2%); right: 0; }
.uf-val { grid-area: val; white-space: nowrap; text-align: right; font: 700 1.35rem var(--display); font-stretch: 110%; }
@media (min-width: 720px) {
    .uf-scale { display: grid; grid-template-columns: 14rem minmax(0, 1fr) 6rem; gap: 0 12px; font-size: 0.8rem; color: var(--on-slate-2); }
    .uf-scale span { grid-column: 2; grid-row: 1; }
    .uf-scale span:nth-child(1) { margin-left: 0; }
    .uf-scale span:nth-child(2) { margin-left: 16.67%; }
    .uf-scale span:nth-child(3) { margin-left: 33.33%; }
    .uf-scale span:nth-child(4) { margin-left: 50%; }
    .uf-scale span:nth-child(5) { margin-left: 66.67%; }
    .uf-scale span:nth-child(6) { margin-left: 83.33%; }
    .uf-scale span:nth-child(7) { grid-column: 3; text-align: right; }
    .uf-rows li { grid-template-columns: 14rem minmax(0, 1fr) 6rem; grid-template-areas: "name bar val"; }
}
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .uf-bar::after { animation: uf-fill linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    }
}
@keyframes uf-fill { from { left: max(calc(var(--a) + 0.8%), 2%); } }
.uf-more { margin: 28px 0 0; font-weight: 700; }

/* ---- home: own production ---- */
.own-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .own-grid { grid-template-columns: 1fr 1fr; } }
.figures { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; }
.figures li { border-left: 4px solid var(--green); padding: 2px 0 2px 14px; }
.figures strong { display: block; white-space: nowrap; font: 700 clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem)/1 var(--display); font-stretch: 115%; }
.figures span { color: var(--ink-2); }
.own-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.own-photos img { border-radius: var(--r); width: 100%; aspect-ratio: 218 / 168; object-fit: cover; }

/* ---- figures ---- */
.fig { margin: 0; }
.fig a { display: block; }
.fig img { border-radius: var(--r); }
.fig figcaption { font-size: 0.92rem; color: var(--ink-2); margin-top: 6px; }

/* ---- bento of products ---- */
.bento { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.bento a { display: grid; grid-template-rows: auto auto 1fr; height: 100%; padding: 16px; border-radius: var(--r-lg); background: var(--sheet); border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.bento a:hover { border-color: var(--orange); transform: translateY(-2px); }
.bento img { width: 100%; aspect-ratio: 200 / 140; object-fit: cover; border-radius: var(--r); margin-bottom: 12px; }
.bento strong { font: 700 1.45rem var(--display); font-stretch: 112%; }
.bento span { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 599px) {
    .bento a { grid-template-columns: 96px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; align-items: start; }
    .bento img { grid-row: span 2; aspect-ratio: 1; margin: 0; }
}
@media (min-width: 1000px) {
    .bento-5 { grid-template-columns: 1.25fr 1fr 1fr; }
    .bento-5 li:first-child { grid-row: span 2; }
    .bento-5 li:first-child img { aspect-ratio: 200 / 170; }
    .bento-5 li:first-child strong { font-size: 2rem; }
}

/* ---- documents ---- */
.refs { background: var(--sheet); }
.refs-head { display: grid; gap: 4px 48px; margin-bottom: 24px; }
@media (min-width: 860px) { .refs-head { grid-template-columns: 1fr 1fr; align-items: end; } .refs-head p { margin: 0; } }
.docs { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.docs figure { margin: 0; }
.docs a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; transition: transform 0.2s, box-shadow 0.2s; }
.docs a:hover { transform: translateY(-3px) rotate(-0.6deg); box-shadow: 0 16px 30px -18px rgba(31, 33, 36, 0.5); }
.docs img { width: 100%; aspect-ratio: 595 / 841; object-fit: cover; object-position: top; }
.docs figcaption { margin-top: 8px; font-weight: 700; line-height: 1.3; }
.docs figcaption small { display: block; font-weight: 400; color: var(--ink-2); }
.doc-wide img { aspect-ratio: auto; object-fit: contain; }

/* ---- advice on home ---- */
.adv-grid { display: grid; gap: 20px 48px; }
@media (min-width: 860px) { .adv-grid { grid-template-columns: 0.8fr 1.2fr; } }
.adv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.adv-list li { border-bottom: 1px solid var(--line); }
.adv-list a { display: block; padding: 14px 4px; color: var(--ink); text-decoration: none; font: 700 1.25rem/1.25 var(--display); font-stretch: 108%; }
.adv-list a:hover { color: var(--orange-ink); padding-left: 10px; transition: padding 0.2s; }

/* ---- call band ---- */
.callband { background: var(--slate) linear-gradient(100deg, rgba(59, 111, 224, 0.28), rgba(29, 34, 48, 0) 45%, rgba(239, 127, 26, 0.28)); color: var(--on-slate); padding: clamp(44px, 6vw, 80px) 0; }
.callband-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .callband-grid { grid-template-columns: 1.1fr 0.9fr; } }
.callband p { color: var(--on-slate-2); max-width: 36em; }
.callband-phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.callband-phones a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.07); border: 1.5px solid rgba(255, 255, 255, 0.16); color: var(--on-slate); text-decoration: none; }
.callband-phones a:hover { border-color: var(--amber); }
.callband-phones span { color: var(--on-slate-2); }
.callband-phones strong { font: 700 clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem) var(--display); font-stretch: 112%; color: #fff; white-space: nowrap; }

/* ---- inner pages ---- */
.page-hero { padding: clamp(24px, 4vw, 56px) 0 clamp(24px, 3vw, 40px); }
.page-hero .lead { margin-bottom: 0; }
.prose { max-width: 46em; }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 46em; }
.wrap.prose > .table-scroll { max-width: none; }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.3em; }
.prose-split { display: grid; gap: 24px 48px; align-items: start; }
@media (min-width: 900px) { .prose-split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr); } }
.aside-figs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.aside-figs .fig img { background: #fff; }
.white-figs .fig a { background: #fff; border-radius: var(--r); padding: 8px; border: 1px solid var(--line-soft); }
.white-figs .fig img { margin: 0 auto; }
.note { border-left: 4px solid var(--orange); background: var(--sheet); padding: 16px 20px; border-radius: 0 var(--r) var(--r) 0; }

/* ---- product sub-pages ---- */
.item-hero { padding: clamp(18px, 3vw, 40px) 0 clamp(28px, 4vw, 56px); }
.item-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .item-grid { grid-template-columns: 1.1fr 0.9fr; } }
.item-media { display: grid; gap: 14px; }
.item-photo a { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 14px; }
.item-photo img { margin: 0 auto; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; margin: 20px 0 0; border-top: 2px solid var(--ink); }
.specs div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 0.88rem; color: var(--ink-2); }
.specs dd { margin: 0; font: 700 1.6rem/1.1 var(--display); font-stretch: 112%; }
.systems { display: grid; gap: 22px; }
.system { background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px); display: grid; gap: 20px; }
@media (min-width: 900px) { .system { grid-template-columns: minmax(0, 1fr) minmax(0, 0.45fr); } }
.system h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.system .wide { grid-column: 1 / -1; }
.tech { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.tech caption { text-align: left; font-weight: 700; margin-bottom: 4px; }
.tech th, .tech td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tech th { font-weight: 400; color: var(--ink-2); }
.tech td { font-weight: 700; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
.table-scroll table { min-width: 560px; }
.grid-table { width: 100%; border-collapse: collapse; background: var(--sheet); }
.grid-table th, .grid-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.grid-table thead th { background: var(--slate); color: var(--on-slate); font-weight: 700; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; }
.chips a:hover { background: var(--ink); color: #fff; }
.chips a[aria-current] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.chips .chip-up { border-style: dashed; }
.others { padding-top: 40px; }
.others h2 { font-size: 1.5rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.cards a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; height: 100%; padding: 14px; border-radius: var(--r-lg); background: var(--sheet); border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; transition: border-color 0.2s; }
.cards a:hover { border-color: var(--orange); }
.cards img { width: 96px; height: 110px; object-fit: contain; }
.cards strong { display: block; font: 700 1.35rem/1.1 var(--display); font-stretch: 110%; }
.cards span { color: var(--ink-2); font-size: 0.95rem; }
.group-head { display: grid; gap: 8px 40px; margin-bottom: 20px; }
@media (min-width: 860px) { .group-head { grid-template-columns: 1fr 1fr; align-items: end; } .group-head p { margin: 0; } }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.tiles .fig a { background: #fff; border-radius: var(--r); border: 1px solid var(--line-soft); padding: 6px; }
.tiles .fig img { width: 100%; aspect-ratio: 8 / 5; object-fit: contain; }
.tiles .fig figcaption { color: var(--ink); }
.sub-h { margin-top: 1.6em; }

/* ---- gallery ---- */
.album-nav { position: sticky; top: var(--hdr, 96px); z-index: 5; }
.gallery { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.gallery-doors { grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); }
.gallery-doors img { aspect-ratio: 1; object-fit: contain; background: #fff; }
.album + .album { margin-top: 56px; }

/* ---- contact ---- */
.offices { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-bottom: 40px; }
.office { background: var(--sheet); border-radius: var(--r-lg); border: 1px solid var(--line-soft); padding: 24px; }
.office h2 { font-size: 2rem; margin-bottom: 2px; }
.office .sub { color: var(--ink-2); }
.big-phone { display: inline-block; font: 700 clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem) var(--display); font-stretch: 112%; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--orange); margin: 6px 0 12px; }
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; } }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #8c9096; border-radius: 10px; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cold); outline: 3px solid rgba(59, 111, 224, 0.3); outline-offset: 0; }
.contact-form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.form-hint { font-size: 0.9rem; color: var(--ink-2); }
.form-row-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.contact-sent { background: #e9f4d6; border-left: 4px solid var(--green-ink); padding: 14px 18px; border-radius: 0 10px 10px 0; margin-bottom: 18px; }
.contact-form ul { margin: 4px 0 0; padding-left: 1.1em; color: #a3121b; }
.req { color: var(--orange-ink); }

/* ---- EU notice ---- */
.eu { display: grid; gap: 24px; background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); }
@media (min-width: 900px) { .eu { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.eu dl { margin: 0; display: grid; gap: 8px; }
.eu dt { font-size: 0.9rem; color: var(--ink-2); }
.eu dd { margin: 0 0 6px; font-weight: 700; }

/* ---- footer ---- */
.foot { background: #17191c; color: #d9dcdf; padding: 56px 0 24px; }
.foot a { color: #ffd08a; }
.foot h2 { font-size: 1.5rem; color: #fff; margin-bottom: 4px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.foot-firm img { width: 170px; height: auto; margin-bottom: 10px; }
.foot-name { font-weight: 700; color: #fff; margin-bottom: 4px; }
.foot-small { font-size: 0.88rem; color: #b5b9be; margin-bottom: 6px; }
.foot address { font-style: normal; margin-bottom: 10px; }
.foot-phone { font: 700 1.5rem var(--display); font-stretch: 110%; text-decoration: none; color: #fff !important; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid #33373c; font-size: 0.9rem; color: #b5b9be; }
.foot-bottom p { margin: 0; }

/* ---- 404 ---- */
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; text-align: center; }
.not-found img { margin: 0 auto 24px; }
.not-found h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
.not-found div[lang] { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}
.prose > :first-child, .system > div > :first-child { margin-top: 0; }
.adv-list a[aria-current] { color: var(--orange-ink); }
.adv-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.adv-cards a { display: grid; gap: 8px; height: 100%; padding: 22px; border-radius: var(--r-lg); background: var(--sheet); border: 1px solid var(--line-soft); border-top: 6px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 0.2s; }
.adv-cards li:nth-child(1) a { border-top-color: var(--cold); }
.adv-cards li:nth-child(2) a { border-top-color: var(--violet); }
.adv-cards li:nth-child(3) a { border-top-color: #b0618b; }
.adv-cards li:nth-child(4) a { border-top-color: var(--orange); }
.adv-cards li:nth-child(5) a { border-top-color: #f8aa2e; }
.adv-cards li:nth-child(6) a { border-top-color: var(--green); }
.adv-cards a:hover { border-color: var(--orange); }
.adv-cards strong { font: 700 1.45rem/1.15 var(--display); font-stretch: 108%; }
.adv-cards span { color: var(--ink-2); }
