.tt-blog-page {
  --tt-blog-orange: var(--tt-layout-action, #ff6a00);
  --tt-blog-ink: var(--tt-layout-text, #101820);
  --tt-blog-muted: var(--tt-layout-muted, #5f6b7a);
  --tt-blog-border: var(--tt-layout-border, #d6d4d4);
  --tt-blog-paper: var(--tt-layout-surface, #fff);
  --tt-blog-soft: var(--tt-layout-soft, #f8fafc);
  --tt-blog-shadow: var(--tt-layout-shadow, 0 8px 18px rgba(17, 24, 39, 0.08));
  color: var(--tt-blog-ink);
  background: var(--tt-layout-page, #f4f6f8);
}

body[id^="module-tt_blog-"] #wrapper {
  background: var(--tt-layout-page, #f4f6f8);
  color: var(--tt-layout-text, #111827);
}

@media (min-width: 1200px) {
  body[id^="module-tt_blog-"] .breadcrumb__wrapper,
  body[id^="module-tt_blog-"] #wrapper {
    width: min(1280px, 100%);
    margin-right: auto;
    margin-left: auto;
    border-right: 1px solid var(--tt-layout-border, #d6d4d4);
    border-left: 1px solid var(--tt-layout-border, #d6d4d4);
  }
}

.tt-blog-layout,
.tt-blog-article__shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.tt-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.tt-blog-hero,
.tt-blog-article__header,
.tt-blog-panel,
.tt-blog-card,
.tt-blog-products,
.tt-blog-related,
.tt-blog-faq,
.tt-blog-preview {
  background: var(--tt-blog-paper);
  border: 1px solid var(--tt-blog-border);
  border-top: 4px solid var(--tt-blog-orange);
  border-radius: 6px;
  box-shadow: var(--tt-blog-shadow);
}

.tt-blog-hero,
.tt-blog-article__header {
  padding: 24px;
  margin-bottom: 20px;
}

.tt-blog-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.tt-blog-eyebrow,
.tt-blog-card__category {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--tt-blog-orange);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.tt-blog-hero h1,
.tt-blog-article__header h1 {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.tt-blog-hero p,
.tt-blog-article__lead,
.tt-blog-article__meta,
.tt-blog-card p,
.tt-blog-panel,
.tt-blog-related__item span {
  color: var(--tt-blog-muted);
}

.tt-blog-hero__intro {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.tt-blog-hero__details {
  max-width: 820px;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
}

.tt-blog-hero__summary {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-left: 3px solid var(--tt-blog-orange);
  border-radius: 6px;
  background: var(--tt-blog-soft);
}

.tt-blog-hero__summary h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
}

.tt-blog-hero__summary ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tt-blog-hero__summary li {
  display: grid;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid var(--tt-blog-orange);
}

.tt-blog-hero__summary strong {
  color: var(--tt-blog-ink);
  font-size: 13px;
  text-transform: uppercase;
}

.tt-blog-hero__summary span {
  color: var(--tt-blog-muted);
  font-size: 13px;
  line-height: 1.4;
}

.tt-blog-search {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--tt-blog-border);
  border-left: 4px solid var(--tt-blog-orange);
  border-radius: 6px;
  background: var(--tt-blog-paper);
  box-shadow: var(--tt-blog-shadow);
}

.tt-blog-search__label {
  margin: 0;
  color: var(--tt-blog-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.tt-blog-search__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.tt-blog-search__input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d8dee8;
  border-radius: 4px;
  background: #fff;
  color: var(--tt-blog-ink);
  font-size: 15px;
  line-height: 1.3;
}

.tt-blog-search__input:focus {
  border-color: var(--tt-blog-orange);
  outline: 2px solid rgba(255, 106, 0, 0.16);
  outline-offset: 0;
}

.tt-blog-search__button,
.tt-blog-search__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.tt-blog-search__button {
  gap: 6px;
  border: 1px solid var(--tt-blog-orange);
  background: var(--tt-blog-orange);
  color: #fff;
}

.tt-blog-search__button:hover,
.tt-blog-search__button:focus {
  border-color: #e85f00;
  background: #e85f00;
}

.tt-blog-search__button .material-icons {
  font-size: 20px;
  line-height: 1;
}

.tt-blog-search__reset {
  border: 1px solid var(--tt-blog-border);
  background: #fff;
  color: var(--tt-blog-ink);
}

.tt-blog-search__reset:hover,
.tt-blog-search__reset:focus {
  border-color: var(--tt-blog-orange);
  color: var(--tt-blog-orange);
}

.tt-blog-search__result {
  margin: 0;
  color: var(--tt-blog-muted);
  font-size: 13px;
  line-height: 1.4;
}

.tt-blog-search__result strong {
  color: var(--tt-blog-ink);
}

.tt-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tt-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
}

.tt-blog-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--tt-blog-soft);
  border-bottom: 1px solid var(--tt-blog-border);
}

.tt-blog-card__image img,
.tt-blog-article__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-blog-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.tt-blog-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.tt-blog-card h2 a,
.tt-blog-related__item,
.tt-blog-panel a {
  color: var(--tt-blog-ink);
  text-decoration: none;
}

.tt-blog-card h2 a:hover,
.tt-blog-link:hover,
.tt-blog-panel a:hover {
  color: var(--tt-blog-orange);
}

.tt-blog-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--tt-blog-orange);
  border-radius: 4px;
  color: var(--tt-blog-orange);
  font-weight: 700;
  text-decoration: none;
}

.tt-blog-link:hover {
  background: var(--tt-blog-orange);
  color: #fff;
}

.tt-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tt-blog-panel {
  padding: 18px;
}

.tt-blog-mobile-categories {
  display: none;
}

.tt-blog-category-panel {
  background: #fff;
}

.tt-blog-category-panel__header {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f3;
}

.tt-blog-category-panel__label {
  margin: 0;
  color: var(--tt-blog-orange);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.tt-blog-category-panel__hint {
  margin: 4px 0 0;
  color: var(--tt-blog-muted);
  font-size: 13px;
  line-height: 1.35;
}

.tt-blog-panel h2,
.tt-blog-products h2,
.tt-blog-related h2,
.tt-blog-faq h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
}

.tt-blog-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tt-blog-category-list li {
  display: grid;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.tt-blog-category-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tt-blog-category-list__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 11px 10px 11px 12px;
  border: 1px solid #dfe7f0;
  border-left: 4px solid var(--tt-blog-orange);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.05);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.tt-blog-category-list__link:hover,
.tt-blog-category-list__link:focus {
  border-color: var(--tt-blog-orange);
  background: #fff8f2;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.1);
}

.tt-blog-category-list__content {
  display: grid;
  gap: 3px;
}

.tt-blog-category-list__content strong {
  color: var(--tt-blog-ink);
  font-weight: 700;
  line-height: 1.2;
}

.tt-blog-category-list__content span {
  color: var(--tt-blog-muted);
  font-size: 13px;
  line-height: 1.35;
}

.tt-blog-category-list__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--tt-blog-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.tt-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tt-blog-tags a,
.tt-blog-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--tt-blog-border);
  border-radius: 4px;
  background: var(--tt-blog-soft);
  color: var(--tt-blog-ink);
  text-decoration: none;
}

.tt-blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tt-blog-pagination a.is-active {
  border-color: var(--tt-blog-orange);
  background: var(--tt-blog-orange);
  color: #fff;
}

.tt-blog-article__shell {
  max-width: 960px;
}

.tt-blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.tt-blog-article__cover {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--tt-blog-border);
  border-radius: 6px;
  background: var(--tt-blog-soft);
}

.tt-blog-article__cover img {
  max-height: 420px;
  object-fit: contain;
}

.tt-blog-article__content {
  padding: 28px;
  border: 1px solid var(--tt-blog-border);
  border-radius: 6px;
  background: var(--tt-blog-paper);
  box-shadow: var(--tt-blog-shadow);
}

.tt-blog-article__content h2,
.tt-blog-article__content h3 {
  position: relative;
  margin: 26px 0 12px;
  padding-left: 12px;
  line-height: 1.2;
}

.tt-blog-article__content h2::before,
.tt-blog-article__content h3::before {
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--tt-blog-orange);
  content: "";
}

.tt-blog-article__content p,
.tt-blog-article__content li {
  font-size: 16px;
  line-height: 1.65;
}

.tt-blog-article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.tt-blog-article__content th,
.tt-blog-article__content td {
  padding: 10px 12px;
  border: 1px solid var(--tt-blog-border);
  text-align: left;
}

.tt-blog-faq,
.tt-blog-products,
.tt-blog-related,
.tt-blog-preview {
  margin-top: 18px;
  padding: 20px;
}

.tt-blog-faq details {
  padding: 12px 0;
  border-top: 1px solid var(--tt-blog-border);
}

.tt-blog-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.tt-blog-products__grid,
.tt-blog-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tt-blog-product-card,
.tt-blog-related__item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--tt-blog-border);
  border-left: 3px solid var(--tt-blog-orange);
  border-radius: 4px;
  background: var(--tt-blog-soft);
}

.tt-blog-empty {
  padding: 20px;
  border: 1px solid var(--tt-blog-border);
  border-radius: 6px;
  background: var(--tt-blog-paper);
}

@media (max-width: 1023px) {
  .tt-blog-layout {
    grid-template-columns: 1fr;
  }

  .tt-blog-hero__inner {
    grid-template-columns: 1fr;
  }

  .tt-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt-blog-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tt-blog-layout,
  .tt-blog-article__shell {
    padding: 0 12px 28px;
  }

  .tt-blog-hero,
  .tt-blog-article__header,
  .tt-blog-article__content {
    padding: 18px;
  }

  .tt-blog-hero h1,
  .tt-blog-article__header h1 {
    font-size: 30px;
  }

  .tt-blog-grid,
  .tt-blog-sidebar,
  .tt-blog-products__grid,
  .tt-blog-related__grid {
    grid-template-columns: 1fr;
  }

  .tt-blog-mobile-categories {
    display: block;
    margin: 0 0 20px;
  }

  .tt-blog-desktop-categories {
    display: none;
  }

  .tt-blog-hero__intro {
    font-size: 16px;
  }

  .tt-blog-search {
    margin-bottom: 16px;
    padding: 14px;
  }

  .tt-blog-search__controls {
    grid-template-columns: 1fr;
  }

  .tt-blog-search__button,
  .tt-blog-search__reset {
    width: 100%;
  }

  .tt-blog-page--search-active .tt-blog-main {
    display: flex;
    flex-direction: column;
  }

  .tt-blog-page--search-active .tt-blog-hero {
    display: none;
  }

  .tt-blog-page--search-active .tt-blog-search {
    order: 1;
  }

  .tt-blog-page--search-active .tt-blog-grid,
  .tt-blog-page--search-active .tt-blog-empty {
    order: 2;
  }

  .tt-blog-page--search-active .tt-blog-pagination {
    order: 3;
  }

  .tt-blog-page--search-active .tt-blog-mobile-categories {
    order: 4;
    margin: 20px 0 0;
  }
}
