.qbt-blog,
.qbt-blog * {
  box-sizing: border-box;
}

.qbt-blog {
  --qbt-bg: #f7f5f5;
  --qbt-ink: #10182b;
  --qbt-muted: #64748b;
  --qbt-line: #e7e9ee;
  --qbt-red: #b91c18;
  --qbt-red-dark: #8f1714;
  --qbt-dark: #21100f;
  --qbt-card: #ffffff;
  --qbt-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  color: var(--qbt-ink);
  background: var(--qbt-bg);
  font-family: "Manrope", "Helvetica Neue", sans-serif;
}

.qbt-blog :where(p, a, li, span, strong, em, small, label, h1, h2, h3, h4, h5, h6, blockquote) {
  text-transform: capitalize;
}

.qbt-blog :where(input, textarea, select, option) {
  text-transform: none;
}

.qbt-blog ::placeholder {
  text-transform: none;
}

.qbt-blog a {
  color: inherit;
  text-decoration: none;
}

.qbt-blog :where(h1, h2, h3, h4, h5, h6) a {
  color: inherit;
  font: inherit !important;
  letter-spacing: inherit;
  line-height: inherit;
}

.qbt-blog img {
  display: block;
  width: 100%;
  height: auto;
}

.qbt-shell {
  width: min(1230px, calc(100% - 48px));
  margin: 0 auto;
}

.qbt-hero {
  padding: 92px 0 106px;
  color: #fff;
  background:
    radial-gradient(circle at 70% 28%, rgba(96, 29, 24, 0.32), transparent 34%),
    linear-gradient(135deg, #21100f 0%, #261110 52%, #1a0d0c 100%);
}

.qbt-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 70px;
  align-items: center;
}

.qbt-kicker {
  display: inline-flex;
  margin-bottom: 28px;
  color: #ef2c25;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.qbt-hero h1,
.qbt-section-head h2,
.qbt-post-card h3,
.qbt-rail-card h3,
.qbt-newsletter h3,
.qbt-hero__note h2,
.qbt-empty h3 {
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.qbt-hero h1 {
  max-width: 660px;
  font-size: clamp(48px, 5.9vw, 78px);
  line-height: 1.05;
}

.qbt-hero__copy p {
  max-width: 590px;
  margin: 30px 0 0;
  color: #aab7cd;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.qbt-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.qbt-hero__meta span {
  color: #7286a6;
  font-size: 14px;
  font-weight: 800;
}

.qbt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.qbt-button:hover,
.qbt-button:focus-visible,
.qbt-inline-link:hover,
.qbt-inline-link:focus-visible {
  transform: translateY(-1px);
}

.qbt-button--red {
  color: #fff;
  background: var(--qbt-red);
}

.qbt-button--red::after {
  content: "\2192";
  margin-left: 12px;
}

.qbt-button--light {
  width: 100%;
  color: var(--qbt-red);
  background: #fff;
}

.qbt-hero__visual {
  position: relative;
  min-height: 420px;
}

.qbt-hero__image {
  display: block;
  height: 380px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.qbt-hero__image img {
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.qbt-hero__note {
  position: absolute;
  left: -26px;
  bottom: -34px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  width: min(360px, calc(100% - 28px));
  padding: 26px;
  border-radius: 14px;
  color: var(--qbt-ink);
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.qbt-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--qbt-red);
  background: #fff0ef;
  font-size: 22px;
}

.qbt-hero__note h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.qbt-hero__note p {
  margin: 14px 0 0;
  color: #50617b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.qbt-feed {
  padding: 76px 0 106px;
}

.qbt-feed__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 395px;
  gap: 48px;
  align-items: start;
}

.qbt-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid #dfe3ea;
}

.qbt-section-head h2 {
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1.1;
}

.qbt-sort {
  color: #72809a;
  font-size: 14px;
  font-weight: 700;
}

.qbt-sort strong {
  color: var(--qbt-ink);
  font-weight: 900;
}

.qbt-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.qbt-post-card,
.qbt-rail-card,
.qbt-newsletter,
.qbt-empty {
  border: 1px solid var(--qbt-line);
  border-radius: 14px;
  background: var(--qbt-card);
  box-shadow: var(--qbt-shadow);
}

.qbt-post-card {
  overflow: hidden;
}

.qbt-post-card__media {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: #f1f3f7;
}

.qbt-post-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.qbt-post-card:hover .qbt-post-card__media img {
  transform: scale(1.04);
}

.qbt-post-card__media span {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  color: #fff;
  background: var(--qbt-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qbt-post-card__body {
  padding: 28px 26px 30px;
}

.qbt-meta {
  margin-bottom: 14px;
  color: #7890b0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.qbt-post-card h3 {
  font-size: 25px;
  line-height: 1.18;
}

.qbt-post-card p,
.qbt-empty p {
  margin: 18px 0 0;
  color: #43526a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.qbt-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--qbt-red);
  font-size: 14px;
  font-weight: 900;
}

.qbt-inline-link::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

.qbt-inline-link:hover::after,
.qbt-inline-link:focus-visible::after {
  transform: translateX(3px);
}

.qbt-rail {
  position: sticky;
  top: 115px;
  display: grid;
  gap: 48px;
}

.qbt-rail-card {
  padding: 34px;
}

.qbt-rail-card h3 {
  margin-bottom: 26px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.qbt-search {
  position: relative;
}

.qbt-search::before {
  content: "\2315";
  position: absolute;
  left: 18px;
  top: 50%;
  color: #7890b0;
  transform: translateY(-50%);
}

.qbt-search input {
  width: 100%;
  height: 56px;
  padding: 0 20px 0 48px;
  border: 0;
  border-radius: 10px;
  outline: 0;
  color: var(--qbt-ink);
  background: #f5f7fa;
  font-size: 16px;
  font-weight: 700;
}

.qbt-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.qbt-category-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 7px;
  color: #41516b;
  background: #f3f5f8;
  font-size: 14px;
  font-weight: 900;
}

.qbt-category-pills a.is-active,
.qbt-category-pills a:hover,
.qbt-category-pills a:focus-visible {
  color: #fff;
  background: var(--qbt-red);
}

.qbt-newsletter {
  padding: 36px 34px;
  color: #fff;
  background: var(--qbt-red);
  border-color: var(--qbt-red);
}

.qbt-newsletter h3 {
  font-size: 28px;
}

.qbt-newsletter p {
  margin: 22px 0 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.qbt-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.qbt-pagination .page-numbers,
.qbt-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 22px;
  border: 2px dashed #dce6f3;
  border-radius: 10px;
  color: #90a0b8;
  background: transparent;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.qbt-load-more {
  width: 100%;
  margin-top: 48px;
}

.qbt-pagination .page-numbers.current,
.qbt-pagination .page-numbers:hover,
.qbt-pagination .page-numbers:focus-visible {
  border-style: solid;
  color: #fff;
  background: var(--qbt-red);
  border-color: var(--qbt-red);
}

.qbt-empty {
  padding: 34px;
}

.qbt-empty h3 {
  font-size: 28px;
}

@media (max-width: 1180px) {
  .qbt-hero__grid,
  .qbt-feed__layout {
    grid-template-columns: 1fr;
  }

  .qbt-rail {
    position: static;
    gap: 24px;
  }
}

@media (max-width: 820px) {
  .qbt-shell {
    width: min(100%, calc(100% - 32px));
  }

  .qbt-hero {
    padding: 64px 0 82px;
  }

  .qbt-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .qbt-hero__visual {
    min-height: auto;
  }

  .qbt-hero__image {
    height: 300px;
  }

  .qbt-hero__note {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 18px;
  }

  .qbt-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .qbt-post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .qbt-shell {
    width: min(100%, calc(100% - 24px));
  }

  .qbt-hero__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .qbt-button {
    width: 100%;
  }

  .qbt-post-card__media {
    height: 210px;
  }

  .qbt-post-card h3 {
    font-size: 22px;
  }

  .qbt-rail-card,
  .qbt-newsletter {
    padding: 26px;
  }
}
