/* Inseek Реактивы — стилистика inseek.pro (Opague, #EAEAEA/#060C1A/#2A91D9) */

@font-face {
  font-family: "Opague";
  src: url("/fonts/Opague-Medium-Web.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eaeaea;
  --ink: #060c1a;
  --black: #020202;
  --muted: #3e5467;
  --accent: #2a91d9;
  --light: #eaeaea;
  --radius: 8px;
  --pad-x: 24px;
  --font: "Opague", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3 { letter-spacing: -0.02em; font-weight: 500; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* ---------- шапка ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--pad-x);
  color: #fff;
  transition: background-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(6, 12, 26, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(6, 12, 26, 0.18);
}

.header-logo img { height: 26px; width: auto; }

.header-cta { margin-left: auto; min-height: 40px; padding-inline: 16px; font-size: 0.92rem; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding-inline: 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease, background-color 160ms ease,
    border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(42, 145, 217, 0.24);
}
.btn-accent:hover { background: #1f6fb7; }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- киккеры-разделители ---------- */

.kicker { color: var(--black); }
.kicker-line { height: 1px; width: 100%; background: rgba(2, 2, 2, 0.2); }
.kicker-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--black); }
.kicker-light { color: #fff; }
.kicker-light .kicker-line { background: rgba(255, 255, 255, 0.35); }
.kicker-dot-white { background: #fff; }

/* ---------- секции ---------- */

.section { padding: 88px var(--pad-x) 96px; }

.section-title {
  margin-top: 7vh;
  font-size: clamp(3rem, 5.2vw, 6.6rem);
  line-height: 0.96;
}
.section-title span { display: block; }
.section-title-xl { font-size: clamp(3.2rem, 6.4vw, 8.6rem); line-height: 0.92; }

.section-summary {
  margin-top: 22px;
  max-width: 860px;
  font-size: clamp(1.1rem, 1.4vw, 1.8rem);
  line-height: 1.42;
  color: var(--muted);
}

.section-black {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(42, 145, 217, 0.22), transparent 60%),
    var(--black);
  color: #fff;
}
/* ---------- герой ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--pad-x) 72px;
  background: var(--ink) url("/hero-gradient.jpg") center / cover no-repeat;
  color: #fff;
}

.hero-copy { max-width: min(1040px, 92vw); }

.hero-title {
  font-size: clamp(2.6rem, 5.6vw, 7rem);
  line-height: 0.95;
}
.hero-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-line > span { display: block; }
.hero-line-accent > span { color: var(--accent); }

.hero-sub {
  margin-top: 30px;
  max-width: 920px;
  font-size: clamp(1.1rem, 1.55vw, 1.7rem);
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.82);
}
.hero-sub strong { color: #fff; font-weight: 600; }

.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

/* появление героя после загрузки */
html.reveal-ready .hero-line > span {
  transform: translateY(110%);
  animation: heroLine 760ms cubic-bezier(0.22, 0.9, 0.24, 1) forwards;
}
html.reveal-ready .hero-line:nth-child(2) > span { animation-delay: 90ms; }
html.reveal-ready .hero-line:nth-child(3) > span { animation-delay: 180ms; }
html.reveal-ready .hero-sub,
html.reveal-ready .hero-actions {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 640ms ease 420ms forwards;
}

@keyframes heroLine { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- reveal при скролле ---------- */

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 640ms ease, transform 640ms cubic-bezier(0.22, 0.9, 0.24, 1);
}
html.reveal-ready [data-reveal].is-in { opacity: 1; transform: translateY(0); }
html.reveal-ready [data-reveal][data-delay="1"] { transition-delay: 90ms; }
html.reveal-ready [data-reveal][data-delay="2"] { transition-delay: 180ms; }
html.reveal-ready [data-reveal][data-delay="3"] { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  html.reveal-ready [data-reveal],
  html.reveal-ready .hero-line > span,
  html.reveal-ready .hero-sub,
  html.reveal-ready .hero-actions {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- сравнение сроков ---------- */

.speed-compare {
  margin-top: 52px;
  max-width: 1180px;
  display: grid;
  gap: 34px;
}

.speed-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  max-width: 860px;
}
.speed-label { font-size: clamp(1.05rem, 1.2vw, 1.45rem); }
.speed-value { font-size: clamp(1.3rem, 1.8vw, 2.2rem); color: var(--muted); }
.speed-value.accent { color: var(--accent); }

.speed-bar {
  margin-top: 12px;
  height: 14px;
  max-width: 860px;
  border-radius: 999px;
  background: rgba(62, 84, 103, 0.16);
  overflow: hidden;
}
.speed-fill {
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1100ms cubic-bezier(0.22, 0.9, 0.24, 1) 150ms;
}
.speed-fill-slow { width: 100%; background: rgba(62, 84, 103, 0.55); }
.speed-fill-fast { width: 34%; background: var(--accent); transition-delay: 420ms; }
.speed-compare.is-in .speed-fill,
html:not(.reveal-ready) .speed-fill { transform: scaleX(1); }

.speed-note { margin-top: 10px; max-width: 860px; color: var(--muted); font-size: 0.98rem; }

/* ---------- кто мы ---------- */

.about-copy { max-width: 1040px; }

.quote {
  margin-top: 30px;
  max-width: 860px;
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  font-size: clamp(1.12rem, 1.4vw, 1.8rem);
  line-height: 1.45;
}
.quote strong { font-weight: 600; }

/* ---------- карточки (что возим) ---------- */

.card-grid { margin-top: 40px; display: grid; gap: 16px; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.supply-grid { max-width: 1480px; }

.card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(62, 84, 103, 0.24);
  border-radius: var(--radius);
  background: rgba(234, 234, 234, 0.9);
  box-shadow: 0 22px 70px rgba(6, 12, 26, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 12, 26, 0.4);
  box-shadow: 0 18px 48px rgba(6, 12, 26, 0.1);
}

.card-num { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.card h3 { margin-top: 18px; font-size: clamp(1.3rem, 1.45vw, 1.9rem); line-height: 1.12; }
.card p:last-child { margin-top: 14px; color: var(--muted); font-size: clamp(0.98rem, 1vw, 1.16rem); }

/* ---------- процесс ---------- */

.process {
  margin-top: 56px;
  list-style: none;
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1280px;
}

.process-node-row { position: relative; display: flex; align-items: center; height: 64px; }
.process-node {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(42, 145, 217, 0.7);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--bg);
}
.process-line {
  position: absolute;
  left: 76px;
  right: -28px;
  top: 50%;
  height: 2px;
  background: rgba(42, 145, 217, 0.45);
}

.process-step h3 { margin-top: 26px; font-size: clamp(1.4rem, 1.55vw, 2rem); line-height: 1.08; }
.process-step p { margin-top: 14px; max-width: 320px; color: #6c7f91; font-size: clamp(1rem, 1.08vw, 1.28rem); }

/* ---------- заявка ---------- */

.request-grid {
  margin-top: 4vh;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.request-copy {
  margin-top: 26px;
  max-width: 720px;
  color: rgba(234, 234, 234, 0.78);
  font-size: clamp(1rem, 1.16vw, 1.45rem);
  line-height: 1.42;
  display: grid;
  gap: 16px;
}

.request-form {
  margin-top: 3vh;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  display: grid;
  gap: 18px;
}

.form-row { display: grid; gap: 18px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }

.request-form label { display: grid; gap: 8px; }
.request-form label > span {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.request-form em { color: var(--accent); font-style: normal; }

.request-form input,
.request-form textarea {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(2, 2, 2, 0.35);
  color: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.request-form textarea { min-height: 130px; resize: vertical; line-height: 1.4; }
.request-form input::placeholder,
.request-form textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.request-form input:focus,
.request-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(42, 145, 217, 0.18);
}

.request-form input[type="file"] {
  min-height: 0;
  padding: 10px;
  background: transparent;
  border-style: dashed;
  cursor: pointer;
}
.file-list { font-size: 0.85rem; text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, 0.66); }

.form-errors { display: none; color: #ffb4a8; font-size: 0.95rem; line-height: 1.4; }
.form-errors.is-visible { display: block; }

.btn-submit { justify-self: start; min-width: 220px; }
.btn-submit[disabled] { opacity: 0.6; cursor: progress; }

.request-success {
  padding: 40px 28px;
  border: 1px solid rgba(42, 145, 217, 0.55);
  border-radius: var(--radius);
  background: rgba(42, 145, 217, 0.16);
}
.request-success h3 { font-size: clamp(1.5rem, 2vw, 2.2rem); }
.request-success p { margin-top: 12px; color: rgba(234, 234, 234, 0.8); }

/* ---------- футер ---------- */

.footer {
  margin-top: 88px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}
.footer-logo { height: 30px; width: auto; opacity: 0.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-left: auto; }
.footer-links a:hover { color: #fff; }
.footer-year { letter-spacing: 0; }

/* ---------- адаптив ---------- */

@media (min-width: 768px) {
  :root { --pad-x: 48px; }
}

@media (min-width: 1024px) {
  :root { --pad-x: 64px; }
}

@media (max-width: 1023px) {
  .request-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .card-grid-2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 30px; }
  .process-line { display: none; }
  .form-row-2 { grid-template-columns: 1fr; }
  .section { padding: 64px var(--pad-x) 72px; }
  .footer-links { margin-left: 0; }
}
