/* ============================================
   «О компании» section: /company (template company.html), /contacts, document pages.
   /company is loaded after pneu.css + auto.css and reuses their tiles (aud), rail (pns), steps (pno), list (fx), cases (auc).
   Behaviour: js/pneu.js + js/company.js (copy buttons, map on request).
   ============================================ */

/* ---------------- /company: first screen = the whole window, like on other v2 pages ---------------- */
.page-company .ph{ min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.page-company .ph > .wrap{ width: 100%; }
@media (min-width: 901px) and (max-height: 820px){
  .page-company .ph{ padding-top: calc(76px + 20px); padding-bottom: 22px; }
  .page-company .ph-h1{ font-size: clamp(30px, 3.5vw, 52px); }
  .page-company .ph-lead{ margin-top: 14px; font-size: 15.5px; }
  .page-company .ph-actions{ margin-top: 18px; }
  .page-company .ph-visual{ max-width: clamp(300px, 54svh, 460px); }
  .page-company .ph-fact{ padding-top: 13px; }
  .page-company .ph-fact dd{ font-size: clamp(20px, 2vw, 28px); }
}
@media (min-width: 901px) and (max-height: 720px){
  .page-company .ph-h1{ font-size: clamp(28px, 3.1vw, 44px); }
  .page-company .ph-lead{ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 480px){
  .page-company .sh-title, .page-company .ph-h1{ overflow-wrap: anywhere; }
}

/* ---------------- how we work: departments under the steps ---------------- */
.cow-sub{ margin-top: clamp(40px, 6vh, 64px); font: 600 clamp(20px, 1.9vw, 26px)/1.2 var(--font-display); letter-spacing: -.015em; }
.cow-depts{ margin-top: 20px; }
.cow-depts .ct-dept{ border-radius: 20px; }

/* ---------------- cases: projects by industry ---------------- */
.coi{ list-style: none; margin: clamp(22px, 3.5vh, 34px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.coi a{ display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(10,10,12,.1);
  font: 600 14px/1 var(--font-display); color: var(--ink); transition: background-color .25s, border-color .25s, color .25s; }
.coi i{ font-style: normal; font-size: 12px; color: var(--accent-ink); transition: color .25s; }
.coi a:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
.coi + .auc{ margin-top: 22px; }

/* ---------------- requisites with copy buttons ---------------- */
.crq{ margin: 24px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(10,10,12,.1); }
.crq > div{ display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(10,10,12,.1); }
.crq dt{ font-size: 13.5px; color: var(--muted); }
.crq dd{ margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; font: 600 15.5px/1.4 var(--font-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.crq-copy{ flex: none; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(10,10,12,.14); background: transparent; font: 600 12px/1 var(--font-body); color: var(--muted-2); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.crq-copy.is-done{ background: var(--ink); border-color: var(--ink); color: #fff; }
.crq-copy:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
.crq-row{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; border-top: 0; }
.crq-row > div{ grid-template-columns: minmax(0, 1fr); border-top: 1px solid rgba(10,10,12,.1); }
.crq-row dd{ font: 700 clamp(15px, 1.35vw, 18px)/1.3 'Unbounded', var(--font-display); letter-spacing: -.02em; }
.crq + .ct-files{ margin-top: 20px; }

/* ---------------- /company: documents and marking ---------------- */
.cox{ display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px clamp(28px, 5vw, 72px); align-items: start; }
.cox-more{ margin-top: 18px; font-size: 15px; color: var(--muted-2); }
.cox-more a{ color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.cox-side{ display: grid; gap: 12px; }
.cox-files{ margin: 0; grid-template-columns: minmax(0, 1fr); }
.cox-mark{ display: grid; gap: 8px; padding: 24px 26px; border-radius: 22px; background: var(--ink); color: #fff; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cox-mark .br-label{ color: var(--accent-2); }
.cox-mark b{ font: 700 21px/1.2 var(--font-display); }
.cox-mark span{ font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.68); }
.cox-mark i{ margin-top: 4px; font: 600 14px/1 var(--font-display); font-style: normal; color: var(--accent-2); }
.cox-mark:focus-visible{ outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------------- /contacts ---------------- */
.ctx-jump{ margin-top: clamp(22px, 4vh, 36px); display: flex; flex-wrap: wrap; gap: 8px; }
.ctx-jump a{ display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font: 600 14px/1 var(--font-display); color: #fff; transition: background-color .25s, border-color .25s; }
.ctx-jump a:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
.ctx-map{ position: relative; }
.ctx-map iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ctx-map-btn{ position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 11px; border: 0; border-radius: 12px;
  background: rgba(10,10,12,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: 600 13.5px/1 var(--font-display); cursor: pointer; transition: background-color .25s; }
.ctx-map-btn svg{ width: 17px; height: 17px; fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linejoin: round; }
.ctx-map-btn:focus-visible{ outline: 3px solid var(--accent); outline-offset: 2px; }
.ct-place-body .ctx-hours{ font: 600 14px/1.4 var(--font-display); color: var(--ink); }
.ctx-deliv{ margin: 24px 0 0; border-top: 1px solid rgba(10,10,12,.1); }
.ctx-deliv > div{ padding: 14px 0; border-bottom: 1px solid rgba(10,10,12,.1); }
.ctx-deliv dt{ font: 600 16.5px/1.3 var(--font-display); }
.ctx-deliv dd{ margin: 5px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted-2); }

/* ---------------- document pages: short summary above the legal text ---------------- */
.dcx{ list-style: none; margin: clamp(28px, 5vh, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dcx a{ display: grid; align-content: start; gap: 8px; height: 100%; padding: 20px 22px 22px; border-radius: 20px; background: #fff; border: 1px solid rgba(10,10,12,.07); color: var(--ink); transition: border-color .25s, transform .4s var(--ease); }
.dcx b{ font: 600 18px/1.2 var(--font-display); }
.dcx span{ font-size: 14.5px; line-height: 1.5; color: var(--muted-2); }
.dcx i{ margin-top: 4px; font: 600 13px/1 var(--font-display); font-style: normal; color: var(--accent-ink); }
.dcx a:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

@media (hover: hover) and (pointer: fine){
  .coi a:hover{ background: var(--ink); border-color: var(--ink); color: #fff; }
  .coi a:hover i{ color: var(--accent-2); }
  .crq-copy:hover{ border-color: var(--ink); color: var(--ink); }
  .cox-mark:hover{ transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(10,10,12,.5); }
  .ctx-jump a:hover{ background: var(--accent); border-color: var(--accent); }
  .ctx-map-btn:hover{ background: var(--accent); }
  .dcx a:hover{ border-color: rgba(250,90,32,.45); transform: translateY(-2px); }
}
@media (max-width: 1000px){
  .cox{ grid-template-columns: minmax(0, 1fr); }
  .dcx{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .crq > div{ grid-template-columns: minmax(0, 1fr); }
  .crq-row{ grid-template-columns: minmax(0, 1fr); }
  .dcx{ grid-template-columns: minmax(0, 1fr); }
  .ctx-jump a{ height: 36px; padding: 0 13px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce){
  .coi a, .coi i, .crq-copy, .cox-mark, .ctx-jump a, .ctx-map-btn, .dcx a{ transition: none; }
}

/* /contacts: address cards — the route button sits on the bottom line of both cards, whatever the length of the address */
.ct-place{ display: flex; flex-direction: column; }
.ct-place-body{ flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.ct-place-body .btn{ margin-top: auto; }
.ct-place-body .ctx-hours{ margin-bottom: 8px; }

/* Sibling cards keep their rows on common lines: label, address, note, hours and button start at the same height
   in both cards, however many lines the neighbour takes. Subgrid; browsers without it fall back to the flex rules above. */
@supports (grid-template-rows: subgrid){
  .ct-place{ display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; }
  .ct-place-body{ display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 10px; align-items: start; justify-items: start; }
  .ct-place-body .btn{ margin-top: 6px; align-self: end; }
  .ct-place-body .ctx-hours{ margin-bottom: 0; }
  .ct-dept{ display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 10px; align-content: start; }
  .cow-depts .ct-dept{ grid-row: span 4; }
  .ct-dept .ct-lines{ margin-top: 6px; align-self: start; }
  .ct-dept .ct-link{ margin-top: 0; align-self: end; }
  .ct-dept .ct-acts{ margin-top: 0; align-self: end; }
}

/* /contacts (2026-10-17): the address under the hours in the hero; in each department card a button that opens the form
   with this department already picked (company.js, [data-pick]) next to the link to the section */
.ct-addr{ font-size: 15px; color: rgba(255,255,255,.78); text-decoration: underline; text-decoration-color: rgba(255,255,255,.28); text-underline-offset: 4px; width: fit-content; }
.ct-metro::before{ content: ' · '; }
@media (max-width: 560px){ .ct-metro{ display: block; } .ct-metro::before{ content: none; } }
.ct-acts{ margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ct-acts .ct-link{ margin-top: 0; padding-top: 0; align-self: center; }      /* not «end» from the subgrid rule above: it sat lower than the button */
.ct-ask{ display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; transition: background .25s; }
@media (hover: hover) and (pointer: fine){
  .ct-addr:hover{ color: #fff; text-decoration-color: var(--accent-2); }
  .ct-ask:hover{ background: var(--accent); }
}
/* the chip picked from a department card blinks once, so the visitor sees what was chosen for them */
.lf-chip.is-picked span{ animation: ct-pick .9s var(--ease) 1; }
@keyframes ct-pick{ 0%, 100%{ box-shadow: 0 0 0 0 rgba(250,90,32,0); } 35%{ box-shadow: 0 0 0 6px rgba(250,90,32,.35); } }
@media (prefers-reduced-motion: reduce){ .lf-chip.is-picked span{ animation: none; } }

/* /contacts first screen (2026-10-17): the text on the left, a schematic map with both sites on the right.
   The map is drawn from OpenStreetMap by site/tools/contacts_map.py (_ct_map.svg, 1000×800); pins are HTML on top in %. */
.ct-hero-grid{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 1000px){ .ct-hero-grid .ct-phone{ font-size: clamp(30px, 3.3vw, 54px); white-space: nowrap; }
  .ct-hero-grid{ grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 4vw, 64px); } }
.ctm{ position: relative; margin: 0; width: 100%; max-width: 640px; aspect-ratio: 5 / 4; border-radius: 26px; overflow: hidden;
  background: #ebe7de; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 34px 90px -30px rgba(0,0,0,.9);
  animation: ctm-in .9s var(--ease) .15s backwards; }
/* light «paper» map on the dark first screen (2026-10-17: the dark one blended with the background) */
.ctm::after{ content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(130% 100% at 50% 45%, transparent 60%, rgba(60,50,35,.16) 100%); }
.ctm-base{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ctm-park{ fill: #d5e2c8; }
.ctm-water path{ fill: #9fc6dc; }
.ctm-canal{ fill: none; stroke: #9fc6dc; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ctm-rail{ fill: none; stroke: #b3ada2; stroke-width: 1.8; stroke-dasharray: 7 5; }
.ctm-minor{ fill: none; stroke: #fbfaf7; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ctm-major-case{ fill: none; stroke: #c9c1b2; stroke-width: 8.5; stroke-linecap: round; stroke-linejoin: round; }
.ctm-major{ fill: none; stroke: #fff; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.ctm-metro{ fill: #9a958c; stroke: #ebe7de; stroke-width: 2; }
.ctm-metro.is-ours{ fill: #2a78d6; stroke: #fff; stroke-width: 3.5; }
.ctm-mlabel{ fill: #1f5ea8; font: 700 21px/1 var(--font-body); paint-order: stroke; stroke: #ebe7de; stroke-width: 6px; stroke-linejoin: round; }
.ctm-street{ fill: #5d5a54; font: 600 19px/1 var(--font-body); letter-spacing: .02em; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.ctm-wname{ fill: #3e7aa0; font: italic 600 19px/1 var(--font-body); letter-spacing: .06em; paint-order: stroke; stroke: rgba(235,231,222,.85); stroke-width: 4px; stroke-linejoin: round; }
.ctm-wname.ctm-big{ font-size: 30px; letter-spacing: .3em; stroke: none; fill: #3f7ea6; }

.ctm-pin{ position: absolute; z-index: 2; width: 0; height: 0; color: #fff; }
.ctm-pin i{ position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(250,90,32,.28), 0 4px 10px rgba(30,20,10,.35); animation: ctm-drop .7s var(--ease) backwards; }
.ctm-pin i::after{ content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ctm-ping 2.6s ease-out 1.4s infinite; }
.ctm-pin span{ position: absolute; top: 18px; display: grid; gap: 2px; width: max-content; max-width: 220px; padding: 9px 13px 10px; border-radius: 14px;
  background: #0f0f12; border: 1px solid #0f0f12; box-shadow: 0 10px 24px -8px rgba(30,20,10,.45);
  font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.72); animation: ctm-rise .6s var(--ease) backwards; transition: border-color .25s, transform .25s var(--ease); }
.ctm-pin b{ font: 700 14.5px/1.2 var(--font-display); color: #fff; }
.ctm-pin.is-office span{ left: -16px; }
.ctm-pin.is-plant span{ right: -16px; top: auto; bottom: 18px; text-align: right; }      /* above the pin: below it would meet the office caption */
.ctm-pin.is-office i, .ctm-pin.is-office span{ animation-delay: .55s; }
.ctm-pin.is-plant i, .ctm-pin.is-plant span{ animation-delay: .8s; }
.ctm-pin.is-plant i::after{ animation-delay: 2.7s; }
.ctm-pin:focus-visible{ outline: none; }
.ctm-pin:focus-visible span{ border-color: var(--accent); }
.ctm-cap{ position: absolute; z-index: 2; left: 18px; top: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.92);
  box-shadow: 0 4px 14px -6px rgba(30,20,10,.35); font: 600 12.5px/1.2 var(--font-body); color: #2c2b29; }
.ctm-osm{ position: absolute; z-index: 2; right: 10px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.75); font-size: 10.5px; color: #6b675f; }
@media (hover: hover) and (pointer: fine){
  .ctm-pin:hover span{ border-color: var(--accent); transform: translateY(-2px); }
  .ctm-osm:hover{ color: #0a0a0c; }
}
@media (max-width: 999px){ .ctm{ max-width: 720px; } }
@media (max-width: 560px){
  .ctm{ border-radius: 20px; }
  .ctm-mlabel, .ctm-street{ display: none; }
  .ctm-pin.is-plant span{ top: auto; bottom: 14px; }
  .ctm-pin span{ top: 14px; padding: 6px 9px 7px; font-size: 11px; max-width: 175px; border-radius: 11px; }
  .ctm-pin b{ font-size: 12px; }
  .ctm-pin i{ left: -7px; top: -7px; width: 14px; height: 14px; border-width: 2px; }
  .ctm-cap{ left: 10px; top: 10px; font-size: 11px; padding: 5px 9px; }
}
@keyframes ctm-in{ from{ transform: translateY(18px) scale(.98); } }
@keyframes ctm-drop{ from{ opacity: 0; transform: translateY(-14px) scale(.6); } }
@keyframes ctm-rise{ from{ opacity: 0; transform: translateY(8px); } }
@keyframes ctm-ping{ 0%{ opacity: .9; transform: scale(.6); } 70%, 100%{ opacity: 0; transform: scale(2.2); } }
@media (prefers-reduced-motion: reduce){
  .ctm, .ctm-pin i, .ctm-pin span{ animation: none; }
  .ctm-pin i::after{ animation: none; display: none; }
}

/* privacy policy: the cookie choice line sits below the dark hero, not glued to it */
.doc-body .ck-set{ margin-top: clamp(24px, 3vw, 36px); }
