/* MYRT booking refinement. Load after the existing template and hero styles. */

/* Keep the existing forest image, with a readable foreground and natural height. */
.hero-redesign--main .hero-page {
  display: block;
  min-height: 0;
}

.hero-redesign--main .hero-page__bg {
  overflow: hidden;
  background-image: none;
}

/* The forest photo lives on its own layer so it can slowly "breathe". */
.hero-redesign--main .hero-page__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/fon2.webp') center center / cover no-repeat;
  transform-origin: 60% 40%;
}

.hero-redesign--main .hero-page__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 78% 18%, rgba(214, 236, 190, .16), transparent 60%),
    linear-gradient(90deg, rgba(13, 31, 20, .88), rgba(13, 31, 20, .56) 62%, rgba(13, 31, 20, .18));
}

.hero-redesign--main .hero-page__container {
  display: block;
  flex: none;
  justify-content: flex-start;
  width: 100%;
  max-width: 1200px;
  padding: 0 45px;
}

.hero-redesign--main .hero-content {
  width: 100%;
  max-width: 740px;
  min-height: 0;
  padding: 56px 0 64px;
}

/* The earlier hero stylesheet sets these properties with !important. */
body.hero-redesign--main .hero-content .hero-content__title {
  width: 100%;
  max-width: 720px;
  min-height: 0;
  margin: 0;
  font-size: 48px !important;
  line-height: 1.12 !important;
  letter-spacing: -.02em !important;
  text-wrap: balance;
}

body.hero-redesign--main .hero-content .hero-content__subtitle {
  width: 100%;
  max-width: 600px;
  min-height: 0;
  margin: 18px 0 0;
  font-size: 21px !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
}

body.hero-redesign--main .hero-content .hero-content__price {
  max-width: 610px;
  margin: 22px 0 0;
  font-size: 18px !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  color: #fff !important;
}

.hero-redesign--main .hero-content__price strong {
  white-space: nowrap;
  font-family: inherit !important;
  font-weight: 700;
}

.hero-redesign--main .hero-content__price-link,
.hero-redesign--main .hero-content__price-link:hover {
  display: inline-block;
  padding: 5px 0;
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-redesign--main .hero-content__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 24px;
}

.hero-redesign--main .hero-content__btn {
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 50px;
  margin: 0;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #167444;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  box-shadow: 0 10px 24px -10px rgba(31, 138, 84, .75);
  transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s cubic-bezier(.22, .61, .36, 1),
              background-color .2s ease, border-color .2s ease;
}

.hero-redesign--main .hero-content__btn:hover {
  background: #105d35;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(31, 138, 84, .9);
}

.hero-redesign--main .hero-content__btn--secondary {
  border-color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-redesign--main .hero-content__btn--secondary:hover {
  background: rgba(255, 255, 255, .16);
  box-shadow: none;
}

body.hero-redesign--main .hero-content .hero-content__privacy {
  margin: 16px 0 0;
  font-size: 15px !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  color: #e2eee5 !important;
}

/* Small lock icon before the privacy note. */
.hero-redesign--main .hero-content__privacy::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  background: currentColor;
  opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Menu links: underline grows on hover; header icons lift slightly. */
.hero-redesign--main .site-header__nav > a.site-header__nav-link {
  position: relative;
}

.hero-redesign--main .site-header__nav > a.site-header__nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: #8fd1a8;
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}

.hero-redesign--main .site-header__nav > a.site-header__nav-link:hover::after {
  transform: scaleX(1);
}

.hero-redesign--main .site-header__icon {
  transition: background-color .2s ease, transform .2s ease;
}

.hero-redesign--main .site-header__icon:hover {
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, .14);
}

/* Hero entrance: slow zoom of the photo, text rises line by line.
   Enabled by hero-redesign.js (html.mp-anim), so nothing hides without JS. */
@media (prefers-reduced-motion: no-preference) {
  html.mp-anim .hero-redesign--main .hero-page__bg::before {
    animation: mp-breathe 28s ease-in-out infinite alternate;
  }

  html.mp-anim .hero-redesign--main .hero-content > * {
    opacity: 0;
    animation: mp-rise .9s cubic-bezier(.22, .61, .36, 1) forwards;
  }

  html.mp-anim .hero-redesign--main .hero-content > :nth-child(1) { animation-delay: .10s; }
  html.mp-anim .hero-redesign--main .hero-content > :nth-child(2) { animation-delay: .25s; }
  html.mp-anim .hero-redesign--main .hero-content > :nth-child(3) { animation-delay: .38s; }
  html.mp-anim .hero-redesign--main .hero-content > :nth-child(4) { animation-delay: .50s; }
  html.mp-anim .hero-redesign--main .hero-content > :nth-child(5) { animation-delay: .62s; }
}

@keyframes mp-breathe {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, 1%, 0); }
}

@keyframes mp-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero-redesign--main .hero-content__btn:focus-visible,
.hero-redesign--main .hero-content__price-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* Shared service offer, used only where the new myrt markup is present. */
.myrt-service-offer {
  margin: 24px 0 36px;
  padding: 28px;
  border: 1px solid #d8e4db;
  border-radius: 12px;
  background: #f4f8f4;
  color: #263d2e;
  font-family: 'Roboto Condensed', sans-serif;
  text-align: left;
}

.myrt-service-offer,
.myrt-service-offer * {
  box-sizing: border-box;
  min-width: 0;
  font-family: 'Roboto Condensed', sans-serif !important;
}

.myrt-service-offer .myrt-service-offer__content h2 {
  margin: 0 0 12px;
  color: #263d2e;
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.myrt-service-offer .myrt-service-offer__content p {
  max-width: 65ch;
  margin: 0 0 12px;
  color: #385340;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
}

.myrt-service-offer__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
  line-height: 1.4;
}

.myrt-service-offer__facts > *,
.myrt-service-offer__facts dd {
  margin: 0;
}

.myrt-service-offer__facts dt {
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 400;
  color: #385340;
}

.myrt-service-offer__facts strong {
  color: #234d33;
  font-size: 20px;
  font-weight: 700;
}

.myrt-service-offer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 20px;
}

.myrt-service-offer__actions .advice-btn,
.myrt-service-offer__actions .myrt-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  height: auto;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid #167444;
  border-radius: 8px;
  background: #167444;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  cursor: pointer;
}

.myrt-service-offer__actions .advice-btn:hover {
  background: #105d35;
  color: #fff !important;
}

.myrt-service-offer__actions .myrt-btn-secondary {
  background: transparent;
  color: #145f37;
}

.myrt-service-offer__actions .myrt-btn-secondary:hover {
  background: #e5f0e8;
  color: #145f37 !important;
}

.myrt-service-offer__actions > a:not(.advice-btn):not(.myrt-btn-secondary) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #145f37;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.myrt-service-offer a:focus-visible,
.myrt-service-offer button:focus-visible {
  outline: 3px solid #167444;
  outline-offset: 3px;
}

/* Booking and confirmation modals. Do not affect other legacy forms. */
#makeOrder,
#success {
  color: #263d2e;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#makeOrder *,
#success * {
  box-sizing: border-box;
}

/* Set text faces explicitly; leave social icon elements and their fonts alone. */
#makeOrder .myrt-booking-form p,
#makeOrder .myrt-booking-form label,
#makeOrder .myrt-booking-form input,
#makeOrder .myrt-booking-form select,
#makeOrder .myrt-booking-form textarea,
#makeOrder .myrt-booking-form h2,
#makeOrder .myrt-booking-form button,
#makeOrder .myrt-booking-form .sfg-form_desc,
#makeOrder .myrt-booking-form .myrt-form-error,
#success .modal-body h2,
#success .modal-body p,
#success .modal-body button {
  font-family: 'Roboto Condensed', sans-serif !important;
}

#makeOrder .modal-dialog,
#success .modal-dialog {
  width: calc(100% - 24px);
  max-width: 600px;
  min-height: 0;
  margin: 24px auto;
}

#makeOrder .modal-dialog {
  max-width: 520px;
}

#makeOrder .modal-dialog .modal-content,
#success .modal-dialog .modal-content {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #263d2e;
}

#makeOrder .myrt-booking-form {
  width: 100%;
  min-width: 0;
  margin: 0;
}

#makeOrder .modal-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  height: auto;
  min-height: 68px;
  padding: 20px 68px 16px 24px;
  border-bottom: 1px solid #d8e4db;
  border-radius: 12px 12px 0 0;
  background: #f2f7f3;
  color: #263d2e;
  text-align: left;
  line-height: 1.2;
}

#makeOrder .modal-title {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

#makeOrder .modal-header .close,
#success .modal-body .close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #263d2e;
  font: 400 30px/1 'Roboto Condensed', sans-serif;
  text-shadow: none;
  opacity: 1;
  cursor: pointer;
}

#makeOrder .modal-header .close:hover,
#success .modal-body .close:hover {
  background: #e3ece6;
}

#makeOrder .myrt-booking-form .modal-body {
  padding: 16px 24px 12px;
}

#makeOrder .myrt-form-note {
  margin: 0 0 12px;
  color: #405949;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
}

#makeOrder .myrt-form-note a,
#makeOrder .consultation-consent .sfg-form_desc a {
  color: #145f37;
  font-family: inherit !important;
  font-size: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#makeOrder .myrt-booking-context {
  margin: 0 0 12px;
  padding: 0;
  color: #385340;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#makeOrder .myrt-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 12px;
}

#makeOrder .myrt-booking-details {
  display: block;
  min-width: 0;
  margin: 4px 0 12px;
  padding: 0;
  border: 0;
}

#makeOrder .myrt-booking-details > summary {
  display: list-item;
  min-height: 44px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #145f37;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  list-style: disclosure-closed inside;
  cursor: pointer;
}

#makeOrder .myrt-booking-details[open] > summary {
  list-style-type: disclosure-open;
}

#makeOrder .myrt-booking-details > summary::marker {
  color: #167444;
  font-size: .8em;
}

#makeOrder .myrt-booking-details > summary::-webkit-details-marker {
  display: inline-block;
  color: #167444;
}

#makeOrder .myrt-booking-details > summary:focus-visible {
  outline: 3px solid #167444;
  outline-offset: 3px;
}

#makeOrder .myrt-details-optional {
  display: inline;
  margin-left: 6px;
  color: #607568;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px;
  font-weight: 400;
}

#makeOrder .myrt-booking-details__body {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 2px 0 6px;
}

/* Keep native disclosure behaviour even if older styles display its fields. */
#makeOrder .myrt-booking-details:not([open]) .myrt-booking-details__body {
  display: none !important;
}

#makeOrder .myrt-booking-details__body .myrt-form-grid {
  margin: 0 0 12px;
}

#makeOrder .myrt-booking-details__body > .myrt-form-note:last-child {
  margin: 8px 0 0;
}

#makeOrder .myrt-booking-form .myrt-field {
  position: relative;
  display: block;
  float: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

#makeOrder .myrt-booking-form .myrt-field-label {
  position: static;
  display: block;
  float: none;
  width: auto;
  height: auto;
  margin: 0 0 6px;
  padding: 0;
  transform: none;
  color: #263d2e;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
}

#makeOrder .myrt-field .sfg-form_input:where(:not([type="hidden"]):not([type="checkbox"])) {
  position: static;
  display: block;
  float: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #879b8e;
  border-radius: 6px;
  background: #fff;
  color: #263d2e;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: none;
  caret-color: #167444;
}

#makeOrder .myrt-field.select::before,
#makeOrder .myrt-field.select::after {
  content: none;
}

#makeOrder .myrt-field select.sfg-form_input {
  padding-right: 28px;
  appearance: auto;
  -webkit-appearance: menulist;
}

#makeOrder .myrt-field textarea.sfg-form_input {
  min-height: 68px;
  resize: vertical;
}

#makeOrder .myrt-field .myrt-form-note {
  margin: 6px 0 0;
}

#makeOrder .myrt-field .sfg-form_input[aria-invalid="true"] {
  border-color: #a53428;
  border-width: 2px;
}

#makeOrder [hidden] {
  display: none !important;
}

#makeOrder .myrt-form-error:not([hidden]) {
  display: block;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #b5473a;
  border-radius: 6px;
  background: #fff5f2;
  color: #7c251b;
  font-size: 16px;
  line-height: 1.45;
}

#makeOrder .consultation-captcha {
  display: flex;
  justify-content: center;
  width: auto;
  max-width: none;
  margin: 0;
  overflow: visible;
}

#makeOrder .consultation-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 0;
}

#makeOrder .consultation-consent .sfg-form_input[type="checkbox"] {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: block;
  width: 24px;
  height: 24px;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 1;
  clip: auto;
  clip-path: none;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: #167444;
}

#makeOrder .consultation-consent .sfg-form_input[type="checkbox"] + label {
  position: relative;
  z-index: 2;
  display: block;
  float: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

#makeOrder .consultation-consent .sfg-form_input[type="checkbox"] + label::before,
#makeOrder .consultation-consent .sfg-form_input[type="checkbox"] + label::after {
  content: none;
}

#makeOrder .consultation-consent .sfg-form_desc {
  float: none;
  flex: 1;
  min-width: 0;
  max-width: none;
  padding: 4px 0 0 6px;
  color: #405949;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

#makeOrder .myrt-booking-form .modal-footer {
  display: block;
  padding: 0 24px 24px;
  border: 0;
}

#makeOrder .modal-footer .advice-btn,
#success .modal-body .butn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 48px;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid #167444;
  border-radius: 8px;
  background: #167444;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  white-space: normal;
}

#makeOrder .modal-footer .advice-btn:hover,
#success .modal-body .butn:hover {
  background: #105d35;
  color: #fff !important;
}

#makeOrder .modal-footer .advice-btn:disabled {
  opacity: .65;
  cursor: wait;
}

#makeOrder input:focus-visible,
#makeOrder select:focus-visible,
#makeOrder textarea:focus-visible,
#makeOrder button:focus-visible,
#makeOrder a:focus-visible,
#success button:focus-visible,
#success a:focus-visible,
#makeOrder .consultation-consent input:focus-visible + label {
  outline: 3px solid #167444;
  outline-offset: 3px;
}

#success .modal-body {
  padding: 56px 24px 28px;
  text-align: center;
}

#success .modal-body > img {
  display: block;
  width: 64px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 18px;
}

#success .modal-body h2 {
  margin: 0 0 12px;
  color: #263d2e;
  font-family: inherit;
  font-size: 28px;
  line-height: 1.2;
}

#success .modal-body p {
  margin: 0 0 20px;
  color: #405949;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
}

@media (max-width: 991px) {
  /* The older single-column grid used an automatic content minimum. */
  .psycholog-online-page .psycholog-online-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .psycholog-online-page .psycholog-online-info-card {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .hero-redesign--main .hero-page__container {
    padding: 0 24px;
  }

  .hero-redesign--main .hero-content {
    padding: 40px 0 48px;
  }
}

@media (max-width: 600px) {
  .hero-redesign--main .hero-page__bg::before {
    background-position: 62% center;
  }

  .hero-redesign--main .hero-page__bg::after {
    background: linear-gradient(180deg, rgba(13, 31, 20, .62), rgba(13, 31, 20, .82));
  }

  .hero-redesign--main .hero-page__container {
    padding: 0 20px;
  }

  .hero-redesign--main .hero-content {
    padding: 28px 0 36px;
  }

  body.hero-redesign--main .hero-content .hero-content__title {
    width: 100%;
    min-height: 0;
    font-size: 34px !important;
    line-height: 1.12 !important;
  }

  body.hero-redesign--main .hero-content .hero-content__subtitle {
    margin-top: 14px;
    font-size: 18px !important;
  }

  body.hero-redesign--main .hero-content .hero-content__price {
    margin-top: 16px;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  .hero-redesign--main .hero-content__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
  }

  .hero-redesign--main .hero-content__btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 16px;
  }

  body.hero-redesign--main .hero-content .hero-content__privacy {
    margin-top: 12px;
    font-size: 14px !important;
  }

  .myrt-service-offer {
    margin: 20px 0 28px;
    padding: 20px 16px;
  }

  .myrt-service-offer .myrt-service-offer__content h2 {
    font-size: 24px;
  }

  .myrt-service-offer__facts {
    gap: 12px 20px;
  }

  .myrt-service-offer__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .myrt-service-offer__actions .advice-btn,
  .myrt-service-offer__actions .myrt-btn-secondary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  .myrt-service-offer__actions > a:not(.advice-btn):not(.myrt-btn-secondary) {
    justify-content: center;
  }

  #makeOrder .modal-dialog,
  #success .modal-dialog {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  #makeOrder .modal-header {
    padding: 20px 64px 16px 16px;
  }

  #makeOrder .modal-title {
    font-size: 24px;
  }

  #makeOrder .myrt-booking-form .modal-body {
    padding: 16px 16px 12px;
  }

  #makeOrder .myrt-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 14px 0 12px;
  }

  #makeOrder .myrt-booking-form .modal-footer {
    padding: 0 16px 20px;
  }

  #success .modal-body {
    padding: 56px 20px 24px;
  }
}

@media (max-width: 380px) {
  .hero-redesign--main .hero-page__container {
    padding: 0 16px;
  }

  body.hero-redesign--main .hero-content .hero-content__title {
    font-size: 30px !important;
  }

  /* Keep the existing 300px CAPTCHA fully visible even with a scrollbar. */
  #makeOrder .modal-dialog,
  #success .modal-dialog {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  #makeOrder .modal-dialog .modal-content,
  #success .modal-dialog .modal-content,
  #makeOrder .modal-header {
    border-radius: 0;
  }

  #makeOrder .myrt-booking-form .modal-body {
    padding-right: 12px;
    padding-left: 12px;
  }

  #makeOrder .consultation-captcha {
    margin: 0 -12px;
  }

  #makeOrder .myrt-booking-form .modal-footer {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-redesign--main .hero-content__btn,
  .hero-redesign--main .site-header__nav > a.site-header__nav-link::after,
  .myrt-service-offer__actions .advice-btn {
    transition: none;
  }
}

/* MYRT success modal layout — 2026-11-13. Scoped to confirmation only. */
#success .modal-dialog {
  display: flex;
  align-items: center;
  min-height: calc(100% - 48px);
  max-width: 480px;
  margin: 24px auto;
}

#success .modal-dialog .modal-content {
  padding: 0;
}

#success .modal-body {
  padding: 56px 28px 28px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
}

#success .modal-body > img {
  display: none;
}

#success .modal-body h2 {
  font-weight: 700;
}

#success .modal-body p {
  margin: 0;
}

#success .social_icons_cont {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  color: #405949;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

#success .social_icons_cont .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

#success .social_icons_cont .share-btn i {
  line-height: 1;
}

#success .modal-body > .butn {
  width: 180px;
  max-width: 100%;
  margin: 24px auto 0;
}

@media (max-width: 600px) {
  #success .modal-dialog {
    width: calc(100% - 16px);
    min-height: calc(100% - 16px);
    margin: 8px auto;
  }

  #success .modal-body {
    padding: 52px 20px 24px;
  }
}
