/* ==========================================================================
   Страница «Инструментарий Интерпола»
   Figma: sPziMpKKGID82N0WMopEja / фрейм "Инструментарий интерпола" (138:140)
   Дополняет css/style.css — токены, шапка, футер, баннер берутся оттуда.
   ========================================================================== */

/* ---------- Hero ---------- */
.thero {
  position: relative;
  min-height: 1032px;
  display: flex;
  background: var(--bg);
}
.thero__copy {
  width: 50.625%; /* 972/1920 */
  flex: none;
  padding: 120px var(--shell) 60px;
  /* на экранах шире 1920 текст прижимается к краю контейнера */
  padding-left: max(var(--shell), calc((100vw - 1920px) / 2 + var(--shell)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.thero__title {
  margin-top: 18px;
  max-width: 792px;
  font-size: clamp(34px, 2.865vw, 55px);
  line-height: 1.28;
  font-weight: 600;
  color: var(--ink);
}
.thero__title .accent { color: var(--blue); }
.thero__text {
  max-width: 740px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thero__text p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--grey-27);
}
.thero__media { flex: 1 1 auto; min-width: 0; }
.thero__media img {
  width: 100%;
  height: 100%;
  min-height: 1032px;
  object-fit: cover;
}

/* ---------- Двухколоночный блок: заголовок слева, текст справа ---------- */
.guides { padding: 100px 0; }
.guides__grid {
  display: grid;
  grid-template-columns: 47.7% 48.9%; /* 840 / 860 из 1760 */
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.guides__grid .section-title { margin-top: 18px; }
.guides__grid .section-title .accent { color: var(--blue); }
.guides__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey-27);
}

/* ---------- Выделенный блок «Как удалить уведомление» ---------- */
.howto {
  margin-top: 60px;
  padding: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.howto__title {
  font-size: clamp(26px, 2.083vw, 40px);
  line-height: 1.28;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
}
.howto p {
  max-width: 1388px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey-27);
}
.howto p b { font-weight: 500; }
/* стрелка из макета смотрит вправо — разворачиваем вниз */
.howto__arrow {
  display: block;
  width: 12.6px;
  height: 8.84px;
  color: var(--blue);
  transform: rotate(90deg);
}

/* ---------- Разбор по шагам ---------- */
.steps-guide { padding: 0 0 100px; }
.steps-guide__grid {
  display: grid;
  grid-template-columns: 47.7% 49.4%; /* 840 / 870 из 1760 */
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.steps-guide__grid .section-title { margin-top: 18px; }

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.guide-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.guide-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.guide-item__num {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 100px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 1px;
}
.guide-item__label {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}
.guide-item__title {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
}
.guide-item p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey-27);
}
.guide-item__toggle { width: 44px; height: 44px; flex: none; }

/* Ссылки внутри текста */
.tlink {
  color: var(--blue);
  text-decoration: underline;
  text-underline-position: from-font;
}

/* ==========================================================================
   Секция уведомления — шаблон, повторяется 4 раза (красная/синяя/зелёная/жёлтая)
   ========================================================================== */
.notice-sec {
  --accent: var(--red);
  --chip-bg: rgba(204, 39, 39, .1);
  --chip-text: var(--red);

  background: var(--bg);
  border-top: 5px solid var(--accent);
  border-radius: 44px 44px 0 0;
  padding: 60px var(--shell);
  scroll-margin-top: 24px; /* отступ при переходе по якорю с карточек «Фирмы» */
}
/* колонкой должен быть внутренний контейнер, иначе зазоры не работают */
.notice-sec > .shell {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.notice-sec--blue   { --accent: #3254eb; --chip-bg: rgba(50, 84, 235, .1);  --chip-text: #3254eb; }
.notice-sec--green  { --accent: #1c925f; --chip-bg: rgba(50, 235, 142, .09); --chip-text: #1c925f; }
.notice-sec--yellow { --accent: #cea500; --chip-bg: rgba(206, 165, 0, .35);  --chip-text: #151515; }

.notice-sec__title {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--accent);
}
.notice-sec__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notice-sec__group p,
.notice-sec > p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey-27);
}
.notice-sec__sub {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
  color: #000;
}
.notice-sec__sub .accent { color: var(--accent); }
.notice-sec__sub--lg { font-size: 24px; }

/* Ряд из четырёх карточек */
.ncards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.ncard {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.ncard img { width: 24px; height: 24px; }
.ncard__body { display: flex; flex-direction: column; gap: 12px; }
.ncard__title {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink-soft);
}
.ncard p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-27);
}

/* Таблетки-основания */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Правовые рамки ---------- */
.legal { padding: 100px 0; }
.legal__head { max-width: 840px; }
.legal__head .section-title { margin-top: 18px; }
.legal__head .section-title .accent { color: var(--blue); }
.legal__lead {
  margin-top: 23px;
  max-width: 724px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--grey-27);
}
.legal__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}
.legal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.legal-card__head { display: flex; align-items: center; gap: 12px; }
.legal-card__num {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 100px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 1px;
}
.legal-card__label {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
}
.legal-card__title {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
}
.legal-card p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey-27);
}
.legal-card a {
  color: var(--red);
  text-decoration: underline;
  text-underline-position: from-font;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1199px) {
  .thero { min-height: 766px; }
  .thero__copy { width: 63.4%; padding: 110px var(--shell) 60px; }
  .thero__media img { min-height: 0; height: 100%; }
  .thero__title { font-size: 40px; }

  .guides__grid,
  .steps-guide__grid { grid-template-columns: 1fr; gap: 24px; }
  .guides { padding: 60px 0; }
  .steps-guide { padding-bottom: 60px; }
  .legal { padding: 60px 0; }

  .ncards { grid-template-columns: repeat(2, 1fr); }
  .legal__grid { grid-template-columns: 1fr; }
  .notice-sec { padding: 40px var(--shell); gap: 36px; }
}

@media (max-width: 640px) {
  .notice-sec > .shell{
    gap: 20px;
  }
  .guides__lead{
    font-size: 14px;
  }
  /* текст вертикально по центру героя (не прижат к верху) — правка «опустить текст» */
  .thero { display: flex; flex-direction: column; justify-content: center; position: relative; min-height: 640px; }
  .thero__media { position: absolute; inset: 56px 0 0; z-index: 0; }
  .thero__media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
  .thero::after {
    content: "";
    position: absolute;
    inset: 56px 0 0;
    z-index: 1;
    background: rgba(0, 0, 0, .58);
  }
  .thero__copy {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 48px var(--shell);
    gap: 16px;
  }
  .thero__title { font-size: 30px; color: var(--white); }
  .thero__title .accent { color: var(--blue-soft); }
  .thero__text p { font-size: 14px; color: var(--white); }
  .thero .eyebrow { color: #c0c0c0; }

  .guides { padding: 40px 0; }
  .steps-guide { padding-bottom: 40px; }
  .legal { padding: 40px 0; }

  .howto { margin-top: 32px; padding: 20px; }
  .howto p { font-size: 14px; }

  .guide-item { padding: 12px; gap: 8px; }
  .guide-item__body { gap: 12px; }
  .guide-item__head { flex-wrap: wrap; gap: 8px; }
  .guide-item__title { font-size: 18px; }
  .guide-item p { font-size: 14px; }
  .guide-item__toggle { width: 32px; height: 32px; }

  .notice-sec { padding: 32px var(--shell); gap: 28px; border-radius: 24px 24px 0 0; }
  .notice-sec__title { font-size: 20px; }
  .notice-sec__sub,
  .notice-sec__sub--lg { font-size: 18px; }
  .notice-sec__group p,
  .notice-sec > p { font-size: 14px; }

  .ncards { grid-template-columns: 1fr; }
  .ncard { gap: 16px; }
  .ncard__title { font-size: 18px; }
  .ncard p { font-size: 14px; }

  .chips { gap: 10px; }
  .chip { height: auto; padding: 8px 14px; font-size: 13px; white-space: normal; }

  .legal-card { padding: 12px; }
  .legal-card__title { font-size: 18px; }
  .legal-card p { font-size: 14px; }
  .legal__lead { font-size: 14px; }
}
