/* Статьи маркетинговой витрины. Подключается после css/site.css. */
.art {
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 0 72px;
}

.art .kicker a {
  color: inherit;
  text-decoration: none;
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 24px;
  color: var(--faint);
  font-size: 14px;
}

.art-hero {
  margin: 0 0 28px;
}

.art-hero img,
.art-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.art-hero figcaption,
.art-figure figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-size: 14px;
}

.art-figure {
  margin: 24px 0;
}

.art .lead {
  max-width: none;
  margin-bottom: 24px;
  font-size: 19px;
}

.art-toc {
  margin: 0 0 32px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
}

.art-toc p {
  margin: 0 0 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art-toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.art-toc li {
  font-size: 15px;
  line-height: 1.6;
}

.art h2 {
  scroll-margin-top: calc(var(--header) + 12px);
}

.art h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.art p {
  margin: 0 0 16px;
}

.art table {
  width: 100%;
  margin: 8px 0 20px;
  border-collapse: collapse;
  font-size: 15px;
}

.art th,
.art td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.art th {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-raised);
}

.art-callout {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--yellow);
  border-radius: 0 14px 14px 0;
  background: var(--bg-raised);
}

.art-callout p:last-child {
  margin-bottom: 0;
}

.art-steps {
  counter-reset: step;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.art-steps li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 48px;
}

.art-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.art-faq details {
  margin: 0 0 10px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.art-faq summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.art-faq summary::-webkit-details-marker {
  display: none;
}

.art-faq summary::after {
  content: "+";
  float: right;
  color: var(--yellow);
  font-weight: 700;
}

.art-faq details[open] summary::after {
  content: "−";
}

.art-faq details p {
  padding-bottom: 16px;
}

.art-cta {
  margin: 40px 0 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-raised);
}

.art-cta h2 {
  margin-top: 0;
}

.art-cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.art-related {
  margin-top: 40px;
}

.art-related h2 {
  margin-bottom: 14px;
}

.art-related .card {
  display: block;
  padding: 0 0 18px;
  overflow: hidden;
  text-decoration: none;
}

.art-related .card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 14px;
}

.art-related .card h3,
.art-related .card p {
  margin: 0 18px 6px;
}

.art-related .card p {
  font-size: 14px;
}

/* Хаб статей */
.art-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
  margin-top: 28px;
}

.art-list .card {
  display: flex;
  flex-direction: column;
  padding: 0 0 20px;
  overflow: hidden;
  text-decoration: none;
}

.art-list .card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.art-list .card h2 {
  margin: 16px 18px 8px;
  font-size: 20px;
  line-height: 1.25;
}

.art-list .card p {
  margin: 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.art-list .card .art-meta {
  margin: auto 18px 0;
  padding-top: 14px;
}

@media (max-width: 900px) {
  .art-list,
  .art-related .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .art table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .art table th,
  .art table td {
    min-width: 150px;
  }

  .art-toc li,
  .art p,
  .art li {
    overflow-wrap: anywhere;
  }
}
