/* ============================================================
   «Точные люди» — лендинг. Стили строго по дизайн-токенам ui kit.
   ============================================================ */

/* ---------- Шрифт Arimo (локальный) ---------- */
@font-face {
  font-family: "Arimo";
  src: url("assets/fonts/Arimo-VariableFont_wght.ttf") format("truetype-variations"),
       url("assets/fonts/Arimo-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* ---------- Токены ---------- */
:root {
  --beige:      #F4F3EE;
  --ink:        #333333;
  --white:      #FFFFFF;
  --red:        #DE4027;
  --red-dark:   #B6210A;
  --graphite:   #2E2E2E;
  --muted:      #8a8a85;

  --container:  1520px;
  --pad-x:      60px;
  --section-y:  130px;

  font-family: "Arimo", Arial, "Helvetica Neue", sans-serif;
}

/* ---------- Базовый ресет ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Типографика ---------- */
.h1 {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}
.h3 {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}
.h4 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}
.body  { font-weight: 500; font-size: 16px; line-height: 1.3; }
.secondary { font-weight: 400; font-size: 14px; line-height: 1.3; color: #4a4a48; }
.small { font-weight: 400; font-size: 10px; line-height: 1.2; }

/* Лейбл секции + красное подчёркивание-росчерк */
.section-label {
  display: block;
  width: max-content;
  margin: 0 auto;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
}
.section-label .squiggle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(-2.4deg);
  bottom: -11px;
  width: 116%;
  height: 9px;
  overflow: visible;
}
.squiggle path { stroke: var(--red); stroke-width: 2; fill: none; stroke-linecap: round; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 2px;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 14px 30px;
  transition: background .18s ease;
  text-align: center;
}
.btn:hover { background: var(--red-dark); }
.btn:disabled { background: #c9c8c3; color: #f0efeb; cursor: not-allowed; }

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--beige);
  border-bottom: 1px solid rgba(51,51,51,.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.logo { display: inline-flex; flex-direction: column; gap: 6px; line-height: 1; }
.logo__name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.logo__tag {
  align-self: flex-start;
  border: 1px solid var(--ink);
  padding: 4px 6px;
  font-weight: 700;
  font-size: 7px;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  max-width: 150px;
}
.nav { display: flex; gap: 40px; }
.nav a {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--red); border-bottom-color: var(--red); }

.header__right { display: flex; align-items: center; gap: 20px; }
.icon-btn {
  width: 22px; height: 22px;
  color: var(--ink);
  transition: color .15s;
}
.icon-btn:hover { color: var(--red); }
.icon-btn svg { width: 100%; height: 100%; display: block; }
.phone {
  position: relative;
  font-weight: 500;
  font-size: 15px;
  padding-left: 16px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red);
  white-space: nowrap;
}
.phone::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--red);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 100px; }
.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 56px;
}
.hero__title { max-width: 760px; }
.hero__cta { flex-shrink: 0; }
.hero__media { position: relative; padding: 0 10px; }
.hero__tags {
  position: absolute;
  top: 16px; left: 10px;
  z-index: 2;
  display: flex;
  gap: 40px;
  padding-left: 4px;
}
.tag {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 0 0 0 16px;
  color: var(--ink);
  transition: color .15s;
}
.tag::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--ink);
  transition: background .15s;
}
.tag.is-active::before { background: var(--red); }
.tag:hover { color: var(--red); }
.hero__imgwrap { width: 100%; }
.hero__img {
  display: block;
  width: 100%;
  height: 540px;            /* фикс-полоса, одинаковая для всех слайдов */
  object-fit: cover;
  object-position: center 62%;   /* кадрируется по сюжету каждого слайда (см. JS) */
  transition: opacity .25s ease;
}

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */
.advantages { padding: var(--section-y) 0; }
.advantages__grid {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.adv-card {
  position: relative;
  padding: 28px 26px;
  border-radius: 3px;
  transition: background .18s ease, color .18s ease;
}
.adv-card .h3 { margin-bottom: 16px; }
.adv-card:hover { background: var(--red); color: var(--white); }
.adv-card:hover .secondary { color: rgba(255,255,255,.92); }
.adv-card--circled .ellipse-mark {
  position: absolute;
  left: 10px; top: 8px;
  width: 290px; height: 86px;
  pointer-events: none;
  overflow: visible;
}
.ellipse-mark path { stroke: var(--red); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.adv-card--media { padding: 0; }
.adv-card--media img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; min-height: 220px; }
.adv-card--media:hover { background: transparent; }

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services { padding: var(--section-y) 0; }
.services__list { margin-top: 100px; display: flex; flex-direction: column; gap: 110px; }
.service-row {
  display: grid;
  grid-template-columns: 0.82fr 0.82fr 1.15fr 200px;
  gap: 40px;
  align-items: start;
}
.service-row__title { padding-top: 4px; }
.service-row__media { align-self: stretch; }
.service-row__media img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s ease;
}
.service-row:hover .service-row__media img { opacity: 1; }
.service-row__items { display: grid; grid-template-columns: 1fr; gap: 16px; }
.service-row__items li {
  position: relative;
  padding-left: 20px;
  font-weight: 500;
  font-size: 16px;
}
.service-row__items li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
}
.service-row__cta { text-align: center; }
.service-row__cta .btn { display: block; width: 100%; }
.service-row__price {
  margin-top: 14px;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
}

/* ============================================================
   СПЕЦИАЛИЗИРОВАННЫЕ УСЛУГИ (отрасли)
   ============================================================ */
.industries { padding-top: var(--section-y); padding-bottom: 0; }
.industries__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-top: 80px;
  margin-bottom: 56px;
}
.industries__head .h1 { max-width: 880px; }
.industries__panel {
  position: relative;
  background:
    linear-gradient(rgba(64,64,64,.30), rgba(64,64,64,.30)),
    url("assets/img/008.jpg");
  background-size: cover;
  background-position: 58% center;
  min-height: 560px;
}
.ind-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 560px;
}
.ind-col {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border-right: 1px solid rgba(255,255,255,.20);
}
.ind-col:last-child { border-right: none; }

.ind-cell {
  position: relative;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.20);
  transition: background .2s ease, color .2s ease;
}
.ind-col .ind-cell:last-child { border-bottom: none; }
.ind-cell__desc {
  opacity: 0;
  margin-bottom: auto;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  transition: opacity .25s ease;
}
.ind-cell:hover { background: var(--red); color: var(--white); }
.ind-cell:hover .ind-cell__desc { opacity: 1; }

/* выделенная ячейка «Бесплатный первичный аудит» — белая, на 2 строки */
.ind-cell--feature {
  grid-row: 2 / span 2;
  background: var(--beige);
  color: var(--ink);
  overflow: visible;
}
.ind-cell--feature:hover { background: var(--red); color: var(--white); }
.ind-cell--feature .signature {
  position: absolute;
  top: 20px; left: -34px;
  width: 150px; height: 50px;
  z-index: 3;
  pointer-events: none;
  transition: opacity .2s ease;
}
.ind-cell--feature:hover .signature { opacity: 0; }
.signature path { stroke: var(--red); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   ИНТЕЛЛЕКТУАЛЬНЫЙ ПОДБОР УСЛУГ (recsys)
   ============================================================ */
.recsys {
  padding: 80px 0;
  background: #f8f9fc;
}
.recsys__grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 60px;
}
.recsys__form {
  flex: 1;
  min-width: 280px;
  background: white;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.recsys__form .h3 {
  margin-bottom: 8px;
}
.recsys__question {
  margin-bottom: 28px;
}
.recsys__question label {
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
  color: #1e293b;
  font-size: 16px;
}
.recsys__options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.recsys__options button {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 40px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: #334155;
  font-weight: 500;
}
.recsys__options button.selected {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.recsys__options button:hover {
  background: #e2e8f0;
}
.recsys__options button.selected:hover {
  background: var(--red-dark);
}
.recsys__result {
  flex: 1;
  background: white;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: all 0.3s;
}
.recsys__result.hidden {
  display: none;
}
#recsys-submit {
  margin-top: 16px;
  width: 100%;
  background: var(--red);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}
#recsys-submit:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.7;
}
#recsys-submit:not(:disabled):hover {
  background: var(--red-dark);
}
#recsys-services-list {
  margin: 20px 0;
  line-height: 1.4;
}
.service-tag {
  display: inline-block;
  background: #eef2ff;
  color: #1e40af;
  border-radius: 30px;
  padding: 6px 16px;
  margin: 4px 6px 4px 0;
  font-size: 14px;
  font-weight: 500;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: #2e7d32;
  font-weight: 500;
}
.recsys__cta {
  margin-top: 28px;
  text-align: center;
}
.recsys__cta .btn {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 12px 32px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
}
.recsys__cta .btn:hover {
  background: var(--red-dark);
}

/* Адаптив для планшетов и мобильных */
@media (max-width: 1100px) {
  .recsys__grid {
    flex-direction: column;
  }
  .recsys__form, .recsys__result {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .recsys {
    padding: 50px 0;
  }
  .recsys__options button {
    padding: 6px 14px;
    font-size: 12px;
  }
  .recsys__question label {
    font-size: 14px;
  }
}

/* ============================================================
   КЛИЕНТЫ
   ============================================================ */
.clients { padding: var(--section-y) 0; }
.clients__grid {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 50px 30px;
  align-items: center;
  justify-items: center;
}
.client-logo { height: 34px; width: auto; opacity: .8; }
.client-logo svg { height: 100%; width: auto; display: block; }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts { padding-top: var(--section-y); }
.contacts__row {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
  font-weight: 500;
  font-size: 15px;
}
.contacts__row a { text-decoration: underline; text-underline-offset: 3px; }
.contacts__row a:hover { color: var(--red); }
.map {
  position: relative;
  margin-top: 48px;
  height: 460px;
  width: 100%;
  background: #e9e7e1;
  overflow: hidden;
}
.map__img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(.12); }
.map__pin {
  position: absolute;
  top: 50%; left: 49%;
  transform: translate(-50%, -100%);
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 6px 8px 16px;
  border-radius: 4px 4px 4px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.map__pin::after {
  content: "";
  position: absolute;
  bottom: -7px; left: 0;
  border-left: 9px solid var(--red);
  border-bottom: 9px solid transparent;
}

/* ============================================================
   ОСТАВИТЬ ЗАЯВКУ (тёмная секция)
   ============================================================ */
.lead { background: var(--graphite); color: var(--white); padding: 90px 0 100px; margin-top: var(--section-y); }
.lead .section-label { color: var(--white); }
.lead__grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
}
.lead__title { color: var(--white); max-width: 420px; }
.lead__submit { margin-top: 60px; }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form input, .form textarea {
  width: 100%;
  background: var(--white);
  border: none;
  border-radius: 2px;
  padding: 16px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #9b9b96; }
.form__consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(255,255,255,.8);
}
.form__consent a { text-decoration: underline; }
.form__consent input { width: 16px; height: 16px; accent-color: var(--red); }

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer { background: var(--beige); padding: 56px 0 40px; border-top: 1px solid rgba(51,51,51,.08); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer__contacts { display: flex; flex-direction: column; gap: 14px; }
.footer__icons { display: flex; gap: 14px; }
.footer__contacts .phone-plain { font-weight: 500; font-size: 15px; }
.footer__contacts a { text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.footer__contacts a:hover { color: var(--red); }
.footer__menu { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__menu a:hover, .footer__legal a:hover { color: var(--red); }
.footer__legal { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__brand { display: flex; justify-content: flex-end; }
.footer__copy { margin-top: 36px; }
.footer__copy .small { color: #7c7c77; }

/* ============================================================
   Адаптив (минимальный — основной таргет десктоп)
   ============================================================ */
@media (max-width: 1100px) {
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; gap: 18px; }
  .service-row__media { display: none; }
  .service-row__cta { text-align: left; }
  .service-row__cta .btn { width: auto; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-col--empty { display: none; }
  .ind-cell--feature { grid-row: auto; }
  .ind-cell__desc { opacity: 1; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
  .contacts__row { grid-template-columns: 1fr 1fr; }
  .lead__grid, .footer__grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  :root { --pad-x: 20px; --section-y: 70px; }
  .h1 { font-size: 30px; }
  .hero__top { flex-direction: column; align-items: flex-start; gap: 28px; }
  .advantages__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .contacts__row { grid-template-columns: 1fr; }
}
