/* Shared finishing rules, loaded after the legacy responsive styles. */
:root {
  --mpark-accent: #d70036;
  --mpark-muted: #66686b;
  --mpark-surface: #f9f9f9;
  --mpark-motion: 180ms ease;
}

body {
  font-family: "Museo Sans Cyrl", Arial, sans-serif;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
  min-width: 0;
}

body > .fts,
body > .footer-bottom {
  flex-shrink: 0;
}

.footer-bottom {
  min-height: 200px;
  display: flex;
  align-items: center;
}

@media (min-width: 1001px) {
  .fts {
    min-height: 200px;
    padding-block: .75rem;
    display: flex;
    align-items: center;
  }
}

.footer-legal__inner .footer-siteplus {
  display: inline-flex;
  margin-top: 6px;
  line-height: 0;
  opacity: .6;
}

.footer-siteplus img {
  display: block;
  width: 80px;
  height: auto;
  filter: invert(.8);
}

.partner-strip__card {
  justify-content: flex-start;
  padding-inline: 0;
}

.partner-strip__card img {
  object-position: left center;
}

/* Keep the individually tuned page margins; improve only legibility. */
.breadcrumbs {
  font-size: max(12px, .75rem);
  line-height: 1.6;
  color: var(--mpark-muted);
  overflow-wrap: anywhere;
}

.breadcrumbs_link_current {
  color: var(--mpark-muted);
}

.breadcrumbs_link {
  text-underline-offset: .2em;
  transition: color var(--mpark-motion);
}

.breadcrumbs a:hover {
  color: var(--mpark-accent);
  text-decoration: underline;
}

.newspage1 .breadcrumbs,
.newspage1 .breadcrumbs_link,
.newspage1 .breadcrumbs a:hover {
  color: #fff;
}

.contacts_b01_ctcs_t1,
.services1_item_text {
  color: var(--mpark-muted);
}

.contacts_b01_ctcs_t1 {
  font-size: max(12px, .875rem);
}

.contacts_b01_ctcs_t2 {
  overflow-wrap: anywhere;
}

/* Reserve whole lines so every card in a row has the same text rhythm. */
.news_item {
  background-color: var(--mpark-surface);
  transition: background-color var(--mpark-motion), color var(--mpark-motion);
}

.news_item-info {
  padding: 1.875rem clamp(20px, 2.5rem, 40px) 2.5rem;
}

.news_item-title {
  font-family: Mont, Arial, sans-serif;
  font-size: max(18px, 1.25rem);
  line-height: 1.4;
  height: 4.2em;
}

.news_item-text {
  font-size: max(14px, .875rem);
  line-height: 1.5;
  height: 6em;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.main-page .news_item-title {
  font-size: max(18px, 1.25rem);
  line-height: 1.4;
  height: 2.8em;
}

.main-page .news_item-text {
  line-height: 1.5;
  height: 6em;
}

.news_item-date,
.newspage1_date {
  font-size: max(12px, .875rem);
  line-height: 1.4;
}

.news_item-date {
  transition: background-color var(--mpark-motion), color var(--mpark-motion);
}

.newspage > .main {
  font-size: max(16px, 1.125rem);
}

.newspage1 {
  height: auto;
  min-height: 30rem;
  padding-bottom: 2rem;
}

.newspage p {
  font-size: max(16px, 1.125rem);
  line-height: 1.65;
}

.newspage p a,
.contacts_b01_ctcs_link_email {
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}

/* A consistent keyboard state complements the existing mouse states. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--mpark-accent);
  outline-offset: 4px;
}

.hds_search input:focus-visible {
  outline: none;
}

.fts a:focus-visible,
.fts button:focus-visible,
.hds_bottom a:focus-visible {
  outline-color: #fff;
}

.bt:hover {
  transform: none;
}

.form_page_item input {
  box-sizing: border-box;
  font-size: max(16px, .875rem);
  transition: border-color var(--mpark-motion);
}

.form_page_item input:focus::placeholder {
  font-size: inherit;
  color: var(--mpark-muted);
}

.news_filters-links a,
.pagination_button,
.slide_arrows_bt,
.form_page button {
  min-height: 44px;
}

.pagination_button,
.slide_arrows_bt {
  min-width: 44px;
}

.bt,
.news_filters-links a,
.news_all-link {
  font-size: max(12px, .875rem);
}

/* Center the hero statistics alongside the resident call to action. */
.main-page .b01_bottom .btn {
  font-size: max(12px, 1rem);
}

.main-page .b01_bottom_item {
  text-align: center;
}

.main-page .b01_bottom_t1 {
  font-size: max(14px, 1.125rem);
}

.main-page .b01_bottom_t2 {
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: max(12px, .75rem);
  line-height: 1.4;
}

.fts .fts_lf_it p,
.fts .fts_company_title,
.fts .fts_ct a {
  font-size: max(12px, .875rem);
}

.fts .fts_lf_it p:first-child {
  font-size: max(12px, .75rem);
  line-height: 1.5;
}

.footer-legal__inner {
  font-size: 14px;
  line-height: 1.5;
}

.footer-legal__company {
  font-size: 19px;
}

.footer-legal__inner > a:not(.footer-siteplus) {
  font-size: 13px;
}

@media (min-width: 641px) and (max-width: 1000px) {
  .fts .fts_box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 44px;
  }

  .hds_bottom nav > ul > li > a {
    font-size: max(10px, .875rem);
  }
}

@media (max-width: 1000px) {
  .main-page .news_item-title {
    height: 4.2em;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (max-width: 640px) {
  .fts .tops_go {
    display: none;
  }

  .fts .fts_box {
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news_item,
  .news_item-date,
  .breadcrumbs_link,
  .form_page_item input,
  .bt {
    transition: none;
  }
}

/* Match the gap before the red footer to the Contacts resident section. */
body > main {
  padding-bottom: 4rem;
}

body > main > :last-child,
body.main-page > main > :last-child,
body > main > .b04:last-child:has(> .main > .b06_box) {
  margin-bottom: 0;
  padding-bottom: 0;
}

body > main > .last_block:last-child > .b9 {
  padding-bottom: 0;
}

@media (max-width: 640px) {
  body > main {
    padding-bottom: 2.5rem;
  }
}

/* News listings and articles use a smaller gap before the footer. */
body > main:has(> .all_news_page1, > .newspage) {
  padding-bottom: 2rem;
}
