@font-face {
  font-family: "Onest";
  src: url("assets/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  src: url("assets/onest-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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 {
  --orange: #ff6a1a;
  --orange-dark: #c74200;
  --petrol: #173b3a;
  --petrol-on-orange: #133331;
  --petrol-soft: #315553;
  --muted: #5d686c;
  --paper: #ffffff;
  --cool: #f1f4f1;
  --line: #cbd4cf;
  --max: 1200px;
  --pad: clamp(24px, 4.5vw, 64px);
  --display: clamp(2.8rem, 4.6vw, 4rem);
}

* { box-sizing: border-box; }

html {
  scrollbar-color: #9aa7a4 var(--cool);
  scrollbar-width: thin;
}

body {
  margin: 0;
  color: var(--petrol);
  background: var(--paper);
  font-family: "Onest", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

::selection { color: var(--paper); background: var(--petrol); }

a { color: inherit; text-underline-offset: 0.18em; transition: color 160ms ease; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--petrol);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 var(--pad);
  border-bottom: 1px solid rgb(255 255 255 / 48%);
  color: var(--paper);
  background: var(--orange);
}

.brand {
  justify-self: start;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav { display: flex; gap: clamp(20px, 3vw, 42px); }
.nav a, .header-action { font-size: 15px; font-weight: 520; text-decoration: none; }
.nav a:hover, .header-action:hover { color: var(--paper); text-decoration: underline; }
.header-action { justify-self: end; }
.site-header a:focus-visible,
.site-header button:focus-visible,
.button--primary:focus-visible,
.contact a:focus-visible { outline-color: var(--paper); }

.menu-button,
.mobile-nav { display: none; }

.hero {
  display: grid;
  align-items: center;
  min-height: 440px;
  padding: clamp(40px, 4.5vw, 58px) var(--pad);
  background: var(--paper);
}

.hero__content { width: min(1050px, 100%); }

h1, h2, h3, p { margin-top: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1 {
  max-width: 20ch;
  margin-bottom: 30px;
  font-size: var(--display);
  font-weight: 480;
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero p {
  max-width: 49ch;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.48;
}

.hero-status-link {
  color: inherit;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--orange);
  text-underline-offset: 0.2em;
}

.hero-status-link:hover { color: var(--orange-dark); }

.button {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 15px 26px;
  border-radius: 14px;
  font-weight: 580;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1), background-color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); transition-duration: 60ms; }
.button--primary { color: var(--paper); background: var(--orange); }
.button--primary:hover { background: #ff7a33; }

.section {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 6vw, 88px);
  padding: clamp(60px, 7vw, 100px) var(--pad);
}

.section > * { min-width: 0; }
.section__heading { max-width: 560px; }

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 3.4vw, 3.3rem);
  font-weight: 480;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section__heading > p {
  max-width: 48ch;
  color: var(--muted);
  font-size: 20px;
}

.product-details { padding: clamp(48px, 5.5vw, 76px) var(--pad); }
.products-heading { max-width: var(--max); margin: 0 auto 26px; }
.products-heading h2 { margin-bottom: 8px; }
.products-heading p { max-width: 48ch; margin: 0; color: var(--muted); font-size: 19px; }
.detail-list { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.detail-item {
  display: grid;
  grid-template-columns: minmax(190px, .52fr) minmax(0, 1.48fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}
.detail-item p { max-width: 62ch; margin-bottom: 16px; color: var(--muted); }
.detail-item a { color: var(--orange-dark); font-size: 16px; font-weight: 620; }
.detail-item__copy a:hover { color: var(--orange); }
.detail-item__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }

.product-logo { display: block; color: var(--petrol); font-size: 30px; font-weight: 700; letter-spacing: -0.04em; }
.product-logo img { display: block; width: auto; max-width: 100%; transition: opacity 160ms ease; }
.product-logo:hover img { opacity: 0.72; }
.product-logo--1opd img { height: 30px; }
.product-logo--aidentme img { height: 32px; }
.product-logo--apmcheck img { height: 34px; }
.product-logo--fnfd img { height: 42px; }
.product-logo--checkeast img { height: 34px; }

.development { background: var(--cool); }
.capability-list { border-top: 1px solid var(--line); }
.cap { border-bottom: 1px solid var(--line); }
.cap__head {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  width: 100%; padding: 20px 0; border: 0; background: transparent; cursor: pointer;
  color: var(--petrol); font-family: inherit; text-align: left;
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.03em;
}
.cap__mark {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); position: relative; color: var(--orange-dark);
  transition: transform 300ms cubic-bezier(.22, 1, .36, 1), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.cap__mark::before, .cap__mark::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: currentColor;
  translate: -50% -50%; transition: transform 300ms cubic-bezier(.22, 1, .36, 1);
}
.cap__mark::before { width: 14px; height: 2px; }
.cap__mark::after { width: 2px; height: 14px; }
.cap__head { transition: color 160ms ease; }
.cap__head:hover { color: var(--orange-dark); }
.cap__head:hover .cap__mark { border-color: var(--orange); }
.cap.open .cap__mark { background: var(--orange); border-color: var(--orange); color: var(--paper); transform: rotate(180deg); }
.cap.open .cap__mark::after { transform: rotate(90deg); }
.cap__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 340ms cubic-bezier(.22, 1, .36, 1); }
.cap.open .cap__body { grid-template-rows: 1fr; }
.cap__inner { overflow: hidden; }
.cap__inner p { max-width: 58ch; margin: 0; padding: 0 52px 22px 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

.expertise { background: var(--petrol); color: var(--paper); }
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgb(255 255 255 / 28%); }
.expertise-grid div { padding: 24px 24px 26px 0; border-bottom: 1px solid rgb(255 255 255 / 28%); }
.expertise-grid div:nth-child(odd) { border-right: 1px solid rgb(255 255 255 / 28%); }
.expertise-grid div:nth-child(even) { padding-left: 24px; }
.expertise-grid strong { display: block; margin-bottom: 12px; font-size: 26px; font-weight: 580; }
.expertise-grid p { max-width: 32ch; margin: 0; color: #d5dfdc; }

.process-list { margin: 0; padding: 0; list-style: none; counter-reset: process; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.process-list strong { font-size: 20px; font-weight: 580; }
.process-list span { color: var(--muted); }


.contact {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding: clamp(40px, 4.5vw, 64px) var(--pad);
  color: var(--paper);
  background: var(--orange);
}

.contact > * { min-width: 0; }
.contact h2 { max-width: 18ch; font-size: clamp(1.9rem, 2.8vw, 2.7rem); }
.contact__intro p { max-width: 42ch; margin-bottom: 14px; color: var(--paper); font-size: 19px; }
.contact__mail { font-size: 17px; }
.contact__mail a { color: var(--paper); font-weight: 580; }
.button--contact { border: 0; color: var(--orange-dark); background: var(--paper); padding-inline: 34px; font-weight: 600; }
.button--contact:hover { color: var(--orange); }

/* ---------- Форма заявки ---------- */

.lead-form {
  padding: clamp(26px, 3vw, 38px);
  border-radius: 20px;
  color: var(--petrol);
  background: var(--paper);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 540;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--petrol);
  background: var(--paper);
  font: inherit;
  font-size: 17px;
}

.field textarea { min-height: 104px; resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--orange);
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.field-err {
  margin: 8px 0 0;
  color: var(--orange-dark);
  font-size: 15px;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.chk {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 14px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.chk input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--orange);
}

.chk a { color: var(--orange-dark); font-weight: 560; }
.chk a:hover { color: var(--orange); }

.button--submit {
  width: 100%;
  margin-top: 12px;
  border: 0;
  color: var(--paper);
  background: var(--petrol);
  font: inherit;
  font-size: 17px;
  font-weight: 580;
  cursor: pointer;
}

.button--submit:hover { background: var(--petrol-soft); }
.button--submit[disabled] { cursor: default; opacity: .65; transform: none; }

.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 16px;
}

.form-status[hidden] { display: none; }
.form-status--ok { color: var(--petrol); background: var(--cool); }
.form-status--err { color: var(--orange-dark); background: #fdeee6; }

.form-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.footer {
  padding: clamp(34px, 4vw, 48px) var(--pad) 26px;
  color: #d5dfdc;
  background: var(--petrol);
  font-size: 14px;
}

.footer__company { max-width: var(--max); margin: 0 auto 26px; }
.footer__brand { display: block; margin-bottom: 10px; color: var(--paper); font-size: 19px; font-weight: 650; letter-spacing: -0.03em; }
.footer__company p { max-width: 72ch; margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; }
.footer__req { color: #9db3ae; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 16%);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer a { color: var(--paper); text-decoration-color: rgb(255 255 255 / 35%); }
.footer a:hover { text-decoration-color: var(--paper); }

@media (max-width: 820px) {
  :root { --pad: 22px; }

  body { font-size: 16px; }

  .site-header { grid-template-columns: 1fr auto; min-height: 64px; }
  .nav, .header-action { display: none; }
  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 10px 12px;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
  }

  .menu-button__label { font-size: 14px; font-weight: 560; }
  .menu-button__lines { position: relative; width: 22px; height: 14px; border-top: 2px solid; border-bottom: 2px solid; }
  .mobile-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: grid;
    padding: 10px var(--pad) 22px;
    border-bottom: 1px solid var(--line);
    color: var(--petrol);
    background: var(--paper);
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 540; text-decoration: none; }

  .hero { min-height: auto; padding-top: 42px; padding-bottom: 50px; }
  h1 { max-width: 13ch; margin-bottom: 20px; font-size: clamp(2.3rem, 10.5vw, 3rem); line-height: 1.03; }
  .hero p { margin-bottom: 26px; font-size: 17px; }
  .hero .button { min-height: 52px; padding: 13px 20px; }

  .section { grid-template-columns: 1fr; gap: 34px; padding-top: 60px; padding-bottom: 66px; }
  .product-details { padding-top: 48px; padding-bottom: 56px; }
  .detail-item { grid-template-columns: 1fr; gap: 24px; padding: 30px 0 34px; }
  h2 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .section__heading > p { font-size: 18px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-grid div:nth-child(odd) { border-right: 0; }
  .expertise-grid div:nth-child(even) { padding-left: 0; }
  .process-list li { grid-template-columns: 1fr; gap: 8px; }
  .contact { grid-template-columns: 1fr; gap: 24px; padding-top: 44px; padding-bottom: 50px; }
  .contact__intro p { font-size: 18px; }
  .footer__base { flex-direction: column; }
}

@media (max-width: 460px) {
  }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}


/* ---------- Прогресс чтения ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--orange); z-index: 30; }

/* ---------- Лента продуктов ---------- */
.product-band { overflow: hidden; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cool); }
.product-band__track { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); width: max-content; animation: band 26s linear infinite; padding-left: 48px; }
.product-band:hover .product-band__track { animation-play-state: paused; }
.product-band a { display: flex; align-items: center; flex: none; }
.product-band img { display: block; height: 26px; width: auto; opacity: .92; transition: opacity 160ms ease; }
.product-band a:hover img { opacity: 1; }
.product-band .band-1opd img { height: 24px; }
/* fnfd — значок задаёт высоту картинки, поэтому сама надпись мельче соседних:
   даём больший размер и опускаем на 2px, чтобы строка логотипов читалась ровной. */
.product-band .band-fnfd img { height: 38px; transform: translateY(2px); }
@keyframes band { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .product-band { overflow-x: auto; }
  .product-band__track { animation: none; padding-right: 48px; }
}

/* ---------- Модальное окно заявки ---------- */
.modal {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: 20px;
  color: var(--petrol); background: var(--paper);
}
.modal::backdrop { background: rgb(23 59 58 / 55%); }
.modal[open] { animation: modal-in 260ms cubic-bezier(.22, 1, .36, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 34px) 0;
}
.modal__head h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.modal__close {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  position: relative; color: var(--petrol);
  transition: border-color 200ms ease, color 200ms ease;
}
.modal__close::before, .modal__close::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 2px;
  background: currentColor; translate: -50% -50%;
}
.modal__close::before { rotate: 45deg; }
.modal__close::after { rotate: -45deg; }
.modal__close:hover { border-color: var(--orange); color: var(--orange-dark); }
.modal .lead-form { padding: clamp(16px, 2.5vw, 24px) clamp(22px, 3vw, 34px) clamp(22px, 3vw, 32px); }
.contact__actions { align-self: center; }
@media (max-width: 820px) {
  .cap__head { padding: 16px 0; }
  .cap__mark { width: 30px; height: 30px; }
  .cap__inner p { padding-right: 0; }
  .modal { width: calc(100vw - 20px); }
}

/* ---------- Юридические страницы ---------- */

.site-header--simple { grid-template-columns: 1fr auto; }

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) var(--pad) clamp(80px, 10vw, 120px);
}

.legal h1 {
  max-width: 22ch;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.legal .legal__kicker {
  margin-bottom: 0;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 20px;
}

.legal h2 {
  margin: 46px 0 14px;
  font-size: 26px;
  font-weight: 580;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.legal > p:first-of-type { margin-top: 34px; }

.legal ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 20px;
  padding-left: 20px;
}

.legal a { color: var(--orange-dark); font-weight: 560; }
.legal a:hover { color: var(--orange); }

.legal .legal__contacts {
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: var(--petrol);
}

.legal__back {
  display: inline-flex;
  gap: 10px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--orange-dark);
  font-size: 16px;
  font-weight: 620;
  text-decoration: none;
}

.legal__back:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .site-header--simple .header-action { display: inline-block; }
  .legal h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .legal .legal__kicker { font-size: 18px; }
  .legal h2 { font-size: 22px; }
}


/* ---------- Cookie-баннер 1ОПД: приведение к палитре сайта ----------
   Сниппет добавляет свой <style> в head в рантайме — то есть позже нашей
   таблицы. Поэтому перекрываем через body-префикс (специфичность выше). */

body #opd-cookie-banner {
  border-top: 0;
  background: var(--petrol);
  font-family: "Onest", "Avenir Next", "Segoe UI", sans-serif;
  box-shadow: 0 -10px 34px -22px rgb(23 59 58 / 60%);
}
body #opd-cookie-banner .opd-cb-inner { max-width: var(--max); gap: 16px; }
body #opd-cookie-banner .opd-cb-text { color: #d5dfdc; }
body #opd-cookie-banner .opd-cb-text a { color: var(--paper); text-underline-offset: 0.18em; }
body #opd-cookie-banner .opd-cb-cat { color: #9db3ae; }
body #opd-cookie-banner .opd-cb-cat input[type=checkbox] { accent-color: var(--orange); }
body #opd-cookie-banner .opd-cb-btn {
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  padding: 11px 18px;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}
body #opd-cookie-banner .opd-cb-btn-all { color: var(--paper); background: var(--orange); }
body #opd-cookie-banner .opd-cb-btn-all:hover { background: #ff7a33; opacity: 1; }
body #opd-cookie-banner .opd-cb-btn-sel {
  color: var(--paper);
  background: transparent;
  border: 1px solid rgb(255 255 255 / 34%);
}
body #opd-cookie-banner .opd-cb-btn-sel:hover { background: rgb(255 255 255 / 10%); opacity: 1; }
body #opd-cookie-banner .opd-cb-btn-min { color: #9db3ae; }
body #opd-cookie-banner .opd-cb-btn-min:hover { color: var(--paper); opacity: 1; }
