/* ============================================================
   OPRTR — базовая дизайн-система + первый экран (hero)
   Тёмная тема, минимализм, один акцент = сердцевина знака.
   ============================================================ */

:root {
  /* Цвет — единый акцентный токен (синхронно с сердцевиной знака) */
  --accent: #378ADD;
  --accent-hover: #4E9BE8;

  /* Фон и поверхности */
  --bg: #0B0D10;
  --bg-elevated: #12151A;
  --surface: #14171C;

  /* Текст */
  --text: #EAECEF;
  --text-muted: #9AA3AF;
  --text-dim: #6B7280;

  /* Линии / границы */
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Раскладка */
  --maxw: 1180px;
  --gutter: 24px;
  --radius: 14px;

  /* Типографика */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset / базовое --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

/* Фоновая подсветка страницы (деликатно, из левого-верха) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 78% 18%, rgba(55, 138, 221, 0.10), transparent 70%),
    radial-gradient(50% 40% at 10% 0%, rgba(55, 138, 221, 0.06), transparent 70%);
  z-index: 0;
}

/* --- Контейнер --- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(55, 138, 221, 0.7);
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: #fff; }

.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ============================================================
   Шапка
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.header__logo img { height: 26px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color .16s ease;
}
.nav a:hover { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 14px; }

/* Бургер (моб.) */
.burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 18px; height: 1.6px;
  background: var(--text);
  position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1.6px; background: var(--text);
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

/* ============================================================
   Первый экран (hero)
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 120px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(55, 138, 221, 0.18);
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.hero h1 .accent { color: var(--accent); }

.hero__sub {
  margin: 0 0 34px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 34em;
}

.hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero__tg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-muted);
}
.hero__tg a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: border-color .16s ease, color .16s ease;
}
.hero__tg a:hover { color: var(--accent); border-color: var(--accent); }

/* Визуал-хаб справа */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__visual img {
  width: 100%;
  max-width: 460px;
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Мелкая подпись доверия под hero */
.hero__meta {
  margin-top: clamp(40px, 6vw, 68px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--text-dim);
  font-size: 14px;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.7;
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 860px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: inline-flex; }

  /* Хаб убран на мобилке → поднимаем контент, чтобы верх не пустовал */
  .hero { padding: 26px 0 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__visual { display: none; }
  .badge { margin-bottom: 22px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Общие секции
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 9vw, 116px) 0;
  border-top: 1px solid var(--border);
}
.section--alt { background: var(--bg-elevated); }

.section__head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.lead {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-muted);
}

/* Базовая карточка */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.grid { display: grid; gap: 18px; }

/* ============================================================
   Проблемы клиента
   ============================================================ */
.problems { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.problem {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 24px;
}
.problem__mark {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--text-dim);
  margin-top: 2px;
}
.problem__mark svg { width: 14px; height: 14px; }
.problem p { margin: 0; font-size: 16px; color: var(--text); }

/* ============================================================
   Решения / услуги
   ============================================================ */
.services { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.service { display: flex; flex-direction: column; gap: 12px; }
.service--featured {
  grid-column: 1 / -1;
  background:
    linear-gradient(180deg, rgba(55,138,221,0.08), transparent 60%),
    var(--surface);
  border-color: rgba(55, 138, 221, 0.3);
}
.service__icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: rgba(55, 138, 221, 0.12);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { margin: 0; font-size: 19px; font-weight: 600; }
.service p { margin: 0; color: var(--text-muted); font-size: 15px; }
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag {
  font-size: 12.5px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 11px;
}

/* ============================================================
   Как работаем — 6 шагов
   ============================================================ */
.steps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { position: relative; padding: 26px 24px; }
.step__num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(55, 138, 221, 0.55);
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 7px; font-size: 17px; font-weight: 600; }
.step p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ============================================================
   Проекты и кейсы
   ============================================================ */
.projects { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project__thumb {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 100% at 70% 20%, rgba(55,138,221,0.22), transparent 60%),
    var(--bg-elevated);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--border);
}
.project__thumb img { width: 78px; opacity: 0.9; }
.project__body { padding: 22px 24px; }
.project__tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(55, 138, 221, 0.1);
  border-radius: 100px;
  padding: 4px 11px;
  margin-bottom: 12px;
}
.project h3 { margin: 0 0 7px; font-size: 18px; font-weight: 600; }
.project p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.projects__note { margin-top: 20px; color: var(--text-dim); font-size: 14px; }

/* ============================================================
   Почему OPRTR
   ============================================================ */
.reasons { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.reason { display: flex; gap: 13px; align-items: flex-start; padding: 18px 20px; }
.reason__check {
  flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(55, 138, 221, 0.14);
  color: var(--accent);
  display: grid; place-items: center;
  margin-top: 1px;
}
.reason__check svg { width: 13px; height: 13px; }
.reason p { margin: 0; font-size: 15.5px; color: var(--text); }

.founder {
  display: flex; align-items: center; gap: 18px;
  margin-top: 28px; padding: 22px 26px;
}
.founder__avatar {
  flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
}
.founder__avatar img { width: 32px; }
.founder__name { font-weight: 600; }
.founder__role { color: var(--accent); font-size: 14px; margin-left: 8px; }
.founder p { margin: 4px 0 0; color: var(--text-muted); font-size: 15px; }

/* ============================================================
   Контакт / форма
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}
.form { padding: 30px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 11px 13px;
  transition: border-color .16s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.form .btn--primary { width: 100%; margin-top: 4px; }
.form__note { margin: 12px 0 0; font-size: 13px; color: var(--text-dim); text-align: center; }

.form__success {
  display: none;
  padding: 40px 30px;
  text-align: center;
}
.form__success h3 { margin: 0 0 8px; font-size: 20px; }
.form__success p { margin: 0; color: var(--text-muted); }
.form.is-sent .form__body { display: none; }
.form.is-sent .form__success { display: block; }

/* Контакт — альтернативы */
.contact__alt { display: flex; flex-direction: column; gap: 12px; }
.contact__card { padding: 20px 22px; }
.contact__card h4 { margin: 0 0 4px; font-size: 15px; }
.contact__card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.contact-link {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 18px;
}
.contact-link:hover { border-color: var(--accent); }
.contact-link__icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(55,138,221,0.12); color: var(--accent);
  display: grid; place-items: center; flex: 0 0 auto;
}
.contact-link__icon svg { width: 19px; height: 19px; }
.contact-link__t { font-weight: 500; font-size: 15px; }
.contact-link__s { color: var(--text-muted); font-size: 13px; }

/* ============================================================
   Футер
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 54px 0 40px; position: relative; z-index: 1; }
.footer__top {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
.footer__brand { max-width: 320px; }
.footer__brand img { height: 26px; margin-bottom: 16px; }
.footer__brand p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col h5 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.footer__col a { display: block; color: var(--text-muted); font-size: 14.5px; margin-bottom: 10px; transition: color .16s ease; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; color: var(--text-dim); font-size: 13.5px;
}

/* ============================================================
   Мобильное меню
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(11, 13, 16, 0.98);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  display: none;
  flex-direction: column;
  padding: 0 var(--gutter) 28px;
}
.mobile-menu.is-open { display: flex; }
/* высота шапки меню = высоте основной шапки → лого не прыгает при открытии */
.mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; margin-bottom: 8px;
}
.mobile-menu__head img { height: 26px; }
.mobile-menu__close {
  width: 38px; height: 38px; background: transparent;
  border: 1px solid var(--border-strong); border-radius: 9px;
  color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.mobile-menu a:not(.btn) {
  font-size: 17px; font-weight: 500; letter-spacing: 0.01em;
  padding: 16px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color .15s ease;
}
.mobile-menu a:not(.btn):active { color: var(--accent); }
.mobile-menu .btn { margin-top: 22px; width: 100%; }

/* ============================================================
   Reveal-анимация
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Адаптив — секции
   ============================================================ */
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__top { flex-direction: column; gap: 28px; }
  .footer__cols { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
