/* MYRT homepage: existing services, four specialists and native FAQ.
   Load on the homepage after the existing template and conversion styles.
   Existing image assets and icon background-images remain authoritative. */

/* Remove only the homepage header's backdrop blur. */
body.hero-redesign--main .site-header::before {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.hero-redesign--main .myrt-home-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 72px 0;
  background: #fff;
  color: #263d2e;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

body.hero-redesign--main .myrt-home-section *,
body.hero-redesign--main .myrt-home-section *::before,
body.hero-redesign--main .myrt-home-section *::after {
  box-sizing: border-box;
}

/* The old universal rule assigns a serif face and size to every element.
   Target text explicitly without changing icon-font elements. */
body.hero-redesign--main .myrt-home-section :where(h2, h3, h4, p, a, button, summary, li, dt, dd, strong, b, em, small, figcaption),
body.hero-redesign--main .myrt-service-link__name,
body.hero-redesign--main .myrt-specialist-card__portrait-placeholder {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: inherit;
}

body.hero-redesign--main .myrt-home-section ::selection {
  background: #d6ecdc;
  color: #183e28;
}

body.hero-redesign--main .myrt-home-section [hidden] {
  display: none !important;
}

body.hero-redesign--main .myrt-home-container {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 24px;
}

body.hero-redesign--main .myrt-home-section__title {
  position: relative;
  max-width: 850px;
  margin: 0 0 32px;
  padding: 18px 0 0;
  color: #263d2e;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-align: left;
  text-transform: none;
  text-wrap: balance;
}

/* Short green accent stroke above every section title. */
body.hero-redesign--main .myrt-home-section__title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #167444, #7cc79a);
}

body.hero-redesign--main .myrt-home-section__intro {
  max-width: 65ch;
  margin: -16px 0 28px;
  color: #405949;
  font-size: 18px;
  line-height: 1.5;
}

body.hero-redesign--main .myrt-home-section__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 32px 0 0;
  padding: 0;
}

body.hero-redesign--main .myrt-home-section__actions > p {
  margin: 0;
  color: #405949;
  font-size: 17px;
  line-height: 1.45;
}

/* Shared actions are local to these homepage sections. */
body.hero-redesign--main .myrt-home-section .myrt-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  height: auto;
  margin: 0;
  padding: 11px 22px;
  border: 1px solid #167444;
  border-radius: 999px;
  background: #167444;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  box-shadow: none;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s cubic-bezier(.22, .61, .36, 1),
              background-color .15s ease, border-color .15s ease;
}

body.hero-redesign--main .myrt-home-section .myrt-home-button:hover,
body.hero-redesign--main .myrt-home-section .myrt-home-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -12px rgba(22, 116, 68, .8);
  border-color: #105d35;
  background: #105d35;
  color: #fff !important;
  text-decoration: none !important;
}

body.hero-redesign--main .myrt-home-section .myrt-home-button--secondary {
  border-color: #8fae9a;
  background: transparent;
  color: #145f37;
}

body.hero-redesign--main .myrt-home-section .myrt-home-button--secondary:hover,
body.hero-redesign--main .myrt-home-section .myrt-home-button--secondary:focus-visible {
  border-color: #167444;
  background: #e5efe8;
  box-shadow: none;
  color: #145f37 !important;
}

body.hero-redesign--main .myrt-home-section .myrt-home-button:disabled,
body.hero-redesign--main .myrt-home-section .myrt-home-button[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
}

body.hero-redesign--main .myrt-home-section .myrt-home-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 0;
  color: #145f37;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.hero-redesign--main .myrt-home-section .myrt-home-text-link:hover {
  color: #105d35 !important;
  text-decoration: underline !important;
}

body.hero-redesign--main .myrt-home-section a:focus-visible,
body.hero-redesign--main .myrt-home-section button:focus-visible,
body.hero-redesign--main .myrt-home-section summary:focus-visible {
  outline: 3px solid #167444 !important;
  outline-offset: 4px;
}

/* A compact directory; the original eight icon background-images are kept. */
body.hero-redesign--main .myrt-home-services {
  padding-top: 64px;
  padding-bottom: 40px;
}

body.hero-redesign--main .myrt-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each service is a soft card that lifts on hover. */
body.hero-redesign--main .myrt-service-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 84px;
  margin: 0;
  padding: 16px 18px 16px 16px;
  border: 1px solid #dbe6de;
  border-radius: 16px;
  background: #fff;
  color: #263d2e;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 42, 27, .06), 0 2px 8px rgba(15, 42, 27, .05);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
}

body.hero-redesign--main .myrt-service-link:hover,
body.hero-redesign--main .myrt-service-link:focus-visible {
  transform: translateY(-3px);
  border-color: #b9d6c3;
  box-shadow: 0 2px 6px rgba(15, 42, 27, .06), 0 18px 40px -12px rgba(15, 42, 27, .22);
  color: #145f37 !important;
  text-decoration: none !important;
}

body.hero-redesign--main .myrt-service-link .myrt-service-link__icon {
  position: static;
  display: block;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background-color: #f3f8f4;
  background-position: center;
  background-size: 30px 30px;
  background-repeat: no-repeat;
  filter: none;
  box-shadow: none;
  transition: background-color .3s ease, transform .4s cubic-bezier(.22, .61, .36, 1);
}

body.hero-redesign--main .myrt-service-link:hover .myrt-service-link__icon {
  background-color: #e5efe8;
  transform: rotate(-6deg) scale(1.06);
}

body.hero-redesign--main .myrt-service-link__name {
  display: block;
  min-width: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: break-word;
}

body.hero-redesign--main .myrt-service-link__arrow {
  display: block;
  width: 18px;
  height: 18px;
  color: #496651;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), color .3s ease;
}

body.hero-redesign--main .myrt-service-link:hover .myrt-service-link__arrow {
  transform: translateX(4px);
  color: #167444;
}

/* All four real records stay in the document flow; no slider dimensions. */
body.hero-redesign--main .myrt-home-specialists {
  padding-top: 32px;
  background: linear-gradient(180deg, #fff 0%, #f3f8f4 100%);
}

body.hero-redesign--main .myrt-specialists-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.hero-redesign--main .myrt-specialist-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe6de;
  border-radius: 20px;
  background: #fff;
  color: #263d2e;
  box-shadow: 0 1px 2px rgba(15, 42, 27, .06), 0 2px 8px rgba(15, 42, 27, .05);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s cubic-bezier(.22, .61, .36, 1);
}

body.hero-redesign--main .myrt-specialist-card:hover,
body.hero-redesign--main .myrt-specialist-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 2px 6px rgba(15, 42, 27, .06), 0 18px 40px -12px rgba(15, 42, 27, .22);
}

body.hero-redesign--main .myrt-specialist-card__portrait {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: #edf3ee;
  color: #405949;
  text-decoration: none;
}

/* Soft shade at the bottom of the photo. */
body.hero-redesign--main .myrt-specialist-card__portrait::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(15, 42, 27, 0), rgba(15, 42, 27, .12));
  pointer-events: none;
}

body.hero-redesign--main .myrt-specialist-card__portrait:focus-visible {
  outline-offset: -5px;
}

body.hero-redesign--main .myrt-specialist-card__portrait img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: var(--myrt-portrait-position, 50% 25%);
  transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

body.hero-redesign--main .myrt-specialist-card:hover .myrt-specialist-card__portrait img {
  transform: scale(1.045);
}

body.hero-redesign--main .myrt-specialist-card__portrait-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  color: #405949;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

body.hero-redesign--main .myrt-specialist-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 20px 18px 18px;
}

body.hero-redesign--main .myrt-specialist-card__name {
  margin: 0 0 8px;
  padding: 0;
  color: #263d2e;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  word-spacing: normal;
  text-transform: none;
  overflow-wrap: break-word;
}

body.hero-redesign--main .myrt-specialist-card__name a {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
}

body.hero-redesign--main .myrt-specialist-card__name a:hover {
  color: #145f37 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

body.hero-redesign--main .myrt-specialist-card__profession {
  margin: 0 0 10px;
  color: #405949;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* "Очно и онлайн" as a pill with a green dot. */
body.hero-redesign--main .myrt-specialist-card__format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f3f8f4;
  color: #145f37;
  font-size: 14px;
  line-height: 1.4;
}

body.hero-redesign--main .myrt-specialist-card__format::before {
  content: '';
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fb36b;
  box-shadow: 0 0 0 3px rgba(47, 179, 107, .18);
}

body.hero-redesign--main .myrt-specialist-card__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  margin-top: auto;
  padding-top: 4px;
}

body.hero-redesign--main .myrt-specialist-card__phone {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  color: #145f37;
  font-size: 17px;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

body.hero-redesign--main .myrt-specialist-card__phone:hover {
  color: #105d35 !important;
  text-decoration: underline !important;
}

body.hero-redesign--main .myrt-specialist-card__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

body.hero-redesign--main .myrt-specialist-card__messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 8px;
  border: 1px solid #d8e4db;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.hero-redesign--main .myrt-specialist-card__messenger:hover {
  transform: translateY(-2px);
  border-color: #b9d6c3;
  background: #f2f7f3;
  box-shadow: 0 6px 14px -8px rgba(15, 42, 27, .4);
}

body.hero-redesign--main .myrt-specialist-card__messenger img {
  display: block;
  width: 26px;
  max-width: 100%;
  height: 26px;
  margin: 0;
  object-fit: contain;
}

body.hero-redesign--main .myrt-specialist-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
}

body.hero-redesign--main .myrt-specialist-card__actions .myrt-home-button {
  width: 100%;
  padding-right: 10px;
  padding-left: 10px;
  font-size: 16px;
}

body.hero-redesign--main .myrt-specialist-card__actions .myrt-home-text-link {
  padding-right: 2px;
  padding-left: 2px;
}

body.hero-redesign--main .myrt-specialist-card__actions .myrt-home-text-link:only-child {
  justify-self: start;
}

/* Full original questions and answers, with native disclosure behaviour. */
body.hero-redesign--main .myrt-home-faq {
  background: #f2f7f3;
}

body.hero-redesign--main .myrt-faq-list {
  display: grid;
  gap: 12px;
  max-width: 960px;
  margin: 0;
  padding: 0;
}

/* Each question is a card; a round "+" turns into "−" when open. */
body.hero-redesign--main .myrt-faq-item {
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe6de;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 27, .06), 0 2px 8px rgba(15, 42, 27, .05);
  transition: box-shadow .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
}

body.hero-redesign--main .myrt-faq-item:hover {
  border-color: #c4dccc;
}

body.hero-redesign--main .myrt-faq-item[open] {
  border-color: #b9d6c3;
  box-shadow: 0 2px 6px rgba(15, 42, 27, .06), 0 18px 40px -12px rgba(15, 42, 27, .22);
}

body.hero-redesign--main .myrt-faq-item__question {
  position: relative;
  display: block;
  margin: 0;
  padding: 22px 72px 22px 26px;
  background: radial-gradient(circle at calc(100% - 37px) 50%, #f3f8f4 17px, transparent 18px) no-repeat;
  color: #263d2e;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
  list-style: none;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  cursor: pointer;
}

body.hero-redesign--main .myrt-faq-item__question::marker {
  content: '';
}

body.hero-redesign--main .myrt-faq-item__question::-webkit-details-marker {
  display: none;
}

body.hero-redesign--main .myrt-faq-item__question::before,
body.hero-redesign--main .myrt-faq-item__question::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 30px;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: #167444;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), opacity .35s ease;
}

body.hero-redesign--main .myrt-faq-item__question::after {
  transform: rotate(90deg);
}

body.hero-redesign--main .myrt-faq-item[open] > .myrt-faq-item__question::before {
  transform: rotate(180deg);
}

body.hero-redesign--main .myrt-faq-item[open] > .myrt-faq-item__question::after {
  transform: rotate(0deg);
  opacity: 0;
}

body.hero-redesign--main .myrt-faq-item__question:hover {
  color: #145f37;
}

body.hero-redesign--main .myrt-faq-item__question :where(p, div, span, strong, b, em) {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: inherit;
  line-height: inherit;
}

body.hero-redesign--main .myrt-faq-item__question p {
  margin: 0;
}

body.hero-redesign--main .myrt-faq-item__question p + p {
  margin-top: 8px;
}

body.hero-redesign--main .myrt-faq-item__answer {
  max-width: none;
  margin: 0;
  padding: 0 26px 24px;
  color: #405949;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.hero-redesign--main .myrt-faq-item:not([open]) .myrt-faq-item__answer {
  display: none !important;
}

body.hero-redesign--main .myrt-faq-item[open] .myrt-faq-item__answer {
  animation: mp-faq-in .45s cubic-bezier(.22, .61, .36, 1);
}

@keyframes mp-faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

body.hero-redesign--main .myrt-faq-item__answer :where(p, div, span, ul, ol, li, a, strong, b, em, blockquote) {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: inherit;
  line-height: inherit;
}

body.hero-redesign--main .myrt-faq-item__answer p {
  margin: 0 0 14px;
}

body.hero-redesign--main .myrt-faq-item__answer ul,
body.hero-redesign--main .myrt-faq-item__answer ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

body.hero-redesign--main .myrt-faq-item__answer li + li {
  margin-top: 6px;
}

body.hero-redesign--main .myrt-faq-item__answer a:not(.myrt-home-button) {
  color: #145f37;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.hero-redesign--main .myrt-faq-item__answer a:not(.myrt-home-button):hover {
  color: #105d35 !important;
  text-decoration: underline !important;
}

body.hero-redesign--main .myrt-faq-item__answer img {
  max-width: 100%;
  height: auto;
}

body.hero-redesign--main .myrt-faq-item__answer > :last-child {
  margin-bottom: 0;
}

body.hero-redesign--main .myrt-faq-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Articles: the legacy news.list block, restyled to match the sections above.
   Old style.css sets Merriweather, grey background and centered title. */
body.hero-redesign--main .section.white.darker {
  padding: 80px 0 88px;
  background-color: #fff;
}

body.hero-redesign--main .section.white.darker .section-title {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 8px;
  padding: 18px 24px 0;
  color: #263d2e;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-align: left;
}

body.hero-redesign--main .section.white.darker .section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #167444, #7cc79a);
}

body.hero-redesign--main .section.white.darker .section-title::after {
  content: 'Пишем о психологии простым языком';
  display: block;
  margin-top: 16px;
  color: #405949;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

body.hero-redesign--main .section.white.darker .icon-card_wrap {
  margin-top: 0;
  padding-top: 0;
}

body.hero-redesign--main .section.white.darker .container {
  max-width: 1200px;
  padding-right: 24px;
  padding-left: 24px;
}

body.hero-redesign--main .section.white.darker .row {
  margin-right: -12px;
  margin-left: -12px;
}

body.hero-redesign--main .section.white.darker .row > [class*='col-'] {
  display: flex;
  padding-right: 12px;
  padding-left: 12px;
}

body.hero-redesign--main .article-card-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #dbe6de;
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 27, .06), 0 2px 8px rgba(15, 42, 27, .05);
  text-decoration: none;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s cubic-bezier(.22, .61, .36, 1);
}

body.hero-redesign--main .article-card-item:hover,
body.hero-redesign--main .article-card-item:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 2px 6px rgba(15, 42, 27, .06), 0 18px 40px -12px rgba(15, 42, 27, .22);
  text-decoration: none;
}

body.hero-redesign--main .article-card-item .card_image {
  padding-top: 62%;
}

body.hero-redesign--main .article-card-item .card_image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}

body.hero-redesign--main .article-card-item:hover .card_image img {
  transform: scale(1.06);
}

body.hero-redesign--main .article-card-item .card_desc {
  flex: 1;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  min-height: 0;
  padding: 20px 24px 26px;
}

body.hero-redesign--main .article-card-item .card_title {
  color: #263d2e;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  transition: color .25s ease;
}

body.hero-redesign--main .article-card-item:hover .card_title {
  color: #145f37;
}

body.hero-redesign--main .article-card-item .card_tag,
body.hero-redesign--main .article-card-item:hover .card_tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f3f8f4;
  color: #145f37;
  font-size: 13px;
  letter-spacing: .04em;
}

/* Footer on the homepage: forest green instead of the old slate blue. */
body.hero-redesign--main footer .footer-bar,
body.hero-redesign--main footer .footer_info {
  background-color: rgba(15, 42, 27, .9);
  font-family: 'Roboto Condensed', sans-serif;
}

body.hero-redesign--main footer .footer-bar::after {
  border-top-color: rgba(15, 42, 27, .9);
}

body.hero-redesign--main footer .footer_info_cont *:not([class*='icofont']) {
  font-family: 'Roboto Condensed', sans-serif;
}

body.hero-redesign--main footer #yamap {
  background: #dfe9e2;
}

body.hero-redesign--main footer .header-main-title-text {
  font-family: 'Roboto Condensed', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.hero-redesign--main footer .butn.green {
  border-radius: 999px;
  background: #1f8a54;
  box-shadow: 0 10px 24px -10px rgba(47, 179, 107, .8);
  transition: transform .25s cubic-bezier(.22, .61, .36, 1), background-color .2s ease;
}

body.hero-redesign--main footer .butn.green:hover {
  transform: translateY(-2px);
  background: #23a061;
}

body.hero-redesign--main footer .footer-navbar_item {
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}

body.hero-redesign--main footer .footer-navbar_item:hover {
  opacity: 1;
  color: #9fe0b8;
}

body.hero-redesign--main footer .share-btn {
  background-color: rgba(255, 255, 255, .12);
  transition: background-color .2s ease, transform .2s ease;
}

body.hero-redesign--main footer .share-btn:hover {
  transform: translateY(-2px);
  background-color: #1f8a54;
}

/* Scroll reveal: hero-redesign.js marks blocks with [data-mp-reveal]
   and sets html.mp-anim, so content is never hidden without JS. */
@media (prefers-reduced-motion: no-preference) {
  html.mp-anim [data-mp-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--mp-delay, 0s);
  }

  html.mp-anim [data-mp-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  /* After the entrance, cards go back to their quick hover transitions. */
  html.mp-anim [data-mp-reveal].is-done {
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
  }
}

/* "Back to top" button, created by hero-redesign.js. */
.mp-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #167444;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(15, 42, 27, .55);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.22, .61, .36, 1), background-color .2s ease;
}

.mp-to-top.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mp-to-top:hover {
  background: #105d35;
}

.mp-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1099px) {
  body.hero-redesign--main .myrt-services-grid,
  body.hero-redesign--main .myrt-specialists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  body.hero-redesign--main .myrt-home-section {
    padding: 48px 0;
  }

  body.hero-redesign--main .myrt-home-container {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.hero-redesign--main .myrt-home-section__title {
    margin-bottom: 24px;
    font-size: 30px;
    line-height: 1.2;
  }

  body.hero-redesign--main .myrt-home-section__intro {
    margin-top: -12px;
    margin-bottom: 24px;
    font-size: 17px;
  }

  body.hero-redesign--main .myrt-home-section__actions {
    gap: 10px 16px;
    margin-top: 24px;
  }

  body.hero-redesign--main .myrt-home-services {
    padding-top: 40px;
    padding-bottom: 24px;
  }

  body.hero-redesign--main .myrt-services-grid,
  body.hero-redesign--main .myrt-specialists-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.hero-redesign--main .myrt-services-grid {
    gap: 12px;
  }

  body.hero-redesign--main .myrt-service-link {
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    min-height: 72px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 19px;
  }

  body.hero-redesign--main .myrt-service-link .myrt-service-link__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background-size: 26px 26px;
  }

  body.hero-redesign--main .myrt-home-specialists {
    padding-top: 24px;
  }

  body.hero-redesign--main .myrt-specialists-grid {
    max-width: 440px;
    gap: 20px;
    margin-right: auto;
    margin-left: auto;
  }

  body.hero-redesign--main .myrt-specialist-card__body {
    padding: 20px;
  }

  body.hero-redesign--main .myrt-faq-item__question {
    padding: 18px 60px 18px 18px;
    background-image: radial-gradient(circle at calc(100% - 31px) 50%, #f3f8f4 15px, transparent 16px);
    font-size: 17px;
    line-height: 1.4;
  }

  body.hero-redesign--main .myrt-faq-item__question::before,
  body.hero-redesign--main .myrt-faq-item__question::after {
    right: 24px;
  }

  body.hero-redesign--main .myrt-faq-item__answer {
    padding: 0 18px 20px;
  }

  body.hero-redesign--main .section.white.darker {
    padding: 56px 0 64px;
  }

  body.hero-redesign--main .section.white.darker .section-title {
    font-size: 30px;
  }

  .mp-to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 380px) {
  body.hero-redesign--main .myrt-home-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.hero-redesign--main .myrt-home-section__title {
    font-size: 28px;
  }

  body.hero-redesign--main .myrt-specialist-card__body {
    padding: 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hero-redesign--main .myrt-home-section .myrt-home-button,
  body.hero-redesign--main .myrt-service-link,
  body.hero-redesign--main .myrt-service-link__icon,
  body.hero-redesign--main .myrt-specialist-card,
  body.hero-redesign--main .myrt-specialist-card__portrait img,
  body.hero-redesign--main .article-card-item,
  body.hero-redesign--main .article-card-item .card_image img,
  .mp-to-top {
    transition: none;
  }

  body.hero-redesign--main .myrt-service-link:hover,
  body.hero-redesign--main .myrt-specialist-card:hover,
  body.hero-redesign--main .article-card-item:hover,
  body.hero-redesign--main .myrt-service-link:hover .myrt-service-link__icon,
  body.hero-redesign--main .myrt-specialist-card:hover .myrt-specialist-card__portrait img,
  body.hero-redesign--main .article-card-item:hover .card_image img {
    transform: none;
  }

  body.hero-redesign--main .myrt-faq-item[open] .myrt-faq-item__answer {
    animation: none;
  }
}
