:root {
  --blog-ink: #102f35;
  --blog-muted: #5d6d70;
  --blog-accent: #09a99d;
  --blog-soft: #eef9f8;
  --blog-border: #dce9e8;
}

html { scroll-behavior: smooth; }

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 205px 20px 84px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #022a32 0%, #17454a 62%, #09a99d 140%);
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg1.webp") center / cover no-repeat;
  opacity: .1;
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 18px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.blog-breadcrumbs a { color: #fff; }
.blog-breadcrumbs a:hover { color: #8ef0e9; }

.blog-hero h1 {
  margin: 0;
  font-size: clamp(29px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.45;
}

.blog-hero p {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.9;
}

.blog-index {
  padding: 76px 20px 96px;
  background: #f7fafa;
}

.blog-index__inner { max-width: 1180px; margin: 0 auto; }

.blog-section-heading { margin-bottom: 34px; }
.blog-section-heading span { color: var(--blog-accent); font-weight: 800; }
.blog-section-heading h2 { margin: 6px 0 0; color: var(--blog-ink); font-size: clamp(25px, 4vw, 40px); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--blog-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(2,42,50,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.post-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(2,42,50,.14); }
.post-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dce9e8; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.post-card:hover .post-card__image img { transform: scale(1.035); }
.post-card__body { padding: 27px; }
.post-card__meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--blog-muted); font-size: 13px; }
.post-card h2 { margin: 13px 0 11px; font-size: 22px; line-height: 1.65; }
.post-card h2 a { color: var(--blog-ink); }
.post-card p { margin: 0; color: var(--blog-muted); font-size: 15px; line-height: 1.9; }
.post-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 19px; color: #067d75; font-weight: 800; }

.article-shell {
  padding: 54px 20px 94px;
  background: #f7fafa;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--blog-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(2,42,50,.07);
}

.article-cover { width: 100%; max-height: 520px; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.article-content { padding: clamp(24px, 5vw, 55px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 28px; color: var(--blog-muted); font-size: 14px; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }

.article-content p {
  margin: 0 0 20px;
  color: #253f43;
  font-size: 17px;
  line-height: 2.05;
}

.article-content .article-lead {
  color: var(--blog-ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 2;
}

.article-content h2 {
  scroll-margin-top: 115px;
  margin: 52px 0 20px;
  padding-right: 16px;
  border-right: 5px solid var(--blog-accent);
  color: var(--blog-ink);
  font-size: clamp(23px, 3.4vw, 32px);
  line-height: 1.6;
}

.article-content h3 { margin: 0 0 9px; color: #075f5a; font-size: 20px; line-height: 1.7; }

.topic-block {
  margin: 16px 0;
  padding: 21px 23px;
  border: 1px solid var(--blog-border);
  border-radius: 15px;
  background: #fbfdfd;
}

.topic-block p:last-child { margin-bottom: 0; }

.article-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 27px;
  padding: 0;
  list-style: none;
}

.article-list li {
  position: relative;
  padding: 14px 47px 14px 18px;
  border-radius: 12px;
  background: var(--blog-soft);
  color: #254347;
  font-size: 16px;
  line-height: 1.9;
}

.article-list li::before {
  content: "\2713";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blog-accent);
  color: #fff;
  text-align: center;
  font-weight: 900;
  line-height: 24px;
}

.article-content a { color: #067d75; font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-content a:hover { color: #022a32; }

.article-cta {
  margin: 42px 0 5px;
  padding: 30px;
  border-radius: 18px;
  background: linear-gradient(135deg, #022a32, #075f5a);
  color: #fff;
  text-align: center;
}
.article-cta h2 { margin: 0 0 10px; padding: 0; border: 0; color: #fff; }
.article-cta p { color: rgba(255,255,255,.88); }
.article-cta a { display: inline-flex; align-items: center; gap: 9px; padding: 13px 25px; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; }

.faq-list { display: grid; gap: 13px; }
.faq-item { border: 1px solid var(--blog-border); border-radius: 13px; background: #fff; }
.faq-item summary { position: relative; padding: 18px 20px 18px 48px; color: var(--blog-ink); font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; left: 19px; top: 14px; color: var(--blog-accent); font-size: 25px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 18px; margin: 0; }

.toc-card {
  position: sticky;
  top: 108px;
  padding: 24px;
  border: 1px solid var(--blog-border);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(2,42,50,.07);
}
.toc-card h2 { margin: 0 0 14px; color: var(--blog-ink); font-size: 20px; }
.toc-list { display: grid; gap: 7px; padding: 0; list-style: none; }
.toc-list a { display: block; padding: 9px 11px; border-radius: 9px; color: #466064; font-size: 14px; line-height: 1.65; }
.toc-list a:hover, .toc-list a.is-active { background: var(--blog-soft); color: #075f5a; }

.toc-mobile { display: none; margin-bottom: 25px; }
.toc-mobile summary { cursor: pointer; font-weight: 800; color: var(--blog-ink); }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc-card { display: none; }
  .toc-mobile { display: block; padding: 18px; border: 1px solid var(--blog-border); border-radius: 14px; background: var(--blog-soft); }
  .toc-mobile .toc-list { margin-top: 12px; }
}

@media (max-width: 800px) {
  .blog-hero { padding: 95px 16px 53px; }
  .article-shell { padding: 26px 12px 85px; }
  .article-card { border-radius: 16px; }
  .article-content { padding: 24px 18px; }
  .article-content p { font-size: 16px; line-height: 2; }
  .article-content .article-lead { font-size: 17px; }
  .article-content h2 { margin-top: 42px; }
  .topic-block { padding: 18px; }
  .article-cover { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card, .post-card__image img { transition: none; }
}
