/* Article categories and their posts only. Editorial content and URLs stay unchanged. */
:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) {
  color: #12343a;
  background: #f6f4ee;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-breadcrumbs {
  margin: 0;
  padding: 22px 0 0;
  color: #5c7074;
  background: #f6f4ee;
  border: 0;
}
:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-breadcrumbs .legacy-container {
  width: min(1200px, calc(100vw - 64px));
  max-width: none;
}
:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-breadcrumbs a { color: #087d89; }
:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-breadcrumbs a:focus-visible { outline: 2px solid #14b8c6; outline-offset: 3px; }

:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive {
  width: min(1200px, calc(100vw - 64px));
  max-width: none;
  margin-bottom: 0;
  padding: 64px 0 96px;
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive h1,
body.single-post .legacy-page h1 {
  margin: 0 0 48px;
  color: #12343a;
  font-size: clamp(3.5rem, 6.2vw, 6.5rem);
  font-weight: 690;
  letter-spacing: -.07em;
  line-height: 1.02;
  text-transform: none;
  overflow-wrap: anywhere;
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  padding: 0 0 24px;
  overflow: hidden;
  background: #fffefa;
  border: 1px solid rgba(18, 52, 58, .08);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(13, 57, 62, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(13, 57, 62, .11);
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card__image {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1.48;
  overflow: hidden;
  background: #d9e6e5;
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card h2 {
  margin: 24px 24px 12px;
  color: #12343a;
  font-size: clamp(1.28rem, 1.65vw, 1.55rem);
  font-weight: 660;
  letter-spacing: -.035em;
  line-height: 1.25;
  text-transform: none;
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card h2 a { color: inherit; text-decoration: none; }
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card h2 a:hover { color: #087d89; }
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card > div:not(.legacy-archive-card__image) {
  flex: 1;
  padding: 0 24px;
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card p {
  height: auto;
  margin: 0;
  overflow: visible;
  color: #5c7074;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.6;
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card .legacy-button {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: fit-content;
  min-height: 46px;
  margin: 24px 24px 0;
  padding: 5px 6px 5px 20px;
  color: #fff;
  background: #14b8c6;
  border: 0;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card .legacy-button::after {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #087d89;
  background: #fff;
  border-radius: 50%;
  content: "\2197";
  font-size: .95rem;
  font-weight: 400;
  line-height: 1;
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card .legacy-button:hover,
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card .legacy-button:focus-visible { background: #087d89; }
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card a:focus-visible { outline: 3px solid #14b8c6; outline-offset: 3px; }

:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-pagination { margin: 42px 0 0; }
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-pagination .nav-links { flex-wrap: wrap; gap: 9px; }
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: #087d89;
  background: #fff;
  border: 1px solid #c7d9d7;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 650;
  text-decoration: none;
}
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-pagination .current,
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-pagination a:hover,
:is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-pagination a:focus-visible {
  color: #fff;
  background: #087d89;
  border-color: #087d89;
}

body.single-post .legacy-page {
  width: min(900px, calc(100vw - 64px));
  max-width: none;
  margin-bottom: 0;
  padding: 64px 0 100px;
}
body.single-post .legacy-page h1 { margin-bottom: 44px; font-size: clamp(2.85rem, 5vw, 5.15rem); }
body.single-post .legacy-entry-content {
  color: #25464b;
  font-size: 1.06rem;
  line-height: 1.78;
  overflow-wrap: break-word;
}
body.single-post .legacy-entry-content p { margin: 0 0 1.35em; }
body.single-post .legacy-entry-content h2,
body.single-post .legacy-entry-content h3,
body.single-post .legacy-entry-content h4 {
  margin: 1.55em 0 .6em;
  color: #12343a;
  font-weight: 660;
  letter-spacing: -.035em;
  line-height: 1.16;
  text-transform: none;
}
body.single-post .legacy-entry-content h2 { font-size: clamp(1.75rem, 2.8vw, 2.45rem); }
body.single-post .legacy-entry-content h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
body.single-post .legacy-entry-content h4 { font-size: 1.22rem; }
body.single-post .legacy-entry-content a { color: #087d89; text-decoration-color: #14b8c6; text-underline-offset: .18em; }
body.single-post .legacy-entry-content a:hover { color: #12343a; }
body.single-post .legacy-entry-content a:focus-visible { outline: 2px solid #14b8c6; outline-offset: 3px; }
body.single-post .legacy-entry-content ul,
body.single-post .legacy-entry-content ol { margin: 0 0 1.35em; padding-left: 1.5em; }
body.single-post .legacy-entry-content li { margin: 0 0 .55em; }
body.single-post .legacy-entry-content img { max-width: 100%; height: auto; border-radius: 18px; }
body.single-post .legacy-entry-content figure { max-width: 100%; margin: 2.3em 0; }
body.single-post .legacy-entry-content figcaption { margin-top: 8px; color: #5c7074; font-size: .83rem; line-height: 1.5; }
body.single-post .legacy-entry-content table { display: block; max-width: 100%; overflow-x: auto; }

:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback {
  width: 100%;
  margin: 0;
  padding: 82px max(32px, calc((100vw - 1200px) / 2));
  color: #12343a;
  text-align: left;
  background: #e4f2f0;
}
:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback .legacy-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .95fr);
  align-items: center;
  gap: 72px;
  width: 100%;
  max-width: none;
}
:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback h3 {
  margin: 0;
  color: #12343a;
  font-size: clamp(2rem, 3.35vw, 3.45rem);
  font-weight: 590;
  letter-spacing: -.05em;
  line-height: 1;
  text-align: left;
  text-transform: none;
  text-wrap: balance;
}
:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback .legacy-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: auto;
  padding: 10px;
  background: rgba(255, 255, 255, .48);
  border-radius: 28px;
}
:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback .legacy-form input {
  position: static;
  width: 100%;
  max-width: none;
  min-height: 54px;
  padding: 14px 18px;
  color: #12343a;
  background: #fff;
  border: 0;
  border-radius: 18px;
  font-size: .82rem;
  text-align: left;
  transform: none;
}
:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback .legacy-form input::placeholder { color: #5c7074; text-align: left; text-transform: none; }
:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback .legacy-form .legacy-button {
  position: static;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: none;
  min-height: 54px;
  padding: 7px 8px 7px 18px;
  color: #fff;
  background: #14b8c6;
  border: 0;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
  transform: none;
}
:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback .legacy-form .legacy-button::after {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #087d89;
  background: #fff;
  border-radius: 50%;
  content: "\2197";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}
:is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback .legacy-form .legacy-button:disabled { opacity: .68; cursor: not-allowed; }

@media (max-width: 900px) {
  :is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback .legacy-container { grid-template-columns: 1fr; gap: 36px; }
  :is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback .legacy-form { max-width: 640px; }
}
@media (max-width: 600px) {
  :is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-breadcrumbs .legacy-container,
  :is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive,
  body.single-post .legacy-page { width: calc(100vw - 40px); }
  :is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive { padding: 42px 0 72px; }
  :is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive h1 { margin-bottom: 30px; font-size: clamp(3rem, 13vw, 4.5rem); }
  :is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive__grid { grid-template-columns: 1fr; gap: 16px; }
  :is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card { border-radius: 18px; }
  body.single-post .legacy-page { padding: 42px 0 72px; }
  body.single-post .legacy-page h1 { margin-bottom: 32px; font-size: clamp(2.35rem, 11vw, 3.5rem); }
  body.single-post .legacy-entry-content { font-size: 1rem; line-height: 1.7; }
  :is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback { padding: 72px 20px 78px; }
  :is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback h3 { font-size: 2.15rem; }
  :is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback .legacy-form { grid-template-columns: 1fr; padding: 8px; }
  :is(body.category-stati, body.category-vosstanovlenie-vann, body.single-post) .legacy-callback .legacy-form .legacy-button { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  :is(body.category-stati, body.category-vosstanovlenie-vann) .legacy-archive-card { transition: none; }
}
