/* Premium /blog/ hub — ДОРТЕХНИКА B2B */
.dt-page-blog {
  --dt-blog-ink: #111315;
  --dt-blog-panel: #16191E;
  --dt-blog-panel-2: #1D2128;
  --dt-blog-mist: #F4F5F7;
  --dt-blog-white: #FFFFFF;
  --dt-blog-accent: #FF5000;
  --dt-blog-muted: rgba(244, 245, 247, 0.72);
  font-family: "Golos Text", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Hub content uses site-wide .dt-wrap (~1600) — no local max-width shrink */

.dt-page-blog .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Hero —— */
.dt-blog-hero {
  position: relative;
  background: var(--dt-blog-ink);
  color: var(--dt-blog-white);
  padding: 1.5rem 0 2rem;
  overflow: hidden;
}

.dt-blog-hero--compact {
  padding-bottom: 1.5rem;
}

.dt-blog-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}

.dt-blog-hero__inner {
  position: relative;
  z-index: 1;
}

.dt-blog-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  gap: 2rem 2.5rem;
  align-items: end;
}

.dt-blog-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  font-size: 0.82rem;
  color: rgba(244, 245, 247, 0.55);
}

.dt-blog-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dt-blog-crumbs li:not(:last-child)::after {
  content: "/";
  opacity: 0.45;
}

.dt-blog-crumbs a {
  color: rgba(244, 245, 247, 0.78);
  text-decoration: none;
}

.dt-blog-crumbs a:hover {
  color: #fff;
}

.dt-blog-hero__kicker {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 176, 138, 0.92);
}

.dt-blog-hero h1 {
  margin: 0 0 0.7rem;
  max-width: 18ch;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.dt-blog-hero__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--dt-blog-muted);
}

.dt-blog-search-form {
  width: min(480px, 100%);
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid rgba(244, 245, 247, 0.14);
  border-radius: 12px;
  background: var(--dt-blog-panel);
}

.dt-blog-search-form__label {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(244, 245, 247, 0.88);
}

.dt-blog-search-form__row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.dt-blog-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(244, 245, 247, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.dt-blog-search-form input[type="search"]::placeholder {
  color: rgba(244, 245, 247, 0.42);
}

.dt-blog-search-form input[type="search"]:focus {
  border-color: rgba(255, 80, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.18);
}

.dt-blog-search-form .dt-btn {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0 1.05rem;
}

.dt-blog-hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-top: 0.75rem;
}

.dt-blog-hero__quick a {
  color: rgba(244, 245, 247, 0.72);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.dt-blog-hero__quick a:hover {
  color: #fff;
}

/* —— Tabs —— */
.dt-blog-hub {
  padding: 1.5rem 0 3.5rem;
}

.dt-blog-tabs {
  margin: 0 0 1.5rem;
}

.dt-blog-tabs__scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dt-blog-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  height: 2.6rem;
  padding: 0 1rem;
  border: 1px solid #e4e6ea;
  border-radius: 999px;
  background-color: var(--dt-blog-white);
  background-image: none;
  box-shadow: none;
  color: var(--dt-blog-ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transform: none;
  isolation: isolate;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.dt-blog-tab::before,
.dt-blog-tab::after {
  content: none !important;
  display: none !important;
}

/* Inactive hover: flat opaque fill + solid orange border — no glow/transform/bleed */
.dt-blog-tab:not(.is-active):hover {
  border-color: #ff5000;
  background-color: #ffece3;
  background-image: none;
  background-clip: padding-box;
  box-shadow: none;
  color: #111315;
  transform: none;
  filter: none;
}

.dt-blog-tab:not(.is-active):hover .dt-blog-tab__count {
  background-color: #fff;
  background-image: none;
  box-shadow: none;
  color: #ff5000;
  border: 1px solid rgba(255, 80, 0, 0.28);
}

.dt-blog-tab:focus {
  outline: none;
}

.dt-blog-tab:focus-visible {
  outline: 2px solid var(--dt-blog-accent);
  outline-offset: 3px;
}

.dt-blog-tab.is-active {
  background-color: var(--dt-blog-accent);
  background-image: none;
  border-color: var(--dt-blog-accent);
  color: #fff;
  box-shadow: none;
  transform: none;
  filter: none;
}

.dt-blog-tab.is-active:hover {
  background-color: var(--dt-blog-accent);
  background-image: none;
  border-color: var(--dt-blog-accent);
  color: #fff;
  box-shadow: none;
  transform: none;
  filter: none;
}

.dt-blog-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background-color: var(--dt-blog-mist);
  background-image: none;
  box-shadow: none;
  color: var(--dt-blog-ink);
  font-size: 0.72rem;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease;
}

/* Active count: solid white chip + brand numeral — readable on orange */
.dt-blog-tab.is-active .dt-blog-tab__count,
.dt-blog-tab.is-active:hover .dt-blog-tab__count {
  background-color: #fff;
  background-image: none;
  color: var(--dt-blog-accent);
}

/* —— Section heads —— */
.dt-blog-section-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--dt-blog-ink);
}

.dt-blog-archive-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.dt-blog-archive-count {
  margin: 0;
  color: #66707c;
  font-size: 0.92rem;
  font-weight: 600;
}

.dt-blog-search-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e4e6ea;
  border-radius: 12px;
  background: #fff;
}

.dt-blog-search-status p {
  margin: 0;
  color: #4a5360;
}

.dt-blog-search-status a {
  color: var(--dt-blog-accent);
  font-weight: 600;
  text-decoration: none;
}

.dt-blog-search-empty {
  margin-top: 1rem;
  color: #4a5360;
}

.dt-blog-search-empty ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

/* —— Cards (override legacy) —— */
.dt-blog-featured-wrap {
  margin: 0 0 1.75rem;
}

.dt-blog-featured-wrap .dt-blog-section-title {
  margin-bottom: 0.85rem;
}

.dt-page-blog .blog-featured,
.dt-page-blog .blog-featured--compact {
  display: grid;
  grid-template-columns: 52% 1fr;
  gap: 0;
  align-items: stretch;
  border: 1px solid #e4e6ea;
  border-radius: 12px;
  background: var(--dt-blog-white);
  box-shadow: none;
  margin-bottom: 0;
  overflow: hidden;
  transition: border-color 0.18s;
}

.dt-page-blog .blog-featured:hover {
  border-color: #cfd3da;
  box-shadow: none;
  transform: none;
}

/* Media column must fill the grid track — no aspect-ratio/max-height
   that shrinks width and leaves a white void before the text panel. */
.dt-page-blog .blog-featured__media {
  position: relative;
  display: block;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
  background: var(--dt-blog-mist);
}

.dt-page-blog .blog-featured__media picture,
.dt-page-blog .blog-featured__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
}

.dt-page-blog .blog-featured__media img {
  object-fit: cover;
  object-position: center;
}

.dt-page-blog .blog-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem 1.35rem;
}

.dt-page-blog .blog-featured__badge,
.dt-page-blog .blog-featured__badge--link {
  position: static;
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: var(--dt-blog-mist);
  color: var(--dt-blog-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.dt-page-blog .blog-featured__badge--link:hover {
  color: var(--dt-blog-accent);
}

.dt-page-blog .blog-featured__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.3;
}

.dt-page-blog .blog-featured__title,
.dt-page-blog .blog-card__title a {
  color: var(--dt-blog-ink);
  font-weight: 700;
}

.dt-page-blog .blog-featured__body > p,
.dt-page-blog .blog-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: #4a5360;
  line-height: 1.45;
}

.dt-page-blog .blog-featured:hover .blog-featured__title a,
.dt-page-blog .blog-card:hover .blog-card__title a,
.dt-page-blog .blog-featured:hover .blog-featured__cta {
  color: var(--dt-blog-accent);
}

.dt-page-blog .blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  color: var(--dt-blog-ink);
  font-weight: 700;
  text-decoration: none;
}

.dt-page-blog .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.dt-page-blog .blog-card {
  border: 1px solid #e4e6ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.18s;
}

.dt-page-blog .blog-card:hover {
  border-color: #cfd3da;
  box-shadow: none;
  transform: none;
}

.dt-page-blog .blog-card__media {
  position: relative;
  display: block;
  background: var(--dt-blog-mist);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.dt-page-blog .blog-card__media picture,
.dt-page-blog .blog-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.dt-page-blog .blog-card__media img {
  object-fit: cover;
  object-position: center;
}

.dt-page-blog .blog-card__body {
  padding: 0.95rem 1rem 1.05rem;
}

.dt-page-blog .blog-card__rubric {
  display: inline-block;
  margin: 0 0 0.45rem;
  color: #66707c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.dt-page-blog .blog-card__rubric:hover {
  color: var(--dt-blog-accent);
}

.dt-page-blog .blog-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.dt-page-blog .blog-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.dt-page-blog .blog-placeholder {
  background: var(--dt-blog-mist);
  color: rgba(17, 19, 21, 0.28);
}

.dt-blog-editorial {
  margin-top: 2.5rem;
  border: 1px solid #e4e6ea;
  border-radius: 12px;
  background: #fff;
}

.dt-blog-editorial__inner {
  padding: 1.25rem 1.35rem;
}

.dt-blog-editorial h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.dt-blog-editorial p {
  margin: 0 0 0.7rem;
  color: #4a5360;
  line-height: 1.5;
}

.dt-blog-editorial a {
  color: var(--dt-blog-accent);
  font-weight: 700;
  text-decoration: none;
}

.dt-blog-paths {
  margin-top: 2.5rem;
}

.dt-blog-paths > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
}

.dt-blog-paths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.dt-blog-path {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e4e6ea;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.18s;
}

.dt-blog-path:hover {
  border-color: var(--dt-blog-accent);
}

.dt-blog-path__label {
  color: var(--dt-blog-ink);
  font-weight: 700;
}

.dt-blog-path__hint {
  color: #66707c;
  font-size: 0.9rem;
  line-height: 1.4;
}

.dt-blog-empty {
  margin: 0.5rem 0 0;
  color: #66707c;
  grid-column: 1 / -1;
}

.dt-page-blog .blog-pagination {
  margin-top: 1.75rem;
}

/* —— CTA strip —— */
.dt-blog-cta {
  margin: 2.5rem 0 0;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 80, 0, 0.14), transparent 42%),
    var(--dt-blog-panel);
  color: #fff;
  overflow: hidden;
}

.dt-blog-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 1.75rem;
}

.dt-blog-cta__copy h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.dt-blog-cta__copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--dt-blog-muted);
  line-height: 1.5;
}

.dt-blog-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.dt-page-blog .dt-btn--ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(244, 245, 247, 0.28);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.dt-page-blog .dt-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 245, 247, 0.5);
}

/* —— FAQ —— */
.dt-blog-faq {
  margin-top: 2.75rem;
}

.dt-blog-faq > h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--dt-blog-ink);
  letter-spacing: -0.015em;
}

.dt-blog-faq .faq-item {
  border: 1px solid #e4e6ea;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 0.55rem;
  overflow: hidden;
}

.dt-blog-faq .faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--dt-blog-ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.dt-blog-faq .faq-item__q:hover {
  background: var(--dt-blog-mist);
}

.dt-blog-faq .faq-item__a {
  padding: 0 1.1rem 1rem;
  color: #4a5360;
  line-height: 1.55;
}

.dt-blog-faq .faq-item__a p {
  margin: 0;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .dt-blog-hero__layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .dt-page-blog .blog-grid,
  .dt-blog-paths__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dt-page-blog .blog-featured,
  .dt-page-blog .blog-featured--compact {
    grid-template-columns: 1fr;
  }

  /* Stacked: size height from full column width; never cap height in a
     way that re-introduces aspect-ratio width shrink. */
  .dt-page-blog .blog-featured__media {
    width: 100%;
    height: auto;
    min-height: 200px;
    aspect-ratio: 16 / 10;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .dt-blog-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.35rem 1.2rem;
  }

  .dt-blog-hero h1 {
    max-width: none;
  }

  .dt-blog-hero__quick {
    display: none;
  }

  .dt-blog-search-form__row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .dt-page-blog .blog-grid,
  .dt-blog-paths__grid {
    grid-template-columns: 1fr;
  }

  .dt-blog-hero {
    padding-top: 1rem;
  }

  .dt-blog-tab {
    height: 2.45rem;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dt-page-blog .blog-featured,
  .dt-page-blog .blog-card,
  .dt-blog-tab,
  .dt-blog-path {
    transition: none;
  }
}
