/* /blog/: индекс и статьи. Поверх studio-v4.css и studio-lower.css. */
.blog-hero { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.blog-hero h1 {
  max-width: 22ch;
  font-size: clamp(1.9rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.blog-hero--index h1 { font-size: clamp(2.3rem, 8vw, 6.4rem); }
.blog-hero .svc-lede { max-width: 44rem; }
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
}
.blog-cta-top {
  max-width: 44rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
}
.blog-cta-top p { margin: 0 0 1rem; font-size: 1rem; line-height: 1.5; }
.blog-cta-top .svc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.blog-layout {
  display: grid;
  gap: 2rem;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.blog-toc {
  border: 1px solid var(--hairline);
  padding: 0.9rem 1rem;
  align-self: start;
}
.blog-toc summary { cursor: pointer; color: var(--muted); }
.blog-toc ol { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.blog-toc a { font-size: 0.92rem; line-height: 1.35; text-decoration: none; color: var(--ink); }
.blog-toc a:hover { color: var(--cobalt); }
.blog-side { display: none; }

.blog-prose { min-width: 0; max-width: 46rem; font-size: clamp(1.02rem, 1.1vw, 1.12rem); line-height: 1.66; }
.blog-prose h2 {
  margin: 2.6rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header) + 1rem);
  overflow-wrap: break-word;
}
.blog-prose > h2:first-child { margin-top: 0; }
.blog-prose p { margin: 0 0 1.1rem; }
.blog-prose a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 0.14em; }
.blog-prose ul, .blog-prose ol { margin: 0 0 1.2rem; padding-left: 1.25rem; }
.blog-prose li { margin-bottom: 0.4rem; }
.blog-table { overflow-x: auto; margin: 1.6rem 0 2rem; -webkit-overflow-scrolling: touch; }
.blog-table table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
.blog-table th { text-align: left; font-family: var(--track); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.blog-table th, .blog-table td { padding: 0.75rem 0.9rem 0.75rem 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.blog-fig { margin: 2rem 0; }
.blog-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--hairline); }
.blog-fig figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }

.blog-cta-mid {
  margin: 2.4rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--ink);
  color: var(--white);
}
.blog-cta-mid .mono { margin: 0 0 0.6rem; color: rgba(248, 247, 242, 0.55); }
.blog-cta-mid__title { margin: 0 0 0.6rem; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 720; line-height: 1.08; }
.blog-cta-mid p:not(.mono):not(.blog-cta-mid__title) { color: rgba(248, 247, 242, 0.72); font-size: 0.98rem; line-height: 1.55; }
.blog-cta-mid__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 1.1rem; }
.blog-prose .blog-cta-mid__link { color: var(--white); }

.blog-author { margin-top: 2.8rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline); font-size: 0.95rem; line-height: 1.55; }
.blog-author .mono { margin: 0 0 0.5rem; }

.blog-faq, .blog-more { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.blog-faq.svc-faq { margin-top: 0; border-top: 1px solid var(--hairline); }
.blog-faq .svc-faq__list details { border-bottom-color: var(--hairline); }
.blog-faq .svc-faq__list details p { color: #55554f; }
.blog-more .section-title, .blog-faq .section-title { max-width: none; font-size: clamp(1.9rem, 4vw, 3.4rem); }

.blog-cards {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.blog-card a {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--snappy) var(--ease);
  box-sizing: border-box;
}
.blog-card a:hover { border-color: var(--cobalt); }
.blog-card__title { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 720; line-height: 1.1; overflow-wrap: break-word; }
.blog-card__text { color: #55554f; font-size: 0.95rem; line-height: 1.5; }
.blog-links { list-style: none; margin: 1.6rem 0 0; padding: 0; max-width: 46rem; }
.blog-links a {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 0.85rem 0; border-top: 1px solid var(--hairline); color: var(--ink); text-decoration: none; font-weight: 600;
}
.blog-links li:last-child a { border-bottom: 1px solid var(--hairline); }
.blog-links a::after { content: ""; width: 0.45em; height: 0.45em; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); flex-shrink: 0; }
.blog-links a:hover { color: var(--cobalt); }

.blog-index { padding-top: clamp(1rem, 3vw, 2rem); }
.blog-group { margin: 0 0 clamp(2.5rem, 6vw, 4.5rem); }
.blog-group__head h2 { margin: 0 0 0.4rem; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 720; line-height: 1.1; }
.blog-group__head h2 a { color: inherit; }
.blog-group__head p { margin: 0; max-width: 40rem; }
.blog-lead { border-top: 1px solid var(--hairline); }

@media (max-width: 800px) {
  .blog-lead .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-lead .direct-contact { position: static; }
}
@media (max-width: 360px) {
  .blog-cta-top .action, .blog-cta-mid .action { width: 100%; justify-content: space-between; box-sizing: border-box; }
  .blog-toc, .blog-card a { padding: 0.85rem; }
}
@media (min-width: 1100px) {
  .blog-layout { grid-template-columns: 14rem minmax(0, 46rem); column-gap: clamp(2.5rem, 5vw, 5rem); justify-content: start; }
  .blog-toc { position: sticky; top: calc(var(--header) + 1.5rem); border: 0; border-top: 1px solid var(--hairline); padding: 1rem 0 0; }
  .blog-toc summary { pointer-events: none; list-style: none; }
  .blog-toc summary::-webkit-details-marker { display: none; }
}
@media (min-width: 1360px) {
  .blog-layout { grid-template-columns: 14rem minmax(0, 46rem) 17rem; }
  .blog-side { display: block; grid-column: 3; grid-row: 1; align-self: stretch; }
  .blog-prose { grid-column: 2; grid-row: 1; }
  .blog-side__box { position: sticky; top: calc(var(--header) + 1.5rem); padding: 1.3rem; background: var(--ink); color: var(--white); display: grid; gap: 0.9rem; }
  .blog-side__box .mono { margin: 0; color: rgba(248, 247, 242, 0.55); }
  .blog-side__title { margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 720; line-height: 1.1; }
  .blog-side__tg { color: var(--white); font-size: 0.9rem; }
}
@media (min-width: 2200px) {
  .blog-layout { grid-template-columns: 16rem minmax(0, 52rem) 20rem; }
  .blog-prose { max-width: 52rem; font-size: 1.18rem; }
}
.blog-prose a.action { color: #fff; text-decoration: none; }
.blog-cta-mid .action-primary:hover, .blog-side__box .action-primary:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
/* Короткие альбомные экраны (844×390 и похожие): H1, ведущий абзац и кнопка заявки помещаются в первый экран */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) {
  .blog-hero { padding: calc(var(--header) + 0.4rem) 0 1rem; }
  .blog-hero .svc-crumb { margin-bottom: 0.4rem; }
  .blog-hero h1 { max-width: none; font-size: clamp(1.45rem, 7.2vh, 2.1rem); line-height: 1.06; }
  .blog-hero h1::before { margin-bottom: 0.4rem; }
  .blog-hero .svc-lede { margin-top: 0.5rem; font-size: 0.86rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .blog-meta { margin-top: 0.5rem; }
  .blog-cta-top { display: flex; align-items: center; gap: 1rem; margin-top: 0.7rem; padding-top: 0.7rem; max-width: none; }
  .blog-cta-top p { margin: 0; font-size: 0.85rem; flex: 1 1 auto; }
  .blog-cta-top .svc-actions { flex: 0 0 auto; flex-wrap: nowrap; }
  .blog-cta-top .action { min-height: 42px; }
}
@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) {
  .blog-hero h1 { font-size: clamp(1.3rem, 6.6vh, 1.9rem); }
  .blog-hero .svc-lede { -webkit-line-clamp: 1; }
  .blog-cta-top { border-top: 0; padding-top: 0; margin-top: 0.6rem; }
  .blog-cta-top p { display: none; }
}
