/* common: общие шрифты, меню, кнопки, футер и поведение экранов. */

  body {
    padding-left: 260px;
  }
  .quadra-menu {
    position: fixed;
    inset: 0 auto 0 0;
    overflow: hidden;
    box-sizing: border-box;
  }

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: block;
  src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: block;
  src: url("../fonts/golos-text-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;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 300 800;
  font-display: block;
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 300 800;
  font-display: block;
  src: url("../fonts/unbounded-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;
}

:root {
  --bg: #ffffff;
  --bg2: #f4fafa;
  --bg3: #e8f5f4;
  --accent: #1aacaa;
  --accent2: #2ec4a8;
  --accent3: #4dd9ac;
  --accent-dark: #0d7a78;
  --accent-pale: #d0f0ee;
  --text: #0c2020;
  --text-dim: #4a7878;
  --text-muted: #9abcbc;
  --border: rgba(26, 172, 170, 0.13);
  --border-strong: rgba(26, 172, 170, 0.35);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Golos Text", sans-serif;
}
.quadra-menu-logo img {
  aspect-ratio: 728 / 232;
}
.quadra-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 24px;
  background: var(--bg);
  border-right: 1px solid var(--border-strong);
  font-family: var(--font-body);
}
.quadra-menu > * {
  flex-shrink: 0;
}
.quadra-menu a {
  color: var(--text);
  text-decoration: none;
}
.quadra-menu a:hover {
  color: var(--accent);
}
.quadra-menu-logo {
  display: block;
  margin-bottom: 16px;
}
.quadra-menu-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}
.quadra-menu-heading,
.quadra-menu-single {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
}
.quadra-menu-single {
  display: block;
  margin: 0 0 10px;
}
.quadra-menu-group {
  margin: 0 0 14px;
}
.quadra-menu-heading {
  display: block;
  margin: 0 0 9px;
}
.quadra-menu-tree {
  list-style: none;
  margin: 0 0 0 7px;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
}
.quadra-menu-tree li {
  position: relative;
  padding: 0 0 9px 23px;
  font-size: 13px;
  line-height: 1.42;
}
.quadra-menu-tree li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--border-strong);
}
.quadra-menu-tree li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 15px;
  border-top: 1px solid var(--border-strong);
}
.quadra-menu-tree li:last-child {
  padding-bottom: 0;
}
.quadra-menu-tree li:last-child::before {
  bottom: auto;
  height: 10px;
}
.quadra-menu-placeholder {
  color: var(--text-muted);
}

  .quadra-menu-single.is-disabled-desktop {
    color: var(--text-muted);
    pointer-events: none;
  }

.quadra-menu-tree .is-active > a {
  color: var(--accent-dark);
  font-weight: 400;
}
.quadra-menu-footer {
  margin-top: auto;
  padding-top: 10px;
}
.quadra-menu-footer-inner {
  border-top: 1px solid var(--border-strong);
  padding-top: 11px;
}
.quadra-menu-status {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}
.quadra-menu-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}
.quadra-menu-footer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent-dark);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a {
  cursor: none !important;
}
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.18s,
    height 0.18s;
}
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(26, 172, 170, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.25s,
    height 0.25s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 17px 44px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition:
    background 0.2s,
    transform 0.15s;
  cursor: none;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
  cursor: none;
  border: 2px solid var(--border-strong);
  padding: 15px 28px;
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost-arrow {
  transition: transform 0.2s;
}
.btn-ghost:hover .btn-ghost-arrow {
  transform: translateX(4px);
}

.section-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::after {
  content: "";
  width: 60px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.4;
}
#footer.page-footer {
  background: linear-gradient(135deg, #071919 0%, #0b2929 58%, #061616 100%);
  color: #fff;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
#footer.page-footer::before {
  content: "QUADRA";
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(150px, 19vw, 285px);
  font-weight: 800;
  line-height: 1;
  color: rgba(26, 172, 170, 0.035);
  pointer-events: none;
}
#footer.page-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 172, 170, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 172, 170, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 88%);
  pointer-events: none;
}
#footer .footer-top {
  position: relative;
  z-index: 1;
  min-width: 0;
}
#footer .footer-brand-note {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  display: flex;
  align-items: center;
  gap: 14px;
}
#footer .footer-brand-note::before {
  content: "";
  width: 36px;
  height: 1.5px;
  background: var(--accent);
}
#footer .footer-info-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr 1.15fr;
  align-self: stretch;
  border-top: 1px solid rgba(26, 172, 170, 0.34);
  border-bottom: 1px solid rgba(26, 172, 170, 0.2);
  position: relative;
  z-index: 1;
}
#footer .footer-info-block {
  padding: clamp(18px, 2.4vh, 28px) clamp(24px, 2.5vw, 42px);
  min-width: 0;
}
#footer .footer-info-block:first-child {
  padding-left: 0;
}
#footer .footer-info-block + .footer-info-block {
  border-left: 1px solid rgba(26, 172, 170, 0.18);
}
#footer .footer-info-label {
  margin-bottom: 20px;
  font-family: var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
#footer .footer-contact-main,
#footer .footer-contact {
  display: block;
  width: max-content;
  max-width: 100%;
  color: #fff;
  text-decoration: none;
  cursor: none;
  transition: color 0.2s;
}
#footer .footer-contact-main {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 600;
}
#footer .footer-contact {
  margin-top: 7px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
}
#footer .footer-contact-main:hover,
#footer .footer-contact:hover {
  color: var(--accent3);
}
#footer .footer-address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}
#footer .footer-requisites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
#footer .footer-requisites div {
  min-width: 0;
}
#footer .footer-requisites dt {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
}
#footer .footer-requisites dd {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
#footer .footer-requisite-wide {
  grid-column: 1 / -1;
}
#footer .footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 1;
}
#footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}
#footer .footer-links a {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  cursor: none;
  transition: color 0.2s;
}
#footer .footer-links a:hover {
  color: var(--accent3);
}
#footer .footer-meta {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.3);
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.d1 {
  transition-delay: 0.1s;
}
.d2 {
  transition-delay: 0.2s;
}
.d3 {
  transition-delay: 0.3s;
}
html {
  scroll-snap-type: y mandatory;
}
.page-screen {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
#footer.page-footer {
  scroll-snap-stop: always;
}


html {
  scroll-behavior: auto;
  overscroll-behavior-y: none;
}
html.is-page-scrolling {
  scroll-snap-type: none;
}
.page-screen,
#footer.page-footer {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}
.page-screen .section-label {
  margin-bottom: clamp(18px, 3vh, 32px);
}
.page-screen,
#footer.page-footer {
  transition: filter 0.55s ease;
}
.page-screen:not(.is-current),
#footer.page-footer:not(.is-current) {
  filter: saturate(0.82);
}



@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .page-screen,
  #footer.page-footer {
    transition: none;
  }
}
html {
  scrollbar-gutter: stable;
}
@view-transition {
  navigation: auto;
}

  .quadra-menu {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    font-synthesis: none;
    transform: none;
    transition: none;
    backface-visibility: hidden;
    view-transition-name: quadra-sidebar;
  }
  .quadra-menu a,
  .quadra-menu img {
    transform: none !important;
  }

::view-transition-group(quadra-sidebar) {
  z-index: 10000;
  animation-duration: 0.25s;
  animation-timing-function: linear;
}
::view-transition-old(quadra-sidebar) {
  animation: none;
  opacity: 1;
  mix-blend-mode: normal;
}
::view-transition-new(quadra-sidebar) {
  animation: none;
  opacity: 0;
  mix-blend-mode: normal;
}
#footer.page-footer {
  height: auto;
  min-height: 70svh;
  max-height: none;
  overflow: hidden;
  scroll-snap-align: end;
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 6vh, 56px) 60px 24px;
  gap: 20px;
}
#footer .footer-brand {
  padding-top: 0;
}
#footer .footer-brand-note {
  margin: 0;
}
#footer .footer-info-grid {
  margin-top: clamp(16px, 5vh, 40px);
}
#footer .footer-info-label {
  font-size: 12px;
  font-weight: 700;
}


/* Общие блоки вакансий и контактов; ограничены .company-page. */
/* company-common: стили company-common. */

:where(.company-page) .quadra-menu-single.is-active {
  color: var(--accent-dark);
}
.company-page .page-screen {
  position: relative;
  padding: clamp(30px, 5vh, 56px) 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
:where(.company-page) .company-hero {
  background: var(--bg2);
  overflow: hidden;
}
:where(.company-page) .company-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 172, 170, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 172, 170, 0.075) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 92% 92% at 25% 50%, #000, transparent 88%);
}
:where(.company-page) .company-glow {
  position: absolute;
  right: -10%;
  top: -28%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 172, 170, 0.12), transparent 68%);
}
:where(.company-page) .company-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(42px, 5vw, 80px);
  align-items: center;
}
:where(.company-page) .company-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  margin-bottom: clamp(20px, 3vh, 30px);
  border: 1px solid var(--accent);
  background: var(--accent-pale);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
:where(.company-page) .company-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: company-pulse 1.8s ease-in-out infinite;
}
@keyframes company-pulse {
  50% {
    opacity: 0.4;
    transform: scale(1.65);
  }
}
:where(.company-page) .company-title {
  max-width: 760px;
  margin-bottom: clamp(22px, 3vh, 32px);
  font-family: var(--font-display);
  font-size: clamp(46px, 5.5vw, 82px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
:where(.company-page) .company-title em,
:where(.company-page) .company-heading em,
:where(.company-page) .company-cta-title em {
  font-style: normal;
  color: var(--accent);
}
:where(.company-page) .company-lead {
  max-width: 650px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.75;
  color: var(--text-dim);
}
:where(.company-page) .company-actions {
  display: flex;
  gap: 18px;
  margin-top: clamp(28px, 4.5vh, 44px);
}
:where(.company-page) .company-section-alt {
  background: var(--bg2);
}
:where(.company-page) .company-section .section-label {
  margin-bottom: clamp(20px, 3vh, 30px);
}
:where(.company-page) .company-section-head {
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(50px, 7vw, 110px);
  align-items: end;
  margin-bottom: clamp(28px, 4vh, 44px);
}
:where(.company-page) .company-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 55px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
:where(.company-page) .company-intro {
  max-width: 680px;
  font-size: clamp(15px, 1.22vw, 18px);
  line-height: 1.75;
  color: var(--text-dim);
}
:where(.company-page) .company-cta {
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent) 58%, var(--accent2));
  color: #fff;
}
:where(.company-page) .cta-orbit {
  position: absolute;
  width: min(68vw, 900px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}
:where(.company-page) .cta-orbit::before,
:where(.company-page) .cta-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}
:where(.company-page) .cta-orbit::after {
  inset: 29%;
}
:where(.company-page) .cta-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 26px;
}
:where(.company-page) .section-label-light {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 26px !important;
}
:where(.company-page) .section-label-light::after {
  background: #fff;
}
:where(.company-page) .company-cta-title {
  position: relative;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
}
:where(.company-page) .company-cta-title em {
  color: #fff;
}
:where(.company-page) .company-cta-copy {
  position: relative;
  max-width: 660px;
  margin-bottom: 34px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}
:where(.company-page) .company-white-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: #fff;
  color: var(--accent-dark);
}
:where(.company-page) .company-white-button:hover {
  background: var(--accent-pale);
  color: var(--accent-dark);
}
@media (max-height: 820px) {
  .company-page .page-screen {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  :where(.company-page) .company-title {
    font-size: clamp(42px, 5vw, 70px);
  }
  :where(.company-page) .company-lead {
    font-size: 16px;
  }
  :where(.company-page) .company-section-head {
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.company-page) .company-badge span {
    animation: none;
  }
}

/* Контрастный курсор только на бирюзовых CTA вакансий и контактов. */
body:is(.vacancies-page, .contacts-page).cursor-over-cta .cursor {
  background: #7ED2D1;
}
body:is(.vacancies-page, .contacts-page).cursor-over-cta .cursor-ring {
  border-color: rgba(126, 210, 209, 0.75);
}

/* Внутри карты работает её собственный указатель. */
.cursor.cursor-over-map,
.cursor-ring.cursor-over-map {
  visibility: hidden;
}
.contacts-page .map-embed,
.contacts-page .map-embed * {
  cursor: auto !important;
}

/* FOOTER NAVIGATION LAYOUT START */
#footer.page-footer { grid-template-rows: auto auto 1fr auto; }
#footer .footer-primary-links {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0px;
  border-bottom: 0;
}
#footer .footer-info-grid { margin-top: 0; }
#footer .footer-policy-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: rgba(255,255,255,.48);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}
#footer .footer-links a,
#footer .footer-policy-link { color: rgba(255,255,255,.45); font-size: 9px; font-weight: 400; letter-spacing: .12em; }
#footer .footer-links a:hover,
#footer .footer-policy-link:hover { color: var(--accent3); }

/* FOOTER NAVIGATION LAYOUT END */

/* compact solutions menu */
@media (max-height:820px) {
  .quadra-menu { overflow-y:auto; }
  .quadra-menu-logo { margin-bottom:8px; }
  .quadra-menu-single { margin-bottom:6px; }
  .quadra-menu-group { margin-bottom:8px; }
  .quadra-menu-heading { margin-bottom:5px; }
  .quadra-menu-tree li { padding-bottom:5px; font-size:12px; line-height:1.32; }
  .quadra-menu-footer { padding-top:6px; }
}

/* ==========================================================================
   ФИКС КНОПОК, ТЕКСТА, КАРТОЧЕК КОНТАКТОВ, ВАКАНСИЙ И КАРТЫ ПОД ЛЮБОЙ ЭКРАН
   (Вставить в самый конец assets/css/common.css)
   ========================================================================== */

/* 1. УБИРАЕМ ЛАГИ СКРОЛЛА (отключаем тяжелый фильтр saturate при прокрутке) */
.page-screen,
#footer.page-footer,
.page-screen:not(.is-current),
#footer.page-footer:not(.is-current) {
  filter: none !important;
  transition: none !important;
}

/* 2. ИСПРАВЛЕНИЕ ВСЕХ КНОПОК (запрещаем перенос текста и стрелки на новую строку) */
.btn-primary,
.btn-ghost,
:where(.company-page) .company-white-button,
.contacts-page a[class*="btn"],
.contacts-page button:not(.contact-item) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  width: max-content;
  max-width: 100%;
  padding: 15px 26px !important;
  line-height: 1.2 !important;
  text-align: center;
}

/* Контейнеры с кнопками переносят кнопку целиком, а не ломают текст внутри неё */
.hero-actions,
:where(.company-page) .company-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px !important;
}

/* 3. ЗАЩИТА ОТ УЗКОГО ТЕКСТА И ВЫЛЕЗАНИЯ БЛОКОВ НА ЭКРАНАХ ДО 1480px */
@media (max-width: 960px), (max-width: 1480px) and (pointer: coarse) {
  /* Снимаем жесткую обрезку высоты экрана 100svh, чтобы контент спокойно помещался */
  html {
    scroll-snap-type: none !important;
  }
  .page-screen,
  .company-page .page-screen,
  #footer.page-footer {
    height: auto !important;
    min-height: 100svh;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    padding: clamp(32px, 5vh, 56px) clamp(24px, 3.5vw, 48px) !important;
  }

  /* Делаем левое меню чуть компактнее на средних экранах */
  body {
    padding-left: 230px !important;
  }
  .quadra-menu {
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    padding: 12px 16px !important;
  }

  /* ИСПРАВЛЕНИЕ УЗКОГО ТЕКСТА («Наши вакансии» + терминал, «Заезжай в гости» + карта) */
  :where(.company-page) .company-hero-layout,
  :where(.company-page) .company-section-head,
  .contacts-page .page-screen > div[class*="grid"],
  .contacts-page .page-screen > div[class*="layout"],
  .contacts-page .map-section,
  .contacts-page [class*="map-layout"],
  .contacts-page [class*="location"],
  .page-screen:has(.map-embed) > div {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Растягиваем текстовые блоки на комфортную ширину чтения */
  :where(.company-page) .company-title,
  :where(.company-page) .company-lead,
  :where(.company-page) .company-intro {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Терминал на странице вакансий аккуратно встает под текстом на всю ширину */
  :where(.company-page) .company-hero-layout > * {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* ИСПРАВЛЕНИЕ КАРТЫ (чтобы полностью влезала в экран и не резалась справа) */
  .contacts-page .map-embed,
  .contacts-page [class*="map-wrap"],
  .contacts-page [class*="map-card"],
  .contacts-page [class*="map-box"],
  .contacts-page iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .contacts-page .map-embed,
  .contacts-page iframe {
    min-height: 380px !important;
    max-height: 520px !important;
  }
}

/* 4. ИСПРАВЛЕНИЕ КАРТОЧЕК «СПОСОБЫ СВЯЗИ» (Телефоны, Почта, Юридический адрес) */
/* Запрещаем разрыв телефонных номеров и email по слогам */
.contacts-page a[href^="tel:"],
.contacts-page a[href^="mailto:"] {
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-block;
}

/* Кнопки «КОПИРОВАТЬ» и «НА КАРТЕ →» внутри карточки адреса переносятся без обрезки */
.contacts-page [class*="card"] div:has(> button, > a),
.contacts-page [class*="actions"],
.contacts-page [class*="btns"] {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

/* При ширине окна до 1400px перестраиваем 3 узкие колонки контактов в широкие карточки */
@media (max-width: 960px), (max-width: 1400px) and (pointer: coarse) {
  .contacts-page [class*="ways"] [class*="grid"],
  .contacts-page [class*="contact"][class*="grid"],
  .contacts-page #ways > div:not(.section-label):not(.company-section-head) {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  /* Меняем вертикальные разделители колонок на горизонтальные */
  .contacts-page #ways > div > * + * {
    border-left: none !important;
    border-top: 1px solid var(--border-strong) !important;
  }

  /* Главная страница: сетки услуг, продуктов и IoT в 2 колонки вместо 3–4 */
  .services-grid,
  .products-grid,
  .iot-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
  }
  .iot-flow-step:nth-child(2)::after {
    display: none !important;
  }
}

/* 5. ПЛАНШЕТЫ И ТЕЛЕФОНЫ (<= 960px) — СКРЫВАЕМ БОКОВОЕ МЕНЮ В ШАПКУ */
@media (max-width: 960px) {
  body, a, button {
    cursor: auto !important;
  }
  .cursor, .cursor-ring {
    display: none !important;
  }

  body {
    padding-left: 0 !important;
    padding-top: 60px !important;
  }

  .mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
  }
  .mobile-topbar-logo img {
    height: 32px;
    width: auto;
    display: block;
  }
  .mobile-menu-btn {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: var(--accent-pale);
    border: 1px solid var(--accent);
    padding: 9px 14px;
  }

  .quadra-menu {
    top: 60px !important;
    width: min(300px, 85vw) !important;
    min-width: 0 !important;
    max-width: none !important;
    height: calc(100dvh - 60px) !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform 0.25s ease !important;
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 999 !important;
  }
  .quadra-menu.is-open {
    transform: translate3d(0, 0, 0) !important;
  }
  .quadra-menu-logo {
    display: none !important;
  }

  .about-grid,
  .iot-top,
  .services-grid,
  .products-grid,
  .iot-flow,
  #footer .footer-info-grid {
    grid-template-columns: 1fr !important;
  }
  .about-section .about-grid > div:first-child,
  .about-section .about-copy {
    grid-row: auto !important;
  }
  .iot-flow-step::after,
  .iot-flow-step::before {
    display: none !important;
  }
  #footer .footer-info-block {
    padding: 18px 0 !important;
    border-left: none !important;
    border-top: 1px solid rgba(26, 172, 170, 0.2) !important;
  }
}

/* На смартфонах (<= 540px) кнопки растягиваются на всю ширину колонки */
@media (max-width: 540px) {
  .btn-primary,
  .btn-ghost,
  :where(.company-page) .company-white-button {
    width: 100% !important;
  }
  :where(.company-page) .company-title,
  .hero-title {
    font-size: clamp(30px, 8.5vw, 44px) !important;
    line-height: 1.06 !important;
  }
  #footer .footer-requisites {
    grid-template-columns: 1fr !important;
  }
  #footer .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

@media (min-width: 961px) {
  .mobile-topbar {
    display: none !important;
  }
}/* Footer documents: company details precede the privacy policy. */
#footer .footer-document-links{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:14px 28px;margin-left:auto;min-width:0}
#footer .footer-document-links a{line-height:1.6}
/* Draw diagonal arrows as vectors, independent of platform emoji fonts. */
.text-arrow-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.company-links .text-arrow-icon {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}
/* Preserve the surrounding design if iOS inserts a detected-data link. */
a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  font: inherit !important;
  letter-spacing: inherit !important;
}
@media(max-width:540px){#footer .footer-document-links{width:100%;gap:16px 22px}}
.mobile-menu-backdrop[hidden]{display:none!important}
.mobile-menu-backdrop{position:fixed;inset:60px 0 0;z-index:998;background:rgba(7,46,46,.08);touch-action:none}
html.mobile-nav-locked{overflow:hidden!important;scroll-snap-type:none!important;overscroll-behavior:none}
html body.mobile-nav-locked{position:fixed!important;top:var(--menu-scroll-top,0);left:0;right:0;width:100%;overflow:hidden!important}
.mobile-nav-locked .quadra-menu{overscroll-behavior:contain;touch-action:pan-y}

/* Active pages change text color only; tree guides retain their base style. */
.quadra-menu a[aria-current="page"] { color: var(--accent-dark); }
