/* ============================================================
   TOOLS — «С чего начать: два инструмента»
   ============================================================ */

.tools {
  position: relative;
  padding: var(--section-pad) var(--pad);
  background: var(--bg);
  border-top: 1px solid var(--hair);
  overflow: hidden;
}

/* фоновая блюпринт-сетка, очень слабая, уходит вверх */
.tools::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, var(--hair-soft) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 96px) 100%;
  -webkit-mask-image: linear-gradient(#000, transparent 60%);
          mask-image: linear-gradient(#000, transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.tools .wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---- ЗАГОЛОВОК СЕКЦИИ ---- */
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 84px); }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: clamp(20px, 2.6vw, 30px);
}
.sec-label .idx {
  font-variant-numeric: lining-nums;
  color: var(--blue);
}
.sec-label::after {
  content: "";
  width: 34px; height: 1px;
  background: var(--blue);
}

.sec-title {
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 15ch;
}
.sec-title .accent { color: var(--blue); }

.sec-lead {
  margin-top: clamp(20px, 2.4vw, 30px);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--graphite);
  max-width: 600px;
}

/* ---- СЕТКА КАРТОЧЕК ---- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 1.6vw, 26px);
}

.tool-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: clamp(26px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease);
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88,117,164,0.5);
  box-shadow: 0 28px 60px -34px rgba(48,82,128,0.45);
}
/* верхняя акцентная полоса по hover */
.tool-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.tool-card:hover::before { transform: scaleX(1); }

.tc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 40px);
}
.tc-logo {
  flex: none;
  width: clamp(54px, 5.2vw, 66px);
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hair);
  box-shadow: 0 10px 24px -16px rgba(38,38,38,0.4);
}
.tc-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  text-align: right;
}
.tc-num {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--blue);
  font-variant-numeric: lining-nums;
}
.tc-tag {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tc-name {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tc-role {
  margin-top: 10px;
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.5;
  color: var(--graphite);
  max-width: 42ch;
}

.tc-list {
  list-style: none;
  margin: clamp(22px, 2.6vw, 32px) 0 0;
  border-top: 1px solid var(--hair);
}
.tc-list li {
  position: relative;
  padding: 15px 0 15px 26px;
  border-bottom: 1px solid var(--hair);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--graphite);
}
.tc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 21px;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid var(--blue);
}
.tc-list b { color: var(--ink); font-weight: 500; }

.tc-foot {
  margin-top: auto;
  padding-top: clamp(22px, 2.6vw, 30px);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.tc-foot-text { display: block; }

/* ---- CTA-ссылка карточки ---- */
.tc-cta {
  margin-top: clamp(20px, 2.4vw, 28px);
  padding-top: clamp(18px, 2vw, 22px);
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}
.tc-cta .arr-r { flex: none; transition: transform 0.45s var(--ease); }
.tc-cta:hover { color: var(--blue); }
.tc-cta:hover .arr-r { transform: translateX(5px); }
.tool-card:hover .tc-cta .arr-r { transform: translateX(5px); }
.chip {
  flex: none;
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--hair);
  border-radius: 100px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--grey-soft);
}
/* предупреждение — Claude (нельзя платить картой РФ) */
.chip-warn {
  color: #8a5a2b;
  background: rgba(176,120,60,0.10);
  border-color: rgba(176,120,60,0.28);
}
/* ок — Syntx (оплата рублями) */
.chip-ok {
  color: var(--blue-deep);
  background: rgba(88,117,164,0.10);
  border-color: rgba(88,117,164,0.30);
}

.tc-link {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.3s var(--ease);
}
.tc-link:hover { color: var(--blue); }
.fn { color: var(--blue); font-weight: 500; }

/* ---- ПОДПИСЬ ПОД КАРТОЧКАМИ ---- */
.tool-note {
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-left: clamp(0px, 1.4vw, 22px);
  border-left: 2px solid var(--blue);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.55;
  color: var(--graphite);
  max-width: 640px;
}
.tool-note b { color: var(--ink); font-weight: 500; }

.tools-disclaimer {
  margin-top: clamp(18px, 2vw, 26px);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 720px;
}
.tools-disclaimer sup { color: var(--blue); }

/* ---- REVEAL (стаггер этой секции; база — в 00-base.css) ---- */
.tool-card[data-reveal] { transition-delay: 0.05s; }
.tool-card:nth-child(2)[data-reveal] { transition-delay: 0.16s; }

/* внутренний стаггер пунктов списка */
.tc-list li { opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.tool-card.in .tc-list li { opacity: 1; transform: none; }
.tool-card.in .tc-list li:nth-child(1) { transition-delay: 0.20s; }
.tool-card.in .tc-list li:nth-child(2) { transition-delay: 0.28s; }
.tool-card.in .tc-list li:nth-child(3) { transition-delay: 0.36s; }
.tool-card.in .tc-list li:nth-child(4) { transition-delay: 0.44s; }

/* ---- АДАПТИВ ---- */
@media (max-width: 820px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card:nth-child(2)[data-reveal] { transition-delay: 0.05s; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .tc-list li { opacity: 1; transform: none; transition: none; }
}
