.mainpage-company-admin {
    --company-green: #064b32;
    --company-green-dark: #003d28;
    --company-gold: #c49a42;
    --company-cream: #fbf4e9;
    --company-text: #1e2b24;
    overflow: hidden;
    margin: 0 -16px;
    padding: 0 16px 48px;
    color: var(--company-text);
    background: radial-gradient(circle at 94% 8%, rgba(196, 154, 66, 0.12), transparent 24%),
    linear-gradient(180deg, #fffaf2 0%, #fff 46%, #fff7ec 100%);
}

.mainpage-company-admin h2 {
    margin: 0;
    color: var(--company-green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.2;
}

.mainpage-company-hero,
.mainpage-company-market-reviews,
.mainpage-company-contact,
.mainpage-company-gallery,
.mainpage-company-subscribe__inner {
    max-width: 1340px;
    margin-right: auto;
    margin-left: auto;
}

.mainpage-company-hero {
    padding: 45px 0 57px;
}

.mainpage-company-hero > h2 {
    margin-bottom: 31px;
    text-align: center;
    font-size: 31px;
}

.mainpage-company-hero__grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.95fr) minmax(340px, 1.25fr) minmax(250px, 0.95fr);
    gap: 34px;
    align-items: center;
}

.mainpage-company-hero__text h3 {
    margin: 0 0 22px;
    max-width: 420px;
    color: #151515;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

.mainpage-company-hero__text p {
    margin: 0 0 28px;
    max-width: 430px;
    color: #303030;
    line-height: 1.65;
}

.mainpage-company-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.mainpage-company-hero__stats b {
    display: block;
    color: var(--company-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
}

.mainpage-company-hero__stats span {
    display: block;
    margin-top: 8px;
    color: #2c2c2c;
    font-size: 11px;
    line-height: 1.25;
}

.mainpage-company-hero__video {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.mainpage-company-hero__video:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
    pointer-events: none;
}

.mainpage-company-hero__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 88px;
    height: 88px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: rgba(6, 75, 50, 0.92);
    cursor: pointer;
    z-index: 2;
    transform: translate(-50%, -50%);
}

.mainpage-company-hero__play span {
    position: absolute;
    top: 50%;
    left: 54%;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 23px solid #fff;
    transform: translate(-50%, -50%);
}

.mainpage-company-hero__play--static {
    pointer-events: none;
}

.mainpage-company-hero__features {
    display: grid;
    gap: 26px;
    color: #252525;
}

.mainpage-company-hero__features div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    line-height: 1.35;
}

.mainpage-company-hero__features span {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    color: var(--company-gold);
    font-size: 24px;
}

.mainpage-company-hero__features svg {
    display: block;
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.mainpage-company-hero__more {
    display: inline-flex;
    width: fit-content;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 10px 24px;
    background: var(--company-green);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

@supports not (width: fit-content) {
    .mainpage-company-hero__more {
        width: max-content;
    }
}

.mainpage-company-hero__more:hover,
.mainpage-company-hero__more:focus {
    background: var(--company-green-dark);
    color: #fff;
    text-decoration: none;
}

.mainpage-company-market-reviews {
    padding: 51px 0 63px;
}

.mainpage-company-market-reviews h2 {
    margin-bottom: 36px;
    text-align: center;
    font-size: 31px;
}

.mainpage-company-market-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.mainpage-company-market-card {
    display: flex;
    min-height: 295px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ede5d8;
    border-radius: 8px;
    padding: 34px 42px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(41, 31, 21, 0.06);
    text-align: center;
}

.mainpage-company-market-card__brand {
    width: 170px;
    margin-bottom: 14px;
}

.mainpage-company-market-card__brand img {
    display: block;
    width: 100%;
    max-height: 55px;
    object-fit: contain;
}

.mainpage-company-market-card__stars {
    color: #d9a236;
    font-size: 18px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.mainpage-company-market-card__stars b {
    color: #2b2822;
    letter-spacing: 0;
}

.mainpage-company-market-card p {
    min-height: 72px;
    margin: 14px 0 24px;
    color: #6f675e;
    font-size: 15px;
    line-height: 1.55;
}

.mainpage-company-market-card a {
    margin-top: auto;
    color: #202020;
    font-weight: 700;
    text-decoration: none;
}

.mainpage-company-contact {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    overflow: hidden;
    margin-top: 31px;
    margin-bottom: 31px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.mainpage-company-contact__info {
    padding: 34px 30px;
    color: #fff;
    background: linear-gradient(145deg, var(--company-green), #00301f);
}

.mainpage-company-contact__info h2 {
    margin-bottom: 39px;
    color: #fff;
    font-size: 27px;
}

.mainpage-company-contact__item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    line-height: 1.35;
}

.mainpage-company-contact__item span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    flex: 0 0 26px;
}

.mainpage-company-contact__item span svg,
.mainpage-company-contact__item span img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    color: var(--company-gold);
    fill: currentColor;
    filter: brightness(0) saturate(100%) invert(66%) sepia(42%) saturate(632%) hue-rotate(4deg) brightness(89%) contrast(87%) !important;
}

.mainpage-company-contact__item span svg {
    filter: none !important;
}

.mainpage-company-contact__item a {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.mainpage-company-contact__item small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.mainpage-company-contact__socials {
    display: block;
    gap: 8px;
    margin-top: 24px;
    overflow: hidden;
}

.mainpage-company-contact__socials .social-icons,
.mainpage-company-contact__socials .social {
    display: block;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.mainpage-company-contact__socials .social-icons ul {
    display: grid;
    grid-template-columns: repeat(3, 43px);
    gap: 8px;
    margin: 0;
    padding: 0;
}

.mainpage-company-contact__socials li {
    flex: 0 0 auto;
    list-style: none;
}

.mainpage-company-contact__socials .social-icons li a,
.mainpage-company-contact__socials .social li a,
.mainpage-company-contact__socials a {
    width: 43px !important;
    height: 43px !important;
    margin: 0 !important;
}

.mainpage-company-contact__socials li.max a,
.mainpage-company-contact__socials li.max a:hover {
    position: relative;
    background-color: #6b63ff !important;
    background-image: none !important;
    border-color: #6b63ff !important;
}

.mainpage-company-contact__socials li.max a:before {
    content: "MAX";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
}

.mainpage-company-contact__socials li.max a img,
.mainpage-company-contact__socials li.max a svg,
.mainpage-company-contact__socials li.max a:hover img,
.mainpage-company-contact__socials li.max a:hover svg {
    filter: brightness(0) invert(1) !important;
    opacity: 0;
}

.mainpage-company-contact__socials > a {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid var(--company-gold);
    border-radius: 50%;
    color: var(--company-gold);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    margin: 0 !important;
}

.mainpage-company-contact__socials img,
.mainpage-company-contact__socials svg {
    display: block;
    max-width: 18px;
    max-height: 18px;
}


.mainpage-company-contact__map {
    min-height: 348px;
    background: #f3efe4;
}

.mainpage-company-contact__map > ymaps,
.mainpage-company-contact__map .bx-yandex-view-layout,
.mainpage-company-contact__map .bx-yandex-view-map {
    width: 100% !important;
    height: 100% !important;
}

.mainpage-company-gallery {
    padding: 63px 0 45px;
}

.mainpage-company-gallery h2,
.mainpage-company-subscribe h2 {
    text-align: center;
    font-size: 31px;
}

.mainpage-company-gallery h2 {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
}

.mainpage-company-gallery h2 span {
    display: block;
    width: 30px;
    height: 1px;
    background: var(--company-gold);
}

.mainpage-company-gallery__slider {
    position: relative;
}

.mainpage-company-gallery__viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.mainpage-company-gallery__viewport::-webkit-scrollbar {
    display: none;
}

.mainpage-company-gallery__row {
    display: flex;
    gap: 10px;
}

.mainpage-company-gallery__item {
    display: block;
    flex: 0 0 calc((100% - 40px) / 5);
    overflow: hidden;
    min-height: 0;
    border-radius: 6px;
    aspect-ratio: 1.45 / 1;
    background: #f3efe4;
}

.mainpage-company-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mainpage-company-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(196, 154, 66, 0.75);
    border-radius: 50%;
    background: rgba(6, 75, 50, 0.92);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    transform: translateY(-50%);
}

.mainpage-company-gallery__nav:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.mainpage-company-gallery__nav--prev {
    left: -18px;
}

.mainpage-company-gallery__nav--next {
    right: -18px;
}

.mainpage-company-subscribe {
    position: relative;
    overflow: hidden;
    margin: 27px -16px -48px;
    padding: 40px 16px 20px;
    background: radial-gradient(circle at 50% 0%, rgba(196, 154, 66, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(6, 75, 50, 0.08), transparent 28%),
    linear-gradient(225deg, rgba(6, 75, 50, 0.08), transparent 28%),
    #fff8ef;
}

.mainpage-company-subscribe__inner {
    position: relative;
    z-index: 1;
}

.mainpage-company-subscribe p {
    max-width: 520px;
    margin: 14px auto 28px;
    text-align: center;
    color: #555;
    line-height: 1.5;
}

.mainpage-company-subscribe__form {
    display: grid;
    grid-template-columns: minmax(220px, 330px) 170px;
    gap: 12px;
    justify-content: center;
}

.mainpage-company-subscribe__form input[type="email"] {
    height: 46px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 16px;
    background: #fff;
}

.mainpage-company-subscribe__form button {
    height: 46px;
}

.mainpage-company-subscribe__form label {
  grid-column: 1 / -1;
  color: #555;
  font-size: 12px;
}

.mainpage-company-subscribe__form input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: -2px;
}

.mainpage-company-subscribe__form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.mainpage-company-subscribe__message {
  grid-column: 1 / -1;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.45;
}

.mainpage-company-subscribe__message--error {
  color: #b42318;
}

.mainpage-company-subscribe__message--success {
  color: var(--company-green);
  font-weight: 600;
}

.mainpage-company-subscribe__message--info {
  color: #777;
}

.mainpage-video-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  background: #000;
}

.mainpage-video-modal[aria-hidden="false"] {
  display: block;
}

.mainpage-video-modal__content,
.mainpage-video-modal__content video,
.mainpage-video-modal__content iframe {
  width: 100vw;
  height: 100vh;
}

.mainpage-video-modal__content video,
.mainpage-video-modal__content iframe {
  display: block;
  border: 0;
  object-fit: contain;
  background: #000;
}

.mainpage-video-modal__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2147483001;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 32px;
  line-height: 42px;
  cursor: pointer;
}

.mainpage-video-modal-open {
  overflow: hidden;
}

.mainpage-video-modal-open body #headerfixed,
.mainpage-video-modal-open body header.fixed,
.mainpage-video-modal-open body .header-wrapper.fixed,
.mainpage-video-modal-open body .sticky_menu header.fixed,
.mainpage-video-modal-open body .sticky_menu #headerfixed {
  display: none !important;
}

@media (max-width: 1100px) {
    .mainpage-company-hero__grid {
        grid-template-columns: 1fr 1fr;
    }

    .mainpage-company-market-reviews__grid {
        gap: 16px;
    }

    .mainpage-company-market-card {
        padding: 28px 24px;
    }

    .mainpage-company-hero__features {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mainpage-company-hero__more {
        grid-column: 1 / -1;
    }

    .mainpage-company-gallery__item {
        flex-basis: calc((100% - 20px) / 3);
    }

    .mainpage-company-hero, .mainpage-company-market-reviews, .mainpage-company-gallery, .mainpage-company-subscribe__inner {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 767px) {
    .mainpage-company-admin {
        margin: 0 -8px;
        padding: 0 8px 40px;
    }

    .mainpage-company-hero {
        padding-top: 36px;
    }

    .mainpage-company-hero > h2,
    .mainpage-company-market-reviews h2,
    .mainpage-company-gallery h2,
    .mainpage-company-subscribe h2 {
        font-size: 26px;
    }

    .mainpage-company-hero__grid,
    .mainpage-company-market-reviews__grid,
    .mainpage-company-contact {
        grid-template-columns: 1fr;
    }

    .mainpage-company-hero__video {
        min-height: 230px;
    }

    .mainpage-company-hero__features {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .mainpage-company-contact__map {
        min-height: 300px;
    }

    .mainpage-company-market-card {
        min-height: 0;
    }

    .mainpage-company-gallery__item {
        flex-basis: calc((100% - 10px) / 2);
    }

    .mainpage-company-subscribe__form {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .mainpage-company-hero__stats,
    .mainpage-company-hero__features {
        grid-template-columns: 1fr;
    }

    .mainpage-company-gallery__item {
        flex-basis: 100%;
    }

    .mainpage-company-contact__info {
        padding: 28px 22px;
    }
}
