/* Стиль сайта инструментов: те же токены, что на desyatka.ru, но компактный набор компонентов. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/Manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --night: #070a16;
  --panel: #10172a;
  --panel-2: #151d34;
  --violet: #6c5ce7;
  --violet-light: #9a85ff;
  --white: #f2f4f8;
  --muted: #9ca6bc;
  --muted-2: #6f7991;
  --line: rgba(177, 188, 220, 0.16);
  --line-strong: rgba(139, 124, 255, 0.34);
  --green: #55de78;
  --orange: #ff8a00;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --container: 1120px;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 4%, rgba(88, 68, 205, 0.12), transparent 32%),
    radial-gradient(circle at 6% 30%, rgba(79, 124, 255, 0.06), transparent 28%),
    var(--night);
  color: var(--white);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  color: var(--night);
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

/* ------------------------------------------------------- Шапка и подвал */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 22, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { width: 170px; height: auto; }

.brand span {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: #cfc6ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-header nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header nav a:hover { color: var(--white); }

.site-footer {
  margin-top: 90px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.footer-inner p { margin: 0 0 8px; font-size: 15px; }
.footer-inner .muted { color: var(--muted-2); font-size: 13px; }
.footer-inner a { color: var(--violet-light); }

/* ---------------------------------------------------------- Компоненты */

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--violet), #8b7cff);
  box-shadow: 0 18px 40px rgba(108, 92, 231, 0.32);
}

.button:hover { transform: translateY(-2px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--violet-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 18px var(--violet);
}

.hero { padding: 84px 0 12px; }

h1 {
  margin: 22px 0 18px;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section { padding: 56px 0 0; }

.note {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.muted { color: var(--muted); }

/* ------------------------------------------------------ Витрина и карточки */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(21, 29, 52, 0.92), rgba(10, 15, 32, 0.96));
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

a.tool-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
  transform: translateY(-4px);
}

.tool-card.is-soon { opacity: 0.66; }

.tool-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(108, 92, 231, 0.13);
  color: var(--violet-light);
  font-size: 20px;
}

.tool-card h2 {
  margin: 20px 0 4px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tool-short {
  margin: 0 0 12px;
  color: var(--violet-light);
  font-size: 13px;
  font-weight: 600;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.tool-more {
  margin-top: 22px;
  color: var(--violet-light);
  font-size: 14px;
  font-weight: 700;
}

.tool-badge {
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 56px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 8%, rgba(108, 92, 231, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(17, 24, 45, 0.98), rgba(8, 12, 26, 0.98));
}

.promo h2 { margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }
.promo p { margin: 0; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------ Инструмент */

.tool-section { padding-top: 76px; }
.tool-layout { max-width: 880px; }
.tool-head { margin-bottom: 40px; }

.tool-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(21, 29, 52, 0.92), rgba(10, 15, 32, 0.96));
}

.tool-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.form-row { display: flex; gap: 12px; }

.tool-form input,
.tool-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 12, 26, 0.72);
  color: var(--white);
  font-weight: 500;
}

.tool-form textarea { resize: vertical; line-height: 1.6; }

.tool-form input::placeholder,
.tool-form textarea::placeholder { color: var(--muted-2); }

.tool-form input:focus-visible,
.tool-form textarea:focus-visible {
  border-color: rgba(154, 133, 255, 0.68);
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.form-row .button { flex: none; }

.form-error {
  margin: 12px 0 0;
  color: #ffc48a;
  font-size: 14px;
}

/* ---------------------------------------------------------- Результаты */

.result,
.result-error {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(21, 29, 52, 0.9), rgba(10, 15, 32, 0.95));
}

.result-error {
  border-color: rgba(255, 138, 0, 0.35);
  background: rgba(255, 138, 0, 0.08);
}

.result-error p { margin: 8px 0 0; color: #ffc48a; }

.result h2 {
  margin: 34px 0 16px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.result h2:first-of-type { margin-top: 26px; }

.result-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.status-ok {
  padding: 5px 12px;
  border: 1px solid rgba(85, 222, 120, 0.4);
  border-radius: 99px;
  background: rgba(85, 222, 120, 0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.snippet {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(8, 12, 26, 0.6);
}

.snippet-url { color: var(--muted-2); font-size: 13px; }
.snippet-title { color: #9db4ff; font-size: 19px; font-weight: 600; }
.snippet-text { color: var(--muted); font-size: 14px; }

.fields { margin: 0; display: grid; gap: 14px; }

.field {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius-md);
  background: rgba(8, 12, 26, 0.5);
}

.field-ok { border-left-color: var(--green); }
.field-warn { border-left-color: var(--orange); }
.field-bad { border-left-color: #ff6b6b; }

.field dt {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field dt span { text-transform: none; letter-spacing: 0; font-weight: 500; }

.field dd {
  margin: 8px 0 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.field-hint { margin: 8px 0 0; color: var(--muted-2); font-size: 13px; }

.headings { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.headings li { margin-bottom: 6px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stats > div {
  padding-top: 12px;
  border-top: 2px solid var(--violet);
}

.stats small { display: block; color: var(--muted-2); font-size: 12px; }
.stats strong { display: block; margin-top: 4px; font-size: 22px; }

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.freq {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.freq th,
.freq td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.freq th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.freq td.is-high { color: var(--orange); font-weight: 700; }

@media (max-width: 1020px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .header-inner { height: 64px; gap: 12px; }
  .brand img { width: 136px; }
  .brand span,
  .site-header nav a:not(.button) { display: none; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .promo { flex-direction: column; align-items: flex-start; padding: 26px; }
  .promo .button { width: 100%; }
  .form-row { flex-direction: column; }
  .form-row .button { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-columns { grid-template-columns: 1fr; gap: 20px; }
  .result, .result-error, .tool-form { padding: 22px; }
}
