/* One Pilot — публичный сайт.
   Характер: точный, спокойный, уверенный. Мир — банковские документы и 1С.
   Нейтральный холодный ramp в хроме, один акцент (синий), розовый — для одного
   выделения. Вся насыщенность — в 3D-иллюстрациях (моменты). Шрифты: Golos Text + JetBrains Mono. */

:root {
  /* нейтральный ramp (холодный) */
  --ink: #14161d;
  --ink-2: #474e5e;
  --muted: #868e9f;
  --bg: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #eceff6;
  --line: rgba(20, 22, 29, 0.09);

  /* тёмные поверхности (навигация бренда) */
  --dark: #0c1626;
  --dark-2: #15263d;
  --dark-line: rgba(255, 255, 255, 0.11);
  --dark-ink: #ffffff;
  --dark-2nd: #b4bccb;
  --dark-muted: #767f92;

  /* акценты (из официального логотипа) */
  --blue: #1b74e4;
  --blue-700: #155ec0;
  --pink: #ff4d8d;

  --r1: 10px; --r2: 14px; --r3: 20px; --r4: 28px;
  --shadow: 0 8px 24px rgba(18, 28, 56, 0.08);
  --shadow-lg: 0 24px 60px rgba(18, 28, 56, 0.13);
  --maxw: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.op-nav-in::before { content: ""; position: fixed; inset: 0; background: #fff; z-index: 9998; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body.op-loading, body.op-menu { overflow: hidden; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }

.op-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.op-eyebrow {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.op-eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }

/* ---------- Кнопки ---------- */
.op-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .06s var(--ease);
}
.op-btn:active { transform: translateY(1px); }
.op-btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(27, 116, 228, 0.22); }
.op-btn--primary:hover { background: var(--blue-700); box-shadow: 0 10px 24px rgba(27, 116, 228, 0.3); }
.op-btn--ghost, .op-btn--light, .op-btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.op-btn--ghost:hover, .op-btn--light:hover, .op-btn--outline:hover { border-color: #c3cdde; background: var(--surface); }
.op-btn--lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }

/* ---------- Логотип / Шапка-айланд ---------- */
.op-brand { display: inline-flex; align-items: center; }
.op-logo { height: 38px; width: auto; display: block; }
.op-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: transform .35s var(--ease); }
.op-header.is-hidden { transform: translateY(-150%); }
.op-header__inner { display: flex; align-items: center; gap: 24px; height: 60px; margin: 14px 0; padding: 0 12px 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(18, 28, 56, 0.09); }
.op-nav { display: flex; gap: 26px; margin-left: 8px; }
.op-nav a { color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color .2s; }
.op-nav a:hover { color: var(--ink); }
.op-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.op-header__actions .op-btn { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.op-burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; position: relative; }
.op-burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.op-burger span:first-child { top: 16px; } .op-burger span:last-child { bottom: 16px; }

/* ---------- Hero (светлый) ---------- */
.op-hero { background: var(--bg); color: var(--ink); padding: 136px 0 84px; position: relative; overflow: hidden; }
.op-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 46% at 84% 4%, rgba(255, 77, 141, 0.10), transparent 62%), radial-gradient(44% 48% at 8% 0%, rgba(27, 116, 228, 0.12), transparent 60%); }
.op-hero__inner { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 52px; align-items: center; position: relative; z-index: 1; }
.op-hero h1 { font-size: clamp(40px, 6vw, 70px); margin: 0 0 22px; color: var(--ink); }
.op-hero h1 .accent { color: var(--blue); }
.op-hero__lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 520px; margin-bottom: 32px; }
.op-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.op-hero__art { position: relative; }
.op-hero__art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(18, 28, 56, 0.13)); }

/* факты под hero */
.op-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 52px; margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.op-fact__value { font-family: var(--mono); font-size: 34px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.op-fact__label { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 170px; }

/* ---------- Секции ---------- */
.op-section { padding: 92px 0; }
.op-section--surface { background: var(--surface); }
.op-section--dark { background: var(--dark); color: #fff; }
.op-section__head { max-width: 640px; margin: 0 0 48px; }
.op-section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.op-section__head h2 { font-size: clamp(30px, 4vw, 46px); margin: 16px 0 14px; }
.op-section__head p { color: var(--ink-2); font-size: 18px; }
.op-section--dark .op-section__head p { color: var(--dark-2nd); }

/* как работает: иллюстрация + шаги */
.op-how__art { margin: 0 auto 44px; max-width: 980px; }
.op-how__art img { width: 100%; height: auto; }
.op-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.op-step { padding: 4px 4px 0; }
.op-step__n { font-family: var(--mono); font-size: 13px; color: var(--blue); font-weight: 500; }
.op-step h3 { font-size: 18px; margin: 12px 0 8px; font-weight: 600; letter-spacing: -0.01em; }
.op-step p { font-size: 15px; color: var(--ink-2); }
.op-step + .op-step { border-left: 1px solid var(--line); padding-left: 22px; }

/* preview-момент: журнал проверки */
.op-preview { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.op-preview__text h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 16px 0 16px; }
.op-preview__text p { color: var(--ink-2); font-size: 17px; margin-bottom: 14px; }
.op-win { background: #fff; border: 1px solid var(--line); border-radius: var(--r3); box-shadow: var(--shadow-lg); overflow: hidden; }
.op-win__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.op-win__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.op-win__bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.op-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.op-row:last-child { border-bottom: 0; }
.op-row__name { font-weight: 600; font-size: 15px; }
.op-row__sub { color: var(--muted); font-size: 13px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.op-tag { font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 4px 9px; border-radius: 7px; white-space: nowrap; }
.op-tag--ok { background: #e7f6ec; color: #1c8a4e; }
.op-tag--warn { background: #fdf1dd; color: #b9770c; }
.op-tag--blue { background: #e8f1fe; color: var(--blue-700); }
.op-tag--pink { background: #ffe8f0; color: #d82e67; }
.op-tags { display: flex; gap: 6px; }

/* возможности */
.op-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.op-card { background: #fff; padding: 30px 26px; transition: background .2s var(--ease); }
.op-card:hover { background: var(--surface); }
.op-card__ic { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 18px; color: var(--ink-2); }
.op-card__ic svg { width: 24px; height: 24px; }
.op-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 9px; }
.op-card p { color: var(--ink-2); font-size: 15px; }

/* проблема → решение (на тёмной секции) */
.op-rows { display: grid; gap: 14px; max-width: 960px; }
.op-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.op-cell { border-radius: var(--r2); padding: 20px 22px; font-size: 15.5px; }
.op-cell--bad { background: var(--dark-2); color: var(--dark-2nd); border: 1px solid var(--dark-line); }
.op-cell--good { background: #fff; color: var(--ink); }
.op-cell b { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; font-weight: 500; }
.op-cell--bad b { color: var(--dark-muted); }
.op-cell--good b { color: var(--blue-700); }

/* ---------- Тарифы ---------- */
.op-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.op-plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r3); padding: 30px 28px; position: relative; }
.op-plan--featured { border-color: var(--pink); box-shadow: 0 20px 50px rgba(255, 61, 127, 0.12); }
.op-plan__badge { position: absolute; top: -12px; left: 28px; background: var(--pink); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 7px; }
.op-plan__name { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.op-plan__price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.op-plan__price span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.op-plan__quota { color: var(--ink-2); font-size: 16px; margin-bottom: 22px; }
.op-plan__quota b { color: var(--ink); font-weight: 600; }
.op-plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.op-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.op-plan li svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--blue); margin-top: 1px; }
.op-plan .op-btn { width: 100%; }

/* ---------- Форма заявки ---------- */
.op-request { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.op-request__text h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 16px 0 16px; }
.op-request__text p { color: var(--ink-2); font-size: 18px; }
.op-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r3); box-shadow: var(--shadow); padding: 28px; }
.op-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.op-form__grid .op-full { grid-column: 1 / -1; }
.op-field-wrap label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.op-field { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r1); font: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s; }
.op-field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 116, 228, 0.12); }
textarea.op-field { resize: vertical; }
.op-form__err { color: #d82e67; font-size: 13px; margin-top: 5px; }
.op-form .op-btn { width: 100%; margin-top: 4px; }
.op-form__note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.op-sent { display: flex; gap: 16px; align-items: flex-start; background: #e7f6ec; border: 1px solid #c3e9d0; border-radius: var(--r2); padding: 20px 22px; }
.op-sent svg { width: 26px; height: 26px; color: #1c8a4e; flex: 0 0 auto; }
.op-sent h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.op-sent p { color: var(--ink-2); font-size: 15px; }

/* контакты */
.op-contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; }
.op-contact { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 22px; }
.op-contact h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.op-contact span { color: var(--ink); font-size: 16px; }

/* ---------- Футер ---------- */
.op-footer { background: var(--dark); color: var(--dark-muted); padding: 64px 0 30px; }
.op-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.op-footer .op-logo { height: 28px; }
.op-logo--white { filter: brightness(0) invert(1); }
.op-footer__brand p { margin-top: 16px; max-width: 360px; color: var(--dark-muted); font-size: 15px; line-height: 1.6; }
.op-footer__col h4 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.op-footer__col a { display: block; color: var(--dark-2nd); padding: 6px 0; font-size: 15px; transition: color .2s; }
.op-footer__col a:hover { color: #fff; }
.op-footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--dark-line); font-family: var(--mono); font-size: 13px; color: var(--dark-muted); }

/* ---------- Загрузчик перехода ---------- */
.op-loader { position: fixed; inset: 0; z-index: 9999; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s var(--ease); }
.op-loader.is-active { opacity: 1; visibility: visible; }
.op-loader__logo { width: 190px; height: auto; animation: op-rise .5s var(--ease); }
.op-loader__track { width: 190px; height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.op-loader__bar { width: 40%; height: 100%; border-radius: 999px; background: var(--blue); animation: op-slide 1.05s var(--ease) infinite; }
@keyframes op-slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(370%); } }
@keyframes op-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Появление секций ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Контакты: действия ---------- */
.op-contact-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Модальное окно ---------- */
.op-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.op-modal.is-open { display: block; }
.op-modal__scrim { position: absolute; inset: 0; background: rgba(12, 22, 38, 0.5); }
.op-modal__dialog { position: relative; width: calc(100% - 40px); max-width: 440px; margin: 12vh auto 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 30px; animation: op-rise .35s var(--ease); }
.op-modal__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.op-modal__close:hover { background: var(--surface-2); color: var(--ink); }
.op-modal h3 { font-size: 22px; margin-bottom: 8px; }
.op-modal p { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.op-modal form { display: grid; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  .op-loader__bar, .op-loader__logo { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .op-hero__inner, .op-preview, .op-request { grid-template-columns: 1fr; gap: 36px; }
  .op-hero__art { order: -1; max-width: 460px; }
  .op-cards, .op-steps, .op-plans { grid-template-columns: 1fr 1fr; }
  .op-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .op-nav { position: fixed; inset: 86px 16px auto; flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px 18px 12px; transform: translateY(-14px); opacity: 0; pointer-events: none; transition: transform .28s var(--ease), opacity .28s var(--ease); box-shadow: var(--shadow-lg); }
  .op-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .op-nav a { color: var(--ink); padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .op-nav a:last-child { border-bottom: 0; }
  .op-burger { display: block; }
  .op-hero { padding: 118px 0 60px; }
  .op-facts { grid-template-columns: 1fr; gap: 24px; }
  .op-cards, .op-steps, .op-plans, .op-row2, .op-contacts, .op-footer__inner { grid-template-columns: 1fr; }
  .op-step + .op-step { border-left: 0; padding-left: 4px; }
  .op-form__grid { grid-template-columns: 1fr; }
  .op-section { padding: 64px 0; }
}
