@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-ExtraBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 800;
}

.mera-home {
    position: relative;
    z-index: 1;
    background: #ffffff;
    color: #0a090b;
    padding-top: 30px;
}

.mera-home-feature h3 a { color: inherit; text-decoration: none; }
.mera-home-feature h3 a:hover { text-decoration: underline; }
.mera-home-hero-copy p,
.mera-home-section-heading p,
.mera-home-feature p,
.mera-home-alliance .innovation-unity-item p { white-space: pre-line; }

.mera-home-shell {
    width: min(1280px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.mera-home-hero {
    display: flex;
    min-height: 647px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 72px;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 96% 115%, #b6ee4c 0, #28c8b7 24%, transparent 51%),
        radial-gradient(circle at 84% 18%, #20c8c7 0, transparent 42%),
        linear-gradient(112deg, #1737b7 0%, #1263d6 45%, #14adcb 77%, #73d98c 100%);
}

.mera-home-hero-copy {
    display: flex;
    max-width: 1026px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.mera-home-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: 54px;
    font-weight: 800;
    line-height: 1.14;
}

.mera-home-hero-copy p {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 32px;
}

.mera-home-catalog {
    display: flex;
    width: min(675px, 100%);
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mera-home-search {
    display: flex;
    width: 100%;
    height: 64px;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    border: 2px solid #e6e6e6;
    border-radius: 12px;
    background: #ffffff;
}

.mera-home-search:focus-within {
    border-color: #0a47c2;
    box-shadow: 0 0 0 3px rgba(10, 71, 194, 0.15);
}

.mera-home-search img {
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
}

.mera-home-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #0a090b;
    font: inherit;
    font-size: 18px;
    line-height: 1;
}

.mera-home-search input::placeholder {
    color: #7f7d83;
    opacity: 1;
}

.mera-home-search input::-webkit-search-cancel-button {
    cursor: pointer;
}

.mera-home-catalog-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.mera-home-catalog-item {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #f8f8f8;
    color: #29292c;
    font-family: Inter, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
}

.mera-home-catalog-item:hover,
.mera-home-catalog-item:focus-visible {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(10, 71, 194, 0.22);
}

.mera-home-catalog-item[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.55;
}

.mera-home-catalog-info {
    position: relative;
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.mera-home-catalog-info img {
    width: 100%;
    height: 100%;
}

.mera-home-catalog-info::after {
    position: absolute;
    z-index: 5;
    bottom: calc(100% + 10px);
    left: 50%;
    width: max-content;
    max-width: min(280px, 70vw);
    padding: 8px 10px;
    border-radius: 6px;
    background: #29292c;
    color: #ffffff;
    content: attr(data-tooltip);
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translate(-50%, 4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.mera-home-catalog-info:hover::after,
.mera-home-catalog-info:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.mera-home-catalog-all {
    background: #29292c;
    color: #ffffff;
}

.mera-home-catalog-all:hover,
.mera-home-catalog-all:focus-visible {
    background: #0a090b;
}

.mera-home-catalog-empty {
    margin: -12px 0 0;
    color: #ffffff;
    font-size: 14px;
}

.mera-home-overview {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 80px 0;
}

.mera-home-section-heading {
    display: flex;
    max-width: 820px;
    flex-direction: column;
    align-items: center;
    align-self: center;
    gap: 20px;
    text-align: center;
}

.mera-home-section-heading h2 {
    max-width: 768px;
    margin: 0;
    color: #0a090b;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
}

.mera-home-section-heading p {
    margin: 0;
    color: #535862;
    font-size: 18px;
    line-height: 32px;
}

.mera-home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 20px;
}

.mera-home-stat {
    display: flex;
    min-height: 139px;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    border-radius: 20px;
    background: #f8f8f8;
}

.mera-home-stat strong {
    color: #00269b;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
}

.mera-home-stat span {
    color: #535862;
    font-size: 14px;
    line-height: 20px;
}

.mera-home-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 20px;
}

.mera-home-feature {
    display: flex;
    min-height: 294px;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    border-radius: 20px;
    background: #f8f8f8;
}

.mera-home-feature-icon {
    display: flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 24px;
    background: rgba(10, 71, 194, 0.1);
}

.mera-home-feature-icon img {
    width: 34px;
    height: 34px;
}

.mera-home-feature h3 {
    margin: 0 0 12px;
    color: #4d4e55;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.mera-home-feature p {
    max-width: 535px;
    margin: 0 0 20px;
    color: #535862;
    font-size: 14px;
    line-height: 20px;
}

.mera-home-feature > span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin-top: auto;
    padding: 6px 24px;
    border-radius: 100px;
    background: rgba(10, 71, 194, 0.1);
    color: #0a47c2;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.mera-home-partners {
    min-height: 532px;
    justify-content: center;
    margin-bottom: 80px;
    padding: 64px 40px;
}

.mera-home .partners-block h2,
.mera-home .news-block h2 {
    color: #0a090b;
}

.mera-home-alliance {
    min-height: 400px;
    padding: 0 0 80px;
}

.mera-home-alliance .innovation-unity-content {
    min-height: 400px;
    align-items: center;
}

.mera-home-alliance .innovation-unity-item-title {
    color: #4d4e55;
}

.theme-code .mera-home-news,
.theme-industrial .mera-home-news {
    background: #f7f9ff;
}

.mera-home-news {
    padding: 80px 0 100px;
}

.mera-home-news .news-block-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mera-home-news .news-block-item {
    min-width: 0;
}

.theme-code .mera-home-news .news-block-item-heading,
.theme-industrial .mera-home-news .news-block-item-heading,
.theme-code .mera-home-news .news-block-container-title a,
.theme-industrial .mera-home-news .news-block-container-title a {
    color: #0a47c2;
}

.theme-code .mera-home-news .news-block-item-title,
.theme-code .mera-home-news .news-block-item-text {
    color: #4d4e55;
}

@media screen and (max-width: 1100px) {
    .mera-home-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mera-home-hero {
        padding-right: 48px;
        padding-left: 48px;
    }
}

@media screen and (max-width: 768px) {
    .mera-home {
        padding-top: 16px;
    }

    .mera-home-shell {
        width: calc(100% - 32px);
    }

    .mera-home-hero {
        min-height: 0;
        gap: 40px;
        padding: 48px 20px;
        border-radius: 20px;
    }

    .mera-home-hero h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .mera-home-hero-copy p {
        font-size: 16px;
        line-height: 24px;
    }

    .mera-home-search {
        height: 56px;
    }

    .mera-home-catalog-list {
        width: 100%;
        justify-content: flex-start;
    }

    .mera-home-catalog-item {
        min-height: 40px;
        font-size: 14px;
        line-height: 20px;
    }

    .mera-home-overview {
        padding: 64px 0;
    }

    .mera-home-section-heading h2 {
        font-size: 32px;
    }

    .mera-home-section-heading p {
        font-size: 16px;
        line-height: 24px;
    }

    .mera-home-stats,
    .mera-home-features,
    .mera-home-news .news-block-content {
        grid-template-columns: 1fr;
    }

    .mera-home-stat {
        min-height: 112px;
        padding: 24px;
    }

    .mera-home-feature {
        min-height: 0;
        padding: 24px;
    }

    .mera-home-feature h3 {
        font-size: 26px;
    }

    .mera-home-feature > span {
        margin-top: 4px;
    }

    .mera-home-partners {
        min-height: 0;
        margin-bottom: 64px;
        padding: 48px 20px;
    }

    .mera-home-alliance {
        padding-bottom: 64px;
    }

    .mera-home-alliance .innovation-unity-content {
        min-height: 0;
        gap: 32px;
    }

    .mera-home-news {
        padding: 64px 0;
    }
}

@media screen and (max-width: 420px) {
    .mera-home-hero h1 {
        font-size: 30px;
    }

    .mera-home-catalog-item {
        width: 100%;
    }

    .mera-home-feature > span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
/* New general home page */
.mera-home-hero {
    overflow: visible;
    background:
        radial-gradient(circle at 96% 112%, rgba(217, 255, 0, 0.98) 0 8%, rgba(8, 235, 133, 0.78) 32%, transparent 56%),
        linear-gradient(112deg, #00269b 0%, #0758bd 42%, #08c6a0 76%, #08eb85 100%);
}

.mera-home-search input {
    font-size: 25px;
}

.mera-home-catalog-list {
    width: 100%;
    min-height: 96px;
    align-content: flex-start;
}

.mera-home-catalog-item {
    color: #0a090b;
}

.mera-home-catalog-info::after {
    z-index: 20;
    background: #4d4e55;
}

.mera-home-catalog-all {
    color: #ffffff;
}

.mera-home-feature-icon {
    border-radius: 8px;
}

.mera-home-alliance {
    min-height: 400px;
    margin-bottom: 80px;
    padding: 0 32px;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
}

.mera-home-alliance .innovation-unity-content {
    min-height: 400px;
    justify-content: center;
}

.mera-home-alliance .innovation-unity-item:first-child {
    flex: 0 0 343px;
    justify-content: center;
    padding: 0 38px;
    box-sizing: border-box;
}

.mera-home-alliance .innovation-unity-item:first-child img {
    width: 267px;
    max-width: 100%;
    max-height: 324px;
    object-fit: contain;
}

.mera-home-alliance .innovation-unity-item:last-child {
    flex: 1 1 auto;
    min-width: 0;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

.mera-home-alliance .innovation-unity-copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mera-home-alliance .innovation-unity-item-title {
    margin: 0;
    color: #0a090b;
    font-size: 48px;
    font-weight: 600;
    line-height: 58px;
}

.mera-home-alliance .innovation-unity-item p {
    margin: 0;
    color: #4d4e55;
}

.mera-home-alliance .innovation-unity-item-button {
    width: 212px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    background: #f1f1f1;
    box-shadow: none;
    color: #0a090b;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: -.3px;
}

.mera-home-news,
.theme-code .mera-home-news,
.theme-industrial .mera-home-news {
    background: #ffffff;
}

.mera-home-news .news-block-item-heading {
    color: #4d4e55;
}

.mera-home-news .news-block-container-title a {
    color: #29292c;
}

.mera-home-news .news-block-container-title a svg path {
    stroke: currentColor;
}

@media screen and (max-width: 768px) {
    .mera-home-section-heading h2 {
        color: #0a090b;
        font-size: 28px;
    }

    .mera-home-section-heading p {
        color: #535862;
        font-size: 14px;
        line-height: 20px;
    }

    .mera-home-feature h3 {
        font-size: 24px;
        line-height: 32px;
    }

    .mera-home .mera-home-news h2 {
        color: #4d4e55;
    }

    .mera-home-search input {
        font-size: 18px;
    }

    .mera-home-catalog-list {
        min-height: 0;
    }

    .mera-home-alliance {
        min-height: 0;
        margin-bottom: 64px;
        padding: 0 20px;
    }

    .mera-home-alliance .innovation-unity-content {
        min-height: 0;
    }

    .mera-home-alliance .innovation-unity-item:first-child {
        flex-basis: auto;
        padding: 0;
    }

    .mera-home-alliance .innovation-unity-item:first-child img {
        width: 200px;
        max-height: 270px;
    }

    .mera-home-alliance .innovation-unity-item:last-child {
        width: 100%;
        gap: 32px;
    }

    .mera-home-alliance .innovation-unity-item-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .mera-home-alliance .innovation-unity-item-button {
        width: 100%;
        background: #f1f1f1;
    }
}

@media screen and (max-width: 500px) {
    .mera-home-alliance .innovation-unity-item:first-child img {
        width: 145px;
        max-height: 176px;
    }
}

/* Search results stay out of the hero layout and open below the field. */
.mera-home-search-wrap {
    position: relative;
    width: 100%;
}

.mera-home-search-dropdown {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(10, 9, 11, 0.14);
    box-sizing: border-box;
}

.mera-home-search-dropdown[hidden] {
    display: none !important;
}

.mera-home-search-dropdown .mera-home-catalog-list {
    display: flex;
    width: 100%;
    min-height: 0;
    max-height: 320px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: normal;
    justify-content: flex-start;
    gap: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mera-home-search-dropdown .mera-home-catalog-item {
    display: flex;
    width: 100%;
    min-height: 42px;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 6px;
    background: #ffffff;
    color: #4d4e55;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: none;
    box-sizing: border-box;
}

.mera-home-search-dropdown .mera-home-catalog-item:hover,
.mera-home-search-dropdown .mera-home-catalog-item:focus-visible {
    background: #f5f7fb;
    color: #024ee7;
    box-shadow: none;
    outline: none;
}

.mera-home-search-dropdown .mera-home-catalog-item[hidden] {
    display: none !important;
}

.mera-home-search-dropdown .mera-home-catalog-all {
    margin-top: 4px;
    background: #eff4ff;
    color: #024ee7;
}

.mera-home-search-dropdown .mera-home-catalog-empty {
    display: flex;
    min-height: 42px;
    align-items: center;
    margin: 0;
    padding: 9px 12px;
    color: #7f7d83;
    font-size: 14px;
    line-height: 20px;
    box-sizing: border-box;
}

.mera-home-search-dropdown .mera-home-catalog-empty[hidden] {
    display: none !important;
}

.mera-home-feature-icon {
    border-radius: 50%;
}

@media screen and (max-width: 768px) {
    .mera-home-search-dropdown .mera-home-catalog-list {
        max-height: none;
        overflow: visible;
    }

    .mera-home-catalog-info {
        position: static;
    }

    .mera-home-catalog-info::after {
        right: auto;
        left: 50%;
        width: max-content;
        max-width: calc(100vw - 64px);
        box-sizing: border-box;
        overflow-wrap: anywhere;
        text-align: center;
        white-space: normal;
        transform: translate(-50%, 4px);
    }

    .mera-home-catalog-info:hover::after,
    .mera-home-catalog-info:focus-visible::after {
        transform: translate(-50%, 0);
    }
}
