/* Shared styles for front-page.php, about-custom.php, corporate-custom.php and contacts-custom.php */

/*
 * Optima injects a dark body background via theme options (gt3_custom_styles).
 * These pages are designed on a light canvas.
 *
 * Important: do NOT set overflow-x on .site_wrapper / .main_wrapper.
 * A non-visible overflow-x forces overflow-y to auto and traps page scroll.
 */
html:has(body.mr-custom-page),
body.mr-custom-page {
    background: #ffffff !important;
    color: #42474c !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.mr-custom-page .site_wrapper,
body.mr-custom-page .main_wrapper {
    background: #ffffff !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

body.mr-custom-page .mr-page h1,
body.mr-custom-page .mr-page h2,
body.mr-custom-page .mr-page h3,
body.mr-custom-page .mr-page h1 a,
body.mr-custom-page .mr-page h2 a,
body.mr-custom-page .mr-page h3 a,
body.mr-custom-page .mr-page h1 span,
body.mr-custom-page .mr-page h2 span,
body.mr-custom-page .mr-page h3 span {
    color: #314a42;
}

.mr-page {
    --mr-green-900: #314a42;
    --mr-green-800: #3c5b50;
    --mr-green-700: #3b675a;
    --mr-green-500: #739289;
    --mr-green-200: #d2e1dc;
    --mr-green-100: #eaefed;
    --mr-purple-600: #7256b6;
    --mr-purple-200: #d2c2f8;
    --mr-text: #42474c;
    --mr-text-soft: #474d4e;
    --mr-muted: #7c8689;
    --mr-border: #d5e3df;
    --mr-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --mr-duration: 300ms;

    position: relative;
    z-index: 0;
    padding-bottom: 100px;
    overflow: visible;
    background: #ffffff;
    color: var(--mr-text);
    font-family: Montserrat, sans-serif;
}

.mr-page *,
.mr-page *::before,
.mr-page *::after {
    box-sizing: border-box;
}

.mr-page p {
    margin: 0;
}

.mr-page p + p {
    margin-top: 1em;
}

.mr-page ul,
.mr-page ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mr-page ul li,
.mr-page ol li {
    padding: 0;
}

.mr-page img {
    max-width: 100%;
    height: auto;
}

.mr-page h1,
.mr-page h2,
.mr-page h3 {
    margin: 0;
    font-family: Montserrat, sans-serif;
    letter-spacing: 0;
}

.mr-page button {
    margin: 0;
    font-family: inherit;
    letter-spacing: inherit;
    text-transform: none;
}

.mr-page .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mr-page a:focus-visible,
.mr-page button:focus-visible,
.mr-page input:focus-visible,
.mr-page select:focus-visible,
.mr-page textarea:focus-visible,
.mr-page [tabindex]:focus-visible {
    outline: 3px solid var(--mr-purple-600) !important;
    outline-offset: 3px;
}

/* Sections and headings */

.mr-section {
    margin-top: 100px;
}

.mr-section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 36px;
}

.mr-section-heading .mr-section-text {
    max-width: 1056px;
    color: var(--mr-text-soft);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.mr-title {
    color: var(--mr-green-900);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.22;
}

.mr-highlight {
    color: var(--mr-green-500);
}

.mr-heading-accent {
    display: block;
    width: 75px;
    height: 2px;
    background: var(--mr-green-200);
}

.mr-section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 36px;
}

.mr-sticky {
    position: sticky;
    top: 140px;
}

/* Buttons */

.mr-page .mr-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 15px 32px;
    border: 1px solid var(--mr-green-800);
    border-radius: 15px;
    background: var(--mr-green-800);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.42px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--mr-duration) var(--mr-ease), border-color var(--mr-duration) var(--mr-ease), color var(--mr-duration) var(--mr-ease), box-shadow var(--mr-duration) var(--mr-ease), transform var(--mr-duration) var(--mr-ease);
}

.mr-page .mr-button:hover,
.mr-page .mr-button:focus-visible {
    border-color: #2b443b;
    background: #2b443b;
    color: #fff;
    box-shadow: 0 8px 20px rgba(49, 74, 66, 0.22);
    transform: translateY(-2px);
}

.mr-page .mr-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.mr-button-icon {
    flex: 0 0 auto;
    transition: transform var(--mr-duration) var(--mr-ease);
}

.mr-button:hover .mr-button-icon,
.mr-button:focus-visible .mr-button-icon {
    transform: translateX(4px);
}

.mr-page .mr-button--light {
    border-color: #fff;
    background: #fff;
    color: var(--mr-text);
}

.mr-page .mr-button--light:hover,
.mr-page .mr-button--light:focus-visible {
    border-color: #fff;
    background: var(--mr-green-100);
    color: var(--mr-green-900);
}

.mr-page .mr-button--small {
    min-height: 0;
    padding: 16px 32px;
}

.mr-page .mr-button--block {
    display: flex;
    width: 100%;
}

/* Photographic page hero (about, corporate, contacts) */

.mr-page-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 420px;
    padding: 64px;
    overflow: hidden;
    border-radius: 20px;
    background: #75688d;
    isolation: isolate;
}

.mr-page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.mr-page-hero-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(134, 123, 169, 0.9) 7.69%, rgba(68, 121, 136, 0.5) 100%), linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), linear-gradient(rgba(38, 38, 38, 0.5), rgba(38, 38, 38, 0.5));
}

.mr-page-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 790px;
    color: #fff;
}

.mr-page-hero-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
}

.mr-page-hero-eyebrow {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.32px;
    text-transform: uppercase;
}

.mr-page-hero-title {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.22;
}

.mr-page-hero-text,
.mr-page-hero-text p {
    max-width: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}

body.mr-custom-page .mr-page .mr-page-hero-title,
body.mr-custom-page .mr-page .mr-page-hero-eyebrow,
body.mr-custom-page .mr-page .mr-page-hero-text,
body.mr-custom-page .mr-page .mr-page-hero-text p {
    color: #fff;
}

/* Gradient call-to-action banner */

.mr-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px 64px;
    width: 100%;
    padding: 32px 64px;
    border-radius: 20px;
    background: linear-gradient(92.13deg, rgba(68, 121, 136, 0.75) 2.45%, rgba(114, 86, 182, 0.75) 98.78%);
    color: #fff;
}

.mr-cta-banner-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.mr-cta-banner-title {
    max-width: 675px;
    margin: 0;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.mr-cta-banner-text {
    max-width: 581px;
    margin-top: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.mr-cta-banner-text p {
    margin: 0;
}

.mr-cta-banner .mr-button,
.mr-cta-banner .mr-platform-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 15px 32px;
    border: 1px solid #fff;
    border-radius: 15px;
    background: #fff;
    color: #42474c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.42px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.mr-cta-banner .mr-button:hover,
.mr-cta-banner .mr-button:focus-visible,
.mr-cta-banner .mr-platform-button:hover,
.mr-cta-banner .mr-platform-button:focus-visible {
    border-color: #fff;
    background: #eaefed;
    color: #314a42;
}

/* Accordion (home steps, FAQ) */

.mr-accordion-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mr-accordion-panel {
    display: none;
}

.mr-plus {
    position: relative;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-left: auto;
}

.mr-plus::before,
.mr-plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #cacecf;
    transform: translate(-50%, -50%);
    transition: transform var(--mr-duration) var(--mr-ease), background-color var(--mr-duration) var(--mr-ease);
}

.mr-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.mr-accordion-item.is-open .mr-plus::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Sliders (Slick) */

.mr-page .slick-track {
    display: flex;
}

.mr-page .slick-slide {
    height: auto;
}

.mr-page .slick-slide > div {
    height: 100%;
}

.mr-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
}

.mr-slider-controls.is-hidden {
    display: none;
}

.mr-slider-dots .slick-dots {
    position: static;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: auto;
    margin: 0;
    padding: 0;
}

.mr-page .mr-slider-dots .slick-dots li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
}

.mr-page .mr-slider-dots .slick-dots li button {
    width: 10px;
    height: 10px;
    margin: 0;
    padding: 0;
    border: 1px solid #b3bac5;
    border-radius: 5px;
    background: #fff;
    color: transparent;
    font-size: 0;
    line-height: 0;
    transition: width var(--mr-duration) var(--mr-ease), background-color var(--mr-duration) var(--mr-ease);
}

.mr-page .mr-slider-dots .slick-dots li button::before {
    display: none;
}

.mr-page .mr-slider-dots .slick-dots li.slick-active button {
    width: 14px;
    height: 7px;
    border: 0;
    border-radius: 6px;
    background: var(--mr-green-700);
    box-shadow: 0 0 0 5px rgba(59, 103, 90, 0.5);
}

.mr-slider-arrows {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mr-page .mr-slider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #899294;
    cursor: pointer;
    transition: color var(--mr-duration) var(--mr-ease), background-color var(--mr-duration) var(--mr-ease), opacity var(--mr-duration) var(--mr-ease);
}

.mr-page .mr-slider-arrow.is-active {
    opacity: 1;
}

.mr-page .mr-slider-arrow:hover,
.mr-page .mr-slider-arrow:focus-visible {
    background: var(--mr-green-100);
    color: var(--mr-green-800);
}

.mr-page .mr-slider-arrow.slick-disabled,
.mr-page .mr-slider-arrow[aria-disabled="true"] {
    opacity: 0.35;
    color: #899294;
    cursor: default;
    pointer-events: none;
}

/* Logo slider (about, corporate) */

.mr-logo-slider {
    position: relative;
}

.mr-logo-slider-track:not(.slick-initialized) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 48px;
}

.mr-logo-slider .slick-list {
    margin: 0 -24px;
}

.mr-page .mr-logo-slide {
    padding: 0 24px;
}

.mr-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 230px;
    height: 106px;
    margin: 0 auto;
    border-radius: 12px;
    transition: transform var(--mr-duration) var(--mr-ease);
}

a.mr-logo-link:hover,
a.mr-logo-link:focus-visible {
    transform: scale(1.05);
}

.mr-logo-image {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: contain;
}

.mr-logo-slider .mr-slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

@media screen and (max-width: 991px) {
    .mr-section {
        margin-top: 72px;
    }

    .mr-title {
        font-size: 30px;
    }

    .mr-sticky {
        position: static;
    }

    .mr-page-hero-inner {
        padding: 48px 40px;
    }

    .mr-page-hero-title {
        font-size: 32px;
    }

    .mr-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 40px;
    }

    .mr-cta-banner-title {
        font-size: 28px;
    }

    .mr-cta-banner {
        gap: 24px;
    }
}

@media screen and (max-width: 767px) {
    .mr-page {
        padding-bottom: 64px;
    }

    .mr-section {
        margin-top: 56px;
    }

    .mr-section-heading {
        margin-bottom: 28px;
    }

    .mr-title {
        font-size: 26px;
    }

    .mr-section-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .mr-page-hero-inner {
        min-height: 0;
        padding: 40px 24px;
        border-radius: 20px;
    }

    .mr-page-hero-eyebrow {
        font-size: 14px;
    }

    .mr-page-hero-title {
        font-size: 28px;
    }

    .mr-page-hero-text,
    .mr-page-hero-text p {
        font-size: 15px;
    }

    .mr-cta-banner {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .mr-cta-banner-title {
        font-size: 28px;
    }

    .mr-cta-banner .mr-button,
    .mr-page .mr-section-head-row .mr-button {
        width: 100%;
    }

    .mr-logo-slider {
        padding-block: 24px;
    }

    .mr-logo-link {
        height: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mr-page *,
    .mr-page *::before,
    .mr-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Home */
.mr-home-decor {
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 820px;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(210, 194, 248, 0.35), transparent 42%),
        radial-gradient(circle at 88% 8%, rgba(210, 225, 220, 0.55), transparent 38%);
}

.mr-home-hero {
    padding-top: 48px;
}

.mr-home-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 583px);
    gap: 48px 64px;
    align-items: center;
}

.mr-home-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 620px;
}

body.mr-custom-page .mr-home-hero-eyebrow,
.mr-home-hero-eyebrow {
    color: #739289 !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.mr-custom-page .mr-home-hero-title,
.mr-home-hero-title {
    color: #314a42 !important;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
}

body.mr-custom-page .mr-home-hero-text,
.mr-home-hero-text {
    max-width: 540px;
    color: #474d4e !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

body.mr-custom-page .mr-title {
    color: #314a42 !important;
}

.mr-page .mr-button--hero {
    margin-top: 8px;
}

.mr-home-hero-visual {
    position: relative;
}

.mr-home-hero-media {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: transparent;
    cursor: pointer;
}

.mr-home-hero-image,
.mr-home-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.mr-home-hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(49, 74, 66, 0.25);
    transform: translate(-50%, -50%);
    transition: transform var(--mr-duration) var(--mr-ease), background-color var(--mr-duration) var(--mr-ease);
}

.mr-video-trigger:hover .mr-home-hero-play,
.mr-video-trigger:focus-visible .mr-home-hero-play {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.06);
}

.mr-home-hero-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(49, 74, 66, 0.12);
    color: var(--mr-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.mr-home-hero-check {
    flex: 0 0 auto;
    margin-top: 2px;
}

.mr-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.mr-support-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    overflow: hidden;
    border-radius: 24px;
    outline: none;
    transition: transform var(--mr-duration) var(--mr-ease), box-shadow var(--mr-duration) var(--mr-ease);
}

.mr-support-card--peach { background: #f6ebe3; }
.mr-support-card--lavender { background: #ebe6f7; }
.mr-support-card--blue { background: #e4eaf5; }

.mr-support-card:hover,
.mr-support-card:focus-visible,
.mr-support-card.is-active {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(49, 74, 66, 0.12);
}

.mr-support-card-media {
    position: absolute;
    inset: 0 0 38%;
}

.mr-support-card-media img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.mr-support-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    min-height: 420px;
    padding: 28px;
    margin-top: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.88) 18%, #ffffff 42%);
}

.mr-support-card--peach .mr-support-card-body {
    background: linear-gradient(180deg, rgba(246, 235, 227, 0) 0%, rgba(246, 235, 227, 0.92) 18%, #f6ebe3 42%);
}

.mr-support-card--lavender .mr-support-card-body {
    background: linear-gradient(180deg, rgba(235, 230, 247, 0) 0%, rgba(235, 230, 247, 0.92) 18%, #ebe6f7 42%);
}

.mr-support-card--blue .mr-support-card-body {
    background: linear-gradient(180deg, rgba(228, 234, 245, 0) 0%, rgba(228, 234, 245, 0.92) 18%, #e4eaf5 42%);
}

body.mr-custom-page .mr-support-card-title,
.mr-support-card-title {
    color: #314a42 !important;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.mr-support-card-line {
    display: block;
    width: 56px;
    height: 2px;
    background: var(--mr-green-200);
}

.mr-support-card-reveal {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mr-support-card-reveal > .mr-support-card-text {
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mr-support-card:hover .mr-support-card-reveal,
.mr-support-card:focus-within .mr-support-card-reveal,
.mr-support-card.is-active .mr-support-card-reveal {
    grid-template-rows: 1fr;
}

.mr-support-card:hover .mr-support-card-text,
.mr-support-card:focus-within .mr-support-card-text,
.mr-support-card.is-active .mr-support-card-text {
    opacity: 1;
    transform: none;
}

.mr-support-card-text {
    color: var(--mr-text-soft);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
}

.mr-page .mr-button--icon {
    align-self: flex-start;
    min-width: 0;
    padding-inline: 22px;
}

.mr-home-about-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
    overflow: hidden;
    border-radius: 24px;
    background: #ebe6f7;
}

.mr-home-about-media {
    min-height: 360px;
}

.mr-home-about-image,
.mr-home-about-media img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.mr-home-about-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 48px 56px;
}

.mr-home-about-title {
    color: var(--mr-green-900);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
}

.mr-home-about-text {
    max-width: 520px;
    color: var(--mr-text-soft);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.mr-home-steps-grid {
    display: grid;
    grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
    gap: 48px 80px;
    align-items: start;
}

.mr-home-steps-intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mr-home-steps-intro .mr-title {
    margin-bottom: 8px;
}

.mr-home-steps-label {
    margin-top: 16px;
    color: var(--mr-muted);
    font-size: 14px;
    font-weight: 600;
}

.mr-app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.mr-app-link {
    display: inline-flex;
    transition: transform var(--mr-duration) var(--mr-ease), opacity var(--mr-duration) var(--mr-ease);
}

.mr-app-link:hover,
.mr-app-link:focus-visible {
    transform: translateY(-2px);
    opacity: 0.92;
}

.mr-app-link img {
    display: block;
    width: auto;
    height: 56px;
}

.mr-home-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mr-step {
    border-bottom: 1px solid var(--mr-border);
}

.mr-step-toggle {
    gap: 18px;
    padding: 22px 0;
}

.mr-step-icon {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
}

.mr-step-icon-static {
    display: block;
    width: 56px;
    height: 56px;
}

.mr-step-title {
    flex: 1 1 auto;
    color: var(--mr-green-900);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.mr-step-panel {
    padding: 0 0 24px 74px;
    color: var(--mr-text-soft);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.mr-specialists-slider {
    margin: 0 -12px;
}

.mr-specialist-slide {
    padding: 0 12px;
    height: auto;
}

.mr-specialist-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    border: 1px solid var(--mr-border);
    border-radius: 20px;
    background: #fff;
    transition: transform var(--mr-duration) var(--mr-ease), box-shadow var(--mr-duration) var(--mr-ease);
}

.mr-specialist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(49, 74, 66, 0.1);
}

.mr-specialist-photo {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 1 / 1.05;
    background: #f4f5f4;
}

.mr-specialist-photo > img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 450ms var(--mr-ease);
}

.mr-specialist-card:hover .mr-specialist-photo > img {
    transform: scale(1.04);
}

.mr-specialist-photo-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: rgba(49, 74, 66, 0.28);
    opacity: 0;
    transition: opacity var(--mr-duration) var(--mr-ease);
}

.mr-specialist-card:hover .mr-specialist-photo-overlay,
.mr-specialist-card:focus-within .mr-specialist-photo-overlay {
    opacity: 1;
}

.mr-specialist-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 4px 8px;
}

.mr-specialist-name {
    font-size: 18px;
    font-weight: 700;
}

.mr-specialist-name a {
    color: var(--mr-green-900);
    text-decoration: none;
}

.mr-specialist-name a:hover,
.mr-specialist-name a:focus-visible {
    color: var(--mr-green-700);
}

.mr-specialist-role {
    color: var(--mr-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.mr-specialist-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 4px 14px;
}

.mr-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mr-rating-stars {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 14px;
    background: #d9dde0;
    border-radius: 2px;
    overflow: hidden;
}

.mr-rating-stars-fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    background: #f0b429;
}

.mr-rating-value {
    color: var(--mr-text);
    font-size: 13px;
    font-weight: 700;
}

.mr-specialist-languages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mr-muted);
    font-size: 12px;
    font-weight: 600;
}

.mr-specialist-languages img {
    width: 22px;
    height: auto;
    border-radius: 2px;
}

.mr-specialist-book {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--mr-green-100);
    color: var(--mr-green-900);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background-color var(--mr-duration) var(--mr-ease), color var(--mr-duration) var(--mr-ease);
}

.mr-specialist-book:hover,
.mr-specialist-book:focus-visible {
    background: var(--mr-green-800);
    color: #fff;
}

.mr-home-cta-inner {
    position: relative;
    display: grid;
    align-items: center;
    border-radius: 24px;
    background: #ebe6f7;
    overflow: hidden;
}

.mr-home-cta-inner.has-image {
    grid-template-columns: minmax(240px, 520px) minmax(0, 1fr);
}

.mr-home-cta-media {
    padding: 24px 0 0 24px;
}

.mr-home-cta-media img {
    display: block;
    margin: 0 auto;
}

.mr-home-cta-box {
    padding: 48px 56px;
}

.mr-home-cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    max-width: 520px;
}

.mr-home-cta-title {
    color: var(--mr-green-900);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
}

.mr-home-cta-text {
    color: var(--mr-text-soft);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.mr-video-dialog {
    width: min(960px, calc(100vw - 32px));
    max-width: 960px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #000;
    overflow: hidden;
}

.mr-video-dialog::backdrop {
    background: rgba(20, 30, 28, 0.72);
}

.mr-page .mr-video-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    background-image: none;
    color: var(--mr-green-900);
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    appearance: none;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.mr-page .mr-video-dialog-close::before,
.mr-page .mr-video-dialog-close::after {
    display: none;
    content: none;
}

.mr-page .mr-video-dialog-close:hover {
    background: #fff;
    color: var(--mr-green-800);
}

.mr-video-dialog-frame {
    aspect-ratio: 16 / 9;
    background: #000;
}

.mr-video-dialog-frame iframe,
.mr-video-dialog-frame video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Corporate */
.mr-corp-solutions-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.mr-corp-solution {
    display: grid;
    grid-template-columns: minmax(280px, 706px) minmax(0, 1fr);
    gap: 48px 64px;
    align-items: center;
}

.mr-corp-solution--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 706px);
}

.mr-corp-solution--reverse .mr-corp-solution-media {
    order: 2;
}

.mr-corp-solution--reverse .mr-corp-solution-copy {
    order: 1;
}

.mr-corp-solution-image,
.mr-corp-solution-media img {
    display: block;
    width: 100%;
    border-radius: 20px;
}

.mr-corp-solution-title {
    color: var(--mr-green-900);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
}

.mr-corp-solution-text {
    margin-top: 20px;
    color: var(--mr-text-soft);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.mr-corp-trainings {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin-top: 100px;
    overflow: hidden;
    border-radius: 20px;
}

.mr-corp-training {
    position: relative;
    min-height: 358px;
    overflow: hidden;
}

.mr-corp-training-media,
.mr-corp-training-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.mr-corp-training::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(49, 74, 66, 0.15) 20%, rgba(49, 74, 66, 0.78) 100%);
}

.mr-corp-training-title {
    position: absolute;
    z-index: 1;
    right: 20px;
    bottom: 24px;
    left: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.mr-corp-training:hover .mr-corp-training-image {
    transform: scale(1.05);
    transition: transform 500ms var(--mr-ease);
}

.mr-corp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.mr-corp-benefit {
    padding: 24px;
    border: 1px solid var(--mr-border);
    border-radius: 21px;
    background: #fff;
    transition: transform var(--mr-duration) var(--mr-ease), box-shadow var(--mr-duration) var(--mr-ease);
}

.mr-corp-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(49, 74, 66, 0.08);
}

.mr-corp-benefit-title {
    color: var(--mr-green-900);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.mr-corp-benefit-text {
    margin-top: 12px;
    color: var(--mr-text-soft);
    font-size: 16px;
    line-height: 1.45;
}

.mr-corp-process-grid {
    display: grid;
    grid-template-columns: minmax(240px, 562px) minmax(0, 1fr);
    gap: 48px 36px;
    align-items: start;
}

.mr-corp-process-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mr-corp-process-step {
    padding: 26px 32px;
    border: 1px solid #e7e1f5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(114, 86, 182, 0.06);
}

.mr-corp-process-step-title {
    color: var(--mr-green-900);
    font-size: 20px;
    font-weight: 700;
}

.mr-corp-process-step-text {
    margin-top: 12px;
    color: var(--mr-text-soft);
    font-size: 16px;
    line-height: 1.5;
}

.mr-corp-faq-title {
    margin-bottom: 24px;
}

.mr-faq-item {
    border-bottom: 1px solid var(--mr-border);
}

.mr-faq-toggle {
    gap: 24px;
    padding: 22px 0;
}

.mr-faq-question-text {
    flex: 1 1 auto;
    color: var(--mr-green-900);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.mr-faq-panel {
    padding: 0 0 22px;
    color: var(--mr-text-soft);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.mr-faq-item .mr-plus {
    width: 42px;
    height: 42px;
    border: 1px solid #cacecf;
    border-radius: 50%;
}

.mr-faq-item .mr-plus::before,
.mr-faq-item .mr-plus::after {
    width: 16px;
}

/* Contacts */
.mr-contacts-layout {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 40px 64px;
    align-items: start;
    padding: 40px;
    border-radius: 24px;
    background: #f4f6f7;
}

.mr-contacts-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mr-contacts-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 22px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(49, 74, 66, 0.05);
}

.mr-contacts-card-icon {
    flex: 0 0 auto;
}

.mr-contacts-card-label {
    color: var(--mr-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mr-contacts-card-value {
    display: inline-block;
    margin-top: 4px;
    color: var(--mr-green-900);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

a.mr-contacts-card-value:hover,
a.mr-contacts-card-value:focus-visible {
    color: var(--mr-green-700);
}

.mr-contacts-social {
    margin-top: 28px;
}

.mr-contacts-social-label {
    margin-bottom: 12px;
    color: var(--mr-text);
    font-size: 16px;
    font-weight: 600;
}

.mr-contacts-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mr-contacts-social-link {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    transition: transform var(--mr-duration) var(--mr-ease), background-color var(--mr-duration) var(--mr-ease);
}

.mr-contacts-social-link:hover,
.mr-contacts-social-link:focus-visible {
    transform: translateY(-2px);
    background: var(--mr-green-100);
}

.mr-contacts-social-icon {
    width: 20px;
    height: 20px;
}

.mr-contacts-form-panel {
    padding: 8px 0;
}

.mr-contacts-form-title {
    color: #3c5b50;
    font-size: 36px;
    font-weight: 800;
    line-height: normal;
}

.mr-contacts-form-intro {
    margin-top: 17px;
    margin-bottom: 27px;
    color: #323c30;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.mr-contacts-form-notice {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.mr-contacts-form-notice--success {
    background: #e8f5ef;
    color: #1f664f;
}

.mr-contacts-form-notice--error {
    background: #fdecea;
    color: #a12828;
}

.mr-contacts-honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.mr-contacts-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mr-contacts-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
}

.mr-contacts-field--full {
    margin-top: 20px;
}

.mr-contacts-field label {
    display: block;
    margin: 0;
    color: #474d4e;
    font-size: 16px;
    font-weight: 700;
    line-height: 33px;
}

.mr-required {
    color: #eb5757;
}

body.mr-custom-page .mr-contacts .mr-contacts-field input,
body.mr-custom-page .mr-contacts .mr-contacts-field select,
body.mr-custom-page .mr-contacts .mr-contacts-field textarea,
body.mr-custom-page .mr-contacts .mr-contacts-form-shortcode input:where(:not([type="checkbox"], [type="radio"])),
body.mr-custom-page .mr-contacts .mr-contacts-form-shortcode select,
body.mr-custom-page .mr-contacts .mr-contacts-form-shortcode textarea {
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 43px;
    background-color: #fff;
    color: #474d4e;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 32px;
    box-shadow: none;
}

body.mr-custom-page .mr-contacts .mr-contacts-field textarea,
body.mr-custom-page .mr-contacts .mr-contacts-form-shortcode textarea {
    height: 151px;
    min-height: 151px;
    padding: 16px;
    border-radius: 21px;
    line-height: 1.5;
    resize: vertical;
}

body.mr-custom-page .mr-contacts .mr-contacts-field select,
body.mr-custom-page .mr-contacts .mr-contacts-form-shortcode select {
    appearance: none;
    padding-right: 48px;
    color: #737373;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ccc' d='M1 1.2 6 6.8 11 1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 22px center;
}

body.mr-custom-page .mr-contacts .mr-contacts-field select:has(option:checked:not([value=""])),
body.mr-custom-page .mr-contacts .mr-contacts-form-shortcode select:has(option:checked:not([value=""])) {
    color: #474d4e;
}

body.mr-custom-page .mr-contacts .mr-contacts-field input:focus,
body.mr-custom-page .mr-contacts .mr-contacts-field select:focus,
body.mr-custom-page .mr-contacts .mr-contacts-field textarea:focus,
body.mr-custom-page .mr-contacts .mr-contacts-form-shortcode input:where(:not([type="checkbox"], [type="radio"])):focus,
body.mr-custom-page .mr-contacts .mr-contacts-form-shortcode select:focus,
body.mr-custom-page .mr-contacts .mr-contacts-form-shortcode textarea:focus {
    border-color: #739289;
    box-shadow: none;
    outline: none;
}

.mr-contacts-checks {
    display: flex;
    flex-direction: column;
    gap: 27px;
    margin: 27px 0;
}

.mr-contacts-check {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    color: #31373e;
    font-size: 16px;
    font-weight: 500;
    line-height: 32px;
    cursor: pointer;
}

.mr-contacts-check input {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    margin: 5px 0 0;
    accent-color: #3c5b50;
}

.mr-contacts-check a {
    color: #739289;
    font-weight: 700;
    text-decoration: underline;
}

.mr-contacts-submit {
    width: 100%;
    min-height: 56px;
    padding: 16px 32px;
    border-radius: 15px;
}

.mr-contacts-offices-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.mr-contacts-office {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--mr-border);
    border-radius: 20px;
    background: #fff;
    transition: transform var(--mr-duration) var(--mr-ease), box-shadow var(--mr-duration) var(--mr-ease);
}

.mr-contacts-office:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(49, 74, 66, 0.1);
}

.mr-contacts-office-map,
.mr-contacts-office-media img {
    display: block;
    width: 100%;
    height: 220px !important;
    object-fit: cover;
}

.mr-contacts-office-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.mr-contacts-office-title {
    color: var(--mr-green-900);
    font-size: 20px;
    font-weight: 700;
}

.mr-contacts-office-address {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--mr-text-soft);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.mr-contacts-office-pin {
    flex: 0 0 auto;
    margin-top: 2px;
}

.mr-contacts-office-body .mr-button {
    margin-top: auto;
}

/* Responsive */
@media screen and (max-width: 1199px) {
    .mr-home-hero-title {
        font-size: 40px;
    }

    .mr-support-grid,
    .mr-corp-benefits-grid,
    .mr-contacts-offices-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 991px) {
    .mr-home-hero-shell,
    .mr-home-about-inner,
    .mr-home-steps-grid,
    .mr-home-cta-inner.has-image,
    .mr-corp-solution,
    .mr-corp-solution--reverse,
    .mr-corp-process-grid,
    .mr-contacts-layout {
        grid-template-columns: 1fr;
    }

    .mr-corp-solution--reverse .mr-corp-solution-media,
    .mr-corp-solution--reverse .mr-corp-solution-copy {
        order: initial;
    }

    .mr-home-about-media,
    .mr-home-cta-media {
        min-height: 280px;
        padding: 0;
    }

    .mr-home-about-panel,
    .mr-home-cta-box {
        padding: 32px;
    }

    .mr-contacts-layout {
        padding: 24px;
    }

    .mr-corp-trainings {
        margin-top: 64px;
    }

    .mr-corp-solutions-list {
        gap: 64px;
    }
}

@media screen and (max-width: 767px) {
    .mr-home-hero {
        padding-top: 24px;
    }

    .mr-home-hero-title {
        font-size: 32px;
    }

    .mr-home-hero-caption {
        position: static;
        margin-top: 16px;
    }

    .mr-support-grid,
    .mr-corp-benefits-grid,
    .mr-contacts-offices-grid,
    .mr-corp-trainings,
    .mr-contacts-form-grid {
        grid-template-columns: 1fr;
    }

    .mr-support-card,
    .mr-support-card-body {
        min-height: 360px;
    }

    .mr-step-panel {
        padding-left: 0;
    }

    .mr-home-about-title,
    .mr-home-cta-title {
        font-size: 26px;
    }

    .mr-corp-training {
        min-height: 280px;
    }

    .mr-page .mr-button--block,
    .mr-contacts-submit {
        width: 100%;
    }
}
