/* Яшаяев Технологии — sections below the rack.
   Light working sections are cabinet grey (RAL 7035); samples of the work sit on paper;
   the process is drawn as a single-line diagram; requisites live on a rating plate. */

.wrap { max-width: 1520px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { position: relative; padding-block: var(--sec-pad); }
.sec--cab { background: var(--cab); color: var(--ink); }
.sec--paper { background: var(--cab-2); color: var(--ink); }
.sec--dark { background: var(--rack); color: var(--white); }
.sec--graphite { background: var(--graphite); color: var(--white); }
.h2 { font: 400 clamp(32px, 3.55vw, 62px)/1.08 var(--f-display); letter-spacing: -.005em; }
.h3 { font: 400 clamp(20px, 1.55vw, 26px)/1.2 var(--f-display); }
.lead { font-size: clamp(17px, 1.28vw, 21px); line-height: 1.55; max-width: 36em; color: var(--ink-2); }
.sec--dark .lead, .sec--graphite .lead, .bridge .lead { color: var(--steel-2); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 88px); }
.mono { font-family: var(--f-mono); font-size: .86em; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sec--cab ::selection, .sec--paper ::selection { background: var(--ink); color: var(--signal); }

/* A rack rail runs down the left edge of the cabinet-grey sections */
.dirs::before, .process::before, .sheet-sec::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: max(6px, calc(var(--gutter) * .32)); width: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(15,16,18,.42) 0 2.2px, transparent 2.6px) 0 0 / 10px 18px repeat-y,
    linear-gradient(90deg, rgba(15,16,18,.08), rgba(15,16,18,.16) 50%, rgba(15,16,18,.08));
  border-inline: 1px solid rgba(15,16,18,.12);
}

/* ——— Directions ——— */
.group { margin-top: clamp(48px, 5vw, 88px); }
.group:first-of-type { margin-top: 0; }
.group__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.strip--flat {
  position: static; height: 36px; padding: 0 64px 0 14px;
  font-size: 16px; color: var(--strip-ink);
  background:
    repeating-linear-gradient(-56deg, transparent 0 5px, var(--strip-hatch) 5px 10px, transparent 10px 14px) right 12px center / 46px 100% no-repeat,
    linear-gradient(180deg, var(--strip-hi), var(--strip-lo));
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.group__note { font: 400 19px/1.2 var(--f-label); color: var(--ink-3); }

.dir {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 5.5vw, 104px); align-items: center;
  padding-block: clamp(40px, 4.4vw, 72px);
  border-bottom: 1px solid var(--line-l2);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.dir:target { animation: target-flash 1.6s var(--ease-out); }
@keyframes target-flash { 0%, 25% { background: rgba(247,179,26,.18); } }
.dir__title { position: relative; font: 400 clamp(26px, 2.15vw, 38px)/1.12 var(--f-display); }
.dir__title::before { content: ""; position: absolute; left: -.78em; top: .38em; width: .3em; height: .3em; border-radius: 50%; background: var(--led-off); box-shadow: inset 0 1px 1px rgba(0,0,0,.25); transition: background .4s, box-shadow .4s; }
.is-on .dir__title::before { background: var(--led-paper); box-shadow: 0 0 0 3px rgba(47,192,106,.18); }
.dir:hover .dir__title::before { background: var(--signal); box-shadow: 0 0 0 3px rgba(247,179,26,.25); }
.dir__pain { margin-top: 18px; font-size: clamp(18px, 1.34vw, 22px); line-height: 1.4; font-weight: 500; color: var(--ink); max-width: 26em; }
.dir__promise { margin-top: 12px; color: var(--ink-2); max-width: 32em; }
/* the equipment row lists what is supplied: two columns of engraved-label heads over hairline rows */
.dir__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 22px; max-width: 34em; }
.dir__cats h5 { margin: 0; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); font: 700 14px/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.dir__cats ul { list-style: none; }
.dir__cats li { padding: 7px 0; border-bottom: 1px solid var(--line-l); font-size: 15px; line-height: 1.35; color: var(--ink-2); }
/* what the first stage gives: a dashed tear line, then the result in plain text */
.dir__first { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line-l2); max-width: 32em; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.dir__first b { display: block; margin-bottom: 4px; font: 700 13.5px/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.dir__cta {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 24px;
  font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none;
  padding: 10px 0 6px; background: linear-gradient(var(--signal-lo), var(--signal-lo)) 0 100% / 100% 2px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.dir__cta:hover { background-size: 100% 4px; }

/* Paper documents: samples of the work, labelled as such */
.doc {
  position: relative; margin: 0;
  background: var(--paper); color: var(--ink);
  border-radius: 4px; padding: 20px 24px 22px;
  font-size: 15px; line-height: 1.4;
  box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(15,16,18,.08), 0 24px 48px -28px rgba(15,16,18,.55);
  transform: rotate(-.35deg);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.dir:nth-of-type(even) .doc { transform: rotate(.3deg); }
.dir:hover .doc { transform: rotate(0) translateY(-3px); box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(15,16,18,.08), 0 34px 60px -30px rgba(15,16,18,.6); }
.doc__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px dashed var(--line-l2); font: 700 15px/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.doc__tag { font: 400 13px/1.2 var(--f-label); text-transform: none; letter-spacing: .01em; color: var(--ink-3); white-space: nowrap; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th { text-align: left; font: 700 13px/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 10px 8px 8px 0; }
.doc td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line-l); vertical-align: top; }
.doc .r { text-align: right; padding-right: 0; }
.doc .c { text-align: center; width: 36px; padding-right: 0; }
.note {
  display: inline-block; margin: 4px 0 0; padding: 0 6px;
  font: 400 15px/1.3 var(--f-label); font-style: italic; color: var(--note-ink);
  background: linear-gradient(transparent 35%, rgba(247,179,26,.6) 35%) 0 0 / 100% 1.3em repeat-y;
}
td .note { display: table; }
.ok { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--pass); position: relative; vertical-align: -4px; }
.ok::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.q { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--signal); font: 700 12px/1 var(--f-body); }
.flag { display: inline-block; padding: 2px 7px; border-radius: 3px; background: var(--flag-tint); color: var(--flag-ink); font: 700 13px/1.3 var(--f-label); }

.kp__row--add td { color: var(--add-ink); font-weight: 600; }
.kp__row--add { background: linear-gradient(90deg, rgba(47,158,91,.12), transparent); }
.checked { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-l2); font: 700 15px/1.2 var(--f-label); color: var(--ink-2); }
.checked__led { width: 10px; height: 10px; border-radius: 50%; background: var(--led-paper); box-shadow: 0 0 0 3px rgba(47,192,106,.2), 0 0 10px rgba(47,192,106,.7); transition: background .3s, box-shadow .3s; }
.io [data-dir]:not(.is-on) .checked__led { background: var(--led-off); box-shadow: none; }
.is-on .checked__led { transition-delay: 2.2s; }

.fit__warn { background: rgba(247,179,26,.14); }
.stamp {
  position: absolute; right: 22px; bottom: 16px;
  padding: 6px 12px; border: 2.5px solid var(--stamp-blue); border-radius: 4px; color: var(--stamp-blue);
  font: 400 15px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em;
  transform: rotate(-7deg); opacity: .85; mix-blend-mode: multiply;
}
.doc--fit { padding-bottom: 64px; }

.src { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: center; padding-block: 12px 4px; }
.plate-tag {
  position: relative; overflow: hidden; display: grid; gap: 3px;
  padding: 14px 16px; border-radius: 3px;
  background: linear-gradient(160deg, #c9cdd0, #aeb4b8); color: #1b1d20;
  font: 400 13px/1.25 var(--f-mono); letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 4px rgba(0,0,0,.18);
}
.plate-tag b { font: 400 18px/1.1 var(--f-display); letter-spacing: .02em; }
.plate-tag__scan { position: absolute; left: 0; right: 0; top: -20%; height: 18%; background: linear-gradient(transparent, rgba(247,179,26,.55), transparent); opacity: 0; }
.crit { list-style: none; display: grid; gap: 6px; font-size: 14px; }
.crit b { display: inline-block; min-width: 108px; font: 700 13px/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.opts { list-style: none; display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-l2); font-size: 14.5px; }
.opts li { display: flex; align-items: center; gap: 12px; }
.pill { flex: none; min-width: 168px; padding: 4px 10px; border-radius: 99px; font: 700 13.5px/1.2 var(--f-label); text-align: center; }
.pill--ok { background: var(--pass-tint); color: var(--pass-ink); }
.pill--mid { background: var(--amber-tint); color: var(--amber-ink); }
.pill--alt { background: var(--neutral-tint); color: #3f444a; }

.ai { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; padding-top: 10px; }
.ai__src { display: grid; gap: 8px; padding-top: 30px; }
.ai__src span { padding: 8px 10px; border-radius: 3px; background: #e9ebe7; font: 400 12px/1.2 var(--f-mono); color: var(--ink-2); border: 1px solid var(--line-l); }
.ai__tbl td:not(:first-child), .ai__tbl th:not(:first-child) { text-align: center; }
.ai__check td { font-weight: 700; background: rgba(47,158,91,.08); }

.lanes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 12px; min-height: 230px; }
.lane { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 92px; border-radius: 4px; background: #eceee9; border: 1px solid var(--line-l); }
.lane b { font: 700 14px/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.lane__warn, .lane__task { position: absolute; left: 10px; right: 10px; font: 400 14px/1.25 var(--f-label); padding: 6px 8px; border-radius: 3px; }
.lane__warn { bottom: 52px; background: var(--flag-tint); color: var(--flag-ink); }
.lane__task { bottom: 10px; background: #fbfbf9; color: var(--ink-2); border: 1px dashed var(--line-l2); }
.order {
  position: absolute; left: 0; top: 52px; width: calc((100% - 20px) / 3);
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 4px; background: #fbfbf9; border: 1px solid var(--line-l2);
  font-weight: 600; font-size: 14px; box-shadow: 0 6px 14px -8px rgba(15,16,18,.4);
}
.order .mono { color: var(--ink-3); font-weight: 400; }

.path { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 26px 0 10px; position: relative; }
.path li { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; }
.path li span { position: relative; z-index: 1; display: grid; place-items: center; min-height: 54px; width: calc(100% - 8px); padding: 6px; border-radius: 4px; background: #eceee9; border: 1px solid var(--line-l2); font: 700 14.5px/1.15 var(--f-label); }
.path li::before { content: ""; position: absolute; left: -50%; right: 50%; top: 27px; height: var(--flow, 8px); transform: translateY(-50%); background: var(--led-off); border-radius: 4px; }
.path li:first-child::before { display: none; }
.path li:nth-child(2) { --flow: 9px; } .path li:nth-child(3) { --flow: 6px; } .path li:nth-child(4) { --flow: 5px; } .path li:nth-child(5) { --flow: 3px; } .path li:nth-child(6) { --flow: 2px; }
.path em.note { font-size: 13.5px; }
.path .path__hot span { background: linear-gradient(transparent 12%, rgba(247,179,26,.5) 12%, rgba(247,179,26,.5) 88%, transparent 88%), #eceee9; border: 1.5px solid var(--signal-lo); }

/* Doc motion: everything is visible by default; .io arms the start state, .is-on plays it */
@media (prefers-reduced-motion: no-preference) {
  .io [data-dir]:not(.is-on) .note, .io [data-dir]:not(.is-on) .kp__row--add,
  .io [data-dir]:not(.is-on) .ok, .io [data-dir]:not(.is-on) .q, .io [data-dir]:not(.is-on) .flag,
  .io [data-dir]:not(.is-on) .stamp, .io [data-dir]:not(.is-on) .opts li, .io [data-dir]:not(.is-on) .crit li,
  .io [data-dir]:not(.is-on) .ai__src span, .io [data-dir]:not(.is-on) .path li,
  .io [data-dir]:not(.is-on) .lane__warn, .io [data-dir]:not(.is-on) .lane__task { opacity: 0; }

  .is-on .kp__row--add { animation: row-in .7s var(--ease-out) .9s both; }
  .is-on .kp__row--flag .note { animation: ink-in .6s var(--ease-out) .5s both; }
  .is-on .kp__row--q .note { animation: ink-in .6s var(--ease-out) 1.5s both; }
  @keyframes row-in { from { opacity: 0; transform: translateX(-12px); background-color: rgba(247,179,26,.5); } }
  @keyframes ink-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

  .is-on .fit tbody tr .ok, .is-on .fit tbody tr .q { animation: pop .45s var(--ease-out) both; }
  .is-on .fit tbody tr:nth-child(1) .ok { animation-delay: .35s; }
  .is-on .fit tbody tr:nth-child(2) .ok { animation-delay: .65s; }
  .is-on .fit tbody tr:nth-child(3) .ok { animation-delay: .95s; }
  .is-on .fit tbody tr:nth-child(4) .q { animation-delay: 1.25s; }
  .is-on .fit__warn .note { animation: ink-in .6s var(--ease-out) 1.45s both; }
  .is-on .stamp { animation: stamp .45s cubic-bezier(.16, 1, .3, 1) 2s both; }
  @keyframes pop { from { opacity: 0; transform: scale(.2); } }
  @keyframes stamp { from { opacity: 0; transform: rotate(-16deg) scale(1.7); } to { opacity: .85; transform: rotate(-7deg) scale(1); } }

  .is-on .plate-tag__scan { animation: scan 1.3s var(--ease-in-out) .2s 2 both; }
  @keyframes scan { 0% { opacity: 0; top: -20%; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
  .is-on .crit li { animation: fade-up .5s var(--ease-out) both; }
  .is-on .crit li:nth-child(1) { animation-delay: 1.1s; } .is-on .crit li:nth-child(2) { animation-delay: 1.3s; } .is-on .crit li:nth-child(3) { animation-delay: 1.5s; }
  .is-on .opts li { animation: fade-up .5s var(--ease-out) both; }
  .is-on .opts li:nth-child(1) { animation-delay: 2s; } .is-on .opts li:nth-child(2) { animation-delay: 2.2s; } .is-on .opts li:nth-child(3) { animation-delay: 2.4s; }

  .is-on .ai__src span { animation: file-in .6s var(--ease-out) both; }
  .is-on .ai__src span:nth-child(2) { animation-delay: .15s; } .is-on .ai__src span:nth-child(3) { animation-delay: .3s; }
  @keyframes file-in { from { opacity: 0; transform: translateX(-16px); } }
  .is-on .ai__tbl .ok, .is-on .ai__tbl .flag { animation: pop .45s var(--ease-out) both; }
  .is-on .ai__tbl tr:nth-child(1) .ok, .is-on .ai__tbl tr:nth-child(1) .flag { animation-delay: .9s; }
  .is-on .ai__tbl tr:nth-child(3) .ok, .is-on .ai__tbl tr:nth-child(3) .flag { animation-delay: 1.3s; }
  .is-on .ai__check .ok { animation-delay: 2s !important; }

  .is-on .order { animation: order-run 4.2s var(--ease-in-out) .4s both; }
  .is-on .lane__warn { animation: warn 4.2s linear .4s both; }
  .is-on .lane__task { animation: task 4.2s linear .4s both; }
  @keyframes order-run { 0%, 18% { translate: 0 0; } 34%, 70% { translate: calc(100% + 10px) 0; } 86%, 100% { translate: calc(200% + 20px) 0; } }
  @keyframes warn { 0%, 36% { opacity: 0; transform: translateY(6px); } 42%, 62% { opacity: 1; transform: none; } 70%, 100% { opacity: .35; text-decoration: line-through; } }
  @keyframes task { 0%, 50% { opacity: 0; transform: translateY(6px); } 56%, 100% { opacity: 1; transform: none; } }

  .is-on .path li { animation: fade-up .5s var(--ease-out) both; }
  .is-on .path li:nth-child(2) { animation-delay: .15s; } .is-on .path li:nth-child(3) { animation-delay: .3s; } .is-on .path li:nth-child(4) { animation-delay: .45s; } .is-on .path li:nth-child(5) { animation-delay: .6s; } .is-on .path li:nth-child(6) { animation-delay: .75s; }
  .is-on .path .note { animation: ink-in .6s var(--ease-out) 1.4s both; }
  .is-on .path__hot span { animation: hot 1.8s ease-in-out 1.8s 2; }
  @keyframes hot { 50% { box-shadow: 0 0 0 6px rgba(247,179,26,.35); } }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

.help {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  margin-top: clamp(48px, 5vw, 80px); padding: clamp(28px, 3vw, 44px);
  border: 1.5px solid var(--ink); border-radius: 6px;
}
.help__title { font: 400 clamp(22px, 1.8vw, 30px)/1.15 var(--f-display); margin-bottom: 8px; }
.help p { color: var(--ink-2); max-width: 36em; }

/* ——— Bridge with the aisle loop ——— */
.bridge { position: relative; min-height: clamp(560px, 92svh, 980px); display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--rack); }
.bridge__media { position: absolute; inset: -8% 0; }
.bridge__media video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.bridge__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,14,17,.94) 0%, rgba(13,14,17,.8) 34%, rgba(13,14,17,.25) 64%, rgba(13,14,17,.1)), linear-gradient(180deg, var(--rack), transparent 16%, transparent 84%, var(--rack)); }
.bridge__in { position: relative; z-index: 1; width: 100%; padding-block: var(--sec-pad); }
.bridge .h2 { max-width: 13em; }
.bridge .lead { margin-top: 28px; max-width: 34em; }
.bridge__note { margin-top: 22px; max-width: 34em; padding-top: 22px; border-top: 1px solid var(--line-d2); color: var(--label); }
/* Stop/start for the aisle loop: a small device switch with its own LED */
.vtoggle {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(20px, 3vw, 40px);
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px;
  background: rgba(13,14,17,.72); color: var(--label);
  border: 1px solid var(--line-d2); border-radius: 4px;
  font: 700 14px/1 var(--f-label); text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.vtoggle[hidden] { display: none; }
.vtoggle:hover { color: var(--white); border-color: rgba(242,243,239,.4); }
.vtoggle__led { width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 3px rgba(73,224,124,.16); transition: background .3s, box-shadow .3s; }
.vtoggle.is-off .vtoggle__led { background: var(--led-off); box-shadow: none; }
/* on a phone the fixed «Описать задачу» bar covers the bottom edge, so the switch moves to the top */
@media (max-width: 899px) { .vtoggle { top: 16px; bottom: auto; } }

/* ——— Process: a single-line diagram ——— */
.line { position: relative; --p: 1; }
/* the bus runs through the middle of each 64px breaker; the order reads along the line, so the steps carry no numbers */
.line__bus { position: absolute; left: 0; right: 0; top: 12px; width: 100%; height: 40px; overflow: visible; }
.line__base { stroke: var(--line-l2); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.line__live { stroke: var(--signal-lo); stroke-width: 4; fill: none; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { position: relative; padding-top: 92px; }
.step h3 { font: 400 clamp(20px, 1.5vw, 25px)/1.2 var(--f-display); margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 16px; max-width: 22em; }
.brk { position: absolute; z-index: 1; left: 0; top: 0; width: 40px; height: 64px; border-radius: 5px; background: linear-gradient(#fbfbf9, #e6e8e4); border: 1px solid rgba(15,16,18,.3); box-shadow: 0 1px 0 #fff inset, 0 6px 14px -6px rgba(15,16,18,.4); }
.brk::before { content: ""; position: absolute; left: 13px; top: 7px; width: 14px; height: 5px; border-radius: 1px; background: #b8bdb9; transition: background .3s; }
.brk::after { content: ""; position: absolute; left: 10px; top: 18px; width: 20px; height: 36px; border-radius: 4px; background: #d2d5d1; box-shadow: inset 0 1px 2px rgba(15,16,18,.35); }
.brk i { position: absolute; z-index: 1; left: 13px; top: 35px; width: 14px; height: 16px; border-radius: 2px; background: #2b2f35; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset; transition: top .32s cubic-bezier(.16, 1, .3, 1), background .3s; }
.step.is-live .brk i { top: 21px; background: var(--ink); }
.step.is-live .brk::before { background: var(--pass); }

/* ——— Requirement sheet ——— */
.process { padding-bottom: calc(var(--sec-pad) * .7); }
.sheet-sec { padding-top: calc(var(--sec-pad) * .7); }
.sheet-sec > .wrap { position: relative; }
.sheet-sec > .wrap::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--sec-pad) * -.7); height: 2px; background: var(--ink); }
.sheet-sec__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 120px); align-items: start; }
.sheet-sec__text { position: sticky; top: calc(var(--nav-h) + 48px); }
.sheet-sec .lead { margin-top: 24px; }
.sheet-sec__small { margin-top: 20px; font: 400 15px/1.3 var(--f-label); color: var(--ink-3); }
.sheet { background: #fbfbf9; border-radius: 4px; padding: clamp(22px, 2.6vw, 40px); box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(15,16,18,.08), 0 30px 60px -34px rgba(15,16,18,.55); }
.sheet__req { font: 400 clamp(19px, 1.5vw, 25px)/1.35 var(--f-display); padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.sheet__from { color: var(--ink-3); }
.sheet__tbl { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15.5px; }
.sheet__tbl th { text-align: left; font: 700 13.5px/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 16px 12px 10px 0; }
.sheet__tbl td { padding: 13px 12px 13px 0; border-top: 1px solid var(--line-l); vertical-align: top; }
.sheet__tbl td:first-child { font-weight: 600; width: 24%; }
.sheet__tbl td:last-child { color: var(--amber-ink); background: linear-gradient(90deg, rgba(247,179,26,.14), transparent 80%); padding-left: 10px; }
.sheet__tbl .dim { color: var(--ink-3); }
.sheet__qs { margin-top: 24px; padding: 18px 20px; border-radius: 4px; background: var(--ink); color: var(--white); }
.sheet__qs b { font: 400 16px/1.2 var(--f-display); }
.sheet__qs ol { margin: 10px 0 0 1.2em; display: grid; gap: 4px; color: var(--label); }

/* ——— About ——— */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px clamp(40px, 6vw, 120px); align-items: start; }
.about .lead { margin-top: 24px; }
.rules { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-d2); }
.rules ul { list-style: none; margin-top: 18px; display: grid; gap: 14px; }
.rules li { position: relative; padding-left: 28px; color: var(--label); }
.rules li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px rgba(73,224,124,.55); }
.rules__not { margin-top: 24px; color: var(--steel); }
.about__side { display: grid; gap: 20px; align-items: start; }
.ratingplate {
  position: relative; padding: 30px 28px 28px; border-radius: 6px; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.06)), url("../img/plate-metal.webp") center / cover, #cfd2ce;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.2), 0 30px 60px -30px rgba(0,0,0,.8);
}
.screw { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f4f5f3, #9aa0a4 60%, #6c7276); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 5px; height: 2px; background: rgba(0,0,0,.45); transform: rotate(35deg); }
.screw:nth-child(1) { left: 10px; top: 10px; } .screw:nth-child(2) { right: 10px; top: 10px; } .screw:nth-child(3) { left: 10px; bottom: 10px; } .screw:nth-child(4) { right: 10px; bottom: 10px; }
.ratingplate__title { font: 400 16px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 12px; border-bottom: 1.5px solid rgba(15,16,18,.6); text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.ratingplate__rows > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(15,16,18,.18); }
.ratingplate dt { font: 700 13.5px/1.4 var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: var(--plate-label); }
.ratingplate dd { margin: 0; font-weight: 500; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.ratingplate .btn { margin-top: 20px; }
.copy { margin-left: 8px; padding: 2px 8px; border: 1px solid rgba(15,16,18,.35); border-radius: 3px; background: transparent; font: 700 12px/1.4 var(--f-label); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.copy:hover { background: rgba(15,16,18,.08); }
/* «копировать» stays small on the plate; its press area is 44px tall */
.copy { position: relative; }
.copy::after { content: ""; position: absolute; inset: -12px -6px; }
.copy.is-done { background: var(--ink); color: var(--signal); border-color: var(--ink); }

/* ——— FAQ ——— */
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 32px clamp(40px, 6vw, 120px); align-items: start; }
.faq .h2 { position: sticky; top: calc(var(--nav-h) + 48px); }
.qa { border-top: 1px solid var(--line-l2); }
.qa:last-child { border-bottom: 1px solid var(--line-l2); }
.qa summary { list-style: none; position: relative; display: block; padding: 22px 56px 22px 0; cursor: pointer; font-size: clamp(18px, 1.3vw, 21px); font-weight: 600; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; border: 1.5px solid var(--ink); transition: background .25s, transform .4s var(--ease-out); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 7px; right: 7px; top: 12px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-out), background .25s; }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { background: var(--ink); transform: rotate(180deg); }
.qa[open] summary i::before, .qa[open] summary i::after { background: var(--signal); }
.qa[open] summary i::after { transform: rotate(0); }
.qa summary:hover i { background: rgba(15,16,18,.08); }
.qa[open] summary:hover i { background: var(--ink); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 56px 24px 0; color: var(--ink-2); max-width: 36em; }

/* ——— Request form ——— */
.req__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px clamp(40px, 6vw, 120px); align-items: start; }
.req .lead { margin-top: 24px; }
.direct { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-d2); scroll-margin-top: calc(var(--nav-h) + 32px); }
.direct p { color: var(--steel); }
.direct ul { list-style: none; margin-top: 12px; }
.direct li { display: grid; grid-template-columns: 8em minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--line-d); }
.direct span { font: 700 14px/1.6 var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: var(--steel); }
.direct a { text-decoration: none; }
.direct a:hover { color: var(--signal); }

.form[hidden] { display: none; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: clamp(24px, 2.8vw, 44px); background: var(--rack-2); border: 1px solid var(--line-d); border-radius: 8px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend, .field label, .field__label { display: block; margin-bottom: 10px; font: 700 14px/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .06em; color: var(--steel-2); }
.field label em, .field__label em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--steel); margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--graphite-2); border-radius: 99px; color: var(--label); font-size: 15px;
  transition: background-color .2s, border-color .2s, color .2s, transform .12s;
}
.chip > span::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #3a3f46; transition: background .2s, box-shadow .2s; }
.chip:hover > span { border-color: #4a515b; }
.chip input:checked + span { background: var(--signal); border-color: var(--signal); color: var(--ink); font-weight: 600; }
.chip input:checked + span::before { background: var(--ink); box-shadow: 0 0 0 2px rgba(15,16,18,.2); }
.chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }
.chip:active > span { transform: scale(.97); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 6px;
  background: var(--rack); color: var(--white); border: 1px solid var(--graphite-2);
  font: 400 16px/1.45 var(--f-body); caret-color: var(--signal);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #8a9098; }
.field input:hover, .field textarea:hover { border-color: #444b55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(247,179,26,.18); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--fault); }
.field__err { display: none; margin-top: 8px; color: var(--fault-text); font-size: 14.5px; overflow-wrap: anywhere; }
.field__err p + p { margin-top: 6px; }
.is-bad > .field__err, .field__err.is-shown { display: block; }
.field__count { margin-top: 8px; font-size: 14px; color: var(--steel-2); font-variant-numeric: tabular-nums; }
.field__count.is-full { color: var(--fault-text); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* one or two direction fields: a single one takes the whole row */
.field-row--extra { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); align-items: end; }
.field-row[hidden], .field[hidden], .field__count[hidden] { display: none; }
.field input[type="date"] { color-scheme: dark; height: calc(1.45em + 30px); }
.field .drop {
  position: relative; display: flex; align-items: center; gap: 16px; margin: 0; padding: 18px 20px;
  border: 1.5px dashed #3d434c; border-radius: 6px; cursor: pointer; color: var(--label);
  font: 400 15px/1.4 var(--f-body); text-transform: none; letter-spacing: 0;
  transition: border-color .2s, background-color .2s;
}
.drop b { color: var(--white); font-weight: 600; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.field .drop:hover, .field .drop.is-over { border-color: var(--signal); background: rgba(247,179,26,.05); }
.drop:focus-within { outline: 2px solid var(--signal); outline-offset: 3px; }
.drop__fine, .drop__touch, .drop small { display: block; }
.drop__touch { display: none; }
.drop small { margin-top: 2px; color: var(--steel); font-size: 13.5px; }
/* a phone has nothing to drag from: the zone offers files and the camera instead */
@media (hover: none) and (pointer: coarse) {
  .drop__fine { display: none; }
  .drop__touch { display: block; }
}
.drop__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--graphite); position: relative; }
.drop__icon::before { content: ""; position: absolute; left: 19px; top: 12px; width: 2px; height: 16px; background: var(--signal); }
.drop__icon::after { content: ""; position: absolute; left: 15px; top: 13px; width: 8px; height: 8px; border: solid var(--signal); border-width: 2px 0 0 2px; transform: rotate(45deg); }
.files { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 10px; }
.files:empty { display: none; }
.files li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 4px; background: var(--graphite); font-size: 14px; animation: fade-up .3s var(--ease-out); }
.files__name { display: flex; flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--label); }
.files__head { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files__tail, .files__size { flex: none; white-space: nowrap; }
.files__size { color: var(--steel); font-variant-numeric: tabular-nums; }
.files button { position: relative; flex: none; background: none; border: 0; color: var(--steel); cursor: pointer; font-size: 14px; }
.files button::after { content: ""; position: absolute; inset: -12px -8px; }
/* what happens to the documents, said where they are attached */
.assure { list-style: none; display: grid; gap: 8px; margin-top: 14px; font-size: 14.5px; line-height: 1.45; color: var(--steel-2); }
.assure li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; }
.assure .i { width: 16px; height: 16px; margin-top: 2px; color: var(--steel); stroke-width: 1.4; }
.files button:hover { color: var(--white); }
.consent { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; color: var(--steel-2); }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.consent__box { flex: none; width: 22px; height: 22px; border-radius: 4px; border: 1.5px solid #4a515b; position: relative; transition: background .2s, border-color .2s; margin-top: 1px; }
.consent input:checked + .consent__box { background: var(--signal); border-color: var(--signal); }
.consent input:checked + .consent__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--signal); outline-offset: 3px; }
.consent.is-bad .consent__box { border-color: #ff8a65; }
.consent a { color: var(--label); }
.f-consent { display: grid; gap: 8px; }
.form__policy { padding-left: 34px; font-size: 14.5px; color: var(--steel); }
.form__policy a { color: var(--label); }
.form__policy a:hover, .consent a:hover { color: var(--signal); }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.btn--submit { min-width: 260px; }
.form__when { display: inline-flex; align-items: center; gap: 10px; color: var(--steel-2); font-size: 15px; }
.form__when::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px rgba(73,224,124,.55); }
.btn--submit.is-sending { pointer-events: none; }
.btn--submit.is-sending::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(15,16,18,.3); border-top-color: var(--ink); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sent { grid-column: 2; padding: clamp(28px, 3vw, 48px); border: 1px solid var(--line-d2); border-radius: 8px; background: var(--rack-2); }
.sent[hidden] { display: none; }
.sent:focus { outline: none; }
.sent .lead { margin-top: 18px; }
.sent__more { margin-top: 18px; color: var(--steel); }
.sent__id { margin-top: 18px; color: var(--label); }
.sent__id b { display: inline-block; margin-inline: 2px; padding: 2px 8px; border-radius: 3px; background: var(--graphite); color: var(--white); font-size: 1.15em; font-weight: 500; }
.sent__sum { margin-top: 22px; border-top: 1px solid var(--line-d2); }
.sent__sum > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line-d); }
.sent__sum dt { font: 700 13.5px/1.5 var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: var(--steel); }
.sent__sum dd { margin: 0; color: var(--label); overflow-wrap: anywhere; }
.sent__again { margin-top: 24px; }
.sent__skip { margin-top: 12px; color: var(--fault-text); }
.sent__id[hidden], .sent__skip[hidden], .sent__sum[hidden], .sent__more[hidden], .form__fail[hidden] { display: none; }
/* a section reached from a link by keyboard takes focus without drawing a frame around itself */
main [tabindex="-1"]:focus { outline: none; }
/* sending failed: the typed request stays, direct contacts are one tap away */
.form__fail { padding: 12px 14px; border-radius: 6px; border: 1px solid rgba(255,138,101,.45); background: rgba(255,138,101,.07); color: var(--label); font-size: 14.5px; }
.form__fail span { color: var(--fault-text); font-weight: 600; }
.form__fail a { color: var(--white); }
.form__fail a:hover { color: var(--signal); }
/* honeypot for bots: off-screen, skipped by keyboard and screen readers */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent__led { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 6px rgba(73,224,124,.15), 0 0 18px rgba(73,224,124,.8); margin-bottom: 24px; animation: blink 1.4s steps(2, jump-none) 3; }

/* ——— Footer ——— */
.foot { background: var(--rack); color: var(--steel); padding-block: 72px 32px; border-top: 1px solid var(--line-d); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot__brand img { height: 32px; width: auto; }
.foot__brand p { margin-top: 18px; font-size: 14.5px; }
.foot__brand a { display: inline-block; margin-top: 8px; font-size: 14.5px; color: var(--label); }
.foot__col { display: grid; align-content: start; gap: 10px; }
.foot__col b { font: 400 14px/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--white); margin-bottom: 4px; }
.foot__col a { color: var(--steel); text-decoration: none; font-size: 15px; }
.foot__col a:hover, .foot__brand a:hover { color: var(--signal); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-d); font-size: 13.5px; }
.foot__legal a { color: var(--steel); }

/* ——— Mobile request button ——— */
.mcta { display: none; }

/* ——— Reveal ——— */
@media (prefers-reduced-motion: no-preference) {
  .io [data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
  .io [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); filter: blur(6px); }
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .dir { grid-template-columns: minmax(0, 1fr); }
  .sec__head, .faq__grid, .req__grid, .about__grid, .sheet-sec__grid { grid-template-columns: minmax(0, 1fr); }
  .faq .h2, .sheet-sec__text { position: static; }
  .sent { grid-column: auto; }
  /* the single-line diagram turns vertical: breakers on a bus down the left edge, each step beside its breaker,
     and current runs down from a breaker once it is switched on */
  .line__bus { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { min-height: 108px; padding: 4px 0 44px 72px; }
  .step:last-child { padding-bottom: 0; }
  .step::before, .step::after { content: ""; position: absolute; top: 64px; bottom: 0; left: 19px; width: 2px; background: var(--line-l2); }
  .step::after { left: 18px; width: 4px; background: var(--signal-lo); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease-out) .1s; }
  .step.is-live::after { transform: scaleY(1); }
  .step:last-child::before, .step:last-child::after { display: none; }
  .step p { max-width: 34em; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .dirs::before, .process::before, .sheet-sec::before { display: none; }
  .dir__title::before { display: none; }
  .doc { padding: 16px 16px 18px; font-size: 14px; transform: none !important; }
  .doc__cap { flex-direction: column; gap: 4px; }
  .src { grid-template-columns: minmax(0, 1fr); }
  .doc--fit { padding-bottom: 18px; }
  .stamp { position: relative; right: auto; bottom: auto; display: inline-block; margin-top: 16px; }
  .ai { grid-template-columns: minmax(0, 1fr); }
  .ai__src { grid-auto-flow: column; padding-top: 0; }
  .lanes { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .lane { padding-bottom: 12px; }
  .lane__warn, .lane__task { position: static; opacity: 1 !important; animation: none !important; }
  .order { position: static; width: auto; translate: none !important; animation: none !important; }
  .path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .path li::before { display: none; }
  .pill { min-width: 0; }
  .opts li { flex-wrap: wrap; gap: 6px 10px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .btn--submit { flex: 1 1 100%; }
  .help .btn { width: 100%; }
  /* on a phone each category reads as one short line of items instead of a column of rows */
  .dir__cats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dir__cats ul { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
  .dir__cats li { display: inline; padding: 0; border: 0; }
  .dir__cats li:not(:last-child)::after { content: " · "; color: var(--ink-3); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .mcta { display: inline-flex; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; min-height: 54px; transform: translateY(140%); transition: transform .45s var(--ease-out); box-shadow: 0 12px 30px -8px rgba(0,0,0,.6); }
  .mcta.is-shown { transform: none; }
  .sheet__tbl { font-size: 14px; }
  .sent__sum > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sheet__tbl td:first-child { width: auto; }
  .sheet__tbl thead { display: none; }
  .sheet__tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line-l); padding: 8px 0; }
  .sheet__tbl td { border: 0; padding: 4px 8px 4px 0; }
  .sheet__tbl td:last-child { grid-column: 1 / -1; }
}

/* Phones: the seven directions sit two to a row under a full-width «Помогите выбрать», so the task field comes sooner */
@media (max-width: 599px) {
  .f-dir .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .f-dir .chip:first-child { grid-column: 1 / -1; }
  .f-dir .chip > span { width: 100%; min-height: 44px; padding: 6px 10px 6px 12px; gap: 7px; font-size: 14px; line-height: 1.2; }
  .f-dir .chip > span::before { width: 6px; height: 6px; }
}

/* Narrow phones (320-399px): two sample documents fit without widening the page */
@media (max-width: 399px) {
  .doc { padding-inline: 12px; }
  .fit { font-size: 13px; hyphens: auto; }
  .fit th, .fit td { padding-right: 5px; }
  .doc .c { width: 22px; }
  .ai__src { display: flex; flex-wrap: wrap; gap: 6px; }
  /* the rating plate stacks each field name over its value so ИНН and ОГРНИП fit */
  .ratingplate__rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
/* 320-359px: the form panel gives its padding to the fields, so «Оборудование» fits its chip */
@media (max-width: 359px) {
  .form { padding-inline: 16px; }
  .f-dir .chip > span { padding: 6px 8px 6px 10px; gap: 6px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn::after { display: none; }
  .step::after, .brk i, .brk::before { transition: none; }
  .unit__led { animation: none !important; }
}
