/* ==========================================================================
   itbakulev.ru — Григорий Бакулев · автоматизация бизнеса
   Синяя тема, «слайдовый» первый экран.
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  --bg: #05091a;
  --bg-2: #081226;
  --bg-3: #0b1b3a;

  --ink: #eaf1ff;
  --ink-soft: #c3d2ee;
  --muted: #8fa3c6;

  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --blue-3: #2563eb;
  --cyan: #38bdf8;
  --violet: #818cf8;

  --line: rgba(120, 160, 255, 0.16);
  --line-strong: rgba(120, 170, 255, 0.32);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --glow: 0 18px 48px -18px rgba(59, 130, 246, 0.65);

  --container: 1180px;
  --header-h: 76px;

  --font: "Inter", "Segoe UI", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Фон ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 82% -8%, rgba(59, 130, 246, 0.28), transparent 62%),
    radial-gradient(760px 520px at 4% 8%, rgba(56, 189, 248, 0.16), transparent 58%),
    radial-gradient(900px 700px at 50% 110%, rgba(99, 102, 241, 0.18), transparent 60%),
    linear-gradient(180deg, #05091a 0%, #071127 46%, #050a19 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 620px at 50% 12%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 620px at 50% 12%, #000 15%, transparent 78%);
  opacity: 0.75;
}

/* ---------- Общие блоки ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}

.section--line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 48px, var(--container));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 20px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  max-width: 20ch;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.35vw, 18.5px);
  max-width: 62ch;
  margin-top: 20px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head .lead { margin-top: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: linear-gradient(135deg, #2f6bff 0%, #3b82f6 45%, #38bdf8 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--glow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px -16px rgba(59, 130, 246, 0.8);
  color: #fff;
  filter: saturate(1.08);
}

.btn:active { transform: translateY(0); }

.btn svg { width: 18px; height: 18px; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
  color: #fff;
}

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(5, 9, 26, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}

.header__in {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  flex: none;
}

.logo:hover { color: #fff; }

.logo__mark {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #2563eb, #38bdf8);
  box-shadow:
    0 10px 26px -12px rgba(59, 130, 246, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  padding-bottom: 1px;
}

.logo__sub {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.header__cta { margin-left: 10px; padding: 11px 20px; font-size: 14.5px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.burger.is-open span { transform: rotate(45deg); }
.burger.is-open span::before { transform: rotate(-90deg) translateX(-6px); }
.burger.is-open span::after { opacity: 0; }

/* мобильное меню */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 79;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 22px;
  background: rgba(5, 9, 26, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  padding: 14px 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 500;
}

.mobile-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.mobile-nav .btn { margin-top: 10px; }

/* ---------- Первый экран / слайды ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 42px) 0 56px;
  overflow: hidden;
}

.hero__in {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(59, 130, 246, 0.09);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-2);
}

.hero__kicker .dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

/* пульсация только через transform/opacity — не нагружает основной поток */
.hero__kicker .dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.55);
  transform: scale(0.7);
  opacity: 0.9;
  animation: dotPulse 2.6s ease-out infinite;
}

@keyframes dotPulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  70% { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* слайды */
.slides { position: relative; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.6s;
  pointer-events: none;
}

.slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.slide__tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}

.hero h1 .grad {
  background: linear-gradient(105deg, #7dd3fc 0%, #60a5fa 38%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  font-size: clamp(15.5px, 1.35vw, 18px);
  color: var(--ink-soft);
  max-width: 54ch;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* управление слайдами */
.slider-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.slider-dots { display: flex; gap: 8px; }

.slider-dot {
  width: 30px;
  height: 4px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}

.slider-dot.is-active {
  width: 46px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.slider-arrows { display: flex; gap: 8px; margin-left: 14px; }

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.slider-arrow svg { width: 16px; height: 16px; }

/* ---------- Визуал первого экрана ---------- */
.hero__art {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.art.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(19, 36, 70, 0.92), rgba(8, 16, 34, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel--float {
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* канбан */
.kanban { width: 100%; max-width: 430px; padding: 18px; }

.kanban__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

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

.kanban__col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 160, 255, 0.1);
  border-radius: 12px;
  padding: 9px;
  min-height: 210px;
}

.kanban__title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.kanban__card {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 9px;
  padding: 8px 9px;
  margin-bottom: 7px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.kanban__card b {
  display: block;
  font-size: 11.5px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 2px;
}

.kanban__card--ok {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
}

.kanban__card--wait {
  background: rgba(250, 204, 21, 0.08);
  border-color: rgba(250, 204, 21, 0.28);
}

/* чаты */
.chats { width: 100%; max-width: 400px; padding: 18px; }

.chats__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.chats__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, #2563eb, #38bdf8);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.chats__name { font-size: 13.5px; font-weight: 600; }
.chats__status { font-size: 11.5px; color: #34d399; }

.bubble {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(120, 160, 255, 0.12);
  color: var(--ink-soft);
}

.bubble--in { border-bottom-left-radius: 4px; }

.bubble--out {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.9), rgba(56, 189, 248, 0.85));
  border: 0;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble__meta {
  display: block;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 3px;
}

.chat-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 5px;
}

/* дашборд */
.dash { width: 100%; max-width: 430px; padding: 18px; }

.dash__kpi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(120, 160, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
}

.kpi__label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi__value {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 3px;
}

.kpi__delta { font-size: 11px; color: #34d399; }

.dash__chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 130px;
  padding: 10px 0 0;
}

.dash__bar {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.95), rgba(37, 99, 235, 0.35));
  transform-origin: bottom;
  animation: barIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dash__bar:nth-child(2) { animation-delay: 0.06s; }
.dash__bar:nth-child(3) { animation-delay: 0.12s; }
.dash__bar:nth-child(4) { animation-delay: 0.18s; }
.dash__bar:nth-child(5) { animation-delay: 0.24s; }
.dash__bar:nth-child(6) { animation-delay: 0.3s; }
.dash__bar:nth-child(7) { animation-delay: 0.36s; }

@keyframes barIn {
  from { transform: scaleY(0.2); opacity: 0.2; }
  to { transform: scaleY(1); opacity: 1; }
}

.dash__legend {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ---------- Полоса цифр ---------- */
.hero__stats {
  margin-top: clamp(40px, 5.5vw, 72px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.stat {
  background: rgba(7, 16, 36, 0.72);
  padding: 22px 20px;
  transition: background 0.25s ease;
}

.stat:hover { background: rgba(19, 36, 70, 0.8); }

.stat__value {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* ---------- Услуги ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease,
    background 0.28s ease;
}

.service::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(96, 165, 250, 0.6), transparent 45%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.service:hover {
  transform: translateY(-4px);
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.13), rgba(255, 255, 255, 0.02));
}

.service:hover::after { opacity: 1; }

.service__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: var(--blue-2);
  margin-bottom: 4px;
}

.service__icon svg { width: 21px; height: 21px; }

.service__title {
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.service__text {
  font-size: 14.2px;
  line-height: 1.5;
  color: var(--muted);
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #a8c8ff;
}

/* ---------- Как работаю ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.step:hover {
  border-color: var(--line-strong);
  background: rgba(59, 130, 246, 0.07);
}

.step__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-2);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step__num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.5), transparent);
}

.step__title {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.step__text {
  font-size: 14.2px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Кейсы ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.case {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(59, 130, 246, 0.14), transparent 65%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease;
}

.case:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.case__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
  margin-bottom: 16px;
}

.case__title {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.case__text {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

.case__result {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
}

.case__result svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #34d399;
}

/* карточка-ссылка */
a.case { color: inherit; text-decoration: none; }

.case__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.metric b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}

.metric span {
  display: block;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 3px;
}

.case__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--blue-2);
  transition: color 0.2s ease;
}

.case__more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.case:hover .case__more { color: #fff; }
.case:hover .case__more svg { transform: translateX(4px); }

/* страница кейса */
.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 44px;
}

.case-hero__metrics {
  display: grid;
  gap: 10px;
}

.case-hero__metric {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(59, 130, 246, 0.14), rgba(255, 255, 255, 0.02));
}

.case-hero__metric b {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.case-hero__metric span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.35;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
}

.case-back:hover { color: #fff; }
.case-back svg { width: 16px; height: 16px; }

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: #6f80a1;
  margin-bottom: 22px;
}

.breadcrumbs a { color: #8fa3c6; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Обо мне ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about__card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(520px 260px at 20% 0%, rgba(59, 130, 246, 0.2), transparent 60%),
    linear-gradient(170deg, rgba(19, 36, 70, 0.9), rgba(8, 16, 34, 0.9));
  box-shadow: var(--shadow);
}

.about__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.about__photo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 12px 30px -14px rgba(59, 130, 246, 0.9);
}

.about__name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.about__role {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

.about__quote {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-left: 16px;
  border-left: 2px solid rgba(96, 165, 250, 0.5);
}

.about__body p + p { margin-top: 14px; }

.about__body {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.acc {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.028);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.acc[open] {
  border-color: var(--line-strong);
  background: rgba(59, 130, 246, 0.06);
}

.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 20px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
}

.acc summary::-webkit-details-marker { display: none; }

.acc summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--blue-2), var(--blue-2)) center / 9px 1.6px no-repeat,
    linear-gradient(var(--blue-2), var(--blue-2)) center / 1.6px 9px no-repeat;
  transition: transform 0.25s ease;
}

.acc[open] summary::after { transform: rotate(90deg); }

.acc__body {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 14.6px;
  line-height: 1.6;
}

/* ---------- Контакты ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.contact__links {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.contact__link:hover {
  border-color: var(--line-strong);
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(3px);
  color: #fff;
}

.contact__link svg {
  width: 20px;
  height: 20px;
  color: var(--blue-2);
  flex: none;
}

.contact__link span { font-size: 15.5px; font-weight: 500; }
.contact__link small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}

/* мессенджеры */
.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.messenger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.messenger:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.75);
  color: #fff;
  transform: translateY(-2px);
}

.messenger__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  overflow: hidden;
}

.messenger__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* форма */
.form {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(520px 240px at 90% 0%, rgba(59, 130, 246, 0.16), transparent 62%),
    linear-gradient(170deg, rgba(19, 36, 70, 0.9), rgba(8, 16, 34, 0.92));
  box-shadow: var(--shadow);
}

.form__title {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.form__sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 9, 22, 0.65);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea { min-height: 106px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #5b6c8c; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
  background: rgba(4, 9, 22, 0.85);
}

.field input:invalid:not(:placeholder-shown) { border-color: rgba(248, 113, 113, 0.6); }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.8px;
  line-height: 1.5;
  color: var(--muted);
  margin: 16px 0 18px;
  cursor: pointer;
}

.check input {
  appearance: none;
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 9, 22, 0.7);
  cursor: pointer;
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.check input:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.check input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check a { text-decoration: underline; text-underline-offset: 2px; }

.form .btn { width: 100%; }

.form__note {
  font-size: 12px;
  color: #6f80a1;
  margin-top: 12px;
  text-align: center;
}

.form__status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.45;
}

.form__status.is-ok {
  display: block;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.form__status.is-err {
  display: block;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Подвал ---------- */
.footer {
  position: relative;
  padding: 64px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.6);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__text {
  font-size: 14px;
  color: var(--muted);
  max-width: 34ch;
  margin-top: 16px;
  line-height: 1.55;
}

.footer__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f92b5;
  margin-bottom: 14px;
}

.footer__links { display: grid; gap: 9px; }

.footer__links a,
.footer__links span {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.footer__links a:hover { color: #fff; }

.footer__req {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #8194b8;
  line-height: 1.6;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: #6b7d9e;
}

.footer__bottom a { color: #8fa3c6; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Кнопка «вверх» ---------- */
.up {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 22, 46, 0.85);
  backdrop-filter: blur(10px);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s;
}

.up.is-visible { opacity: 1; visibility: visible; transform: none; }
.up:hover { background: rgba(59, 130, 246, 0.28); color: #fff; }
.up svg { width: 18px; height: 18px; }

/* ---------- Боковая навигация по секциям ---------- */
.dot-nav {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: grid;
  gap: 12px;
}

.dot-nav a {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease, transform 0.25s ease;
}

.dot-nav a::after {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dot-nav a:hover::after { opacity: 1; transform: translateY(-50%); }
.dot-nav a:hover { background: rgba(255, 255, 255, 0.5); }
.dot-nav a.is-active {
  background: var(--blue-2);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
  transform: scale(1.25);
}

/* ---------- Анимации появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-in { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }

/* ---------- Внутренние страницы ---------- */
.page {
  padding: calc(var(--header-h) + 56px) 0 96px;
}

.page__head { max-width: 780px; margin-bottom: 44px; }

.page h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.doc {
  max-width: 860px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.doc h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 42px 0 14px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.doc h3 {
  font-size: 17px;
  margin: 26px 0 10px;
  color: var(--ink);
}

.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.doc li { margin-bottom: 7px; }
.doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc strong { color: #fff; font-weight: 600; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 14px;
}

.doc th,
.doc td {
  border: 1px solid var(--line);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: rgba(59, 130, 246, 0.1);
  font-weight: 600;
  color: var(--ink);
}

.doc a { text-decoration: underline; text-underline-offset: 2px; }

.doc .note {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(59, 130, 246, 0.07);
  font-size: 14.5px;
  margin: 20px 0;
}

.req-table { font-size: 14.5px; }
.req-table td:first-child { color: var(--muted); width: 42%; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr; }
  .dot-nav { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { min-height: 380px; margin-top: 8px; }
  .hero { padding-top: calc(var(--header-h) + 30px); }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav,
  .header__cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .h2 { max-width: none; }
  .hero h1 { font-size: clamp(34px, 9vw, 52px); }
  .slider-nav { margin-top: 30px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero__in { padding: 0 18px; }
  .header__in { padding: 0 18px; gap: 12px; }
  .services { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .hero__art { min-height: 330px; }
  .kanban,
  .chats,
  .dash { max-width: 100%; }
  .form { padding: 22px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .about__card { padding: 22px; }
  .about__photo { width: 76px; height: 76px; border-radius: 18px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .footer { padding-top: 48px; }
  .up { right: 14px; bottom: 14px; }
  .btn { padding: 14px 22px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .stat { padding: 18px 16px; }
  .case { padding: 22px 20px; }
}

@media (max-width: 400px) {
  .hero__chips .chip { font-size: 12.5px; padding: 7px 11px; }
}

/* ---------- Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Печать ---------- */
@media print {
  .header, .up, .dot-nav, .bg-layer, .bg-grid, #ck, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
}

/* ---------- Блог ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.post {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(59, 130, 246, 0.12), transparent 65%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease;
}

.post:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  color: inherit;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.post__title {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.post__text {
  font-size: 14.2px;
  line-height: 1.55;
  color: var(--muted);
}

.post__more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--blue-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post:hover .post__more { color: #fff; }

.post__more svg { width: 16px; height: 16px; }

/* статья */
.article { max-width: 780px; }

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0 30px;
}

.article__meta b { color: var(--ink); font-weight: 600; }

.article .doc h2 { margin-top: 38px; }

.article__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-left: 18px;
  border-left: 2px solid rgba(96, 165, 250, 0.5);
  margin: 0 0 28px;
}

.author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  margin-top: 44px;
}

.author img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex: none;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.author b { display: block; font-size: 15px; }
.author span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.author a { margin-left: auto; font-size: 13.5px; font-weight: 600; }

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

@media (max-width: 720px) {
  .posts { grid-template-columns: 1fr; }
  .author { flex-wrap: wrap; }
  .author a { margin-left: 0; }
}
