/* Лендинг РазмечAI. Макет: Figma «marcaj.com», фрейм Desktop - 4 (2133:69), ширина 1440. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-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 {
  /* Цвета — переменные из макета */
  --neutral-1: #fdfdfd;
  --neutral-2: #f6f6f6;
  --neutral-3: #eaeaea;
  --neutral-4: #d2d2d2;
  --neutral-5: #b3b3b3;
  --neutral-6: #929292;
  --neutral-7: #575757;
  --neutral-8: #333333;
  --neutral-10: #101010;
  --gray-4: #bdbdbd;
  --brand-100: #e0e7ff;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-900: #312e81;
  --danger: #fb2c36;
  --heading: #272727;

  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);

  /* Farabee — акцидентный шрифт макета, коммерческий, в репозиторий не положен.
     Подхватится, если установлен локально или добавлен @font-face; иначе Inter. */
  --font-display: "Farabee", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 60px;
  --radius-section: 64px;
  --industry-gradient: linear-gradient(191.7deg, #1b186e 5.5%, #777aff 93.8%);
  --step-gradient: linear-gradient(232.5deg, rgb(49 46 129 / 0) 21.8%, #312e81 51.5%, #6366f1 78.4%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--neutral-10);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }

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

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-title {
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 28px;
  background: rgb(255 255 255 / 0.2);
  color: #fff;
  font-size: 8px;
  line-height: 11px;
  white-space: nowrap;
}
.badge--lg { font-size: 18px; line-height: 28px; white-space: normal; }

/* ---------- Header ---------- */

.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 200px;
  padding-block: 16px;
}
.header__logo { flex-shrink: 0; }
.nav {
  display: flex;
  gap: 36px;
  color: var(--neutral-4);
  white-space: nowrap;
}
.nav a { text-decoration: none; transition: color 0.15s; }
.nav a:hover { color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 876px;
  background: var(--neutral-10) url("assets/hero-bg.jpg") right top / cover no-repeat;
  color: #fff;
}
.hero__inner { padding-top: 195px; padding-bottom: 180px; }
.hero__title img { width: 741px; height: auto; }
.hero__lead {
  max-width: 889px;
  margin-top: 46px;
  font-size: 24px;
  line-height: 36px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 47px;
}

.pill-input {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding: 8px 24px;
  border-radius: 40px;
  background: var(--neutral-1);
  cursor: text;
}
.pill-input input {
  width: 180px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--neutral-10);
  font-size: 18px;
  line-height: 28px;
}
.pill-input input::placeholder { color: var(--neutral-5); }
.pill-input:focus-within { box-shadow: 0 0 0 2px var(--brand-400); }

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 8px 8px 8px 16px;
  border: 0;
  border-radius: 40px;
  background: var(--brand-900);
  color: var(--neutral-1);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.pill-button:hover { background: var(--brand-600); }
.pill-button__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
}

/* ---------- Карточки-секции со скруглением 64 ---------- */

.card-section {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-section);
  padding-block: 112px;
}

/* ---------- Услуги ---------- */

.services {
  margin-top: -73px;
  background: #fff;
  box-shadow: var(--shadow-xl);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 15px;
  margin-top: 63px;
}
.service {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 240px;
  padding: 24px;
  border-radius: 24px;
  background: var(--neutral-2);
}
.service--wide { grid-column: span 4; }
.service--accent { background: var(--brand-100); }
.service h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 40px;
  font-weight: 600;
}
.services__formats {
  margin-top: 15px;
  padding: 8px 24px;
  border-radius: 24px;
  background: var(--neutral-2);
  font-size: 12px;
  line-height: 16px;
}

/* ---------- Отрасли ---------- */

.industries { padding-block: 60px 30px; }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.section-subtitle { max-width: 521px; color: var(--neutral-7); }

.industries__list {
  margin-top: 24px;
  border-radius: 24px;
  overflow: hidden;
  color: var(--neutral-1);
}
.industry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 24px;
  background: var(--industry-gradient);
  isolation: isolate;
}
.industry + .industry { border-top: 1px solid #fff; }
/* Зерно поверх градиента, как в макете */
.industry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.industry h3 {
  flex: 0 0 294px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 20px;
  font-weight: 600;
}
.industry p { flex: 1 1 0; min-width: 0; }

/* ---------- Преимущества ---------- */

.advantages {
  background: var(--neutral-1);
  box-shadow: var(--shadow-lg);
}
.advantages__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 21px;
  margin-top: 57px;
}
.advantage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  text-align: center;
  color: #000;
}
.advantage img { height: 54px; width: auto; object-fit: contain; }
.advantage h3 {
  margin-top: 19px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.advantage p {
  margin-top: 19px;
  font-size: 14px;
  line-height: 20px;
}

/* ---------- Порядок работы ---------- */

.process {
  position: relative;
  z-index: 1;
  margin-top: -108px;
  padding-top: 165px;
  border-radius: 0 0 var(--radius-section) var(--radius-section);
  background: var(--neutral-10);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.process__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 16px;
}
.process__head .section-title { text-align: left; }

.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 37px;
}
/* Пунктир через всю ширину экрана по центрам маркеров */
.process__steps::before {
  content: "";
  position: absolute;
  top: 66px;
  left: 50%;
  width: 100vw;
  height: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, #fff 0 4px, transparent 4px 8px);
  pointer-events: none;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
  min-height: 367px;
  padding: 48px 16px 16px;
  border-radius: 16px;
  outline-offset: -2px;
  isolation: isolate;
}
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--step-gradient);
  opacity: 0;
  transition: opacity 0.25s;
}
.step.is-active::after { opacity: 1; }
.step__marker { position: relative; }
.step__num {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.step__name {
  min-height: 48px;
  margin-top: -11px; /* в макете имя шага идёт через 8px после номера */
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.step__text { font-size: 12px; line-height: 16px; }

/* ---------- FAQ ---------- */

.faq { padding-block: 60px 120px; }
.faq__title {
  color: var(--heading);
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 55px;
  margin-top: 60px;
}
.faq-item__q {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}
.faq-item__a {
  display: flex;
  align-items: center;
  gap: 33px;
  width: 100%;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: #1a1a1a;
  font-size: 20px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.faq-item__a span {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.faq-item__a img { flex-shrink: 0; width: 17px; height: 9px; transition: transform 0.2s; }
.faq-item__a[aria-expanded="true"] { align-items: flex-start; }
.faq-item__a[aria-expanded="true"] span { white-space: normal; }
.faq-item__a[aria-expanded="true"] img { transform: rotate(180deg); margin-top: 8px; }

/* ---------- Заявка ---------- */

.contact {
  padding-block: 88px 56px;
  background: var(--neutral-2);
}
.contact__inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.contact__intro {
  flex: 0 0 456px;
  display: flex;
  flex-direction: column;
  gap: 27px;
}
.contact__title {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.5;
  font-weight: 400;
  text-transform: uppercase;
}
.contact__intro p { line-height: 1.8; }

.lead-form {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 21px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.field__label {
  color: #000;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.req { color: var(--danger); }
.field__control {
  width: 100%;
  height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--neutral-5);
  border-radius: 8px;
  background: #fff;
  color: var(--neutral-10);
  font-size: 14px;
  line-height: 20px;
}
.field__control::placeholder { color: var(--neutral-5); }
.field__control:focus { outline: 0; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgb(79 70 229 / 0.15); }
.field__control[aria-invalid="true"] { border-color: var(--danger); }
.field__control--area {
  height: 118px;
  padding: 10px;
  border-color: var(--neutral-6);
  resize: vertical;
}
.field__control--area::placeholder { color: var(--neutral-6); }

.select { position: relative; display: block; }
.select select { appearance: none; padding-right: 32px; cursor: pointer; }
.select select:invalid { color: var(--neutral-5); }
.select option { color: var(--neutral-10); }
.select img {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper__btn {
  flex-shrink: 0;
  width: 30px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--neutral-3);
  color: var(--neutral-8);
  font-size: 14px;
  cursor: pointer;
}
.stepper__btn:hover { background: var(--neutral-4); }
.stepper__input { width: 72px; text-align: left; -moz-appearance: textfield; }
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__hint {
  margin-left: 15px;
  color: var(--neutral-6);
  font-size: 14px;
  line-height: 20px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #000;
  font-size: 10px;
  line-height: 1.3;
  cursor: pointer;
}
.consent input {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand-900);
}
.consent input[aria-invalid="true"] { outline: 1px solid var(--danger); outline-offset: 1px; }

.button {
  height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-900);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.button:hover { background: var(--brand-600); }
.button:disabled { opacity: 0.6; cursor: progress; }

.lead-form__status { font-size: 14px; line-height: 20px; }
.lead-form__status:empty { display: none; }
.lead-form__status.is-error { color: var(--danger); }
.lead-form__status.is-ok { color: var(--brand-900); }

/* ---------- Footer ---------- */

.footer {
  background: var(--neutral-10) url("assets/footer-bg.jpg") right bottom / cover no-repeat;
  color: #fff;
}
.footer__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 61px 193px 99px 168px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer__logo { flex-shrink: 0; width: 261px; height: auto; }
.footer__cols {
  display: flex;
  justify-content: space-between;
  width: 740px;
  min-width: 0;
}
.footer__col { display: flex; flex-direction: column; }
.footer__heading {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
}
.footer__col > a {
  margin-bottom: 8px;
  color: #adadad;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
}
.footer__col > a:hover { color: #fff; }
.footer__divider { width: 1px; height: 248px; background: #505050; }
.footer__office { width: 251px; }
.footer__office .footer__heading { margin-bottom: 26px; }
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 220px;
  margin-bottom: 11px;
  color: var(--gray-4);
  font-size: 12px;
  line-height: 1.2;
}
.contact-line img { flex-shrink: 0; }
.contact-line__city { margin-bottom: 13px; color: #fff; font-weight: 600; }
.contact-line--lg { font-size: 14px; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { color: #fff; }
.footer__rule {
  margin: 58px 0 20px;
  border: 0;
  border-top: 1px solid #505050;
}
.footer__copy {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
}
.footer__cookies {
  margin-top: 20px;
  color: #adadad;
  font-size: 10px;
  line-height: 1.2;
}

/* ---------- Адаптив: макет только десктопный, ниже — собственные решения ---------- */

@media (max-width: 1360px) {
  .hero__title img { width: min(741px, 100%); }
  .footer__inner { padding-inline: var(--gutter); }
}

@media (max-width: 1180px) {
  .header__inner { gap: 64px; }
  .service, .service--wide { grid-column: span 6; }
  .advantages__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 8px; }
  .process__steps::before { display: none; }
  .step { min-height: 0; padding-top: 24px; }
  .contact__inner { flex-direction: column; gap: 32px; }
  .contact__intro { flex-basis: auto; }
  .footer__top { flex-direction: column; }
  .footer__cols { width: 100%; max-width: 740px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --radius-section: 32px; }

  .header__inner { gap: 16px; justify-content: space-between; }
  .nav {
    gap: 16px;
    font-size: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }

  .hero { min-height: 0; background-position: 70% top; }
  .hero__inner { padding-top: 120px; padding-bottom: 120px; }
  .hero__lead { margin-top: 28px; font-size: 18px; line-height: 28px; }
  .hero__cta { margin-top: 28px; }
  .pill-input { flex: 1 1 100%; }
  .pill-input input { width: 100%; }

  .card-section { padding-block: 56px; }
  .services { margin-top: -40px; }
  .section-title { font-size: 28px; line-height: 34px; }
  .services__grid { margin-top: 32px; }
  .service, .service--wide { grid-column: 1 / -1; min-height: 0; }

  .industry { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 16px; }
  .industry h3 { flex-basis: auto; line-height: 24px; }

  .advantages__list { grid-template-columns: 1fr; margin-top: 32px; }

  .process { margin-top: -60px; padding-top: 100px; }
  .process__head { padding-inline: 0; }
  .badge--lg { font-size: 14px; line-height: 20px; padding: 4px 12px; }
  .process__steps { grid-template-columns: 1fr; margin-top: 24px; padding-bottom: 32px; }

  .faq { padding-block: 40px 64px; }
  .faq__title { font-size: 28px; }
  .faq__list { gap: 32px; margin-top: 32px; }
  .faq-item__q, .faq-item__a { font-size: 17px; }
  .faq-item__a { gap: 16px; margin-top: 12px; }

  .contact { padding-block: 48px; }
  .contact__title { font-size: 28px; }
  .lead-form { padding: 16px; }
  .lead-form__row { grid-template-columns: 1fr; gap: 21px; }
  .stepper { flex-wrap: wrap; }
  .stepper__hint { margin-left: 4px; }

  .footer__inner { padding-block: 48px 56px; }
  .footer__cols { flex-direction: column; gap: 32px; }
  .footer__divider { display: none; }
  .footer__office { width: auto; }
  .footer__rule { margin-top: 32px; }
}
