:root {
  --blog-max: 1120px;
  --blog-copy: 760px;
}

.blog-main {
  width: min(var(--blog-max), calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 24px;
}

.blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #5d552f;
  font-size: 14px;
  font-weight: 850;
}

.blog-breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.blog-breadcrumbs span[aria-hidden="true"] { color: #9d8a00; }

.blog-hero,
.article-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 62px);
  border: 3px solid var(--black);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8cc 0 52%, var(--yellow) 52% 100%);
  box-shadow: 8px 8px 0 var(--black);
}

.blog-hero::after,
.article-hero::after {
  position: absolute;
  right: clamp(22px, 6vw, 72px);
  bottom: -34px;
  content: "eSIM";
  color: rgba(0, 0, 0, 0.08);
  font-size: clamp(70px, 15vw, 180px);
  font-weight: 1000;
  line-height: 0.8;
  transform: rotate(-7deg);
}

.blog-hero > *,
.article-hero > * { position: relative; z-index: 1; }

.blog-kicker,
.article-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero h1,
.article-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.article-hero h1 { font-size: clamp(38px, 6vw, 72px); }

.blog-hero > p:not(.blog-kicker),
.article-hero > p:not(.article-kicker) {
  max-width: 760px;
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 780;
  line-height: 1.45;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  font-weight: 900;
}

.article-meta span {
  padding: 7px 10px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
}

.blog-list { margin-top: 62px; }
.blog-section-heading h2 { margin: 5px 0 0; font-size: clamp(34px, 5vw, 58px); line-height: 0.98; }

.blog-grid,
.related-grid,
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.blog-card,
.related-card,
.home-blog-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border: 3px solid var(--black);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--black);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.blog-card:hover,
.related-card:hover,
.home-blog-card:hover {
  transform: translate(3px, 3px);
  background: #fff7bf;
  box-shadow: 3px 3px 0 var(--black);
}

.blog-card-tag {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--yellow);
  background: var(--black);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card h2,
.blog-card h3,
.related-card h3,
.home-blog-card h3 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.02; }
.blog-card p,
.related-card p,
.home-blog-card p { margin: 0; color: #4d4523; font-weight: 700; line-height: 1.5; }
.blog-card strong,
.related-card strong,
.home-blog-card strong { align-self: end; color: #6f5d00; font-size: 14px; }

.blog-topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.blog-topic-strip a {
  padding: 9px 13px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--paper-warm);
  font-size: 13px;
  font-weight: 950;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--blog-copy));
  gap: clamp(28px, 5vw, 64px);
  justify-content: center;
  margin-top: 42px;
}

.article-toc {
  position: sticky;
  top: 118px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 2px solid var(--black);
  border-radius: 12px;
  background: #fff7bf;
  box-shadow: 4px 4px 0 var(--black);
}

.article-toc strong { margin-bottom: 4px; }
.article-toc a { font-size: 14px; font-weight: 820; line-height: 1.3; text-decoration: underline; text-underline-offset: 3px; }

.article-content {
  min-width: 0;
  color: #201d0e;
  font-size: 18px;
  line-height: 1.72;
}

.article-content h2 {
  margin: 52px 0 16px;
  padding-top: 8px;
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.article-content h3 { margin: 34px 0 10px; font-size: 24px; line-height: 1.15; }
.article-content p { margin: 0 0 18px; }
.article-content ul,
.article-content ol { display: grid; gap: 9px; margin: 0 0 22px; padding-left: 26px; }
.article-content li::marker { color: #b08f00; font-weight: 1000; }
.article-content a { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: #d8b000; text-underline-offset: 3px; }

.article-note,
.article-warning,
.article-cta {
  margin: 26px 0;
  padding: 20px;
  border: 3px solid var(--black);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--black);
}

.article-note { background: #fff7bf; }
.article-warning { background: #fff; border-left-width: 9px; border-left-color: #f44f35; }
.article-cta { display: grid; gap: 12px; background: var(--yellow); }
.article-cta h2,
.article-cta h3 { margin: 0; padding: 0; }
.article-cta p { margin: 0; }
.article-cta .primary-button { width: fit-content; text-decoration: none; }

.article-purchase-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 36px 0 54px;
  padding: clamp(22px, 4vw, 38px);
  border: 3px solid var(--black);
  border-radius: 16px;
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--black);
}

.article-purchase-cta h2 { margin: 4px 0 10px; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.article-purchase-cta p { max-width: 700px; margin: 0; font-weight: 750; line-height: 1.45; }
.article-purchase-cta .primary-button { flex: 0 0 auto; white-space: nowrap; }

.article-table-wrap { overflow-x: auto; margin: 22px 0; border: 2px solid var(--black); border-radius: 10px; }
.article-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--white); }
.article-table th,
.article-table td { padding: 13px 14px; border-bottom: 1px solid #cfc6a1; text-align: left; vertical-align: top; }
.article-table th { background: var(--yellow); font-size: 14px; }
.article-table tr:last-child td { border-bottom: 0; }

.article-faq { display: grid; gap: 12px; margin-top: 24px; }
.article-faq details { padding: 16px 18px; border: 2px solid var(--black); border-radius: 10px; background: var(--white); }
.article-faq summary { cursor: pointer; font-weight: 950; }
.article-faq p { margin: 12px 0 0; }

.related-section { margin-top: 62px; padding-top: 28px; border-top: 4px solid var(--black); }
.related-section h2 { margin: 0; font-size: clamp(30px, 5vw, 48px); }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.blog-footer {
  width: min(var(--blog-max), calc(100% - 28px));
  margin: 44px auto 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border: 3px solid var(--black);
  border-radius: 14px;
  background: var(--black);
  color: var(--white);
}

.blog-footer a { color: var(--yellow); font-weight: 900; }
.blog-footer p { margin: 0; }
.blog-footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.blog-footer { flex-direction: column; align-items: stretch; }
.blog-footer .footer-destinations { padding-top: 0; border-color: #FFD100; color: #fff; }
.blog-footer .footer-destinations > p,
.blog-footer .footer-service-copy .footer-disclaimer { color: #dedbd0; }
.blog-footer .footer-destination-group a { color: #fff; font-weight: 650; }
.blog-footer .footer-destination-group a:hover { color: #FFD100; }
.blog-footer .footer-destination-group a:focus-visible { outline-color: #FFD100; }
.blog-footer .footer-service { margin-top: 26px; padding-top: 20px; border-top: 1px solid #514c37; }

.home-blog-section {
  margin-top: 42px;
  padding: clamp(24px, 4vw, 42px);
  border: 3px solid var(--black);
  border-radius: 18px;
  background: linear-gradient(155deg, var(--yellow), #fff4af 68%);
  box-shadow: 8px 8px 0 var(--black);
}

html:not([lang="ru"]) .home-blog-section { display: none; }

.home-blog-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; }
.home-blog-heading h2 { max-width: 780px; margin: 0; font-size: clamp(36px, 6vw, 66px); line-height: 0.95; }
.home-blog-grid { margin-top: 24px; }
.home-blog-card { background: var(--white); }

@media (max-width: 900px) {
  .blog-grid,
  .home-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; }
}

@media (max-width: 620px) {
  .blog-main { width: min(100% - 16px, var(--blog-max)); padding-top: 16px; }
  .blog-hero,
  .article-hero { padding: 24px 18px; box-shadow: 5px 5px 0 var(--black); }
  .blog-hero h1,
  .article-hero h1 { overflow-wrap: anywhere; }
  .blog-grid,
  .related-grid,
  .home-blog-grid { grid-template-columns: 1fr; }
  .blog-card,
  .related-card,
  .home-blog-card { box-shadow: 4px 4px 0 var(--black); }
  .article-content { font-size: 17px; }
  .article-toc { padding: 15px; }
  .article-purchase-cta { display: grid; gap: 20px; box-shadow: 5px 5px 0 var(--black); }
  .article-purchase-cta .primary-button { width: 100%; white-space: normal; text-align: center; }
  .blog-footer { width: calc(100% - 16px); margin-bottom: 92px; }
  .home-blog-heading { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .related-card,
  .home-blog-card { transition: none; }
}
