:root {
  --landing-accent: var(--color-accent, #8b4d32);
  --landing-accent-dark: var(--color-accent-dark, #563023);
  --landing-graphite: #2e2d2a;
  --landing-text: #55514a;
  --landing-line: var(--color-line, #b98870);
  --landing-surface: var(--color-accent-softer, #f8f2ed);
  --landing-surface-strong: var(--color-accent-soft, #f1e5dc);
  --landing-width: 1120px;
  --landing-reading-width: 940px;
  --landing-space: clamp(24px, 3vw, 40px);
}

html,
body.publication-landing {
  max-width: 100%;
  overflow-x: clip;
}

body.publication-landing {
  margin: 0;
  color: var(--landing-text);
  background: var(--color-page, #f5f2ed);
}

.publication-landing *,
.publication-landing *::before,
.publication-landing *::after {
  box-sizing: border-box;
}

.publication-landing__main {
  width: min(var(--landing-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 clamp(52px, 7vw, 90px);
}

.publication-landing__preview-note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--landing-line);
  background: #fffdf6;
  color: var(--landing-graphite);
}

.publication-landing__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 18px;
  font-size: 14px;
}

.publication-landing__breadcrumbs a,
.publication-landing__attorney a,
.publication-landing__contacts a,
.publication-landing__content a {
  color: var(--landing-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.publication-landing__breadcrumbs a:hover,
.publication-landing__breadcrumbs a:focus-visible,
.publication-landing__attorney a:hover,
.publication-landing__attorney a:focus-visible,
.publication-landing__contacts a:hover,
.publication-landing__contacts a:focus-visible,
.publication-landing__content a:hover,
.publication-landing__content a:focus-visible {
  color: var(--landing-graphite);
}

.publication-landing__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 5vw, 68px);
  border: 1px solid var(--landing-line);
  background: var(--landing-surface);
}

.publication-landing__hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: var(--publication-landing-background) center / cover no-repeat;
  opacity: 0.2;
}

.publication-landing__hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(255, 255, 255, 0.9);
}

.publication-landing__eyebrow {
  margin: 0 0 10px;
  color: var(--landing-accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.publication-landing__hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--landing-graphite);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  overflow-wrap: break-word;
}

.publication-landing__hero h2 {
  max-width: 820px;
  margin: clamp(16px, 2.2vw, 26px) 0 0;
  color: var(--landing-accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}

.publication-landing__lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--landing-text);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
}

.publication-landing__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.publication-landing__cta,
.publication-landing__phone {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--landing-accent);
  border-radius: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.publication-landing__cta {
  width: min(100%, 290px);
  color: #fff;
  background: var(--landing-accent);
}

.publication-landing__phone {
  color: var(--landing-graphite);
  background: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.publication-landing__cta:hover,
.publication-landing__cta:focus-visible {
  border-color: var(--landing-accent-dark);
  background: var(--landing-accent-dark);
}

.publication-landing__phone:hover,
.publication-landing__phone:focus-visible {
  color: #fff;
  background: var(--landing-accent-dark);
}

.publication-landing__cta:focus-visible,
.publication-landing__phone:focus-visible {
  outline: 3px solid rgba(139, 77, 50, 0.28);
  outline-offset: 3px;
}

.publication-landing__assurance {
  max-width: 720px;
  margin: 13px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.publication-landing__illustration {
  width: min(920px, 100%);
  margin: var(--landing-space) auto 0;
}

.publication-landing__illustration img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}

.publication-landing__illustration figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
}

body[data-landing-slug="zashchita-rukovoditelya-subsidiarnaya-otvetstvennost"] .publication-landing__illustration {
  width: min(820px, 100%);
  margin-top: 18px;
}

body[data-landing-slug="zashchita-rukovoditelya-subsidiarnaya-otvetstvennost"] .publication-landing__illustration img {
  aspect-ratio: 16 / 7;
  max-height: 320px;
  object-fit: cover;
}

body[data-landing-slug="zashchita-rukovoditelya-subsidiarnaya-otvetstvennost"] .publication-landing__illustration {
  width: min(820px, 100%);
  margin-top: var(--landing-space);
}

body[data-landing-slug="zashchita-rukovoditelya-subsidiarnaya-otvetstvennost"] .publication-landing__illustration img {
  aspect-ratio: 16 / 7;
  max-height: 320px;
  object-fit: cover;
}

.publication-landing__content {
  width: min(var(--landing-reading-width), 100%);
  margin: var(--landing-space) auto 0;
  color: var(--landing-text);
  font-size: 19px;
  line-height: 1.62;
}

.publication-landing__content.article-content {
  width: min(var(--landing-reading-width), 100%) !important;
  max-width: var(--landing-reading-width) !important;
}

.publication-landing__content .article-text-section,
.publication-landing__content .article-text-section--preamble {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.publication-landing__content .article-text-section + .article-text-section {
  margin-top: var(--landing-space);
  padding-top: 0;
  border-top: 0;
}

.publication-landing__content .article-text-section__heading {
  display: none;
}

.publication-landing__content .article-text-section__content {
  min-width: 0;
}

.publication-landing__content h2,
.publication-landing__content .article-h2 {
  width: 100%;
  margin: 0 0 14px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--landing-graphite);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--font-size-section-title, clamp(28px, 3.3vw, 42px));
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.publication-landing__content h3,
.publication-landing__content .article-h3 {
  margin: 26px 0 10px;
  color: var(--landing-graphite);
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.25;
}

.publication-landing__content p,
.publication-landing__content ul,
.publication-landing__content ol,
.publication-landing__content blockquote {
  margin: 0 0 16px;
}

.publication-landing__content li + li {
  margin-top: 12px;
}

.publication-landing__content :is(.article-card-grid, .article-infographic) > li {
  margin-top: 0;
}

.publication-landing__content blockquote {
  padding: 18px 22px;
  border-left: 3px solid var(--landing-accent);
  background: var(--landing-surface);
}

.publication-landing__content .article-infographic {
  --infographic-accent: var(--landing-accent);
  --infographic-surface: #fffaf7;
  --infographic-line: var(--landing-line);
}

.publication-landing__content :is([data-plan-id="risk-questions"], [data-plan-id="lawyer-work"]) {
  grid-auto-rows: 1fr;
  margin: 20px 0;
}

.publication-landing__content :is([data-plan-id="risk-questions"], [data-plan-id="lawyer-work"]) > li {
  min-height: 68px;
  height: 100%;
  padding: 13px 16px;
  align-content: center;
  background: #fffaf7;
}

.publication-landing__content :is([data-plan-id="risk-questions"], [data-plan-id="lawyer-work"]) .article-infographic__marker {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.publication-landing__content :is([data-plan-id="risk-questions"], [data-plan-id="lawyer-work"]) .article-infographic__title {
  align-self: center;
  font-family: var(--font-main, Arial, sans-serif);
  font-size: 16px;
  line-height: 1.25;
}

.publication-landing__content :is([data-plan-id="cases-grid"], [data-plan-id="prices"]) {
  grid-auto-rows: 1fr;
  margin: 20px 0;
}

.publication-landing__content :is([data-plan-id="cases-grid"], [data-plan-id="prices"]) > li {
  display: flex;
  min-height: 76px;
  height: 100%;
  align-items: center;
  background: #fffaf7;
}

.publication-landing__content [data-plan-id="cases-grid"] > li {
  padding: 0;
}

.publication-landing__content [data-plan-id="cases-grid"] > li > a {
  display: flex;
  width: 100%;
  min-height: 74px;
  margin: 0;
  padding: 14px 16px;
  align-items: center;
  border: 0;
  color: var(--landing-graphite);
  font-family: var(--font-main, Arial, sans-serif);
  font-size: 16px;
  line-height: 1.25;
}

.publication-landing__content [data-plan-id="prices"] > li > strong {
  margin: 0;
  font-family: var(--font-main, Arial, sans-serif);
  font-size: 16px;
  line-height: 1.25;
}

.publication-landing__content :is([data-plan-id="cases-note"], [data-plan-id="legal-note"]) {
  color: var(--color-muted, #6e6862);
  font-size: 15px;
  line-height: 1.5;
}

.publication-landing__content [data-plan-id="legal-note"] {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--landing-line);
}

.publication-landing__content img,
.publication-landing__content figure,
.publication-landing__content table,
.publication-landing__content .article-banner,
.publication-landing__content .article-lead-magnet,
.publication-landing__content .article-infographic,
.publication-landing__content .article-card-grid {
  max-width: 100%;
}

.publication-landing__attorney {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  width: min(940px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--landing-line);
  background: var(--landing-surface);
}

.publication-landing__attorney img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.publication-landing__attorney h2,
.publication-landing__final h2 {
  margin: 0 0 12px;
  color: var(--landing-graphite);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
}

.publication-landing__content h2::after,
.publication-landing__content .article-h2::after {
  content: none;
  display: none;
}

.publication-landing__attorney p:not(.publication-landing__eyebrow),
.publication-landing__final p:not(.publication-landing__eyebrow) {
  margin: 0 0 15px;
  font-size: 18px;
  line-height: 1.55;
}

.publication-landing__final {
  width: min(940px, 100%);
  margin: var(--landing-space) auto 0;
  padding: clamp(28px, 5vw, 54px);
  border-top: 1px solid var(--landing-line);
  background: var(--landing-surface-strong);
}

.publication-landing__final > p:not(.publication-landing__eyebrow) {
  max-width: 740px;
}

.publication-landing__contacts {
  margin-top: 16px !important;
  font-size: 15px !important;
}

.publication-landing__preview-form {
  display: grid;
  gap: 5px;
  width: min(940px, 100%);
  margin: 16px auto 0;
  padding: 16px 20px;
  border: 1px dashed var(--landing-accent);
  background: #fffaf7;
}

@media (min-width: 1024px) {
  .publication-landing__content :is(
    [data-plan-id="risk-questions"],
    [data-plan-id="lawyer-work"],
    [data-plan-id="cases-grid"],
    [data-plan-id="prices"]
  ) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1023px) {
  .publication-landing__main {
    width: min(100% - 36px, var(--landing-width));
  }

  .publication-landing__hero::after {
    background: rgba(255, 255, 255, 0.91);
  }
}

@media (max-width: 767px) {
  .publication-landing__main {
    width: min(100% - 28px, var(--landing-width));
    padding-top: 16px;
  }

  .publication-landing__hero {
    padding: 24px 20px;
  }

  .publication-landing__hero h1 {
    font-size: clamp(30px, 8vw, 36px);
    line-height: 1.06;
    overflow-wrap: normal;
  }

  body[data-landing-slug="zashchita-rukovoditelya-subsidiarnaya-otvetstvennost"] .publication-landing__illustration img {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }

  .publication-landing__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .publication-landing__cta,
  .publication-landing__phone {
    width: 100%;
  }

  .publication-landing__content {
    font-size: 17px;
    line-height: 1.58;
  }

  body[data-landing-slug="zashchita-rukovoditelya-subsidiarnaya-otvetstvennost"] .publication-landing__illustration img {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }

  .publication-landing__attorney {
    grid-template-columns: 1fr;
  }

  .publication-landing__attorney img {
    width: min(230px, 74vw);
    margin: 0 auto;
  }

  .publication-landing__final {
    padding: 26px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .publication-landing__cta,
  .publication-landing__phone {
    transition: none;
  }
}
