.hero-grid {
    width: 100%;
    padding: 40px 0;
}

.hero-grid .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-grid__top {
    display: grid;
    grid-template-columns: 2.23fr 1fr;
    gap: 20px;
    height: 331px;
}

.hero-grid__bottom {
    display: grid;
    grid-template-columns: 2.23fr 1fr;
    gap: 20px;
    height: 130px;
}

.hero-grid__bottom-left {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.hero-grid__top-left {
    position: relative;
    background: #fff url("/assets/images/molekula-bg.png") no-repeat right center / cover;
    background-size: 70%;
    background-position: 135% bottom;
    transition: background-size 0.35s ease, background-position 0.35s ease;
    border-radius: 18px;
    min-height: 100%;
    padding: 40px 40px 35px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}
.hero-grid__top-left img {
    width: 351px;
    height: auto;
    display: block;
}

.hero-grid__title {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    font-weight: 600;
    color: var(--text);
}
.hero-grid__subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--text);
    opacity: 0.5;
    width: 58%;
}

.hero-grid__top-right {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 100%;
    box-shadow: 0 2px 44px rgba(0,0,0,0.1);
    background: #fff;
    cursor: pointer;
}
.hero-grid__top-right > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    transform-origin: 60% 50%;
}
.hero-grid__top-right:hover > img {
    transform: scale(1.08);
}
.hero-grid__button {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: auto;
    border-radius: 50px;
    background: rgba(255,255,255,0.8);
    display: flex;
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px 9px 20px;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-grid__button:hover {
    background: rgba(255,255,255,0.98);
}
.hero-grid__button p {
    margin: 0;
}
.hero-grid__button img {
    width: 14px;
    height: 14px;
}
.hero-grid__corner-arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.3s ease;
}

.hero-grid__top-right:hover .hero-grid__corner-arrow {
    background: #ffffff;
    transform: rotate(45deg);
}

.hero-grid__top-right:hover .hero-grid__button {
    background: #ffffff;
}

.hero-grid__corner-arrow img {
    width: 18px;
    height: auto;
}

.hero-grid__bottom-left-item {
    position: relative;
    width: 100%;
    min-height: 100%;
    background-color: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.10);
    cursor: pointer;
}
.hero-grid__bottom-left-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-image: var(--bg-url);
    background-size: var(--bg-size);
    background-position: var(--bg-position);
    transition: transform 0.35s ease;
    transform-origin: 60% 50%;
    pointer-events: none;
}
.hero-grid__bottom-left-item:hover::before {
    transform: scale(1.2) rotate(3deg) translateX(20px);
}
.hero-grid__bottom-left-item--about {
    background-color: #0F51A5;
    --bg-url: url("/assets/images/molekula-about.png");
    --bg-size: 65%;
    --bg-position: -43% 50%;
}
.hero-grid__bottom-left-item--products {
    background-color: #26A681;
    --bg-url: url("/assets/images/molekula-prod.png");
    --bg-size: 80%;
    --bg-position: -130% center;
}
.hero-grid__bottom-left-item--contacts {
    background-color: #FFFFFF;
    --bg-url: url("/assets/images/molekula-contacts.png");
    --bg-size: 75%;
    --bg-position: 0 center;
}
.hero-grid__bottom-left-item-button {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 42px;
    border-radius: 50px;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 20px;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-grid__bottom-left-item:hover .hero-grid__bottom-left-item-button {
    background-color: #FFFFFF;
}

.hero-grid__bottom-left-item-button:hover {
    background: #ffffff;
}
.hero-grid__bottom-left-item-button p {
    margin: 0;
}
.hero-grid__bottom-left-item-button img {
    width: 15px;
    height: 15px;
}

.hero-grid__bottom-right {
    width: 100%;
    min-height: 100%;
    border-radius: 18px;
    background: linear-gradient(135deg, #4FA6F2 0%, #4BE5BF 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}
.hero-grid__bottom-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/images/molekula-help.png") no-repeat right bottom / contain;
    pointer-events: none;
    transition: transform 0.35s ease;
    transform-origin: 90% 90%;
}
.hero-grid__bottom-right:hover::after {
    transform: scale(1.2) rotate(3deg);
}
.hero-grid__bottom-right p {
    position: absolute;
    left: 20px;
    bottom: 20px;
    margin: 0;
    color: #ffffff;
    font-weight: 500;
    font-size: 18px;
}
.hero-grid__bottom-corner-arrow {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 21px;
    height: 21px;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.3s ease;
}
.hero-grid__bottom-corner-arrow:hover {
    transform: rotate(45deg);
}

.hero-grid__bottom-right:hover .hero-grid__bottom-corner-arrow {
    transform: rotate(45deg);
}

.hero-grid__bottom-corner-arrow img {
    width: 100%;
    height: auto;
}

.hero-grid__top-left-content {
    display: flex;
    flex-direction: column;
    gap: 13px;
}