/* Hallmark · v2.0.0 · redesign: full (stage 1 concept + stage 2 whole page) · scope: page + app screen · theme: brand-locked "noir" (by request: owner references 2026-11-26) · genre: modern-minimal · paper dark #0B0B0B · accent warm gold #E8C547 (IndexPro brand) · faces: Sofia Sans Condensed 800 (display), Manrope (body), JetBrains Mono (codes only) · hero: door on a graphite arch, metal caps headline · signature: the configured door itself, shown in the hero and in the working panel */
/* critique: the old page was a calm light catalogue; the owner asked for ref1's drawing (metal caps, glass panels, line icons, numbered process) in ref2's colours (black, graphite, one gold). Gold is reserved for the request path: CTA, current step, selection. */
/* waive 2b: metal gradient text in display heads, single neutral ramp, every stop a token, contrast >= 7:1 at the darkest stop; the owner asked for it by reference (ref1). */
/* waive 29: one soft diagonal sheen on glass panels is a neutral overlay under 6% white, not a coloured glow. */
/* waive 38iii: the h1 <em> is set as a second line at a second size in the body face (craft.md allows it), not a coloured word. */
/* waive 2b (stage 2): the step overview heading and the mood board heading use the same metal ramp as every display head; one system, not a new effect. */
/* waive 38iii (stage 2): .kp-done h3 b is the request number, a code set on its own line in mono, not an accented word. */
/* waive 25: the process columns hold one or two short sentences, a caption measure (40ch), not prose. */
/* stage 2: tables, process, FAQ, request form, footer, header menus, phone bar and every configurator screen follow the same system; one error token (--danger) is added for validation. */
/* answered: door finish colours, the door preview and swatches are product truth and are never recoloured by this layer. */
/* Loaded last. Presentation only: ids, inputs, handlers, copy and order of steps are untouched. Applies only to :root[data-theme="noir"]. */

@font-face {font-family:"Sofia Sans Condensed";font-style:normal;font-weight:500 900;font-display:swap;src:url(/fonts-v6/SofiaSansCondensed-cyrillic-ext.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face {font-family:"Sofia Sans Condensed";font-style:normal;font-weight:500 900;font-display:swap;src:url(/fonts-v6/SofiaSansCondensed-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face {font-family:"Sofia Sans Condensed";font-style:normal;font-weight:500 900;font-display:swap;src:url(/fonts-v6/SofiaSansCondensed-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face {font-family:"Sofia Sans Condensed";font-style:normal;font-weight:500 900;font-display:swap;src:url(/fonts-v6/SofiaSansCondensed-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Metric-matched fallback so the swap does not reflow the headline. */
@font-face {font-family:"Sofia Sans Condensed Fallback";src:local("Arial Narrow"),local("Roboto Condensed"),local("Arial");size-adjust:84%;ascent-override:104%;descent-override:26%;line-gap-override:0%}

/* ---------- Tokens (palette from ref2 + IndexPro brand, drawing from ref1) ---------- */
:root[data-theme="noir"] {
  /* ground and graphite surfaces */
  --bg:#0B0B0B; --surface:#121212; --surface-2:#1A1A1A; --surface-3:#242424; --ink-2:#2A2A2A;
  --glass-top:#181818; --glass-bot:#0F0F0F; --inset:#080808;
  /* text */
  --fg:#F3F1EA; --fg-2:#CFCBC2; --white:#FFFFFF; --muted:#A39F96; --faint:#A39F96;
  /* the only accent: brand gold */
  --accent:#E8C547; --accent-hi:#F0D46E; --cta:#E8C547; --cta-hover:#F0D46E; --cta-ink:#0B0B0B; --sel:#E8C547;
  /* lines and highlights */
  --line:#2C2C2C; --line-hi:#454545; --field-edge:#666666; --rule:var(--line); --rule-soft:var(--line);
  --sheen:color-mix(in srgb,#FFFFFF 5%,transparent); --edge-hl:color-mix(in srgb,#FFFFFF 9%,transparent);
  /* metal ramp for display type */
  --metal-1:#FFFFFF; --metal-2:#DEDDD8; --metal-3:#A6A5A0;
  /* door stage (product truth is drawn on top, untouched) */
  --stage:#161616; --stage-floor:#1E1E1E;
  --studio-stage:#141414; --studio-border:var(--line); --studio-choice:color-mix(in srgb,var(--accent) 8%,var(--surface));
  --y-06:color-mix(in srgb,var(--accent) 7%,transparent); --y-14:color-mix(in srgb,var(--accent) 14%,transparent); --y-28:color-mix(in srgb,var(--accent) 28%,transparent);
  --display:"Sofia Sans Condensed","Sofia Sans Condensed Fallback","Arial Narrow",sans-serif;
  --glass:linear-gradient(135deg,var(--sheen) 0%,transparent 38%),linear-gradient(180deg,var(--glass-top),var(--glass-bot));
  --glass-ring:inset 0 1px 0 0 var(--edge-hl);
  --metal:linear-gradient(180deg,var(--metal-1) 8%,var(--metal-2) 52%,var(--metal-3) 96%);
  /* thin line icons (mask only; colour comes from the token that paints them) */
  --i-door:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M6 21V3h12v18M4 21h16'/%3E%3Ccircle cx='15' cy='12.5' r='.9'/%3E%3C/svg%3E");
  --i-drop:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M12 3s6 6.6 6 11a6 6 0 0 1-12 0c0-4.4 6-11 6-11z'/%3E%3Cpath d='M9.5 15.5a2.6 2.6 0 0 0 2.5 2'/%3E%3C/svg%3E");
  --i-layers:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M12 4l9 4.5-9 4.5-9-4.5z'/%3E%3Cpath d='M3 12.5l9 4.5 9-4.5M3 16.5l9 4.5 9-4.5'/%3E%3C/svg%3E");
  --i-mill:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M5 3h14v18H5z'/%3E%3Cpath d='M8.5 17V10a3.5 3.5 0 0 1 7 0v7z'/%3E%3C/svg%3E");
  --i-cube:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9z'/%3E%3Cpath d='M4 7.5l8 4.5 8-4.5M12 12v9'/%3E%3C/svg%3E");
  --i-shield:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.5c0 4.7-3.2 8-7.5 9.5-4.3-1.5-7.5-4.8-7.5-9.5V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
  --i-qr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h2.5v2.5H14zM18 18h2v2h-2zM14 19.5h1.5M19.5 14v2'/%3E%3C/svg%3E");
  --danger:#F07C6C; --danger-bg:color-mix(in srgb,#F07C6C 7%,#080808);
  --scrim:color-mix(in srgb,#000000 72%,transparent); --drop:0 24px 48px -16px color-mix(in srgb,#000000 85%,transparent);
  --i-plus:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M3 12h17M14.5 6.5L20 12l-5.5 5.5'/%3E%3C/svg%3E");
  --i-upload:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7.5 8.5L12 4l4.5 4.5M4 14v6h16v-6'/%3E%3C/svg%3E");
  --i-phone:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M5 3.5h4l2 5-2.6 1.6a11 11 0 0 0 5.5 5.5L15.5 13l5 2v4a1.5 1.5 0 0 1-1.5 1.5A16.5 16.5 0 0 1 3.5 5 1.5 1.5 0 0 1 5 3.5z'/%3E%3C/svg%3E");
  --i-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-factory:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M3 21V10.5l5 3v-3l5 3v-3l5 3V3.5h3V21zM7 17.5h2M11.5 17.5h2M16 17.5h2'/%3E%3C/svg%3E");
  --i-search:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5.5 5.5'/%3E%3C/svg%3E");
  --i-sheet:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4zM4 9.5h16M4 15h16M10 4v16'/%3E%3C/svg%3E");
  color-scheme:dark;
}

@media screen {
:root[data-theme="noir"] {
  & body {background:var(--bg);color:var(--fg);overflow-x:clip}
  & ::selection {background:var(--accent);color:var(--cta-ink)}
  & {scrollbar-color:var(--line-hi) var(--bg);overflow-x:clip}
  & :focus-visible {outline:2px solid var(--accent)!important;outline-offset:3px}

  /* ---------- Preview toolbar and site header ---------- */
  & .design-switch {background:var(--bg);border-bottom-color:var(--line)}
  & .theme-option[aria-pressed="true"] {background:var(--surface-2);border-color:var(--accent)}
  & .theme-option[data-theme="noir"] i {background:linear-gradient(90deg,var(--bg) 50%,var(--accent) 50%);border-color:var(--line-hi)}
  & header.site.hx {background:var(--bg);border-bottom-color:var(--line)}
  & .hx .hx-kp {background:var(--cta);border-color:var(--cta);color:var(--cta-ink)}
  & .hx .hx-kp:hover {background:var(--cta-hover)}
  & .hx-panel {background:var(--surface);border-color:var(--line);color:var(--fg)}

  /* ---------- Shared type ---------- */
  & .crumbs ol {font:500 12px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)}
  & .crumbs li + li::before {content:"/";color:var(--line-hi)}
  & .crumbs [aria-current="page"] {color:var(--fg-2)}
  & :is(.thesis,.hd .thesis,#konfigurator .head2 .thesis) {
    text-wrap:balance;
    font-family:var(--display);font-weight:800;text-transform:uppercase;letter-spacing:0;line-height:1.02;
    font-size:clamp(34px,4.2vw,64px);max-width:22ch;color:var(--metal-2);overflow-wrap:break-word;min-width:0;
    background:var(--metal);background-size:100% 1lh;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  }
  & .thesis em {display:block;margin-top:16px;font:500 clamp(16px,1.4vw,20px)/1.4 var(--sans);letter-spacing:-.01em;text-transform:none;color:var(--fg-2);-webkit-text-fill-color:currentColor;background:none}
  & .lede {color:var(--fg-2)}
  & .slide {background:var(--bg);border-bottom-color:var(--line)}
  & .slide.s-ink {background:var(--bg)}
  & :is(.sheet,.tile) {background:var(--glass);border-color:var(--line);box-shadow:var(--glass-ring)}
  & .sheet-tag {font:500 12px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)}

  /* ---------- Buttons: one gold fill for the request path, glass outline for the rest ---------- */
  & .btn {border-radius:8px;transition:background-color .15s ease-out,border-color .15s ease-out,color .15s ease-out}
  & :is(.btn-cta,#kf-add) {background:var(--cta);border:1px solid var(--cta);color:var(--cta-ink);font-weight:700}
  & :is(.btn-cta,#kf-add):hover {background:var(--cta-hover);border-color:var(--cta-hover);color:var(--cta-ink)}
  & :is(.btn-cta,#kf-add):active {transform:translateY(1px)}
  & .btn-o {background:var(--glass);border:1px solid var(--field-edge);color:var(--fg);box-shadow:var(--glass-ring)}
  & .btn-o:hover {border-color:var(--metal-3);color:var(--white);background:var(--surface-2)}
  & .btn:disabled {opacity:.55;cursor:not-allowed}
  & .btn-y:not(#kf-add):not(.btn-cta) {border-color:var(--accent);color:var(--accent);background:transparent}
  & .link-y {color:var(--accent)}

  /* ---------- Hero: metal caps headline, the door on a graphite arch, glass figures ---------- */
  & .hero.kfh {padding-top:24px;padding-bottom:64px}
  /* The intro dissolves into the hero grid: head, line and actions on the left, the door on the right,
     the four capabilities as one ruled row (ref1 "capabilities"), the catalogue figures on one glass panel. */
  & .hero.kfh .body {container-type:inline-size;width:100%;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);grid-template-areas:"h1 fig" "sub fig" "cta fig" "pros pros" "kpi kpi";grid-template-rows:auto auto 1fr auto auto;gap:0 64px;align-items:start}
  & .kfh .intro {display:contents}
  & .kfh h1 {grid-area:h1}
  & .kfh .sub {grid-area:sub}
  & .kfh .cta {grid-area:cta;align-self:start}
  & .kfh .pros {grid-area:pros}
  & .kfh .hero-door {grid-area:fig;align-self:start;margin-top:8px}
  & .kfh .kfh-kpi {grid-area:kpi}
  & .kfh h1 {
    text-wrap:balance;max-width:none;margin:0;font-family:var(--display);font-weight:800;text-transform:uppercase;letter-spacing:-.005em;line-height:1.02;
    font-size:clamp(38px,7.1cqi,100px);overflow-wrap:break-word;min-width:0;color:var(--metal-2);
    background:var(--metal);background-size:100% 1lh;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  }
  & .kfh h1 em {display:block;margin-top:20px;max-width:34ch;font:500 clamp(17px,1.5vw,22px)/1.4 var(--sans);letter-spacing:-.01em;text-transform:none;color:var(--fg-2);-webkit-text-fill-color:currentColor;background:none}
  & .kfh .sub {max-width:60ch;margin-top:24px;font-size:16px;line-height:1.65;font-weight:450;color:var(--fg-2)}
  & .kfh .cta {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:28px}
  & .kfh .cta .btn {min-height:52px;padding-inline:24px;font-size:14px;white-space:nowrap}
  & .kfh .cta .btn-cta {order:-1}
  & .kfh .cta small {font:400 12px/1.6 var(--sans);letter-spacing:0;color:var(--muted);max-width:62ch;margin-top:4px}
  & .kfh .pros {width:100%;max-width:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 32px;margin:56px 0 0;padding:0;border-top:1px solid var(--line)}
  & .kfh .pros li {display:grid;grid-template-columns:24px minmax(0,1fr);gap:16px;align-items:start;padding:16px 0;margin:0;border-bottom:1px solid var(--line);font:400 13px/1.55 var(--sans);color:var(--fg-2)}
  & .kfh .pros li::before {content:"";position:static;width:22px;height:22px;background:var(--metal-2);-webkit-mask:var(--i-cube) center/contain no-repeat;mask:var(--i-cube) center/contain no-repeat;border:0;transform:none}
  & .kfh .pros li:nth-child(2)::before {-webkit-mask-image:var(--i-shield);mask-image:var(--i-shield)}
  & .kfh .pros li:nth-child(3)::before {-webkit-mask-image:var(--i-qr);mask-image:var(--i-qr)}
  & .kfh .pros li:nth-child(4)::before {-webkit-mask-image:var(--i-sheet);mask-image:var(--i-sheet)}

  & .hero-door {background:linear-gradient(180deg,var(--surface-2),var(--bg) 92%);border:1px solid var(--line);box-shadow:var(--glass-ring);border-radius:220px 220px 16px 16px;isolation:isolate}
  & .hero-door::before {left:7%;right:7%;top:5%;bottom:auto;aspect-ratio:1;border:1px solid var(--line-hi);border-radius:50%;z-index:0}
  & .hero-door::after {height:15%;background:linear-gradient(180deg,var(--stage-floor),var(--bg));border-top:1px solid var(--line)}
  & .hero-door-image {filter:drop-shadow(18px 16px 14px var(--inset))}
  & .hero-door figcaption {font:500 12px/1.5 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)}
  & .hero-door figcaption b {color:var(--fg-2);font-weight:600}
  & .hero-door figcaption span {opacity:1}

  & .kfh .kfh-kpi {margin-top:28px;border:1px solid var(--line);border-radius:16px;background:var(--glass);box-shadow:var(--glass-ring);overflow:hidden}
  & .kfh-kpi .tile,& .kfh-kpi .tile.yt {position:relative;padding:28px 28px 24px;background:none;box-shadow:none}
  & .kfh-kpi .tile:first-of-type {padding-left:28px}
  & .kfh-kpi .tile+.tile {border-left:1px solid var(--line)}
  & .kfh-kpi .tile::before {content:"";display:block;position:static;inset:auto;z-index:auto;opacity:1;background-image:none;width:24px;height:24px;margin-bottom:16px;background:var(--metal-2);-webkit-mask:var(--i-door) center/contain no-repeat;mask:var(--i-door) center/contain no-repeat}
  & .kfh-kpi .tile:nth-of-type(2)::before {-webkit-mask-image:var(--i-drop);mask-image:var(--i-drop)}
  & .kfh-kpi .tile:nth-of-type(3)::before {-webkit-mask-image:var(--i-layers);mask-image:var(--i-layers)}
  & .kfh-kpi .tile:nth-of-type(4)::before {-webkit-mask-image:var(--i-mill);mask-image:var(--i-mill)}
  & .kfh-kpi .lbl {font:600 13px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--fg)}
  & .kfh-kpi .num {margin:8px 0 12px;font-family:var(--display);font-weight:800;font-size:clamp(44px,4.4vw,68px);line-height:1;letter-spacing:0;font-variant-numeric:lining-nums;color:var(--metal-2);background:var(--metal);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
  & .kfh-kpi .num small {font:500 12px/1.4 var(--sans);color:var(--muted);-webkit-text-fill-color:currentColor;margin-top:8px}
  & .kfh-kpi p {font-size:12px;line-height:1.65;color:var(--muted)}

  /* ---------- Configurator section ---------- */
  & #konfigurator .head2 .lede {color:var(--fg-2)}
  & #konfigurator .kf-tz-top {background:var(--glass);border:1px solid var(--line);box-shadow:var(--glass-ring);border-radius:12px}
  & #konfigurator .kf-tz-top span {color:var(--fg-2)}

  & #kf.studio-kf {background:var(--glass);border:1px solid var(--line-hi);border-radius:20px;box-shadow:var(--glass-ring)}

  /* Numbered process (ref1): 01 to 07 in mono, hairline below, gold for the current step. */
  & #kf.studio-kf .kf-track {background:var(--glass-top);border-bottom-color:var(--line)}
  & #kf.studio-kf .kf-tr-l {counter-reset:v6step}
  & #kf.studio-kf .kf-tr-l>li {counter-increment:v6step}
  & .studio-step-number {width:auto;height:auto;min-width:22px;border:0;border-radius:0;background:none!important;font-size:0;justify-content:flex-start}
  & .studio-step-number::before {content:counter(v6step,decimal-leading-zero);font:500 12px/1 var(--mono);letter-spacing:0;color:var(--muted)}
  & #kf.studio-kf .kf-tr-b b {font:500 13px/1.4 var(--sans);color:var(--muted)}
  & #kf.studio-kf .kf-tr-b:not(:disabled):hover b {color:var(--fg)}
  & #kf.studio-kf .kf-tr-b[data-s="v"]:not([aria-current="step"]) b,& #kf.studio-kf .kf-tr-b[data-s="v"]:not([aria-current="step"]) .studio-step-number::before {color:var(--fg-2)}
  & #kf.studio-kf .kf-tr-b[aria-current="step"] b {color:var(--white);font-weight:700}
  & #kf.studio-kf .kf-tr-b[aria-current="step"] .studio-step-number::before {color:var(--accent)}
  & #kf.studio-kf .kf-tr-b[aria-current="step"]::after {height:2px;background:var(--accent)}
  & #kf.studio-kf #kf-track [data-st]:disabled {opacity:1;color:var(--muted);cursor:not-allowed}
  & #kf.studio-kf #kf-track [data-st]:disabled b {color:var(--muted)}

  /* Preview column: graphite stage, glass tools. The door drawing keeps its own colours. */
  & #kf.studio-kf .kf-stage {background:linear-gradient(180deg,var(--surface-2),var(--studio-stage));border-right-color:var(--line)}
  & #kf.studio-kf :is(.kf-bar,.studio-side-switch) {background:var(--inset);border:1px solid var(--line)}
  & #kf.studio-kf :is(.kf-bar button,.studio-side-switch button) {color:var(--muted)}
  & #kf.studio-kf :is(.kf-bar button,.studio-side-switch button)[aria-pressed="true"] {background:var(--surface-3);color:var(--white);box-shadow:var(--glass-ring)}
  & #kf.studio-kf :is(.kf-hist6 .btn,.kf-tb) {background:var(--surface-2);border:1px solid var(--line);color:var(--fg-2)}
  & #kf.studio-kf :is(.kf-hist6 .btn,.kf-tb):hover:not(:disabled) {border-color:var(--line-hi);color:var(--white)}
  & .studio-zoom {background:var(--surface-3);color:var(--fg);border:1px solid var(--line)}
  & .studio-view-note {color:var(--muted);font-size:11px}

  /* Settings column */
  & #kf.studio-kf .kf-steps {background:var(--surface);scrollbar-color:var(--line-hi) transparent}
  & #kf.studio-kf .assembly-progress {background:var(--surface);border-bottom-color:var(--line)}
  & #kf.studio-kf .assembly-progress-label {color:var(--fg-2)}
  & #kf.studio-kf .assembly-progress-label b {font:500 13px/1.5 var(--mono);color:var(--accent)}
  & #kf.studio-kf .assembly-progress progress {height:3px;background:var(--surface-3)}
  & #kf.studio-kf .assembly-progress progress::-webkit-progress-bar {background:var(--surface-3);border-radius:2px}
  & #kf.studio-kf .assembly-progress progress::-webkit-progress-value {background:var(--accent);border-radius:2px}
  & #kf.studio-kf .assembly-progress progress::-moz-progress-bar {background:var(--accent)}
  & #kf.studio-kf .assembly-progress p {color:var(--muted)}
  & #kf.studio-kf .flow-title {
    font-family:var(--display);font-weight:800;text-transform:uppercase;letter-spacing:0;line-height:1.02;font-size:clamp(30px,2.6vw,40px);
    color:var(--metal-2);background:var(--metal);background-size:100% 1lh;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  }
  & #kf.studio-kf .flow-back {color:var(--muted)}
  & #kf.studio-kf .flow-back:hover {color:var(--white)}
  & #kf.studio-kf #kf-steps .kf-fs>legend {color:var(--fg);font-weight:650}
  & #kf.studio-kf .kf-q {border-color:var(--line-hi);color:var(--muted);background:transparent}
  & .studio-control-note,& #kf.studio-kf #kf-steps .kf-note {color:var(--muted)}

  /* Segmented fields: recessed track, raised graphite chip for the choice. */
  & #kf.studio-kf #kf-steps :is(.studio-choice-set,.studio-binary .kf-opts,.kf-mbar),& #kf.studio-kf .studio-thickness.is-editable #kf-lts {background:var(--inset);border:1px solid var(--line)}
  & #kf.studio-kf #kf-steps .studio-choice-set .kf-o:has(input:checked),& #kf.studio-kf #kf-steps .kf-mbar button[aria-pressed="true"] {background:var(--surface-3);box-shadow:var(--glass-ring),inset 0 -2px 0 0 var(--accent)}
  & #kf.studio-kf #kf-steps .studio-binary .kf-opts::before,& #kf.studio-kf .studio-thickness.is-editable #kf-lts::before {background:var(--surface-3);box-shadow:var(--glass-ring),inset 0 -2px 0 0 var(--accent)}
  & #kf.studio-kf #kf-steps :is(.studio-choice-set,.studio-binary,.studio-thickness) .kf-o b {color:var(--muted)}
  & #kf.studio-kf #kf-steps :is(.studio-choice-set,.studio-binary,.studio-thickness) .kf-o:has(input:checked) b,
  & #kf.studio-kf #kf-steps :is(.studio-choice-set,.studio-binary,.studio-thickness) .kf-o:hover:not(:has(input:disabled)) b {color:var(--white)}
  & #kf.studio-kf #kf-steps .kf-mbar button {color:var(--muted)}

  /* Option cards (catalogues, models, hardware): glass tiles, gold edge when chosen. */
  & #kf.studio-kf #kf-steps .kf-o:not(.studio-choice-set .kf-o):not(.studio-binary .kf-o):not(.studio-thickness .kf-o):not(.studio-toggle-list .kf-o) {background:var(--glass);border-color:var(--line);box-shadow:var(--glass-ring)}
  & #kf.studio-kf #kf-steps .kf-o:not(.studio-choice-set .kf-o):not(.studio-binary .kf-o):not(.studio-thickness .kf-o):not(.studio-toggle-list .kf-o):hover {border-color:var(--line-hi)}
  & #kf.studio-kf #kf-steps .kf-o:not(.studio-choice-set .kf-o):not(.studio-binary .kf-o):not(.studio-thickness .kf-o):not(.studio-toggle-list .kf-o):has(input:checked) {border-color:var(--accent);background:var(--studio-choice)}
  & #kf.studio-kf #kf-steps .kf-o>input {accent-color:var(--accent)}
  & #kf.studio-kf #kf-steps .kf-o small {color:var(--muted)}
  & #kf.studio-kf #kf-steps .studio-toggle-list .kf-o>input:checked {background:var(--accent);border-color:var(--accent)}
  & #kf.studio-kf #kf-steps .studio-toggle-list .kf-o>input:checked::before {background:var(--cta-ink)}
  & #kf.studio-kf #kf-steps .kf-pane :is(input[type="text"],input[type="number"],input[type="search"],select,textarea) {background:var(--inset);border:1px solid var(--field-edge);color:var(--fg)}
  & #kf.studio-kf #kf-steps :is(.kf-sw,.kf-fl) {background:var(--surface-2)}
  & #kf.studio-kf .kf-gl {font:600 13px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--fg-2)}
  & #kf.studio-kf .flow-row {color:var(--fg)}
  & #kf.studio-kf .flow-row:hover {background:var(--surface-2)}

  /* Pinned action bar: dark glass strip, one gold action. */
  & #kf.studio-kf .studio-actions {background:linear-gradient(180deg,var(--glass-top),var(--glass-bot));border-top:1px solid var(--line-hi);box-shadow:var(--glass-ring)}
  & #kf.studio-kf .studio-actions .studio-prev {background:transparent;border:1px solid var(--line);color:var(--fg-2)}
  & #kf.studio-kf .studio-actions .studio-prev:hover:not(:disabled) {border-color:var(--line-hi);color:var(--white)}
  & #kf.studio-kf .studio-actions .studio-prev:disabled {color:var(--muted);border-color:var(--line)}
  & #kf.studio-kf .studio-actions .flow-continue:not(:disabled) {background:var(--cta);border-color:var(--cta);color:var(--cta-ink);font-weight:700}
  & #kf.studio-kf .studio-actions .flow-continue:not(:disabled):hover {background:var(--cta-hover);border-color:var(--cta-hover)}
  & #kf.studio-kf .studio-actions .flow-continue:not(:disabled):active {transform:translateY(1px)}
  & #kf.studio-kf .studio-actions:has(.flow-local-actions:not([hidden])) .studio-next {background:transparent;border-color:var(--line);color:var(--muted)}
  & #kf.studio-kf :is(.studio-next,.flow-done,.flow-continue):disabled {background:var(--surface-2);color:var(--muted);border-color:var(--line)}
  & #kf.studio-kf .assembly-field-error {color:var(--fg)}

  /* ---------- Summary and "Add to request" ---------- */
  & .kf-sl,& .kf-sl.kf-side {background:var(--glass);border:1px solid var(--line);box-shadow:var(--glass-ring);border-radius:16px}
  & .kf-sl.kf-side {border-color:var(--line-hi)}
  & .kf-sl>.sheet-tag {color:var(--fg-2);font-weight:600}
  & .kf-code {background:var(--inset);border:1px solid var(--line);border-radius:10px}
  & .kf-code span {font:500 12px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)}
  & .kf-code b {font-family:var(--mono);color:var(--fg)}
  & .kf-dl dt {font:500 12px/1.45 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)}
  & .kf-dl dd {color:var(--fg)}
  & .kf-dl>div,& .kf-dl dt {border-color:var(--line)}
  & :is(#kf-sum,#kf-ready) :is(input:not([type="checkbox"]):not([type="radio"])) {background:var(--inset);border:1px solid var(--field-edge);color:var(--fg)}
  & :is(#kf-sum,#kf-ready) :is(input:not([type="checkbox"]):not([type="radio"])):focus {border-color:var(--accent)}
  & .kf-sl.kf-side #kf-add {min-height:52px;font-size:14px}
  & .kf-sl.kf-side .kf-acts .kf-lnk {color:var(--muted)}
  & :is(#kf-sum,#kf-ready) .hint,& .kf-sum .cap {color:var(--muted)}
  & .kf-price b {color:var(--accent)}
  & .kf-sl.kf-side .kf-acts {grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}
  @media (max-width:600px) {& .kf-sl.kf-side .kf-acts {grid-template-columns:repeat(2,minmax(0,1fr))} & .kf-sl.kf-side .kf-acts .btn {font-size:12px;padding-inline:8px}}
  & .kf-sl.kf-side .kf-acts .btn {font-size:13px;white-space:nowrap}
  & :is(.kf-docs,.kf-price,.kf-sum .cap) {font-family:var(--sans);letter-spacing:0}

  /* ---------- Rest of the page: inherits palette now, recomposed in stage 2 ---------- */
  & .kp input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),& .kp textarea,& .kp select {background:var(--inset);border-color:var(--field-edge)}
  & .tbl thead th {background:var(--surface-2)}
  & footer {background:var(--bg);color:var(--fg-2)}

  @media (max-width:1250px) {
    & .kfh .pros {grid-template-columns:repeat(2,minmax(0,1fr))}
  }
  @media (max-width:800px) {
    & .hero.kfh .body {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 24px}
    & .kfh h1 {font-size:clamp(34px,6cqi,64px)}
    & .kfh-kpi .tile:nth-of-type(3) {border-left:0}
    & .hero-door {border-radius:160px 160px 14px 14px}
  }
  @media (max-width:600px) {
    & .hero.kfh {padding-bottom:44px}
    & .hero.kfh .body {grid-template-columns:minmax(0,1fr);grid-template-areas:"h1" "sub" "cta" "fig" "pros" "kpi";grid-template-rows:auto}
    & .kfh .hero-door {margin-top:36px}
    & .kfh .pros {grid-template-columns:minmax(0,1fr)}
    & .kfh h1 {font-size:clamp(36px,12.6cqi,64px)}
    & .kfh h1 em {font-size:17px;margin-top:16px}
    & .kfh .sub {font-size:15px;line-height:1.6;margin-top:20px}
    & .kfh .cta {margin-top:24px}
    & .kfh .cta .btn {width:100%}
    & .kfh .pros {margin-top:28px}
    & .kfh .pros li {font-size:13px}
    & .hero-door {border-radius:150px 150px 14px 14px}
    & .kfh .kfh-kpi {margin-top:8px}
    & .kfh-kpi .tile,& .kfh-kpi .tile.yt,& .kfh-kpi .tile:first-of-type {padding:20px 16px!important}
    & .kfh-kpi .tile::before {width:22px;height:22px;margin-bottom:12px}
    & .kfh-kpi .lbl {font-size:12px}
    & .kfh-kpi .num {font-size:44px}
    & .kfh-kpi p {font-size:12px}
    & :is(.thesis,.hd .thesis,#konfigurator .head2 .thesis) {font-size:clamp(32px,10vw,44px);line-height:1.02}
    & .thesis em {font-size:16px}
    & .sheet-tag {font-size:12px}
    & .studio-step-number::before {font-size:11px}
    & #kf.studio-kf .kf-tr-b b {font-size:9px}
    & #kf.studio-kf .flow-title {font-size:30px}
  }
  @media (max-width:360px) {
    /* Seven labels cannot share 320px without touching: numbers stay, the stage title names the step; each button keeps its aria-label. */
    & #kf.studio-kf .kf-tr-b b {display:none}
    & .studio-step-number::before {font-size:13px}
  }
}
}
/* =====================================================================================
   STAGE 2 (2026-11-26): the same system carried over the whole page.
   Gold stays on the request path, the current step/page, a chosen option and focus.
   Errors get their own token (--danger); nothing else gains a colour.
   ===================================================================================== */
@media screen {
:root[data-theme="noir"] {

  /* ---------- Shared: section rhythm, quiet links, secondary buttons ---------- */
  & .slide:not(.hero) {padding-block:clamp(64px,8vw,112px)}
  & .link-y,& #konfigurator a.link-y {color:var(--fg);text-decoration:underline;text-decoration-color:var(--line-hi);text-decoration-thickness:1px;text-underline-offset:6px;transition:color .15s ease-out,text-decoration-color .15s ease-out}
  & .link-y:hover {color:var(--white);text-decoration-color:var(--metal-3)}
  & .btn.btn-y:not(#kf-add):not(.btn-cta):not(#kf-q-add) {background:var(--glass);border:1px solid var(--field-edge);color:var(--fg);box-shadow:var(--glass-ring)}
  & .btn.btn-y:not(#kf-add):not(.btn-cta):not(#kf-q-add):hover {background:var(--surface-3);border-color:var(--metal-3);color:var(--white)}
  & #kf-q-add.btn-y {background:transparent;border:1px solid var(--accent);color:var(--accent)}
  & #kf-q-add.btn-y:hover {background:var(--y-06)}
  & .btn-o:active,& .btn.btn-y:active {transform:translateY(1px)}
  & :is(.kf-lnk,#kf-mood-clear,#kf-mood-stu) {color:var(--fg-2);text-decoration:underline;text-decoration-color:var(--line-hi);text-underline-offset:5px}
  & :is(.kf-lnk,#kf-mood-clear,#kf-mood-stu):hover {color:var(--white)}
  & .kf-gl {font:600 13px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--fg-2)}
  & .kf-note {font-family:var(--sans);letter-spacing:0;color:var(--muted)}
  & a.skip {font:600 14px/1.3 var(--sans);letter-spacing:0;text-transform:none;background:var(--cta);color:var(--cta-ink)}
  & .toast {background:var(--surface-3);color:var(--fg);border:1px solid var(--line-hi);border-radius:10px;font:600 14px/1.4 var(--sans)}
  & .err {font:500 13px/1.45 var(--sans);letter-spacing:0;color:var(--danger)}

  /* ---------- Header: dark glass strip, hairline instead of the gold rule ---------- */
  & header.hx .in {background:color-mix(in srgb,var(--bg) 90%,transparent);border-bottom:1px solid var(--line)}
  & .hx-a,& .hx-tg {font:600 14px/1 var(--sans);color:var(--fg-2);border-bottom-width:2px}
  & .hx-a:hover,& .hx-tg:hover,& .hx-tg[aria-expanded="true"] {color:var(--white)}
  & .hx-a:hover {border-bottom-color:var(--line-hi)}
  & .hx-a[aria-current="page"] {color:var(--white);border-bottom-color:var(--accent)}
  & .hx-phone {font:600 14px/1 var(--sans);font-variant-numeric:tabular-nums;color:var(--fg)}
  & .hx-phone:hover {color:var(--white)}
  & header.hx .hx-lk {color:var(--fg-2)}
  & header.hx .hx-lk:hover {color:var(--white)}
  & .hx-panel {padding:8px 0 0;background:var(--glass);border:1px solid var(--line-hi);border-radius:14px;box-shadow:var(--glass-ring),var(--drop);overflow:hidden}
  & .hx-panel li a {padding:12px 20px;transition:background-color .15s ease-out}
  & .hx-panel li a b {font:600 14px/1.35 var(--sans);color:var(--fg)}
  & .hx-panel li a small {font:400 12px/1.4 var(--sans);letter-spacing:0;color:var(--muted)}
  & .hx-panel li a:hover,& .hx-panel li a:focus-visible {background:var(--surface-3)}
  & .hx-panel li a:hover b,& .hx-panel li a:focus-visible b {color:var(--white)}
  & .hx-cap {padding:8px 20px 4px;font:600 12px/1.3 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)}
  & .hx-all {margin-top:8px;font:600 13px/1 var(--sans);letter-spacing:0;text-transform:none;color:var(--fg-2);border-top:1px solid var(--line)}
  & .hx-all:hover {background:var(--surface-3);color:var(--white)}
  & .burger {border:1px solid var(--field-edge);border-radius:10px;background:var(--glass)}
  & .burger i {background:var(--fg)}
  & .burger:hover {border-color:var(--metal-3)}

  /* Phone menu: one glass sheet, ruled rows, gold only for the current page and the request. */
  & .mnav.hx-m {background:linear-gradient(180deg,var(--glass-top),var(--bg));border-top:1px solid var(--line);color:var(--fg)}
  & .mnav.hx-m nav>ul>li>a {font:600 17px/1.3 var(--sans);color:var(--fg);border-bottom:1px solid var(--line)}
  & .mnav.hx-m nav>ul>li>a::after {content:none}
  & .hx-m .mx-acc>button {font:600 17px/1.3 var(--sans);letter-spacing:0;text-transform:none;color:var(--fg);border-bottom:1px solid var(--line)}
  & .hx-m .mx-acc>button::after {content:"";width:18px;height:18px;background:var(--fg-2);-webkit-mask:var(--i-plus) center/contain no-repeat;mask:var(--i-plus) center/contain no-repeat;transition:transform .2s ease-out}
  & .hx-m .mx-acc>button[aria-expanded="true"] {color:var(--white)}
  & .hx-m .mx-acc ul {border-left:1px solid var(--line-hi);border-bottom:1px solid var(--line)}
  & .hx-m .mx-acc li a {font:500 15px/1.35 var(--sans);color:var(--fg-2)}
  & .hx-m .mx-acc li a:hover {color:var(--white)}
  & .hx-m .mx-acc li a.mx-all {font:600 15px/1.3 var(--sans);letter-spacing:0;text-transform:none;color:var(--fg)}
  & .hx-m .mx-acc li a.mx-all::after {content:none}
  & .hx-m li a[aria-current],& .mnav.hx-m nav>ul>li>a[aria-current] {color:var(--accent)}
  & .mnav .m-phone {font:700 20px/1.2 var(--sans);font-variant-numeric:tabular-nums;color:var(--white)}
  & .mnav .m-phone small {font:400 12px/1.3 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)}
  & .mnav #mnav-kp {min-height:52px;border-radius:8px}

  /* Phone bar: dark glass, request in gold, call as a quiet outline with a line icon. */
  & .mbar {gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));background:color-mix(in srgb,var(--bg) 92%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--line-hi)}
  & .mbar a {gap:8px;min-height:48px;border:1px solid var(--field-edge);border-radius:10px;font:650 15px/1 var(--sans);color:var(--fg);background:var(--glass)}
  & .mbar a:last-child {border-right:1px solid var(--field-edge)}
  & .mbar a:last-child::before {content:"";width:18px;height:18px;background:currentColor;-webkit-mask:var(--i-phone) center/contain no-repeat;mask:var(--i-phone) center/contain no-repeat}
  & .mbar a.btn-cta {background:var(--cta);border-color:var(--cta);color:var(--cta-ink)}
  & .mbar a.btn-cta:hover {background:var(--cta-hover)}
  & .mbar a.btn-cta:focus-visible {outline:2px solid var(--white)!important;outline-offset:2px;box-shadow:none}

  /* ---------- Limits table: a glass sheet, ruled rows, body-face heads ---------- */
  & #ogranicheniya .head2 {align-items:end}
  & #ogranicheniya .sheet.pad {margin-top:40px;padding:24px 28px 28px;border-radius:16px;border-color:var(--line-hi)}
  & #ogranicheniya .sheet-tag {position:static;display:block;margin:0 0 8px;font:600 13px/1.4 var(--sans);color:var(--fg-2)}
  & .tbl {font:400 13px/1.6 var(--sans);letter-spacing:0}
  & .tbl thead th {background:transparent;padding:16px;font:600 12px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted);border-bottom:1px solid var(--line-hi)}
  & .tbl tbody :is(th,td) {padding:20px 16px;color:var(--fg-2);border-bottom:1px solid var(--line);transition:background-color .15s ease-out}
  & .tbl tbody tr:last-child>* {border-bottom:0}
  & .tbl tbody th {font:600 15px/1.4 var(--sans);color:var(--fg)}
  & .tbl tbody tr:hover>* {background:color-mix(in srgb,var(--white) 2.5%,transparent)}
  & .tbl small {display:block;margin-top:8px;font:400 12px/1.55 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)}
  & .tbl b {color:var(--fg);font-weight:650}
  & #ogranicheniya .sheet>.cap {margin-top:8px!important;padding-top:20px;border-top:1px solid var(--line-hi);font:400 13px/1.65 var(--sans);letter-spacing:0;color:var(--fg-2);max-width:none}
  & #ogranicheniya .sheet>.cap b {color:var(--fg);font-weight:650}

  /* ---------- Order process (ref1 "process"): one glass band, four numbered columns ---------- */
  & #dalshe .kf-flow {gap:0;margin-top:48px;padding:0;background:var(--glass);border:1px solid var(--line);border-radius:16px;box-shadow:var(--glass-ring);overflow:hidden;list-style:none}
  & #dalshe .kf-flow li {position:relative;display:flex;flex-direction:column;margin:0;padding:28px 28px 32px;border:0;border-radius:0;background:none}
  & #dalshe .kf-flow li+li {border-left:1px solid var(--line)}
  & #dalshe .kf-flow .n {margin:0 0 20px;font:500 12px/1 var(--mono);letter-spacing:0;color:var(--muted);-webkit-text-stroke:0}
  & #dalshe .kf-flow h3 {margin:0 0 12px;font-family:var(--display);font-weight:800;font-size:clamp(22px,1.9vw,28px);line-height:1.05;letter-spacing:0;text-transform:uppercase;color:var(--fg);overflow-wrap:break-word;min-width:0}
  & #dalshe .kf-flow p {font:400 13px/1.65 var(--sans);color:var(--fg-2);max-width:40ch}
  /* line icon at the foot of each column; the next-step arrow sits on the number row */
  & #dalshe .kf-flow li::after {content:"";order:9;display:block;width:28px;height:28px;margin-top:auto;padding-top:28px;box-sizing:content-box;background:var(--metal-2);-webkit-mask:var(--i-door) bottom left/28px 28px no-repeat;mask:var(--i-door) bottom left/28px 28px no-repeat}
  & #dalshe .kf-flow li:nth-child(2)::after {-webkit-mask-image:var(--i-sheet);mask-image:var(--i-sheet)}
  & #dalshe .kf-flow li:nth-child(3)::after {-webkit-mask-image:var(--i-drop);mask-image:var(--i-drop)}
  & #dalshe .kf-flow li:nth-child(4)::after {-webkit-mask-image:var(--i-factory);mask-image:var(--i-factory)}
  & #dalshe .kf-flow li:not(:last-child)::before {content:"";position:absolute;top:24px;right:24px;width:20px;height:20px;background:var(--muted);-webkit-mask:var(--i-arrow) center/contain no-repeat;mask:var(--i-arrow) center/contain no-repeat}

  /* ---------- FAQ: ruled list on a glass sheet; the open item is white, not gold ---------- */
  & #voprosy .faq-wrap {align-items:start}
  & #voprosy .faq-side {display:flex;flex-direction:column;align-items:flex-start;gap:20px}
  & #voprosy .faq-side .lede {margin:0}
  & #voprosy .faq-side .btn-cta {min-height:52px;padding-inline:24px;margin-top:8px;width:auto;align-self:flex-start}
  & #voprosy .faq {padding:4px 28px;background:var(--glass);border:1px solid var(--line);border-radius:16px;box-shadow:var(--glass-ring)}
  & #voprosy .faq details {border-bottom:1px solid var(--line)}
  & #voprosy .faq details:last-child {border-bottom:0}
  & #voprosy .faq summary {gap:20px;min-height:68px;padding:20px 0;font:600 16px/1.4 var(--sans);color:var(--fg);background:none}
  & #voprosy .faq summary::after {content:"";width:32px;height:32px;border:1px solid var(--line-hi);border-radius:50%;background:linear-gradient(var(--fg-2),var(--fg-2)) center/12px 1.5px no-repeat,linear-gradient(var(--fg-2),var(--fg-2)) center/1.5px 12px no-repeat;color:transparent;font-size:0;transition:transform .2s ease-out,border-color .15s ease-out}
  & #voprosy .faq summary:hover .qt,& #voprosy .faq details[open] summary,& #voprosy .faq details[open] summary .qt {color:var(--white)}
  & #voprosy .faq summary:hover::after {border-color:var(--metal-3)}
  & #voprosy .faq details[open] summary::after {transform:rotate(45deg);background-color:transparent;border-color:var(--metal-3)}
  & #voprosy .faq summary:focus-visible {outline-offset:-2px;border-radius:8px}
  & #voprosy .faq .a {padding:0 52px 24px 0}
  & #voprosy .faq .a p {font:400 14px/1.7 var(--sans);color:var(--fg-2);max-width:66ch}
  & #voprosy .faq .a a {color:var(--fg);text-decoration:underline;text-decoration-color:var(--line-hi);text-underline-offset:4px}
  & #voprosy .faq .a a:hover {color:var(--white);text-decoration-color:var(--metal-3)}
  @media (min-width:1025px) and (min-height:700px) {& #voprosy .faq-side {position:sticky;top:calc(var(--header-h) + 32px)}}

  /* ---------- Request (КП): contact card, link list, the form on a lit glass sheet ---------- */
  & #kp .intro .lede {color:var(--fg-2)}
  & #kp .intro .sub {font:400 15px/1.65 var(--sans);color:var(--fg-2)}
  & #kp .lead-mgr {display:flex;align-items:flex-start;gap:20px;margin-top:32px;padding:24px;background:var(--glass);border:1px solid var(--line);border-radius:16px;box-shadow:var(--glass-ring)}
  & #kp .lead-mgr>svg {width:56px;height:56px;flex:none;padding:12px;border:1px solid var(--line-hi);border-radius:50%;background:var(--inset);color:var(--metal-2)}
  & #kp .lead-mgr b {display:block;font:650 15px/1.4 var(--sans);color:var(--fg)}
  & #kp .lead-mgr span {display:block;margin-top:4px;font:400 13px/1.6 var(--sans);color:var(--muted)}
  & #kp .lead-mgr .contacts {display:flex;flex-wrap:wrap;gap:0 24px;margin-top:12px}
  & #kp .lead-mgr .contacts a {display:inline-flex;align-items:center;min-height:44px;font:600 15px/1.3 var(--sans);font-variant-numeric:tabular-nums;color:var(--fg);letter-spacing:0}
  & #kp .lead-mgr .contacts a:hover,& #kp .lead-mgr>div>a:hover {color:var(--white);text-decoration:underline;text-decoration-color:var(--metal-3);text-underline-offset:4px}
  & #kp .lead-mgr>div>a {display:inline-flex;align-items:center;min-height:44px;font:600 14px/1.3 var(--sans);color:var(--fg-2)}
  /* The three secondary links become ruled rows; the joining dots are text, so they collapse to zero size. */
  & #kp .links-sm {display:flex;flex-direction:column;align-items:stretch;width:100%;max-width:none;margin-top:28px;font-size:0;line-height:0;border-top:1px solid var(--line)}
  & #kp .links-sm a {display:flex;align-items:center;min-height:48px;padding:4px 0;font:500 14px/1.4 var(--sans);color:var(--fg-2);border-bottom:1px solid var(--line);text-decoration:none;transition:color .15s ease-out}
  & #kp .links-sm a:hover {color:var(--white)}

  & form.kp,& .kp-done {padding:36px 36px 32px;gap:24px 20px;background:var(--glass);border:1px solid var(--line-hi);border-radius:20px;box-shadow:var(--glass-ring)}
  & .kp>.sheet-tag,& .kp-done>.sheet-tag {position:static;grid-column:1/-1;font:600 13px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--fg-2)}
  & .kp .local-form-note {grid-column:1/-1;margin:0;padding:12px 16px;background:var(--inset);border:1px solid var(--line);border-radius:10px;font:400 13px/1.55 var(--sans);color:var(--muted)}
  & #kp .f>label,& #kp fieldset.f>legend {font:600 13px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--fg)}
  & .kp input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),& .kp textarea,& .kp select {min-height:52px;padding:12px 16px;background:var(--inset);border:1px solid var(--field-edge);border-radius:10px;font:400 15px/1.4 var(--sans);color:var(--fg);transition:border-color .15s ease-out,background-color .15s ease-out}
  & .kp input::placeholder,& .kp textarea::placeholder {color:var(--muted);opacity:1}
  & .kp :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select):hover {border-color:var(--metal-3)}
  & .kp :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select):focus {background:var(--bg)}
  & .kp .f input[aria-invalid="true"],& .kp .f textarea[aria-invalid="true"] {border-color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger);background-color:var(--danger-bg)}
  & .kp fieldset[aria-invalid="true"] .chips label {border-color:var(--danger)}
  & .kp .err:not(:empty) {margin-top:8px}
  & .kp .err:not(:empty)::before {content:"";display:inline-block;width:14px;height:14px;margin:0 8px -2px 0;background:currentColor;-webkit-mask:var(--i-plus) center/contain no-repeat;mask:var(--i-plus) center/contain no-repeat;transform:rotate(45deg)}
  & .kp .hint {margin-top:8px;font:400 12px/1.5 var(--sans);letter-spacing:0;color:var(--muted)}
  & .kp .chips {gap:8px}
  & .kp .chips label {display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:8px 16px;background:var(--inset);border:1px solid var(--field-edge);border-radius:10px;font:500 13px/1.3 var(--sans);color:var(--fg-2);cursor:pointer;transition:border-color .15s ease-out,color .15s ease-out,background-color .15s ease-out}
  & .kp .chips label:hover {border-color:var(--metal-3);color:var(--white)}
  & .kp .chips label:has(input:checked) {background:var(--surface-3);border-color:var(--accent);color:var(--white);box-shadow:var(--glass-ring)}
  & .kp .chips label:has(input:focus-visible) {outline:2px solid var(--accent);outline-offset:2px}
  & .kp .chips input,& .kp .agree input {accent-color:var(--accent);width:18px;height:18px;margin:0;flex:none}
  & .kp .upl {position:relative;min-height:88px;padding:20px 20px 20px 68px;background:var(--inset);border:1px dashed var(--field-edge);border-radius:12px;font:500 14px/1.45 var(--sans);color:var(--fg);transition:border-color .15s ease-out,background-color .15s ease-out}
  & .kp .upl::before {content:"";position:absolute;left:22px;top:22px;width:28px;height:28px;background:var(--metal-2);-webkit-mask:var(--i-upload) center/contain no-repeat;mask:var(--i-upload) center/contain no-repeat}
  & .kp .upl:hover {border-color:var(--metal-3)}
  & .kp .upl small {margin-top:8px;font:400 12px/1.55 var(--sans);letter-spacing:0;color:var(--muted)}
  & .kp .upl button {min-height:44px;padding:12px 20px;background:var(--glass);border:1px solid var(--field-edge);border-radius:8px;box-shadow:var(--glass-ring);font:600 13px/1 var(--sans);color:var(--fg)}
  & .kp .upl button:hover {border-color:var(--metal-3);color:var(--white);background:var(--surface-3)}
  & .kp .upl.drag {border-color:var(--accent);border-style:solid;background:var(--y-06)}
  & .kp .upl.invalid {border-color:var(--danger);background:var(--danger-bg);box-shadow:none}
  & .kp .flist li {padding:4px 4px 4px 16px;background:var(--inset);border:1px solid var(--line);border-radius:10px;font:500 13px/1.4 var(--sans);color:var(--fg)}
  & .kp .flist button {border:1px solid var(--field-edge);border-radius:8px;font:600 13px/1 var(--sans);color:var(--fg-2)}
  & .kp .flist button:hover {border-color:var(--metal-3);color:var(--white)}
  & .kp .pos-row {background:var(--inset);border:1px solid var(--line);border-radius:12px}
  & .kp .pos-row .pn {font:500 12px/1 var(--mono);letter-spacing:0;color:var(--muted)}
  & .kp .pos-row .del {font:600 12px/1 var(--sans);color:var(--muted)}
  & .kp .pos-row .del:hover {color:var(--white)}
  & .kp .pos-add {border:1px dashed var(--field-edge);border-radius:10px;font:600 14px/1 var(--sans);color:var(--fg)}
  & .kp .pos-add:hover:not([disabled]) {border-color:var(--metal-3);color:var(--white)}
  & .kp .agree {display:flex;align-items:flex-start;gap:12px;font:400 13px/1.55 var(--sans);color:var(--fg-2)}
  & .kp .agree a {color:var(--fg);text-decoration:underline;text-decoration-color:var(--line-hi);text-underline-offset:3px}
  & .kp .agree a:hover {color:var(--white);text-decoration-color:var(--metal-3)}
  & .kp .subm {padding-top:4px}
  & .kp .subm .btn-cta {min-height:56px;font-size:15px;border-radius:10px}
  & .kp .subm small {font:400 13px/1.5 var(--sans);color:var(--muted)}
  & .kp-done h3 {font-family:var(--display);font-weight:800;text-transform:uppercase;font-size:clamp(26px,2.4vw,36px);line-height:1.05;color:var(--fg)}
  & .kp-done h3 b {display:block;margin-top:8px;font-family:var(--mono);font-weight:500;font-size:.6em;text-transform:none;color:var(--fg-2)}
  & .kp-done dl {border-top:1px solid var(--line)}

  /* ---------- Footer: the link map on one glass panel, legal line below ---------- */
  & footer {padding:64px var(--gutter) 32px;background:var(--bg);border-top:1px solid var(--line);color:var(--fg-2)}
  & footer .f-grid {padding:40px;gap:32px;background:var(--glass);border:1px solid var(--line);border-radius:20px;box-shadow:var(--glass-ring)}
  & footer h4 {margin-bottom:16px;font:600 13px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--fg)}
  & footer li+li {margin-top:2px}
  & footer li a {display:inline-flex;align-items:center;min-height:32px;font:400 14px/1.45 var(--sans);color:var(--fg-2)}
  & footer a:hover {color:var(--white);text-decoration:underline;text-decoration-color:var(--metal-3);text-underline-offset:4px}
  & footer :is(p,.f-contacts) {font:400 13px/1.7 var(--sans);color:var(--muted)}
  & footer .f-contacts a {font:inherit;color:var(--fg)}
  & footer .f-contacts a.y {color:var(--accent);font-weight:650}
  & footer li a.y {color:var(--fg)}
  & footer .f-bot {margin-top:24px;padding-top:0;border-top:0;font:400 12px/1.7 var(--sans);color:var(--muted)}
  & footer .f-bot a {color:var(--fg-2)}

  /* ---------- Configurator, the remaining screens ---------- */
  /* Step overview at 100%: the heading joins the metal caps; confirmed rows are ticked in neutral, not gold. */
  & #kf.studio-kf #studio-heading {font-family:var(--display);font-weight:800;text-transform:uppercase;letter-spacing:0;line-height:1.02;font-size:clamp(30px,2.6vw,40px);color:var(--metal-2);background:var(--metal);background-size:100% 1lh;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;overflow-wrap:break-word;min-width:0}
  & #kf.studio-kf .assembly-confirmed>span::after {font:500 12px/1.5 var(--sans);color:var(--muted)}
  & #kf.studio-kf .assembly-confirmed>svg {color:var(--muted)}
  & #kf.studio-kf .flow-row {min-height:72px;padding:16px 8px;transition:background-color .15s ease-out}
  & #kf.studio-kf .flow-row:hover {background:var(--surface-2)}
  & #kf.studio-kf .flow-row:hover svg {color:var(--white)}
  & #kf.studio-kf .flow-row:active {background:var(--surface-3)}

  /* Catalogue tabs and search fields */
  & #kf.studio-kf #kf-steps input[type="search"] {background:var(--inset);border:1px solid var(--field-edge);border-radius:10px;min-height:48px}
  & #kf.studio-kf #kf-steps input[type="search"]:hover,& #kf.studio-kf #kf-steps .kf-pane :is(input[type="text"],input[type="number"],select,textarea):hover {border-color:var(--metal-3)}
  & #kf.studio-kf #kf-steps .kf-pane :is(input[type="text"],input[type="number"],input[type="search"],select,textarea):focus {background-color:var(--bg)}
  & #kf.studio-kf #kf-steps .kf-pane :is(input,textarea)::placeholder {color:var(--muted);opacity:1}
  & #kf.studio-kf #kf-steps .kf-pane input[aria-invalid="true"] {border-color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger);background:var(--danger-bg)}
  & #kf.studio-kf .assembly-field-error {color:var(--danger);font:500 13px/1.45 var(--sans)}
  & #kf.studio-kf #kf-steps :is(.kf-sw,.kf-fl,.kf-ml) {border-radius:8px;transition:border-color .15s ease-out}
  & #kf.studio-kf #kf-steps :is(.kf-sw,.kf-fl,.kf-ml):hover {border-color:var(--metal-3)}
  & #kf.studio-kf #kf-steps :is(.kf-sw,.kf-fl,.kf-ml):has(input:checked) {border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
  & #kf.studio-kf #kf-steps .kf-sw b {font-family:var(--mono);letter-spacing:0;color:var(--fg-2)}

  /* Preview tools: glass pop-overs for interior and light, glass bar for 3D. Swatches keep their real colours. */
  & #kf.studio-kf :is(.kf-inter.kf-pop,#dA-lt) {background:var(--glass);border:1px solid var(--line-hi);border-radius:14px;box-shadow:var(--glass-ring),var(--drop);color:var(--fg)}
  & #kf.studio-kf :is(.kf-inter,#dA-lt) :is(.kf-itb,button:not(.kf-isw)) {min-height:36px;background:var(--inset);border:1px solid var(--line);border-radius:8px;color:var(--fg-2);font:500 12px/1.4 var(--sans)}
  & #kf.studio-kf :is(.kf-inter,#dA-lt) :is(.kf-itb,button:not(.kf-isw)):hover {border-color:var(--metal-3);color:var(--white)}
  & #kf.studio-kf :is(.kf-inter,#dA-lt) :is(.kf-itb,button:not(.kf-isw))[aria-pressed="true"] {background:var(--surface-3);border-color:var(--accent);color:var(--white)}
  & #kf.studio-kf .kf-inter .kf-isw {border:1px solid var(--line-hi)}
  & #kf.studio-kf .kf-inter .kf-isw[aria-pressed="true"] {box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--accent)}
  & #kf.studio-kf :is(.kf-inter,#dA-lt) :is(p,.kf-pop-cap) {color:var(--muted)}
  & #kf.studio-kf .kf-inter .kf-irow>span,& #kf.studio-kf #dA-lt .kf-irow>span {color:var(--fg-2)}
  & #kf.studio-kf .kf-tb[aria-expanded="true"] {background:var(--surface-3);border-color:var(--line-hi);color:var(--white)}
  & #kf.studio-kf .kf-3d-bar {gap:8px}
  & #kf.studio-kf .kf-3d-bar .btn {background:color-mix(in srgb,var(--bg) 78%,transparent);border:1px solid var(--field-edge);border-radius:8px;color:var(--fg);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
  & #kf.studio-kf .kf-3d-bar .btn:hover {border-color:var(--metal-3);color:var(--white)}
  & #kf.studio-kf .kf-3d-bar .btn[aria-pressed="true"] {border-color:var(--accent)}
  & #kf.studio-kf .kf-3d-hint {color:var(--muted);font:400 12px/1.5 var(--sans)}
  & .studio-zoom:hover {border-color:var(--metal-3);color:var(--white)}
  & #kf.studio-kf .kfp-sw {min-height:32px;padding:8px 12px;background:color-mix(in srgb,var(--bg) 78%,transparent);border:1px solid var(--field-edge);border-radius:8px;font:600 12px/1 var(--sans);letter-spacing:0;text-transform:none;color:var(--fg);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
  & #kf.studio-kf .kfp-sw[aria-pressed="true"] {border-color:var(--accent);color:var(--white)}
  & #kf.studio-kf #kf-fs {background:color-mix(in srgb,var(--bg) 78%,transparent);border:1px solid var(--field-edge);border-radius:8px;color:var(--fg)}
  & #kf.studio-kf #kf-fs:hover,& #kf.studio-kf .kfp-sw:hover {border-color:var(--metal-3);color:var(--white)}
  & #kf.studio-kf .kf-hist6 .btn.btn-o:not(:disabled) {border-color:var(--line-hi);color:var(--fg)}
  & #kf.studio-kf .kf-hist6 .btn.btn-o:not(:disabled):hover {border-color:var(--metal-3);color:var(--white)}
  & #kf.studio-kf .kf-hist6 .btn svg {color:inherit}
  & #kf.studio-kf .kf-cur {display:flex;align-items:center;gap:8px;font:500 13px/1.5 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)}
  & #kf.studio-kf .kf-cur b {font:600 13px/1.5 var(--sans);color:var(--fg)}
  & #kf.studio-kf .kf-cur i {border:1px solid var(--line-hi);border-radius:4px}

  /* Large preview and the TZ dialog */
  & .kf-modal {background:var(--glass);border:1px solid var(--line-hi);border-radius:16px;box-shadow:var(--glass-ring),var(--drop);color:var(--fg)}
  & .kf-modal::backdrop {background:var(--scrim)}
  & .kf-modal :is(button,.btn) {border-radius:8px}
  & :is(.kf-tz-m) {background:var(--scrim)}
  & .kf-tz-in {background:var(--glass);border:1px solid var(--line-hi);border-radius:16px;box-shadow:var(--glass-ring),var(--drop);color:var(--fg)}
  & .kf-tz-drop {background:var(--inset);border:1px dashed var(--field-edge);border-radius:12px;color:var(--fg)}

  /* Mood board and designer tools */
  & #kf-mood {background:var(--glass);border:1px solid var(--line);border-radius:16px;box-shadow:var(--glass-ring);padding:28px 28px 24px}
  & #kf-mood>.sheet-tag {position:static;display:block;margin-bottom:8px;font:600 13px/1.4 var(--sans);letter-spacing:0;color:var(--muted)}
  & #kf-mood .kf-mood-h {font-family:var(--display);font-weight:800;text-transform:uppercase;font-size:clamp(26px,2.2vw,34px);line-height:1.05;letter-spacing:0;color:var(--metal-2);background:var(--metal);background-size:100% 1lh;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
  & #kf-mood .kf-mood-h small {text-transform:none;font:500 13px/1 var(--sans);font-variant-numeric:tabular-nums;color:var(--muted);-webkit-text-fill-color:currentColor;background:none}
  & #kf-mood input {min-height:48px;background:var(--inset);border:1px solid var(--field-edge);border-radius:10px;color:var(--fg)}
  & #kf-mood .kf-acts .btn {min-height:44px;border-radius:8px}
  & #kf-mood .kf-note {font:400 13px/1.6 var(--sans);letter-spacing:0;color:var(--muted)}

  @media (max-width:1024px) {
    & #dalshe .kf-flow {grid-template-columns:repeat(2,minmax(0,1fr))}
    & #dalshe .kf-flow li:nth-child(3) {border-left:0}
    & #dalshe .kf-flow li:nth-child(n+3) {border-top:1px solid var(--line)}
    & footer .f-grid {padding:32px}
  }
  @media (max-width:600px) {
    & #ogranicheniya .sheet.pad {padding:20px 16px 20px}
    & .tbl tbody :is(th,td) {padding:12px 0;font-size:13px}
    & .tbl tbody th {padding-top:20px;font-size:16px}
    & .tbl tbody td::before {font:500 12px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)}
    & .tbl tbody td {border-bottom:0}
    & .tbl tbody tr {padding-bottom:12px;border-bottom:1px solid var(--line-hi)}
    & .tbl tbody tr:hover>* {background:none}
    & #dalshe .kf-flow {grid-template-columns:minmax(0,1fr);margin-top:32px}
    & #dalshe .kf-flow li {padding:24px 20px 24px}
    & #dalshe .kf-flow li+li {border-left:0;border-top:1px solid var(--line)}
    & #dalshe .kf-flow li::after {position:absolute;top:22px;right:20px;margin:0;padding:0}
    & #dalshe .kf-flow li:not(:last-child)::before {display:none}
    & #dalshe .kf-flow p {max-width:none}
    & #voprosy .faq {padding:0 16px}
    & #voprosy .faq summary {font-size:15px;gap:16px}
    & #voprosy .faq .a {padding-right:0}
    & #voprosy .faq-side .btn-cta {width:100%}
    & #kp .lead-mgr {padding:20px 16px;gap:16px}
    & #kp .lead-mgr>svg {width:48px;height:48px;padding:12px}
    & form.kp,& .kp-done {padding:24px 16px 20px;gap:20px;border-radius:16px}
    & .kp .upl {padding:20px 16px 16px 56px}
    & .kp .upl::before {left:16px;top:18px;width:24px;height:24px}
    & .kp .upl button {width:100%}
    & .kp .chips label {font-size:13px;padding-inline:12px}
    & footer {padding:40px 16px 96px}
    & footer .f-grid {padding:24px 20px;gap:28px 20px;border-radius:16px}
    & footer li a {min-height:44px}
    & #kf-mood {padding:20px 16px}
  }
}
}

/* The legacy "round 16" rule paints every idle control border in 20% gold (konf.css). In noir idle edges are graphite:
   hairlines for buttons and cards, a 3:1 edge for text fields. Same selector shape, one theme step more specific. */
@media screen {
  :root[data-theme="noir"] :is(#konfigurator,#kf-modal,#kf-print,.kf-pop6) :is(.btn-o,.kf-lnk.btn,.kf-isw,.kf-itb,.kf-res button,.kf-pal-b,.kf-sugg-l button,.kf-fl-sw button,.kf-show-md button,.kf-way-pb,.kf-mbar button,.kf-fold,.kf-dz,.kf-sw,.kf-fl,.kf-ml,.kf-o,.kf-tr-b,.kf-zc button):not([aria-pressed="true"]):not([aria-expanded="true"]):not([aria-current="step"]):not(:has(input:checked)):not(:hover):not(:focus) {border-color:var(--line-hi)}
  :root[data-theme="noir"] :is(#konfigurator,#kf-modal,#kf-print,.kf-pop6) :is(input[type="text"],input[type="number"],input[type="search"],input:not([type]),select,textarea) {border-color:var(--field-edge)}
  :root[data-theme="noir"] :is(#konfigurator,#kf-modal,#kf-print,.kf-pop6) :is(input[type="text"],input[type="number"],input[type="search"],input:not([type]),select,textarea):hover {border-color:var(--metal-3)}
  :root[data-theme="noir"] :is(.kf-hist6 .btn,.kf-tb):not([aria-expanded="true"]):not(:hover) {border-color:var(--line-hi)}
  :root[data-theme="noir"] #kf.studio-kf #kf-steps .kf-o:not(:has(input:checked)):not(:hover),:root[data-theme="noir"] #kf.studio-kf .kf-tr-b:not([aria-current="step"]):not(:hover) {border-color:var(--line)}
}

@media (prefers-reduced-motion:reduce) {
  :root[data-theme="noir"] :is(.btn,.btn-cta,#kf-add,.flow-continue) {transition:none}
  :root[data-theme="noir"] :is(.btn-cta,#kf-add,.flow-continue,.btn-o,.btn-y):active {transform:none}
  :root[data-theme="noir"] :is(.link-y,.hx-panel li a,.hx-m .mx-acc>button::after,#voprosy .faq summary::after,.tbl tbody th,.tbl tbody td,.kp .chips label,.kp .upl,.kp input,.kp textarea,#kp .links-sm a,#kf.studio-kf .flow-row) {transition:none}
}
/* Six theme buttons no longer fit a phone row: start-aligned so the first one is never cut off to the left. */
@media screen and (max-width:1250px) {.theme-options {justify-content:flex-start}}

/* ===== lk-btn 2026-11-26 — кнопка «Кабинет» в шапке (вариант A, утверждён владельцем) =====
   Контурная второстепенная кнопка: белая иконка + подпись, рамка field-edge, как .btn-o.
   Золото не используется: оно остаётся только у «Запросить КП». На ≤900px скрыта hdr2.css (кабинет — в мобильном меню). */
html[data-theme="noir"] header.hx .hx-lk{width:auto;height:40px;padding:0 14px 0 10px;gap:8px;
  border:1px solid #666666;border-radius:8px;color:#F3F1EA;font:600 14px/1 "Manrope",system-ui,sans-serif;white-space:nowrap;
  transition:border-color .15s ease-out,color .15s ease-out}
html[data-theme="noir"] header.hx .hx-lk svg{width:20px;height:20px;color:currentColor;stroke:currentColor;flex:none}
html[data-theme="noir"] header.hx .hx-lk span{display:inline;max-width:14ch;overflow:hidden;text-overflow:ellipsis}
html[data-theme="noir"] header.hx .hx-lk:hover{border-color:#A6A5A0;color:#FFFFFF}
html[data-theme="noir"] header.hx .hx-lk:focus-visible{outline:2px solid #E8C547;outline-offset:2px}
@media (max-width:1180px){html[data-theme="noir"] header.hx .hx-lk{padding:0;width:40px;justify-content:center}
  html[data-theme="noir"] header.hx .hx-lk span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
@media (prefers-reduced-motion:reduce){html[data-theme="noir"] header.hx .hx-lk{transition:none}}
/* прочие темы: подпись только для скринридера, вид прежний (иконка 40px) */
html:not([data-theme="noir"]) header.hx .hx-lk span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
