/* SaleCore — Tools pages (общий стиль для /tools/wb/, /tools/ozon/, /tools/lamoda/) */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --sc-navy-900: #0A1E3F;
  --sc-navy-800: #0B3B6F;
  --sc-navy-700: #1552A0;
  --sc-cyan-500: #00B8E6;
  --sc-cyan-400: #29C6F0;
  --sc-cyan-300: #7FDCF5;
  --sc-cyan-100: #E6F8FD;
  --sc-ink: #0A0E1A;
  --sc-gray-700: #404654;
  --sc-gray-500: #6B7280;
  --sc-gray-300: #D1D5DB;
  --sc-gray-200: #E5E7EB;
  --sc-gray-100: #F3F4F6;
  --sc-gray-50: #F9FAFB;
  --sc-ok: #22C55E;
  --sc-warn: #F59E0B;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--sc-ink);
  background: white;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Nav */
.tl-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sc-gray-200);
}
.tl-nav__logo { display: flex; align-items: center; }
.tl-nav__logo img { height: 56px; width: auto; display: block; }
.tl-nav__back {
  font-size: 13px;
  color: var(--sc-gray-500);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--sc-gray-200);
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.tl-nav__back:hover { border-color: var(--sc-navy-800); color: var(--sc-navy-900); }

/* Hero блок страницы инструментов МП */
.tl-hero {
  padding: 80px 56px 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sc-cyan-100) 0%, white 100%);
  text-align: center;
}
.tl-hero__bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(0, 184, 230, 0.15) 1px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}
.tl-hero__wrap { max-width: 880px; margin: 0 auto; position: relative; z-index: 2; }
.tl-hero__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sc-cyan-500);
  margin-bottom: 14px;
}
.tl-hero h1 {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--sc-navy-900);
  margin: 0;
}
.tl-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--sc-cyan-500) 0%, var(--sc-navy-700) 50%, var(--sc-cyan-500) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tl-gt-flow 5s linear infinite;
}
@keyframes tl-gt-flow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.tl-hero p {
  font-size: 19px;
  color: var(--sc-gray-700);
  margin: 22px auto 0;
  line-height: 1.55;
  max-width: 640px;
}
.tl-hero__lead-oneline {
  max-width: none !important;
  white-space: nowrap;
  font-size: 18px !important;
}
@media (max-width: 768px) {
  .tl-hero__lead-oneline {
    white-space: normal;
    max-width: 640px !important;
    font-size: 16px !important;
  }
}

/* Сетка инструментов */
.tl-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 56px 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.tl-card {
  position: relative;
  background: white;
  border-radius: 18px;
  border: 1px solid var(--sc-gray-200);
  box-shadow: 0 1px 2px rgba(10, 30, 63, 0.04);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.tl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -12px rgba(0,184,230,0.35);
  border-color: var(--sc-cyan-300);
}
/* Overlay-link: всю карточку делаем кликабельной */
.tl-card__link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent;
}
.tl-card:has(.tl-card__link) { cursor: pointer; }
.tl-card--soon { background: var(--sc-gray-50); }
.tl-card--soon:hover { transform: none; box-shadow: 0 1px 2px rgba(10, 30, 63, 0.04); border-color: var(--sc-gray-200); }

.tl-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tl-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sc-cyan-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--sc-navy-900);
  flex-shrink: 0;
}
.tl-card__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}
.tl-card__tag--free { background: #DCFCE7; color: #15803D; }
.tl-card__tag--soon { background: var(--sc-gray-200); color: var(--sc-gray-500); }

.tl-card__title {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: var(--sc-navy-900);
}
.tl-card__desc {
  font-size: 15px;
  color: var(--sc-gray-700);
  line-height: 1.55;
  flex: 1;
}
.tl-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 0 18px;
  height: 44px;
  background: var(--sc-cyan-500);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 11px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}
.tl-card__cta:hover { background: var(--sc-cyan-400); box-shadow: 0 0 0 6px rgba(0,184,230,0.12); }
.tl-card__cta--disabled { background: var(--sc-gray-200); color: var(--sc-gray-500); pointer-events: none; }

/* Footer-обратная-ссылка */
.tl-back-link {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 56px 80px;
  display: flex;
  justify-content: center;
}
.tl-back-link a {
  font-size: 14px;
  color: var(--sc-gray-500);
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid var(--sc-gray-200);
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s;
}
.tl-back-link a:hover { border-color: var(--sc-navy-800); color: var(--sc-navy-900); }

/* Mobile */
@media (max-width: 768px) {
  .tl-nav { padding: 14px 18px; }
  .tl-nav__logo img { height: 44px; }
  .tl-hero { padding: 56px 24px 40px; }
  .tl-hero h1 { font-size: 40px; }
  .tl-hero p { font-size: 16px; }
  .tl-grid { grid-template-columns: 1fr; gap: 16px; padding: 36px 20px 60px; }
  .tl-card { padding: 22px 24px; }
  .tl-card__title { font-size: 20px; }
  .tl-back-link { padding: 0 20px 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-hero h1 em { animation: none; }
}
