/* Хаб блога и страницы рубрик — только под .blog-page */

.blog-page .seo-hero {
  padding-bottom: 48px;
}

.blog-page .seo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 4px 12px 4px 4px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: var(--blue-soft, #eff6ff);
  color: var(--blue, #2563eb);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-page .blog-kicker-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue, #2563eb) 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.blog-page .seo-hero h1 {
  max-width: 18ch;
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.blog-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.blog-crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.blog-crumbs a:hover,
.blog-crumbs a:focus-visible {
  color: var(--blue, #2563eb);
}

.blog-crumbs__sep {
  opacity: 0.45;
}

.blog-rubric-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.blog-rubric-pills a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft, #f8fafc);
  color: var(--ink-2, #334155);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.blog-rubric-pills a:hover,
.blog-rubric-pills a:focus-visible {
  border-color: #bfdbfe;
  background: var(--blue-soft, #eff6ff);
  color: var(--blue, #2563eb);
  outline: none;
}

.blog-rubric-pills a.is-active {
  border-color: color-mix(in srgb, var(--blue, #2563eb) 35%, var(--line));
  background: var(--blue-soft, #eff6ff);
  color: var(--blue, #2563eb);
  font-weight: 700;
}

.blog-hero__more {
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.blog-hero__more .btn-link {
  font-size: 14.5px;
}

.blog-hero__more-sep {
  display: none;
  width: 1px;
  height: 14px;
  background: var(--line);
}

@media (min-width: 520px) {
  .blog-hero__more-sep {
    display: inline-block;
  }
}

.blog-hero__trust {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.blog-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.blog-hero__trust svg {
  flex-shrink: 0;
  color: var(--blue, #2563eb);
}

/* Hero: текст + интерактивная полка */
.blog-hero__grid {
  align-items: start;
}

.blog-hero__stage {
  position: relative;
  min-width: 0;
  align-self: start;
}

.blog-hero__stage::before {
  content: "";
  position: absolute;
  inset: 8% -6% -4% 8%;
  border-radius: 40% 48% 42% 52%;
  background:
    radial-gradient(closest-side at 40% 35%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(closest-side at 70% 70%, rgba(37, 99, 235, 0.12), transparent 72%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.blog-shelf {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-shelf__tabs {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-self: flex-start;
  gap: 4px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.blog-shelf__pill {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  pointer-events: none;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, width;
}

.blog-shelf__tab {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.blog-shelf__tab:hover,
.blog-shelf__tab:focus-visible {
  color: var(--ink);
  outline: none;
}

.blog-shelf__tab.is-active {
  color: var(--ink);
}

.blog-shelf__app {
  max-width: none;
  margin: 0;
  border-radius: 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 18px 48px -28px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-shelf.is-switching .blog-shelf__app {
  box-shadow:
    0 22px 52px -26px rgba(37, 99, 235, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.blog-shelf__body {
  position: relative;
  display: grid;
  padding: 0;
  min-height: 300px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  overflow: hidden;
}

.blog-shelf__pane {
  grid-area: 1 / 1;
  padding: 16px 16px 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(16px, 0, 0);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.4s;
  z-index: 0;
}

.blog-shelf[data-dir="prev"] .blog-shelf__pane:not(.is-active):not(.is-leaving) {
  transform: translate3d(-16px, 0, 0);
}

.blog-shelf__pane.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
  z-index: 2;
}

.blog-shelf__pane.is-leaving {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 1;
  transition:
    opacity 0.28s cubic-bezier(0.4, 0, 1, 1),
    transform 0.32s cubic-bezier(0.4, 0, 1, 1),
    visibility 0s linear 0.32s;
}

.blog-shelf[data-dir="next"] .blog-shelf__pane.is-leaving {
  transform: translate3d(-20px, 0, 0);
}

.blog-shelf[data-dir="prev"] .blog-shelf__pane.is-leaving {
  transform: translate3d(20px, 0, 0);
}

.blog-shelf__kicker {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue, #2563eb);
}

.blog-shelf__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.blog-shelf__item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.blog-shelf__item:hover,
.blog-shelf__item:focus-visible {
  border-color: #bfdbfe;
  background: #fff;
  box-shadow: 0 10px 24px -18px rgba(37, 99, 235, 0.55);
  outline: none;
  transform: translateX(2px);
}

.blog-shelf__item.is-active {
  border-color: color-mix(in srgb, var(--blue, #2563eb) 28%, var(--line));
  background: #fff;
  box-shadow: 0 12px 28px -20px rgba(37, 99, 235, 0.5);
}

.blog-shelf__item-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.blog-shelf__item-meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.blog-shelf__soon {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.blog-shelf__soon li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px dashed color-mix(in srgb, var(--blue, #2563eb) 18%, var(--line));
  font-size: 0.95rem;
  color: var(--ink-2, #334155);
}

.blog-shelf__soon em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-shelf__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue, #2563eb);
  text-decoration: none;
}

.blog-shelf__cta:hover,
.blog-shelf__cta:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

@media (max-width: 959px) {
  .blog-hero__stage {
    max-width: 440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-shelf__pill,
  .blog-shelf__app,
  .blog-shelf__pane,
  .blog-shelf__item {
    transition: none !important;
    animation: none !important;
  }

  .blog-shelf__pane {
    transform: none !important;
  }
}

/* Сетка рубрик */
.blog-rubrics {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

@media (min-width: 720px) {
  .blog-rubrics {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-rubric-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 32px -28px rgba(15, 23, 42, 0.4);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-rubric-card:hover,
.blog-rubric-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue, #2563eb) 40%, var(--line));
  box-shadow: 0 20px 40px -26px rgba(37, 99, 235, 0.4);
  outline: none;
}

.blog-rubric-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue, #2563eb) 12%, transparent);
  color: var(--blue, #2563eb);
}

.blog-rubric-card__title {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.15s ease;
}

.blog-rubric-card:hover .blog-rubric-card__title,
.blog-rubric-card:focus-visible .blog-rubric-card__title {
  color: var(--blue, #2563eb);
}

.blog-rubric-card__text {
  display: block;
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.blog-rubric-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue, #2563eb);
}

.blog-rubric-card__meta--soon {
  color: var(--muted);
}

/* Свежие статьи */
.blog-fresh {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.blog-fresh__item {
  border-bottom: 1px solid var(--line);
}

.blog-fresh__item:last-child {
  border-bottom: none;
}

.blog-fresh__link {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
}

.blog-fresh__link:hover .blog-fresh__title,
.blog-fresh__link:focus-visible .blog-fresh__title {
  color: var(--blue, #2563eb);
}

.blog-fresh__meta {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue, #2563eb);
}

.blog-fresh__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.15s ease;
}

.blog-fresh__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Заглушка рубрики */
.blog-soon {
  padding: 28px 24px;
  border: 1px dashed color-mix(in srgb, var(--blue, #2563eb) 30%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--blue, #2563eb) 4%, var(--bg));
}

.blog-soon h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.blog-soon p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.blog-soon ul {
  margin: 0 0 18px;
  padding-left: 1.2rem;
  color: var(--ink-2, #334155);
  line-height: 1.55;
}

.blog-soon__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
