/* Внутренние страницы лендинга: та же витрина, что landing/home.css.
   Классы карточек и героя оставлены — их ждут шаблоны услуг и list.js. */

.container { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }

.breadcrumbs { padding: 22px 0 0; color: var(--ink-3); font-size: 14px; }
.breadcrumbs .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs a { color: var(--accent); font-weight: 600; text-decoration: none; }
.breadcrumbs a::after { content: "/"; margin-left: 8px; color: var(--ink-3); font-weight: 500; }

.list-hero { padding: 28px 0 8px; }
.list-hero__tag { display: block; margin-bottom: 12px; color: var(--accent); font-size: 14px; font-weight: 600; }
.list-hero__title {
  max-width: 18em;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .95;
  letter-spacing: -0.045em;
}
.list-hero__sub { margin-top: 16px; max-width: 46ch; color: var(--ink-2); font-size: 18px; line-height: 1.45; }
.list-section { padding-top: 36px; }
.section--flush { padding-top: 0; }

.list-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 18px;
}
.list-toolbar strong { font-size: 20px; letter-spacing: -0.02em; }
.list-toolbar span { color: var(--ink-3); font-size: 15px; }

.news-grid,
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--r);
}
.news-card__cover {
  width: calc(100% + 44px);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: -22px -22px 16px;
  border-radius: var(--r) var(--r) 0 0;
  background: var(--card-2);
}
.news-date { margin-bottom: 8px; color: var(--ink-3); font-size: 13px; }
.news-title { margin-bottom: 10px; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.news-title a { color: inherit; text-decoration: none; }
.news-title a:hover { color: var(--accent); }
.news-excerpt { margin-bottom: 16px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.news-link { margin-top: auto; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }

.service-grid .news-card__cover {
  width: 100%;
  margin: 0 0 16px;
  aspect-ratio: 24 / 7;
  object-fit: contain;
  border-radius: 16px;
  background: var(--card-2);
}
.service-detail { max-width: 880px; margin-inline: auto; }
.service-detail .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-children { margin-top: 36px; }
.service-body {
  padding: 32px 36px;
  background: var(--card);
  border-radius: var(--r);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.service-body p,
.service-body ul,
.service-body ol { margin: 0 0 14px; }
.service-body ul,
.service-body ol { padding-left: 1.3em; }
.service-body ul { list-style: disc; }
.service-body ol { list-style: decimal; }
.service-body li { margin-bottom: 6px; }
.service-body h2,
.service-body h3 { margin: 28px 0 12px; color: var(--ink); letter-spacing: -0.02em; line-height: 1.25; }
.service-body h2 { font-size: 28px; }
.service-body h3 { font-size: 20px; }
.service-body strong { color: var(--ink); }
.service-body a { color: var(--accent); }
.service-body img { border-radius: 16px; }
.service-body table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 14px; }
.service-body th,
.service-body td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.service-body th { color: var(--ink); }

.service-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 28px;
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: var(--r);
}
.service-cta h2 { color: var(--panel-ink); font-size: 28px; letter-spacing: -0.03em; }
.service-cta p { max-width: 52ch; color: var(--panel-ink-2); font-size: 15px; }
.service-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.service-cta .btn-outline { color: var(--panel-ink); box-shadow: inset 0 0 0 1.5px var(--panel-line); }

.feature-links { margin-top: 48px; }
.feature-links__head { max-width: 62ch; margin-bottom: 18px; }
.feature-links__title { margin-bottom: 8px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.05; }
.feature-links__sub { color: var(--ink-2); font-size: 16px; }
.feature-links__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.feature-links__card { position: relative; padding: 18px 20px; background: var(--card); border-radius: 20px; }
.feature-links__card h3 { margin-bottom: 6px; font-size: 17px; letter-spacing: -0.02em; }
.feature-links__card h3 a { color: inherit; text-decoration: none; }
.feature-links__card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.feature-links__card:hover h3 a { color: var(--accent); }
.feature-links__card p { color: var(--ink-2); font-size: 14px; }

.list-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 24px;
  text-align: center;
  background: var(--card);
  border-radius: var(--r);
  color: var(--ink-2);
}
.list-empty strong { color: var(--ink); font-size: 18px; }
.list-empty span { max-width: 46ch; font-size: 15px; }
.list-empty a { color: var(--accent); font-weight: 600; text-decoration: none; }

.feed-loading { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feed-loading__card { min-height: 220px; overflow: hidden; background: var(--card); border-radius: var(--r); }
.feed-loading__cover { height: 120px; background: var(--card-2); }
.feed-loading__body { display: grid; gap: 10px; padding: 18px; }
.feed-loading__line { display: block; height: 12px; border-radius: 999px; background: var(--card-2); }
.feed-loading__line:nth-child(1) { width: 42%; }
.feed-loading__line:nth-child(2) { width: 92%; height: 16px; }
.feed-loading__line:nth-child(3) { width: 70%; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.pager__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  font-size: 14px;
}
.pager__btn:hover:not(:disabled) { color: var(--accent); }
.pager__btn:disabled { opacity: .4; cursor: not-allowed; }
.pager__btn--active { background: var(--accent); color: var(--accent-ink); box-shadow: none; }

@media (max-width: 900px) {
  .news-grid, .blog-grid, .feed-loading, .service-detail .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .news-grid, .blog-grid, .feed-loading, .service-detail .service-grid, .feature-links__grid { grid-template-columns: 1fr; }
  .service-body { padding: 22px 18px; }
  .service-cta__actions, .service-cta__actions a { width: 100%; }
}
