
/* ОСАТЕК — каталог. Чёрно-белая схема по требованиям брифа:
   тёмный текст на светлом фоне, без синего и голубого, без анимаций и мельтешения. */

:root{
  --ink:#000; --ink-2:#1a1a1a; --ink-3:#4a4a4a; --ink-4:#767676;
  --line:#d4d4d4; --line-2:#e8e8e8; --line-3:#f0f0f0;
  --bg:#fff; --bg-2:#fafafa; --bg-3:#f2f2f2; --bg-dark:#111;
  --note:#8a6d00; --note-bg:#fffbea; --note-line:#e8d98a;
  --ok:#1b5e20; --warn:#8a2b00;
  --h:64px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--ink-2);
  font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
img{max-width:100%}
.wrap{max-width:1280px;margin:0 auto;padding:0 24px}

/* ---------- плашка прототипа ---------- */
.protobar{
  background:var(--bg-dark);color:#fff;font-size:12.5px;padding:7px 0;
  letter-spacing:.02em;position:relative;z-index:60;
}
.protobar .wrap{display:flex;gap:16px;justify-content:space-between;flex-wrap:wrap}
.protobar b{font-weight:600}
.protobar span{opacity:.72}

/* ---------- шапка ---------- */
header.site{border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:50}
.hrow{display:flex;align-items:center;gap:22px;height:var(--h)}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;
      font-size:21px;letter-spacing:.06em}
.logo .mark{width:30px;height:30px;background:var(--ink);color:#fff;display:grid;
            place-items:center;font-size:13px;font-weight:700;letter-spacing:0}
.nav{display:flex;gap:20px;margin-left:8px;flex:1}
.nav a{text-decoration:none;font-size:14px;color:var(--ink-3);padding:6px 0;border-bottom:2px solid transparent}
.nav a:hover{color:var(--ink)}
.nav a[aria-current]{color:var(--ink);border-bottom-color:var(--ink);font-weight:600}
.hcontact{display:flex;align-items:center;gap:14px;font-size:14px}
.hcontact .tel{font-weight:600;text-decoration:none;white-space:nowrap}
.burger{display:none;background:none;border:1px solid var(--line);padding:8px 10px;cursor:pointer}

/* ---------- кнопки ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
     padding:11px 20px;border:1px solid var(--ink);background:var(--ink);color:#fff;
     font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;
     white-space:nowrap}
.btn:hover{background:#000}
.btn.ghost{background:none;color:var(--ink)}
.btn.ghost:hover{background:var(--bg-3)}
.btn.sm{padding:7px 13px;font-size:13px;font-weight:500}
.btn:disabled{opacity:.4;cursor:not-allowed}

/* ---------- блоки-подсказки для дизайнера ---------- */
.ph{
  border:1px dashed #b9b9b9;background:
    repeating-linear-gradient(45deg,#fbfbfb,#fbfbfb 9px,#f5f5f5 9px,#f5f5f5 18px);
  display:grid;place-items:center;text-align:center;padding:26px;min-height:150px;color:var(--ink-4)
}
.ph .lab{font-size:12px;line-height:1.5;max-width:52ch}
.ph .lab b{color:var(--ink-3);font-weight:600;letter-spacing:.04em}
.ph .ic{width:38px;height:38px;border:1px solid #c8c8c8;border-radius:50%;display:grid;
        place-items:center;margin:0 auto 10px;font-size:15px}
.note{
  border-left:3px solid var(--note-line);background:var(--note-bg);color:#5f4b00;
  padding:11px 15px;font-size:13px;line-height:1.55;margin:14px 0
}
.note b{color:#4a3a00}
.secnum{display:inline-block;font-size:11px;letter-spacing:.16em;color:var(--ink-4);
        text-transform:uppercase;margin-bottom:10px}

/* ---------- типографика ---------- */
h1{font-size:38px;line-height:1.12;margin:0 0 14px;letter-spacing:-.02em;font-weight:800}
h2{font-size:26px;line-height:1.2;margin:0 0 16px;letter-spacing:-.01em;font-weight:700}
h3{font-size:18px;margin:0 0 10px;font-weight:650}
.lead{font-size:17px;color:var(--ink-3);max-width:70ch;margin:0 0 20px}
section{padding:46px 0;border-top:1px solid var(--line-2)}
section:first-of-type{border-top:none}
.shead{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px;flex-wrap:wrap}
.muted{color:var(--ink-4);font-size:13px}

/* ---------- сетки ---------- */
.grid{display:grid;gap:16px}
.g2{grid-template-columns:repeat(2,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
.g5{grid-template-columns:repeat(5,1fr)}

/* ---------- карточка товара в списке ---------- */
.card{border:1px solid var(--line);background:var(--bg);display:flex;flex-direction:column;
      text-decoration:none;color:inherit}
.card:hover{border-color:var(--ink)}
.card .cimg{border-bottom:1px solid var(--line-2);min-height:132px}
.card .cimg.solution-media{height:220px;background:#f7f7f5;display:grid;place-items:center;overflow:hidden}
.card .cimg.solution-media img{width:100%;height:100%;object-fit:contain;display:block}
.card .cbody{padding:14px 15px 16px;display:flex;flex-direction:column;flex:1}
.card .cart{font-size:17px;font-weight:700;letter-spacing:-.01em}
.card .cname{font-size:12.5px;color:var(--ink-4);margin:2px 0 9px;line-height:1.4}
.card ul.spec{list-style:none;margin:0 0 12px;padding:0;font-size:12.5px;color:var(--ink-3)}
.card ul.spec li{padding:3px 0;border-bottom:1px solid var(--line-3);display:flex;
                 justify-content:space-between;gap:10px}
.card ul.spec li b{font-weight:600;color:var(--ink-2);text-align:right}
.card .cfoot{margin-top:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tags{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:10px}
.tag{font-size:11px;border:1px solid var(--line);padding:2px 7px;color:var(--ink-3);white-space:nowrap}
.tag.k{background:var(--ink);color:#fff;border-color:var(--ink)}
.tag.reg{border-color:var(--ink-3);font-weight:600}

.system-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.system-group{border:1px solid var(--line);padding:16px;background:var(--bg)}
.system-group h3{margin:0 0 5px;font-size:16px}
.system-group p{margin:0 0 12px}
.status{display:inline-block;padding:3px 8px;border:1px solid var(--line);font-size:11px;
        letter-spacing:.08em;text-transform:uppercase;color:var(--ink-4);margin-bottom:10px}
.status.ok{border-color:#9fc5aa;color:#23613a;background:#f1f8f3}
.status.wait{border-color:#d6c689;color:#6a5900;background:#fffbea}
.cfg-intro{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cfg-intro .card{padding:18px}
.field{width:100%;border:1px solid var(--line);padding:9px 10px;font:inherit;background:#fff;color:var(--ink)}
.solution-card .status{align-self:flex-start}
.solution-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:34px;align-items:center}
.solution-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.solution-gallery.single{grid-template-columns:1fr}
.solution-photo{position:relative;border:1px solid var(--line);background:#f7f7f5;min-height:360px;
                display:grid;place-items:center;overflow:hidden}
.solution-photo img{width:100%;height:100%;max-height:460px;object-fit:contain;display:block}
.demo-photo-label{position:absolute;left:10px;bottom:10px;background:#fff8d8;border:1px solid #d6c689;
                  color:#6a5900;padding:4px 7px;font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.demo-note{border-left-color:#b89f32}
.prose{max-width:78ch;font-size:15px;line-height:1.65}
.prose p{margin:0 0 13px}
.system-groups.one{grid-template-columns:minmax(0,680px)}

/* ---------- каталог: фильтры + список ---------- */
.catalog{display:grid;grid-template-columns:284px 1fr;gap:28px;align-items:start}
.filters{border:1px solid var(--line);position:sticky;top:calc(var(--h) + 12px)}
.fhead{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;
       border-bottom:1px solid var(--line);font-weight:700;font-size:14px}
.fbody{max-height:calc(100vh - var(--h) - 130px);overflow-y:auto}
.fgroup{border-bottom:1px solid var(--line-2)}
.fgroup>summary{padding:11px 15px;cursor:pointer;font-size:13.5px;font-weight:600;
                list-style:none;display:flex;justify-content:space-between;align-items:center}
.fgroup>summary::-webkit-details-marker{display:none}
.fgroup>summary::after{content:none}
.fgroup>summary svg{width:16px;height:16px;transition:transform .25s ease}
.fgroup[open]>summary svg{transform:rotate(180deg)}
.fitems{padding:0 15px 13px}
.fitem{display:flex;align-items:center;gap:9px;padding:4px 0;font-size:13px;cursor:pointer;color:var(--ink-3)}
.fitem input{accent-color:#000;width:15px;height:15px;flex:none;margin:0}
.fitem .n{margin-left:auto;color:var(--ink-4);font-size:11.5px}
.fitem.off{opacity:.36;cursor:not-allowed}
.range{padding:4px 0 2px;font-size:13px}
.range input{width:100%;accent-color:#000}

.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;
         margin-bottom:16px;flex-wrap:wrap}
.chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}
.chip{font-size:12.5px;border:1px solid var(--ink);padding:4px 9px;display:flex;gap:7px;align-items:center}
.chip button{background:none;border:none;cursor:pointer;font-size:14px;line-height:1;padding:0;color:var(--ink-4)}
.chip button:hover{color:var(--ink)}
.chip button svg{width:13px;height:13px}
.empty{border:1px dashed var(--line);padding:40px;text-align:center;color:var(--ink-4)}

/* ---------- карточка товара (страница) ---------- */
.phero{display:grid;grid-template-columns:1.05fr 1fr;gap:32px;align-items:start}
.crumbs{font-size:12.5px;color:var(--ink-4);padding:14px 0}
.crumbs a{text-decoration:none}
.crumbs a:hover{text-decoration:underline}
table.spec{width:100%;border-collapse:collapse;font-size:14px}
table.spec th,table.spec td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--line-2);vertical-align:top}
table.spec th{width:38%;font-weight:600;color:var(--ink-3);background:var(--bg-2)}
table.spec tr:last-child th,table.spec tr:last-child td{border-bottom:none}
.kv{display:flex;gap:9px;font-size:13.5px;padding:6px 0;border-bottom:1px solid var(--line-3)}
.kv .k{color:var(--ink-4);min-width:150px}
.kv .v{font-weight:600}
.files a{display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid var(--line);
         text-decoration:none;font-size:13.5px;margin-bottom:8px}
.files a:hover{border-color:var(--ink)}
.files .sz{margin-left:auto;color:var(--ink-4);font-size:12px}

/* ---------- конфигуратор ---------- */
.cfg{display:grid;grid-template-columns:1fr 336px;gap:26px;align-items:start}
.step{border:1px solid var(--line);margin-bottom:16px}
.step>header{padding:13px 16px;border-bottom:1px solid var(--line);display:flex;
             align-items:center;gap:12px;background:var(--bg-2)}
.step>header .no{width:25px;height:25px;background:var(--ink);color:#fff;display:grid;
                 place-items:center;font-size:12.5px;font-weight:700;flex:none}
.step>header h3{margin:0;font-size:15px}
.step>header .hint{margin-left:auto;font-size:12.5px;color:var(--ink-4)}
.step .sbody{padding:15px 16px}
.opt{display:flex;gap:13px;align-items:flex-start;padding:11px;border:1px solid var(--line-2);
     margin-bottom:8px;cursor:pointer}
.opt:hover{border-color:var(--ink-4)}
.opt.sel{border-color:var(--ink);background:var(--bg-2)}
.opt input{margin:3px 0 0;accent-color:#000;flex:none}
.opt .oname{font-weight:650;font-size:14px}
.opt .odesc{font-size:12.5px;color:var(--ink-4);margin-top:3px}
.opt .oright{margin-left:auto;text-align:right;font-size:12px;color:var(--ink-4);white-space:nowrap}
.qty{display:flex;align-items:center;gap:7px}
.qty button{width:25px;height:25px;border:1px solid var(--line);background:var(--bg);
            cursor:pointer;font-size:14px;line-height:1}
.qty button:hover{border-color:var(--ink)}
.qty button svg{width:13px;height:13px}
.qty span{min-width:20px;text-align:center;font-weight:650;font-size:13.5px}

.summary{border:1px solid var(--ink);position:sticky;top:calc(var(--h) + 12px)}
.summary>header{background:var(--ink);color:#fff;padding:13px 16px;font-weight:700;font-size:14.5px}
.summary .sb{padding:15px 16px}
.sum-line{display:flex;justify-content:space-between;gap:12px;padding:7px 0;
          border-bottom:1px solid var(--line-3);font-size:13.5px}
.sum-line b{font-weight:650}
.sum-list{list-style:none;margin:10px 0;padding:0;font-size:13px}
.sum-list li{display:flex;justify-content:space-between;gap:10px;padding:5px 0;color:var(--ink-3)}
.alert{border:1px solid var(--warn);color:var(--warn);background:#fff6f2;padding:10px 12px;
       font-size:12.5px;margin:9px 0;line-height:1.5}
.okline{border:1px solid var(--ok);color:var(--ok);background:#f3faf3;padding:10px 12px;
        font-size:12.5px;margin:9px 0}

/* крейт */
.crate{border:1px solid var(--line);padding:13px;background:var(--bg-2)}
.slots{display:flex;gap:3px;overflow-x:auto;padding-bottom:5px}
.slot{min-width:38px;height:104px;border:1px solid var(--line);background:var(--bg);
      display:flex;align-items:center;justify-content:center;font-size:10.5px;
      writing-mode:vertical-rl;text-orientation:mixed;color:var(--ink-3);padding:5px 0}
.slot.sys{border-color:var(--ink);border-width:2px;font-weight:700;color:var(--ink)}
.slot.psu{background:var(--bg-3)}
.slot.free{border-style:dashed;color:#bbb}
.slot.w2{min-width:79px}.slot.w3{min-width:120px}

/* слои БКП */
.layers{position:relative;border:1px solid var(--line);background:var(--bg-2);
        min-height:330px;display:grid;place-items:center;padding:22px}
.board{position:absolute;border:2px solid var(--ink-3);background:rgba(255,255,255,.94);
       display:grid;place-items:center;font-size:12px;text-align:center;padding:9px;color:var(--ink-3)}
.board.b1{width:70%;height:52%;top:34%;left:15%;z-index:1}
.board.b2{width:56%;height:38%;top:22%;left:22%;z-index:2}
.board.b3{width:44%;height:30%;top:12%;left:28%;z-index:3}
.board.b4{width:64%;height:22%;top:60%;left:18%;z-index:4;border-style:dashed}
.board.hide{display:none}

/* ---------- подвал ---------- */
footer.site{border-top:1px solid var(--line);margin-top:56px;padding:34px 0;font-size:13.5px;color:var(--ink-3)}
footer.site .fgrid{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr 1.05fr;gap:22px}
footer.site h4{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--ink-4);margin:0 0 11px}
footer.site a{text-decoration:none;display:block;padding:3px 0}
footer.site a:hover{text-decoration:underline}
.fbot{border-top:1px solid var(--line-2);margin-top:24px;padding-top:16px;
      display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:12.5px;color:var(--ink-4)}

/* ---------- адаптив ---------- */
@media (max-width:1080px){
  .catalog{grid-template-columns:1fr}
  .filters{position:static}
  .fbody{max-height:none}
  .cfg{grid-template-columns:1fr}
  .summary{position:static}
  .g5{grid-template-columns:repeat(3,1fr)}
  .g4{grid-template-columns:repeat(2,1fr)}
  .phero{grid-template-columns:1fr}
  .solution-hero{grid-template-columns:1fr}
  .cfg-intro{grid-template-columns:1fr}
  footer.site .fgrid{grid-template-columns:1fr 1fr}
}
@media (max-width:720px){
  h1{font-size:27px} h2{font-size:21px} .lead{font-size:15.5px}
  .nav{display:none}
  .burger{display:block}
  .hcontact .tel{display:none}
  .g5,.g4,.g3,.g2{grid-template-columns:1fr}
  .system-groups{grid-template-columns:1fr}
  .solution-gallery{grid-template-columns:1fr}
  .solution-photo{min-height:240px}
  .wrap{padding:0 15px}
  section{padding:32px 0}
  .protobar .wrap{font-size:11.5px}
}

/* ========================================================================
   OSATEC / industrial editorial system
   Geometry and rhythm are based on the studied Gecko Robotics reference.
   ======================================================================== */
:root{
  --ink:#000;
  --ink-2:#111;
  --ink-3:#474747;
  --ink-4:#666;
  --line:#c8c8c3;
  --line-2:#deded8;
  --line-3:#ecece6;
  --bg:#f7f6f0;
  --bg-2:#eeece1;
  --bg-3:#e8e7e0;
  --bg-dark:#000;
  --accent:#161616;
  --accent-soft:#e8e8e5;
  --h:72px;
  --page:56px;
  --section-y:80px;
  --container:1440px;
  --content:1136px;
  --radius:0;
}

html{scroll-padding-top:var(--h)}
body{
  background:var(--bg);color:var(--ink-2);
  font-family:"Manrope",Arial,sans-serif;font-size:16px;line-height:1.5;
  font-weight:400;letter-spacing:0;
}
::selection{background:var(--accent);color:#fff}
a,button,input,select,textarea{font:inherit}
a,button{transition:background-color .35s ease,color .35s ease,border-color .35s ease,opacity .35s ease,transform .35s ease}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.wrap{max-width:var(--container);padding-inline:var(--page)}
body>.wrap,#root.wrap{max-width:none;padding:0;margin:0}
body[data-page="catalog.html"]>.wrap{max-width:var(--container);margin:0 auto;padding:0 var(--page) var(--section-y)}
body[data-page="catalog.html"]>.wrap>.crumbs{margin-inline:calc(var(--page) * -1);padding-inline:var(--page)}
body[data-page="catalog.html"]>.wrap>.shead{padding:56px 0 40px;margin-bottom:0!important;align-items:flex-end}
body[data-page="catalog.html"]>.wrap>.shead h1{font-size:clamp(42px,4vw,64px)!important;line-height:1.05;margin-bottom:16px!important}
body>.wrap>section,#root>section{
  padding:var(--section-y) max(var(--page),calc((100vw - var(--container))/2 + var(--page)));
  border:0;
}
body>.wrap>.crumbs,#root>.crumbs{
  padding:20px max(var(--page),calc((100vw - var(--container))/2 + var(--page)));
  background:var(--bg);color:var(--ink-4);
  border-bottom:0;
}
.crumbs a{color:var(--ink-3)}
.crumbs a:hover{color:var(--ink);text-decoration:none}
.crumb-sep{color:#aaa;margin-inline:3px}

/* Header */
header.site{height:var(--h);background:#000;color:#fff;border:0;top:0}
header.site .wrap{height:100%}
.hrow{height:100%;gap:28px}
.logo{gap:12px;color:inherit;font-size:19px;font-weight:800;letter-spacing:.09em;white-space:nowrap}
.logo .mark{position:relative;width:31px;height:31px;background:transparent;border:2px solid currentColor;border-radius:50%}
.logo .mark::before,.logo .mark::after,.logo .mark i{content:"";position:absolute;background:currentColor}
.logo .mark::before{width:2px;height:19px;left:8px;top:4px;transform:rotate(-28deg)}
.logo .mark::after{width:2px;height:19px;right:8px;top:4px;transform:rotate(28deg)}
.logo .mark i{width:16px;height:2px;left:5px;bottom:7px}
.nav{align-self:stretch;gap:0;margin:0;justify-content:flex-end}
.nav a{height:100%;display:flex;align-items:center;padding:0 15px;border:0;color:#fff;font-size:13px;font-weight:500;line-height:1.1;white-space:nowrap}
.nav a:hover,.nav a[aria-current]{background:var(--accent);color:#fff}
.hcontact{align-self:stretch;gap:0}
.btn.nav-cta{align-self:stretch;border-radius:0;background:#fff;color:#000;border-color:#fff;padding-inline:24px}
.btn.nav-cta:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.burger{width:50px;height:50px;border:1px solid #444;border-radius:50%;display:none;place-content:center;gap:7px;background:#111;padding:0}
.burger svg{width:21px;height:21px;color:#fff}

/* Type */
h1,h2,h3,h4{font-family:"Manrope",Arial,sans-serif;color:inherit}
h1{font-size:clamp(48px,5vw,72px);line-height:1.05;letter-spacing:-.04em;font-weight:700;margin:0 0 24px;max-width:none}
h2{font-size:clamp(40px,4.45vw,64px);line-height:1.1;letter-spacing:-.04em;font-weight:700;margin:0 0 24px;max-width:none}
h3{font-size:24px;line-height:1.3;letter-spacing:-.02em;font-weight:700;margin:0 0 12px}
.lead{font-size:18px;line-height:1.55;color:inherit;max-width:64ch;margin-bottom:32px}
.muted{font-size:14px;line-height:1.5;color:var(--ink-4)}
.shead{margin-bottom:40px;align-items:flex-end}
.shead h2{margin-bottom:0}

/* Controls */
.btn{min-height:48px;padding:13px 32px;border-radius:100px;border:1px solid #000;background:#000;color:#fff;font-size:15px;line-height:1.4;font-weight:600}
.btn:hover{background:#999;border-color:#999;color:#fff;transform:translateY(-2px)}
.btn.ghost{background:#eee;color:#333;border-color:#eee}
.btn.ghost:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.sm{min-height:42px;padding:10px 22px;font-size:14px}
.btn svg{width:17px;height:17px;flex:0 0 auto}
.nav-cta svg{width:16px;height:16px}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea,.field{
  min-height:52px;padding:13px 16px!important;border:1px solid var(--line)!important;border-radius:0;background:#fff;color:#111;
}
textarea{min-height:150px}
input:hover,select:hover,textarea:hover{background:#eee}

/* Sections and heroes: the site is light-first. Dark blocks are deliberate
   contrast moments, never a global treatment for every first section. */
body>.wrap>section,#root>section{background:var(--bg);color:var(--ink-2)}
body>.wrap>section:nth-of-type(even),#root>section:nth-of-type(even){background:var(--bg-2)}
body>.wrap>section:first-of-type,#root>section:first-of-type{
  min-height:auto;display:block;color:var(--ink-2);padding-top:32px!important
}
[data-page="index.html"] #root>section:first-of-type{
  min-height:calc(100vh - var(--h));padding-top:64px;padding-bottom:64px;
  background:#000;color:#fff;display:flex;flex-direction:column;justify-content:center;
}
[data-page="index.html"] #root>section:nth-of-type(2){background:var(--bg-2)}
body[data-page="index.html"] #root>section:nth-of-type(4),
body[data-page="about.html"]>.wrap>section:nth-of-type(2),
body[data-page="services.html"]>.wrap>section:nth-of-type(4),
body[data-page="import.html"]>.wrap>section:nth-of-type(4),
body[data-page="solution.html"]>.wrap>section:nth-of-type(3){background:#000;color:#fff}
[data-page="index.html"] #root>section:nth-of-type(7){background:var(--bg-3)}
[data-page="index.html"] #root>section:last-of-type{background:var(--accent);color:#fff}
.phero{grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:64px;align-items:center}
[data-page="index.html"] #root>section:first-of-type .phero{min-height:520px}
[data-page="index.html"] #root>section:first-of-type .lead{max-width:61ch;color:#ddd}
[data-page="index.html"] #root>section:first-of-type .btn:not(.ghost){background:var(--accent);border-color:var(--accent)}
[data-page="index.html"] #root>section:first-of-type .btn:not(.ghost):hover{background:#fff;border-color:#fff;color:#000}
[data-page="index.html"] #root>section:first-of-type .btn.ghost{background:#eee;border-color:#eee;color:#333}
[data-page="index.html"] #root>section:first-of-type .grid.g4{border:0!important;border-top:1px solid #404040!important;background:transparent!important;margin-top:38px}
[data-page="index.html"] #root>section:first-of-type .grid.g4>div{background:transparent!important;padding:22px 8px 4px 0!important}
[data-page="index.html"] #root>section:first-of-type .grid.g4>div .muted{color:#aaa}
[data-page="about.html"] section:first-of-type .grid.g4>div[style*="background:#fff"]{color:#111}

/* Photography */
.ph{position:relative;margin:0;padding:0;border:0;background:#161616;display:block;overflow:hidden;min-height:300px!important}
.ph::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 50%,rgba(22,22,22,.08));pointer-events:none}
.ph img{width:100%;height:100%;min-height:inherit;display:block;object-fit:cover;mix-blend-mode:normal;transition:transform .7s cubic-bezier(.2,.65,.25,1)}
.map-frame iframe{width:100%;height:100%;min-height:inherit;border:0;filter:grayscale(1) contrast(1.08)}
.document-media{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:28px;background:var(--bg-2);color:#222;text-align:center}
.document-media svg{width:42px;height:42px;color:var(--accent)}
.document-media span{font-size:13px;font-weight:600;max-width:28ch}
.card:hover .ph img{transform:scale(1.035)}
[data-page="index.html"] #root>section:first-of-type .ph{height:520px;background:#181818}
[data-page="index.html"] #root>section:first-of-type .ph img{object-fit:contain;background:#e8e7e0}

/* Grids and cards */
.grid{gap:16px}
.card{border:0;background:#fff;color:#111;overflow:hidden}
.card:hover{border-color:transparent;transform:translateY(-8px)}
.card .cimg{height:230px;min-height:230px;border:0;background:#e8e7e0}
.card .cimg .ph{height:100%;min-height:100%!important;background:#e8e7e0}
.card .cimg .ph img{object-fit:contain;padding:16px}
.card .cimg.solution-media{height:320px;border:0;background:#e8e7e0}
.card .cbody{padding:24px 24px 28px}
.card .cart{font-size:22px;line-height:1.3;font-weight:700;letter-spacing:-.03em}
.card .cname{font-size:14px;line-height:1.5;margin:7px 0 18px;color:#666}
.card ul.spec{font-size:13px}
.card ul.spec li{padding:8px 0;border-color:#e1e1dc}
.tags{gap:6px;margin-bottom:16px}
.tag{padding:5px 10px;border-radius:100px;border-color:#bcbcb7;font-size:11px;line-height:1.2}
.tag.k{background:#000;border-color:#000}
[data-page="index.html"] #root>section:nth-of-type(3) .card{border-top:1px solid #999}
[data-page="index.html"] #root>section:nth-of-type(4) .card{background:#151515;color:#fff}
[data-page="index.html"] #root>section:nth-of-type(4) .card .cname,[data-page="index.html"] #root>section:nth-of-type(4) .muted{color:#aaa}
[data-page="index.html"] #root>section:nth-of-type(5) .grid>div{border-top-color:#555!important;padding-top:24px!important}

/* Catalog and technical UI */
.catalog{grid-template-columns:300px 1fr;gap:40px}
.filters{border:0;background:var(--bg-2);top:calc(var(--h) + 16px)}
.fhead{padding:20px;border-color:#cbc9bf;font-size:15px}
.fgroup{border-color:#d8d5ca}
.fgroup>summary{padding:16px 20px}
.fitems{padding:0 20px 18px}
.toolbar{margin-bottom:24px}
.chips{margin-bottom:20px}
.chip{border-radius:100px;padding:6px 12px}
table.spec{font-size:14px;border-top:1px solid var(--ink)}
table.spec th,table.spec td{padding:14px 16px;border-color:#d8d8d2}
table.spec th{background:var(--bg-2);color:var(--ink-3)}
.cfg{gap:40px}
.step{border:0;background:var(--bg-2);margin-bottom:20px}
.step>header{padding:18px 20px;background:#111;color:#fff;border:0}
.step>header .no{background:var(--accent);border-radius:50%}
.step .sbody{padding:20px}
.opt{background:#fff;border:0;border-left:3px solid transparent;padding:16px;margin-bottom:10px}
.opt:hover{background:#f4f2ea}
.opt.sel{border-left-color:var(--accent);background:#fff}
.summary{border:0;background:var(--bg-2);top:calc(var(--h) + 16px)}
.summary>header{background:var(--accent);padding:18px 20px}
.summary .sb{padding:20px}
.status{border-radius:100px;padding:5px 10px;background:#eee;color:#333;border-color:#ccc;font-size:10px}
.status.ok{background:#111;color:#fff;border-color:#111}
.status.wait{background:var(--accent-soft);color:#601304;border-color:var(--accent-soft)}
.system-group{padding:24px;border:0;background:var(--bg-2)}
.solution-photo{border:0;background:var(--bg-2)}
.solution-photo img{object-fit:contain}

/* Working pages */
[data-page="catalog.html"],[data-page="compare.html"],
[data-page="configurator.html"],[data-page="chgp-configurator.html"],
[data-page="bkp.html"],[data-page="request.html"]{background:var(--bg)}
[data-page="compare.html"] section:first-of-type,
[data-page="configurator.html"] section:first-of-type,
[data-page="chgp-configurator.html"] section:first-of-type,
[data-page="bkp.html"] section:first-of-type,
[data-page="request.html"] section:first-of-type{padding-top:32px!important;padding-bottom:56px!important}
[data-page="compare.html"] section:first-of-type .lead,
[data-page="request.html"] section:first-of-type .lead{max-width:76ch;color:var(--ink-3)}

/* Comparison: a readable data surface, without a framed widget around it. */
.compare-scroll{overflow-x:auto;margin-top:30px;border:0;background:#fff}
.compare-table{width:100%;border-top:1px solid #111;color:#111}
.compare-table th,.compare-table td{padding:15px 18px;background:#fff;color:#111;border-bottom:1px solid #d7d5cd}
.compare-table th{width:32%;min-width:220px;font-weight:600;background:#f1efe7;color:#333}
.compare-table .compare-products th,
.compare-table .compare-products td{padding-top:22px;padding-bottom:22px;background:#111;color:#fff;border-bottom-color:#111;vertical-align:top}
.compare-table .compare-products th{background:#111}
.compare-table .compare-art{display:block;font-size:18px;letter-spacing:-.02em}
.compare-table .compare-name{margin:5px 0 16px;color:#aaa}
.compare-product-photo{width:150px;height:110px;margin:0 0 16px;background:#fff;border-radius:8px;overflow:hidden}
.compare-product-photo .ph{height:100%;min-height:100%!important;background:#fff}
.compare-product-photo .ph::after{display:none}
.compare-product-photo img{object-fit:contain;padding:8px}
.compare-actions{display:flex;gap:8px;flex-wrap:wrap}
.compare-actions .btn{padding-inline:18px}
.compare-actions .btn{background:#fff;border-color:#fff;color:#111}
.compare-actions .btn:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.compare-actions .btn.ghost{background:#2a2a2a;border-color:#2a2a2a;color:#fff}
.compare-actions .btn.ghost:hover{background:#555;border-color:#555}
.compare-table tr.is-different th{background:#e9e5d9;color:#111}
.compare-table tr.is-different td{background:#f7f5ef;color:#111}
.comparison-state{display:block;margin-top:4px;color:#9a3b27;font-size:11px;line-height:1.2;font-weight:600;text-transform:uppercase;letter-spacing:.06em}
.compare-badge{position:fixed;right:20px;bottom:20px;z-index:70}
.compare-badge[hidden]{display:none}

.product-photo{background:#fff!important}
.product-photo::after{display:none}
.product-photo img{object-fit:contain!important;padding:18px}
.product-photo--hero{height:460px}
.product-photo-source{display:flex;justify-content:space-between;gap:16px;margin-top:10px;font-size:12px;color:#777}
.product-photo-source a{color:inherit;text-decoration:underline}
.card-modifiers{display:grid;gap:4px;margin:-3px 0 15px;padding:10px 0;border-top:1px solid #e1e1dc;border-bottom:1px solid #e1e1dc;font-size:11px;color:#555}
.card-modifiers b{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#8a8a84}
.card-modifiers span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-modifiers{margin:16px 0 20px}
.product-modifiers__title{margin-bottom:9px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#777}
.product-modifiers__list{display:flex;flex-wrap:wrap;gap:7px}
.product-modifiers__list span{padding:8px 11px;border-radius:6px;background:#efeee9;font-size:12px;color:#222}

/* Keep only useful separators in dense content. */
.files a{padding:14px 0;border:0;border-bottom:1px solid var(--line);margin:0}
.files a:hover{border-bottom-color:var(--ink);color:var(--accent)}
.empty{border:0;background:var(--bg-2);padding:48px}

/* Surface hierarchy. Grouping comes from spacing and tone; borders remain
   only where they communicate rows, fields or state. */
[data-page="about.html"] .grid[style*="gap:1px"]{
  gap:16px!important;background:transparent!important;border:0!important
}
section .grid>div[style*="border:1px solid var(--line)"],
section .phero>div[style*="border:1px solid var(--line)"],
section>div[style*="border:1px solid var(--line)"],
section div[style*="border:2px solid var(--ink)"]{
  border:0!important;background:#fff;padding:24px!important
}
[data-page="import.html"] .tw{border:0!important}
[data-page="career.html"] .vac{border:0;background:#fff;margin-bottom:10px}
[data-page="career.html"] .vac[open]>summary{border-bottom:0;background:var(--bg-2)}
[data-page="request.html"] label{display:grid;gap:8px}
[data-page="request.html"] label input,
[data-page="request.html"] label textarea{width:100%}

/* Footer */
footer.site{margin:0;padding:80px 0 64px;background:#000;color:#fff;border:0}
footer.site .wrap{max-width:var(--container)}
footer.site .fgrid{gap:40px;grid-template-columns:1.4fr repeat(4,1fr)}
footer.site h4{color:#888;font-size:11px;letter-spacing:.12em;margin-bottom:18px}
footer.site a{padding:5px 0;color:#eee}
footer.site .icon-link{display:flex;align-items:flex-start;gap:9px}
footer.site .icon-link svg{width:16px;height:16px;margin-top:3px;flex:0 0 auto;color:var(--accent)}
footer.site a:hover{color:var(--accent);text-decoration:none}
footer.site p{color:#999!important}
.fbot{margin-top:64px;padding-top:24px;border-color:#333;color:#777}
.fbot a{padding:0;color:#777}

@media (max-width:1200px){
  :root{--page:24px;--section-y:64px}
  .nav a{padding-inline:10px;font-size:12px}
  .btn.nav-cta{padding-inline:18px}
  .g5{grid-template-columns:repeat(3,1fr)}
  .g4{grid-template-columns:repeat(2,1fr)}
  footer.site .fgrid{grid-template-columns:1fr 1fr 1fr}
}

@media (max-width:991px){
  :root{--h:64px;--page:24px;--section-y:56px}
  h1{font-size:48px}h2{font-size:48px}
  .nav{position:fixed;inset:var(--h) 0 0;background:#000;display:flex;flex-direction:column;justify-content:flex-start;transform:translateX(100%);transition:transform .35s ease;padding:20px 24px;overflow:auto}
  .nav a{height:auto;min-height:55px;border-bottom:1px solid #333;padding:14px 0;font-size:20px}
  .menu-open .nav{transform:translateX(0)}
  .menu-open{overflow:hidden}
  .burger{display:grid;margin-left:auto}
  .hcontact{align-self:auto}
  .phero,.solution-hero{grid-template-columns:1fr;gap:40px}
  [data-page="index.html"] #root>section:first-of-type{min-height:auto}
  [data-page="index.html"] #root>section:first-of-type .ph{height:420px}
  .catalog,.cfg{grid-template-columns:1fr}
  .filters,.summary{position:static}
  .fbody{max-height:none}
  .cfg-intro{grid-template-columns:1fr}
}

@media (max-width:767px){
  :root{--page:18px;--section-y:48px}
  body{font-size:15px}
  h1{font-size:34px;line-height:1.08}h2{font-size:36px;line-height:1.08}h3{font-size:21px}
  .lead{font-size:16px}
  .logo{font-size:16px}.logo .mark{width:28px;height:28px}
  .hcontact{display:none}
  .btn:not(.sm),form .btn{width:100%;min-width:0}
  .g5,.g4,.g3,.g2{grid-template-columns:1fr}
  .shead{align-items:flex-start;gap:24px;margin-bottom:28px}
  .shead .btn{width:auto}
  [data-page="index.html"] #root>section:first-of-type .ph{height:310px}
  [data-page="index.html"] #root>section:first-of-type .grid.g4{grid-template-columns:1fr 1fr}
  .card .cimg{height:260px}
  .system-groups,.solution-gallery{grid-template-columns:1fr}
  footer.site{padding:56px 0 40px}
  footer.site .fgrid{grid-template-columns:1fr 1fr}
  footer.site .fgrid>div:first-child{grid-column:1/-1}
  .fbot{margin-top:40px;display:block}
}

@media (max-width:479px){
  h1{font-size:32px}h2{font-size:32px}
  footer.site .fgrid{grid-template-columns:1fr}
  .card .cimg{height:230px}
  .solution-photo{min-height:240px}
  table.spec{display:block;overflow-x:auto}
}
