:root {
  --blog-black: #000;
  --blog-hero: #101010;
  --blog-white: #f4f4f4;
  --blog-card: #fff;
  --blog-text: #262832;
  --blog-muted: #5b5d67;
  --blog-faint: #141414;
  --blog-line: #ededed;
  --blog-accent: #ee502c;
  --blog-orange: #ff8a17;
  --blog-radius: 8px;
}

main {
  display: flex;
  flex-direction: column;
}

main img {
  opacity: 1 !important;
}

body:has(.blogIndexContent),
body:has(.blogIndexContent) main {
  overflow-x: hidden;
}

.blogArticleHero {
  order: 1;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 130px 0 125px;
  background: var(--blog-hero);
}

.blogArticleHero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
}

.blogArticleHero__breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 40px;
}

.blogArticleHero__breadcrumbs :is(a, span) {
  color: #f4f4f4;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  opacity: 1;
}

.blogArticleHero__breadcrumbs span {
  color: #6b6b72;
}

.blogArticleHero h1 {
  margin: 0 0 28px !important;
  color: #f5f5f5 !important;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
}

.blogArticleHero__inner > p {
  max-width: 665px;
  margin: 0 0 28px !important;
  color: #686a74 !important;
  /* font-size: 11px; */
  font-weight: 400;
  line-height: 1.55;
  text-align: center !important;
}

.blogArticleHero__author,
.blogArticleHero__author div,
.blogRelatedPosts__author,
.blogRelatedPosts__author div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blogArticleHero__author {
  gap: 12px;
}

.blogArticleHero__author img,
.blogRelatedPosts__author img {
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

.blogArticleHero__author p {
  margin: 0 !important;
  text-align: center;
}

.blogArticleHero__author p:first-child {
  color: #f4f4f4 !important;
  /* font-size: 11px; */
  font-weight: 700;
  line-height: 1.25;
}

.blogArticleHero__author p:last-child {
  color: #70727a !important;
  font-size: 14px;
  line-height: 1.35;
}

.blogArticleBody {
  order: 2;
  width: 100% !important;
  max-width: none !important;
  /* margin: 0 !important; */
  padding-top: var(--mar-80) !important;
}

.blogArticleBody__layout {
  display: grid !important;
  grid-template-columns: 306px minmax(0, 953px);
  gap: 119px;
  align-items: start !important;
}

.blogArticleBody__toc {
  max-width: 306px !important;
  min-width: 0 !important;

  @media (min-width: 1024px) {
    & li:not(:last-child) {
      margin-bottom: 12px !important;
    }
    & a {
      padding: 0 !important;
    }
  }
}

.blogArticleBody__toc .tocPagination {
  display: none;
}

/* Desktop: lock the TOC carousel so it can't be swiped/dragged.
   Mobile (<=1024px) keeps the swipeable Embla behavior. */
@media (min-width: 1025px) {
  .blogArticleBody__toc .embla__container {
    transform: none !important;
  }

  /* Drop the global growing underline bar on TOC links: it spanned the
     whole column and got clipped on the last item. Use a clean, uniform
     color hover instead. */
  .blogArticleBody__toc a.btn_gray::after {
    display: none !important;
  }

  .blogArticleBody__toc a.btn_gray {
    transition: color 0.25s ease, opacity 0.25s ease;
  }

  .blogArticleBody__toc a.btn_gray:hover {
    color: var(--accent1) !important;
    opacity: 1;
  }
}

.blogArticleBody__toc .aside_inner {
  position: sticky;
  /* top: 34px; */
}

.blogArticleBody__toc h2 {
  margin: 0 0 14px !important;
  color: #050505 !important;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.blogArticleBody__toc ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 !important;
}

.blogArticleBody__toc li {
  margin: 0 !important;
}

.blogArticleBody__toc a.btn_gray {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5e5e5e !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  opacity: 0.86;
}

.blogArticleBody__content {
  width: 100%;
  max-width: 953px;
  padding-left: 44px;
  border-left: 1px solid #e0e0e0;

  & .accord__contaner {
    margin-bottom: 0 !important;
  }

  & #faq {
    width: unset !important;
    max-width: unset !important;
    transform: unset !important;
    padding-left: unset !important;
    border-left: unset !important;
  }
}

.blogArticleBody__meta,
.blogRelatedPosts__meta {
  display: flex;
  align-items: center;
  gap: 13px;
}

.blogArticleBody__meta {
  margin: 0 0 13px;
}

.blogArticleBody__meta :is(time, p),
.blogRelatedPosts__meta :is(time, p) {
  margin: 0 !important;
  /* color: #e9e9e9 !important; */
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.blogArticleBody__meta span,
.blogRelatedPosts__meta span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blog-accent);
}

.blogArticleBody__section:not(:last-child) {
  margin: 0 0 30px !important;
}

.blogArticleBody__section h2 {
  margin: 0 0 12px !important;
  color: var(--blog-text) !important;
  /* font-size: 27px; */
  font-weight: 800;
  line-height: 1.12;
  text-align: left;
}

.blogArticleBody__section > p,
.blogArticleBody__bullets li,
.blogArticleBody__steps p {
  color: #404040 !important;
  /* font-size: 11px; */
  font-weight: 400;
  line-height: 1.55;
}

.blogArticleBody__section p {
  margin: 0 0 14px !important;
}

.blogArticleBody__image {
  width: 100%;
  aspect-ratio: 906 / 454;
  margin: 30px 0 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #180c09;
}

.blogArticleBody__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

table {
  & thead {
    p {
      color: white !important;
    }
  }
}

/* Balanced comparison table: wide description column, normal word wrapping */
.comparison-table {
  table-layout: fixed;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  vertical-align: middle;
}

/* Columns 1-3 hold short labels; column 4 holds the long description */
.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
  width: 17%;
}
.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  width: 11%;
}
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  width: 18%;
}
.comparison-table th:nth-child(4),
.comparison-table td:nth-child(4) {
  width: 54%;
}

.comparison-table th p,
.comparison-table td p {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.blogArticleBody__bullets {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 15px 0 0 !important;
}

.blogArticleBody__bullets li {
  margin: 0 !important;
  padding-left: 19px;
}

.blogArticleBody__bullets li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 10px;
  height: 8px;
  border-left: 2px solid var(--blog-accent);
  border-bottom: 2px solid var(--blog-accent);
  transform: rotate(-45deg);
}

.blogRelatedPosts {
  order: 4;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 83px 0 88px;
  background: var(--blog-white) !important;
  background-image: none !important;
}

.blogRelatedPosts h2 {
  /* margin: 0 0 47px !important; */
  color: #030303 !important;
  /* font-size: 27px; */
  /* font-weight: 800; */
  line-height: 1.15;
  text-align: center;
}

.blogRelatedPosts__cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.blogRelatedPosts__card {
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blog-card);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.12);

  padding: 24px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blogRelatedPosts__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.2);
}

.blogRelatedPosts__card:hover .blogRelatedPosts__image img {
  transform: scale(1.06);
}

/* Smooth reveal for cards loaded via the "Zobrazit více" button */
@keyframes blogCardReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blogRelatedPosts__card.is-revealing {
  animation: blogCardReveal 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.blogRelatedPosts__card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  gap: 16px;
}

.blogRelatedPosts__image {
  height: 200px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  overflow: hidden;
}

.blogRelatedPosts__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blogRelatedPosts__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.blogRelatedPosts__meta {
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.blogRelatedPosts__meta span {
  display: none;
}

.blogRelatedPosts__meta :is(time, p) {
  color: #5f626b !important;
  font-size: 16px;
  font-weight: 500;
}

.blogRelatedPosts__card h3 {
  margin: 0 0 8px !important;
  color: #050505 !important;
  /* font-size: 18px; */
  font-weight: 800;
  line-height: 1.08;
}

.blogRelatedPosts__content > p {
  margin: 0 0 18px !important;
  color: #62646d !important;
  line-height: 1.45;
}

.blogRelatedPosts__author {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  margin-top: auto;
}

.blogRelatedPosts__author img {
  width: 28px;
  height: 28px;
  min-width: 28px;
}

.blogRelatedPosts__author div {
  align-items: flex-start;
}

.blogRelatedPosts__author p {
  margin: 0 !important;
}

.blogRelatedPosts__author p:first-child {
  color: #0b0b0b !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.blogRelatedPosts__author p:last-child {
  display: none;
}

.blogIndexContent {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 92px;
}

.blogIndexContent > .wrapper {
  max-width: 1360px !important;
}

.blogIndexContent .blogCategories {
  padding: 0;
  margin: 0 auto 82px;
  text-align: center;
}

.blogIndexContent .blogCategories h2,
.blogIndexContent .blogLatestPosts > h2 {
  margin: 0 0 18px !important;
  color: #050505 !important;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.blogIndexContent .blogCategories > p,
.blogIndexContent .blogLatestPosts > p {
  margin: 0 auto !important;
  color: #5e5e5e !important;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.blogIndexContent .blogCategories__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 12px;
  max-width: 848px;
  margin: 48px auto 0 !important;
}

.blogIndexContent .blogCategories__list li {
  flex: 0 0 auto;
  margin: 0 !important;
}

.blogIndexContent .blogCategories__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 1px solid #b8b8b8;
  border-radius: 100px;
  color: #7a7a7a !important;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  text-align: center;

  &::after {
    content: none !important;
  }
}

.blogIndexContent .blogCategories__list a.active,
.blogIndexContent .blogCategories__list a:hover {
  border-color: #dedede;
  background: #dedede;
  color: #050505 !important;
  scale: 1;
}

.blogIndexContent .blogLatestPosts {
  background: transparent;
}

.blogIndexContent .blogLatestPosts > p {
  margin-bottom: 30px !important;
}

.blogIndexContent .blogRelatedPosts__panels {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
}

.blogIndexContent .blogRelatedPosts__cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  transition: opacity 0.25s ease;
}

.blogIndexContent .blogRelatedPosts__cardsPanel {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.blogIndexContent .blogRelatedPosts__cardsPanel.is-active {
  position: relative;
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.blogIndexContent .blogRelatedPosts__card {
  min-height: 0;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.blogIndexContent .blogRelatedPosts__card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
}

.blogIndexContent .blogRelatedPosts__image {
  width: 100%;
  height: 200px;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
}

.blogIndexContent .blogRelatedPosts__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blogIndexContent .blogRelatedPosts__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.blogIndexContent .blogRelatedPosts__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.blogIndexContent .blogRelatedPosts__meta :is(time, p) {
  margin: 0 !important;
  color: #5e5e5e !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.blogIndexContent .blogRelatedPosts__card h3 {
  margin: 0 0 12px !important;
  color: #050505 !important;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.blogIndexContent .blogRelatedPosts__content > p {
  margin: 0 0 22px !important;
  color: #5e5e5e !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.blogIndexContent .blogRelatedPosts__author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.blogIndexContent .blogRelatedPosts__author img {
  width: 28px;
  height: 28px;
  min-width: 28px;
}

.blogIndexContent .blogRelatedPosts__author p:first-child {
  color: #050505 !important;
  font-size: 14px;
  font-weight: 500;
}

.blogIndexContent .blogLatestPosts__more {
  min-width: 258px;
  margin: 28px auto 0;
  padding: 18px 58px;
  box-shadow: 0 0 24px rgba(238, 80, 44, 0.48);
}

@media (max-width: 1024px) {
  .blogArticleBody {
    padding-top: 0 !important;
  }

  .blogArticleBody__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blogArticleBody__toc {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100vw !important;
    max-width: none !important;
    min-width: 0 !important;
    max-height: none !important;
    margin-left: 0 !important;
    padding: var(--mar-44) 0;
    transform: none !important;
    background: #000 !important;
    overflow: hidden !important;
    z-index: 1;

    @media (min-width: 1024px) {
      & a:hover {
        background-color: transparent !important;
      }
    }
  }

  .blogArticleBody__toc .aside_inner {
    position: static !important;
    width: 95%;
    max-width: 1280px;
    margin: 0 auto;
    overflow: visible !important;
    max-height: none !important;
  }

  .blogArticleBody__toc .embla {
    width: 100%;
    overflow: hidden;
  }

  .blogArticleBody__toc h2 {
    margin-bottom: 28px !important;
    color: #fff !important;
  }

  .blogArticleBody__toc ul {
    flex-flow: row nowrap;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0;
    overflow: visible;
  }

  .blogArticleBody__toc li {
    flex: 0 0 auto;
  }

  .blogArticleBody__toc a.btn_gray {
    display: block;
    min-width: max-content;
    padding: 8px 16px;
    border: 0;
    border-radius: 100px;
    background-color: #191919;
    color: #999999 !important;
    font-weight: 400 !important;
    line-height: 160%;
    opacity: 1;
    text-transform: none !important;
  }

  .blogArticleBody__toc a.btn_gray:hover {
    background-color: var(--accent1) !important;
    color: #fff !important;
    scale: 1 !important;
  }

  .blogArticleBody__toc .tocPagination {
    display: block;
    margin-top: 24px;
  }

  .blogArticleBody__content {
    max-width: none;
    margin-top: 0px;
    padding-left: 0px !important;
    border-left: 0;
    width: 100%;
  }

  #faq {
    width: 95%;
    max-width: 95% !important;
    padding-left: 24px;
    transform: none;
  }

  .blogRelatedPosts__cards {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .blogIndexContent .blogRelatedPosts__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }

  .blogIndexContent .blogRelatedPosts__panels {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .blogArticleHero {
    padding: 54px 0;
  }

  .blogArticleHero__breadcrumbs {
    flex-wrap: wrap;
    margin-bottom: 30px;
  }

  .blogArticleHero h1 {
    font-size: 30px;
  }

  .blogArticleHero__inner > p {
    font-size: 12px;
  }

  .blogArticleBody__content {
    padding-left: 16px;
    border-left-width: 2px;
  }

  .blogArticleBody__section h2,
  #faq > h2,
  .blogRelatedPosts h2 {
    /* font-size: 24px; */
  }

  .blogArticleBody__table {
    overflow-x: auto;
  }

  .blogRelatedPosts {
    padding: 54px 0;
  }

  .blogIndexContent {
    padding-bottom: 54px;
  }

  .blogIndexContent .blogCategories {
    margin-bottom: 58px;
  }

  .blogIndexContent .blogCategories__list {
    gap: 10px;
    margin-top: 24px !important;
  }

  .blogIndexContent .blogCategories__list a {
    min-width: 0;
    width: 100%;
    height: 46px;
  }

  .blogIndexContent .blogCategories__list li {
    width: calc(50% - 5px);
  }

  .blogIndexContent .blogRelatedPosts__cards {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .blogIndexContent .blogRelatedPosts__panels {
    max-width: 440px;
  }

  .blogIndexContent .blogRelatedPosts__card {
    padding: 18px;
  }

  .blogIndexContent .blogRelatedPosts__card h3 {
    font-size: 22px;
  }

  .blogIndexContent .blogRelatedPosts__image {
    height: 180px;
  }
}

ol li,
.blogArticleBody__bullets li {
  font-size: 16px;
}

p a {
  color: var(--accent1) !important;
}

/* Comparison table on mobile: readable content-sized columns with horizontal swipe */
@media (max-width: 768px) {
  /* allow the single-column layout to shrink below the table's min-width
     so only the table scrolls, not the whole page */
  .blogArticleBody__layout,
  .blogArticleBody__content {
    min-width: 0;
    max-width: 100%;
  }

  .comparison__table-wrapper,
  .blogArticleBody__table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .comparison-table {
    table-layout: auto;
    min-width: 620px;
  }

  .comparison-table th,
  .comparison-table td {
    width: auto;
    padding: 12px 14px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }

  .comparison-table th p,
  .comparison-table td p {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }
}

/* Blog index: keep side breathing room so buttons/cards don't touch screen edges */
@media (max-width: 900px) {
  .blogIndexContent > .wrapper {
    padding-inline: 16px;
  }
}
