/* ============================================================
   Дизайн-концепция webfab.ru (этап 5).
   База — proto.css (ч/б прототип). Этот файл — только фирменный
   слой: белый фон, чёрно-белый интерфейс, минимум градиентных
   акцентов #9D2A9F → #41C0E3 (2–3 пятна на экране) + микроанимации.
   ============================================================ */

/* ---------- логотип в фирменном градиенте (только в шапке; в подвале — ч/б) ---------- */
.design .header .logo img { filter: none; }

/* ---------- градиентный текстовый акцент (не более 1 на экран) ---------- */
.design .grad {
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* ---------- hover-подсветка фраз в процессных секциях ---------- */
.design .hl-grad {
  transition: opacity .18s ease;
  cursor: default;
}
.design .hl-grad:hover,
.design .hl-grad:focus-visible {
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- основная CTA — единственная градиентная кнопка на экране ---------- */
.design .btn--brand {
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  border-color: transparent;
  color: #fff;
}
.design .btn--brand:hover { filter: brightness(1.07); color: #fff; }

/* ---------- слайдер hero: активная точка — градиент ---------- */
.design .hsl-dot.is-active {
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  border-color: transparent;
}

/* ---------- карточки услуг: подъём и тень при наведении ---------- */
.design a.card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.design a.card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 rgba(20, 20, 20, .10);
}
.design a.card:hover .go { color: var(--brand-a); }
.design a.card .go { transition: color .18s ease; }

/* ---------- навигация: подчёркивание-градиент при наведении ---------- */
.design .nav a {
  border-bottom: 2px solid transparent;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b)) no-repeat bottom / 0% 2px;
  transition: background-size .22s ease, color .18s ease;
}
.design .nav a:hover { color: var(--ink); background-size: 100% 2px; border-bottom-color: transparent; }

/* ---------- выделенный тариф: градиентная планка сверху ---------- */
.design .price-card.featured {
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--brand-a), var(--brand-b)) 1;
}

/* ---------- чипы мессенджеров ---------- */
.design .msg-chip { transition: background .18s ease, color .18s ease; }
.design .msg-chip:hover { background: var(--ink); color: #fff; }

/* ---------- фокус и выделение ---------- */
.design ::selection { background: var(--brand-a); color: #fff; }
.design a:focus-visible,
.design button:focus-visible,
.design input:focus-visible,
.design select:focus-visible,
.design textarea:focus-visible {
  outline: 2px solid var(--brand-b);
  outline-offset: 2px;
}

/* ---------- появление секций при прокрутке (микроанимация) ---------- */
.design .reveal { opacity: 0; transition: opacity .5s ease; }
.design .reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .design .reveal { opacity: 1; transition: none; }
  .design a.card, .design .msg-chip, .design .nav a { transition: none; }
}

/* ---------- иллюстрации кейсов ---------- */
.design .case-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--bg);
}
.design .card h3 + .case-img { margin-top: 4px; }

/* метка услуги в карточке кейса */
.design .case-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 3px 10px 2px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.design a.case-tag:hover { color: var(--brand-a); border-color: var(--brand-a); }

/* ---------- «показать ещё» для плитки кейсов ---------- */
.design .cases-extra { margin-top: 24px; }
.design .cases-extra[hidden] { display: none; }
.design .cases-more-wrap { text-align: center; margin-top: 28px; }

/* сертификат партнёра — отдельным блоком по центру, рамка поджата снизу */
.design .cert-partner { display: flex; justify-content: center; margin-top: 24px; }
.design .cert-partner .cert { width: 100%; max-width: 560px; padding-bottom: 10px; }
.design .cert-partner .cert-cap { margin-bottom: 2px; }

/* ---------- «печать» сметы на странице Услуги ---------- */
.design .smeta {
  list-style: none;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 14px;
}
.design .smeta-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  white-space: nowrap;
}
/* колонки фиксированной ширины: значение «печатается» слева направо за кареткой,
   колонки не прыгают, место под OK зарезервировано с самого начала */
.design .sl-ok { flex: 0 0 3ch; }
.design .sl-label { flex: 0 0 9ch; }
.design .sl-value { flex: 0 0 33ch; color: var(--ink-faint); }
.design .status-panel:has(.smeta) { overflow-x: auto; min-width: 0; }
/* воздух между заголовком и текстом в секции «Точка входа» */
.design .entry-point h2 { margin-bottom: 22px; }
/* OK появляется «штампом» после печати строки */
.design .sl-ok {
  visibility: hidden;
  color: var(--ink);
  font-weight: 600;
  transform-origin: left center;
}
.design .sl-ok.on { visibility: visible; animation: sl-stamp .35s ease both; }
@keyframes sl-stamp {
  from { opacity: 0; transform: scale(1.45); }
  to   { opacity: 1; transform: scale(1); }
}
/* свежий символ — градиентный, затем плавно «отсыхает» в обычный цвет строки */
.design .sl-ch {
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: color .5s ease;
}
.design .sl-ch.settle { color: inherit; }
/* каретка печатной машинки */
.design .sl-cursor {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: 1px;
  background: var(--ink);
  vertical-align: -0.12em;
  animation: sl-blink 1s steps(2, start) infinite;
}
@keyframes sl-blink { 50% { opacity: 0; } }
@media (max-width: 480px) {
  .design .smeta { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .design .sl-cursor { animation: none; }
  .design .sl-ok.on { animation: none; }
}

/* ---------- иконка сайта в подписи отзыва ---------- */
.design .review .who img {
  width: 16px;
  height: 16px;
  margin-left: 7px;
  vertical-align: -3px;
}

/* ---------- текстовые страницы (политика и т. п.) ---------- */
.container--text { max-width: 780px; }
.container--text h2 { margin: 34px 0 12px; font-size: 20px; }
.container--text p,
.container--text ul { margin: 0 0 14px; line-height: 1.65; font-size: 15px; }
.container--text ul { padding-left: 20px; }
.container--text li { margin-bottom: 6px; }

/* ---------- баннер согласия на cookies ---------- */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-bar p { margin: 0; flex: 1 1 320px; }
.cookie-bar a { text-decoration: underline; }
.cookie-bar .btn { flex: 0 0 auto; padding: 8px 18px; font-size: 13px; }
@media (max-width: 560px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; }
}
