/* ============================================================
   serp-base — дополнение к стилям для англоязычной витрины
   (13.10.2026: новая главная, услуги, тарифы, сравнение)
   Палитра и переменные — из основного style.css (тёмная тема)
   ============================================================ */

/* ---------- ШАПКА ---------- */
.top-in {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.top-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  margin-right: 18px;
}
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--t) var(--ease);
}
.top-nav a:hover { color: var(--text); }
.top-right { display: flex; gap: 10px; align-items: center; }
@media (max-width: 820px) {
  .top-nav { display: none; }
}

/* ---------- HERO ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: 12px; color: var(--muted); line-height: 1.4; }
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- СЕТКА КАРТОЧЕК УСЛУГ ---------- */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.tool-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease),
              background var(--t) var(--ease);
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-hi);
  background: var(--card-hi);
}
.tc-icon {
  font-size: 26px;
  margin-bottom: 10px;
  line-height: 1;
}
.tool-card h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 17px;
}
.tool-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 12px;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, .28);
  white-space: nowrap;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ticks li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}
.tc-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}
.tool-card:hover .tc-more { color: var(--orange); transform: translateX(3px); }

/* ---------- ТАБЛИЦЫ (тарифы, сравнение) ---------- */
.price-table { overflow-x: auto; margin-top: 18px; }
.price-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.price-table th,
.price-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table thead th {
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--card-hi); }
.price-table td.price,
.price-table td.good {
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}
.price-table code {
  font-size: 12.5px;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- CTA ---------- */
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ---------- МЕЛОЧИ ---------- */
.sec-sub {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 0 26px;
}
.faq details { margin-bottom: 10px; }
.faq summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--violet);
  font-weight: 700;
}
.faq details[open] summary::before { content: "−"; }
.faq details p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 0 10px 18px;
}
.faq details code,
.hero-code code,
.card code {
  font-size: 12.5px;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 2px 6px;
  border-radius: 6px;
}
pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ============================================================
   ПРАВКИ ПО ЗАМЕЧАНИЯМ ХОЗЯИНА (13.10.2026, вечер)
   ============================================================ */

/* ---------- ЛОГОТИП: лупа вровень с текстом ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--violet-soft), var(--orange-soft));
  border: 1px solid var(--line-hi);
  flex: 0 0 auto;
}
.logo-mark svg {
  width: 18px;
  height: 18px;
  color: var(--violet);
  display: block;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.2px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.logo-text span { color: var(--orange); margin: 0 1px; }

/* ---------- УСЛУГИ: 2 колонки на десктопе ---------- */
.grid-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px) {
  .grid-services { grid-template-columns: 1fr; }
}
.tool-card h3 { gap: 8px; }

/* ---------- ПОДСКАЗКА (i) ---------- */
.info {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  transition: all var(--t) var(--ease);
  flex: 0 0 auto;
}
.info:hover,
.info:focus-visible {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  outline: none;
}
.info::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content; max-width: min(340px, 86vw);
  max-width: 78vw;
  background: #0a0a10;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
  z-index: 60;
  pointer-events: none;
  white-space: normal;
}
.info:hover::after,
.info:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

/* ---------- ОТСТУПЫ: CTA и FAQ ---------- */
.cta {
  padding: 44px 34px;
  text-align: center;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
}
@media (max-width: 640px) {
  .cta { padding: 30px 20px; }
}
.cta h2 { margin: 0 0 10px; }
.cta .sec-sub { margin: 0 auto 4px; text-align: center; }

.faq {
  max-width: 860px;
  padding: 6px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
@media (max-width: 640px) {
  .faq { padding: 4px 14px; }
}
.faq details:first-child summary { border-top: none; }
.faq summary {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq summary::before {
  width: 20px;
  min-width: 20px;
  text-align: center;
  font-size: 16px;
}
.faq details p {
  margin: 0 0 14px 30px;
  padding-right: 8px;
}

/* ============================================================
   ПРАВКИ ВТОРОГО КРУГА (13.10.2026) — по замечаниям хозяина
   ============================================================ */

/* ---------- ШАПКА: отступы сверху, кнопки не липнут ---------- */
.top {
  padding-top: 10px;
  padding-bottom: 10px;
}
.top-in { padding: 6px 0; }
.top-right .btn { padding: 9px 9px; }

/* ---------- FAQ: как было (широкий, без внутренней плашки) ---------- */
.faq {
  max-width: none;
  padding: 0;
  border: none;
  background: none;
}
.faq summary {
  padding: 14px 0 14px 6px;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.faq summary::before {
  width: 22px;
  min-width: 22px;
  text-align: center;
  font-size: 17px;
  margin-left: 2px;
}
.faq details p {
  margin: 0 0 14px 40px;
  padding-right: 12px;
}
.faq details:first-child summary { border-top: none; }

/* ---------- CTA: кнопки по левому краю ---------- */
.cta-left {
  text-align: left;
}
.cta-left h2 { margin: 0 0 10px; }
.cta-left .sec-sub { margin: 0 0 20px; text-align: left; max-width: 620px; }
.cta-left .cta-actions {
  justify-content: flex-start;
  margin-top: 0;
}

/* ---------- Пометка о скорости (честность) ---------- */
.ticks li.note {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  padding-left: 20px;
  opacity: .85;
}
.ticks li.note::before {
  content: "ℹ";
  color: var(--violet);
  font-style: normal;
}

/* ---------- ТАБЛИЦА: подсказки (i) рядом с текстом ---------- */
.price-table td .info { margin-left: 6px; vertical-align: middle; }
.price-table td { position: relative; }

/* 🔧 14.10.2026: подсказки (i) — починка вида (обрезание в таблице) */
.info { position: relative; cursor: help; }
.info::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(340px, 86vw);
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.5;
  font-style: normal;
  font-weight: 400;
  z-index: 9999;
  pointer-events: none;
}
/* в таблице прайса — раскрываем ВЛЕВО, чтобы не вылезала за экран */
.price-table td .info::after,
table .info::after {
  left: auto;
  right: -6px;
  transform: none;
  max-width: min(320px, 80vw);
}
/* если у самого правого края — тоже влево */
.info.tip-left::after { left: auto; right: 0; transform: none; }

/* 🔧 14.10.2026 ФИНАЛ: подсказки (i) — не обрезаются, читаемы */
.info::after {
  width: max-content !important;
  max-width: min(340px, 86vw) !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-align: left !important;
  line-height: 1.55 !important;
  font-style: normal !important;
  z-index: 9999 !important;
  padding: 12px 14px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.55) !important;
}
.price-table td .info::after,
table .info::after {
  left: auto !important;
  right: -8px !important;
  transform: none !important;
}

/* 🔧 14.10.2026: плавающий слой подсказок (не обрезается ничем) */
.tip-float {
  position: fixed;
  z-index: 99999;
  max-width: min(360px, 88vw);
  background: #0a0a10;
  border: 1px solid rgba(139,92,246,.55);
  border-radius: 10px;
  padding: 12px 14px;
  color: #ececf5;
  font: 400 13px/1.55 -apple-system, Segoe UI, Roboto, sans-serif;
  box-shadow: 0 14px 38px rgba(0,0,0,.6);
  pointer-events: none;
  display: none;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
/* отключаем старый CSS-механизм, чтобы не было двойных подсказок */
.info::after { content: none !important; display: none !important; }
/* ═════ ФИКС ГЛАВНОЙ: шапка + блок Start calling (20.10.2026) ═════
   1. ШАПКА: .top-in имел padding: 6px 0 → логотип left:73, а h1 left:97 (сдвиг 24px).
      Даём тот же горизонтальный padding, что у .wrap контента.
   2. БЛОК «Start calling»: .cta имел padding: 44px 34px вместо 18px контента →
      блок визуально шире остальных и «упирается» в края. Выравниваем к 18px. */

/* 1. шапка — по краям контента */
header.top .wrap.top-in,
header.top .top-in {
  padding: 6px 24px !important;
}
@media (min-width: 900px) {
  header.top .wrap.top-in,
  header.top .top-in { padding: 6px 24px !important; }
}

/* 2. блок Start calling — та же внутренняя геометрия, что у остальных секций */
.cta-sec .wrap.cta,
.wrap.cta {
  padding: 30px 24px !important;
  box-sizing: border-box !important;
}
.cta-sec { padding-bottom: 34px !important; }
