/* =========================================
   FONTS
========================================= */
@font-face {
    font-family: 'ElMessiri';
    src: url('../fonts/ElMessiri-Regular.woff2') format('woff2'),
         url('../fonts/ElMessiri-Regular.woff')  format('woff'),
         url('../fonts/ElMessiri-Regular.ttf')   format('truetype'),
         url('../fonts/ElMessiri-Regular.eot')   format('embedded-opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ElMessiri';
    src: url('../fonts/ElMessiri-Medium.woff2') format('woff2'),
         url('../fonts/ElMessiri-Medium.woff')  format('woff'),
         url('../fonts/ElMessiri-Medium.ttf')   format('truetype'),
         url('../fonts/ElMessiri-Medium.eot')   format('embedded-opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ElMessiri';
    src: url('../fonts/ElMessiri-Bold.woff2') format('woff2'),
         url('../fonts/ElMessiri-Bold.woff')  format('woff'),
         url('../fonts/ElMessiri-Bold.ttf')   format('truetype'),
         url('../fonts/ElMessiri-Bold.eot')   format('embedded-opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   RESET
========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Nunito Sans", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 84px;
}

@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: inherit;
    font-size: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    border: none;
    outline: none;
    background: none;
    appearance: none;
}

button {
    cursor: pointer;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* =========================================
   CONTAINER
========================================= */
.container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
}

@media (max-width: 1560px) {
    .container {
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 clamp(16px, 3vw, 40px);
    }
}

/* =========================================
   SITE HEADER
========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(180deg, #FFF 0%, #F6F9DF 100%);
}

.header__container {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 40px);
    max-width: 1570px;
    height: 84px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
}

/* ----- Logo ----- */
.header__logo {
    flex-shrink: 0;
}

.header__logo img {
    display: block;
    width: 71px;
    height: 48.291px;
}

/* ----- Nav ----- */
.header__nav {
    margin-left: auto;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.916vw, 56px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__list li a {
    color: #6B6400;
    font-family: "ElMessiri", sans-serif;
    font-size: clamp(13px, 0.9375vw, 18px);
    font-weight: 700;
    line-height: 1.474;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav__list li a:hover,
.nav__list li.current-menu-item > a {
    color: #8EBF5C;
}

/* ----- Phone ----- */
.header__phone {
    flex-shrink: 0;
    color: #265F16;
    font-family: "Nunito Sans", sans-serif;
    font-size: clamp(20px, 1.666vw, 32px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.header__phone:hover {
    color: #8EBF5C;
}

/* ----- Burger — скрыт на desktop ----- */
.burger {
    display: none;
}

/* =========================================
   MOBILE MENU
========================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    padding: 0 20px 40px;
    background: linear-gradient(180deg, #FFF 0%, #F6F9DF 100%);
    border-radius: 0 0 12px 12px;

    /* Анимация slide-down */
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Вертикальный список в mobile menu */
.mobile-menu .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding-top: 40px;
}

.mobile-menu .nav__list li a {
    font-size: 18px;
}

.mobile-menu .header__phone {
    display: block;
    text-align: center;
    margin-top: 40px;
    font-size: 28px;
}

/* =========================================
   RESPONSIVE — 768px
========================================= */
@media (max-width: 768px) {

    .header__container {
        height: 72px;
        padding: 0 20px;
    }

    /* Скрываем десктопные элементы */
    .header__nav,
    .site-header .header__phone {
        display: none;
    }

    /* Показываем бургер */
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        margin-left: auto;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }

    .burger span {
        display: block;
        width: 28px;
        height: 2px;
        background-color: #265F16;
        border-radius: 2px;
        transition: opacity 0.2s ease;
    }
}

/* =========================================
   HERO
========================================= */
.hero {
    height: 720px;
    background-image: var(--hero-bg-desk);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__container {
    display: flex;
    align-items: center;
    max-width: 1570px;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 48px);
}

/* ----- Content block ----- */
.hero__content {
    display: flex;
    flex-direction: column;
    max-width: 614px;
    padding-left: 48px;
}

/* ----- Title ----- */
.hero__title {
    color: #265F16;
    font-family: "ElMessiri", sans-serif;
    font-size: 45px;
    font-weight: 500;
    line-height: 52px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ----- Description ----- */
.hero__text {
    color: #271D14;
    font-family: "Nunito Sans", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    margin-bottom: 41px;
}

/* ----- Button ----- */
.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    align-self: flex-start;
    max-width: 300px;
    padding: 12px 20px;
    border-radius: 35px;
    border: 1px solid #265F16;
    background: #FFF;
    color: #265F16;
    font-family: "Nunito Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease;
}

.hero__btn svg path {
    transition: fill 0.25s ease;
}

.hero__btn:hover {
    background: #8EBF5C;
    color: #FFF;
    border: 1px solid #8EBF5C;
}

.hero__btn:hover svg path {
    fill: #FFF;
}


@media (max-width: 1620px) {
    .hero {
        height: 640px;
        background-image: var(--hero-bg-desk);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* =========================================
   HERO — Tablet (≤ 1024px)
========================================= */
@media (max-width: 1024px) {

    .hero {
        height: 540px;
        background-image: var(--hero-bg-tablet);
    }

    .hero__content {
        max-width: 444px;
        padding-left: 0;
    }

    .hero__title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 8px;
    }

    .hero__text {
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 24px;
    }

    .hero__btn {
        font-size: 14px;
        line-height: 20px;
        gap: 20px;
    }
}

/* =========================================
   HERO — Mobile (≤ 768px)
========================================= */
@media (max-width: 768px) {

    .hero {
        height: 727px;
        background-image: var(--hero-bg-mob);
        background-position: bottom center;
    }

    .hero__container {
        align-items: flex-start;
        padding-top: 40px;
    }

    .hero__content {
        max-width: 340px;
    }

    .hero__title {
        font-size: 27px;
        line-height: 34px;
        margin-bottom: 12px;
    }

    .hero__text {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 32px;
    }

    .hero__btn {
        font-size: 16px;
        line-height: 28px;
    }
}

/* =========================================
   PRODUCTS
========================================= */
.products {
    padding: 100px 0;
    background: #FFF;
}

.products__title {
    color: #265F16;
    text-align: center;
    font-family: "ElMessiri", sans-serif;
    font-size: 45px;
    font-weight: 600;
    line-height: 55px;
    text-transform: uppercase;
    margin-bottom: 60px;
}

/* Flex row: [btn-prev] [stage] [btn-next] */
.products__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* ----- Stage ----- */
.products__stage {
    display: flex;
    align-items: center;
    gap: 40px;
}


/* ----- Slots ----- */
.products__slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.products__slot--active {
    width: 575px;
}

.products__slot--side {
    width: 25%;
}

.products__slot--side .products__img{
    opacity: 0.6;
}

/* ----- Slide name ----- */
.products__name {
    color: #5B371F;
    text-align: center;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
    line-height: 30px;
    margin-bottom: 51px;
}
/* Плавный переход на картинках */
.products__img {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.products__slot--active .products__img {
    transform: scale(1);
}

/* Лёгкий scale при смене */
.products__slot .products__img.is-switching {
    opacity: 0.7;
    transform: scale(0.97);
}

.products__slot--active .products__name {
    font-size: 42px;
}

.products__slot--side .products__name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* ----- Image ----- */
.products__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----- Arrows ----- */
.products__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 44px;
    border-radius: 26px;
    border: 1px solid #265F16;
    background: #FFF;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.products__btn:hover {
    background: #8EBF5C;
    border-color: #8EBF5C;
}

.products__btn:hover svg path {
    fill: #FFF;
    transition: fill 0.25s ease;
}

/* Flip prev arrow */
.products__btn--prev svg {
    transform: scaleX(-1);
}

@media (max-width: 1560px) {
    .products__slot--active {
        width: 45%;
    }
}

/* =========================================
   PRODUCTS — Tablet (≤ 1024px)
========================================= */
@media (max-width: 1024px) {

    .products__inner {
        flex-wrap: wrap;
        gap: 0;
    }

    /* Stage goes first */
    .products__stage {
        order: 1;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    /* Arrows go below */
    .products__btn--prev {
        order: 2;
        margin-top: 40px;
        margin-right: 10px;
    }

    .products__btn--next {
        order: 3;
        margin-top: 40px;
        margin-left: 10px;
    }

    .products__slot--active {
        width: clamp(280px, 46vw, 500px);
    }

    .products__slot--side {
        width: clamp(120px, 19vw, 220px);
    }

    .products__slot--active .products__name {
        font-size: clamp(24px, 3.5vw, 36px);
        margin-bottom: 30px;
    }
}

/* =========================================
   PRODUCTS — Mobile (≤ 768px)
========================================= */
@media (max-width: 768px) {

    .products {
        padding: 60px 0;
    }

    .products__title {
        font-size: 27px;
        line-height: 34px;
        margin-bottom: 36px;
    }

    /* Hide side slides */
    .products__slot--side {
        display: none;
    }

    .products__slot--active {
        width: 100%;
        max-width: 360px;
    }

    .products__slot--active .products__name {
        font-size: 22px;
        margin-bottom: 30px;
    }
}

/* Keyframes */
@keyframes slideOutToLeft  { from { transform: translateX(0);     opacity: 1; } to { transform: translateX(-50px); opacity: 0; } }
@keyframes slideOutToRight { from { transform: translateX(0);     opacity: 1; } to { transform: translateX( 50px); opacity: 0; } }
@keyframes slideInFromRight{ from { transform: translateX( 50px); opacity: 0; } to { transform: translateX(0);     opacity: 1; } }
@keyframes slideInFromLeft { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0);     opacity: 1; } }
@keyframes fadeOut { to   { opacity: 0; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }

/* Выезд активного слайда */
.products__stage--out-left  .products__slot--active .products__name,
.products__stage--out-left  .products__slot--active .products__img { animation: slideOutToLeft  0.22s ease forwards; }
.products__stage--out-right .products__slot--active .products__name,
.products__stage--out-right .products__slot--active .products__img { animation: slideOutToRight 0.22s ease forwards; }

/* Въезд нового активного слайда */
.products__stage--in-right .products__slot--active .products__name,
.products__stage--in-right .products__slot--active .products__img  { animation: slideInFromRight 0.22s ease forwards; }
.products__stage--in-left  .products__slot--active .products__name,
.products__stage--in-left  .products__slot--active .products__img  { animation: slideInFromLeft  0.22s ease forwards; }

/* Боковые слайды просто меняются */
.products__stage--out-left  .products__slot--side,
.products__stage--out-right .products__slot--side { animation: fadeOut 0.22s ease forwards; }
.products__stage--in-right  .products__slot--side,
.products__stage--in-left   .products__slot--side  { animation: fadeIn  0.22s ease forwards; }

/* =========================================
   ABOUT
========================================= */
.about {
    padding-bottom: 100px;
    background: #FFF;
}

/* Full-width row — no container, bleeds edge to edge */
.about__inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* ----- Left column — photo ----- */
.about__media {
    width: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.about__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ----- Right column — frame + text ----- */
.about__content {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__frame {
    position: relative;
    width: 100%;
    max-width: 819px;
    padding: 90px 50px;
    background-image: url('../img/Ramka.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* ----- Title ----- */
.about__title {
    color: #265F16;
    font-family: "ElMessiri", sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 48px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ----- Description ----- */
.about__text {
    color: #271D14;
    font-family: "Nunito Sans", sans-serif;
    font-size: 16.5px;
    font-weight: 400;
    line-height: 24.75px;
}

@media (max-width: 1620px) {
    .about__title {
        font-size: 32px;
        font-weight: 700;
        line-height: 38px;
        text-transform: uppercase;
        margin-bottom: 20px;
    }
}

@media (max-width: 1390px) {
    .about__title {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 10px;
    }

    .about__frame {
        position: relative;
        width: 100%;
        max-width: 680px;
        padding: 60px 50px;
        background-image: url('../img/Ramka-laptop.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
    .about__content {
        width: 48%;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* =========================================
   ABOUT — Tablet (≤ 1024px)
========================================= */
@media (max-width: 1024px) {

    /* Hide left photo */
    .about__media {
        display: none;
    }

    /* Right column takes full width */
    .about__content {
        width: 100%;
    }

    .about__frame {
        max-width: 80%;
    }

    .about__title {
        font-size: 32px;
        line-height: 40px;
    }

    .about__text {
        font-size: 16px;
        line-height: 24px;
    }
}

/* =========================================
   ABOUT — Mobile (≤ 768px)
========================================= */
@media (max-width: 768px) {

    .about__inner {
        flex-direction: column;
    }

    /* Photo returns on mobile — above text */
    .about__media {
        display: block;
        width: 100%;
    }

    .about__content {
        width: 100%;
    }

    .about__title {
        font-size: 27px;
        line-height: 34px;
    }

    .about__text {
        font-size: 16px;
        line-height: 24px;
    }

    .about__frame {
        max-width: 100%;
        padding: 50px 40px;
        background-image: url('../img/Ramka-mobile.png');
    }
    .about__inner {
        gap: 0px;
    }
    .about {
        padding-bottom: 60px;
    }
}

/* =========================================
   BENEFITS
========================================= */
.benefits {
    padding-bottom: 100px;
    background: #FFF;
    overflow: hidden;
}

/* ----- CSS Grid: 3 фиксированные колонки ----- */
.benefits__grid {
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 36px;
}

/* ----- Иконки — строго по центру колонки ----- */
.benefits__cell--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.benefits__cell--icon img {
    display: block;
    height: auto;
}

/* ----- Текстовый блок ----- */
.benefits__cell--text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ----- Фото ----- */
.benefits__cell--photo {
    position: relative;
    z-index: 2;
}

.benefits__img {
    display: block;
    width: 100%;
    height: auto;
}

.benefits__img--down {
    margin-bottom: -80px;
}

.benefits__img--up {
    margin-top: -80px;
}

/* ----- Subtitle ----- */
.benefits__subtitle {
    color: #82AF54;
    text-align: right;
    font-family: "Nunito Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.benefits__subtitle--left {
    text-align: left;
}

/* ----- Description ----- */
.benefits__desc {
    color: #271D14;
    text-align: right;
    font-family: "Nunito Sans", sans-serif;
    font-size: 16.5px;
    font-weight: 400;
    line-height: 24.75px;
    max-width: 434px;
    margin-left: auto;

}

.benefits__desc--left {
    text-align: left;
    max-width: 434px;
    margin-right: auto;
    margin-left: 0;
}

/* =========================================
   BENEFITS — Tablet (≤ 1024px)
========================================= */
@media (max-width: 1024px) {

    .benefits__grid {
        grid-template-columns: 1fr 140px 1fr;
    }

    .benefits__subtitle {
        font-size: 20px;
    }

    .benefits__img--down,
    .benefits__img--up {
        margin: 0;
    }
}

/* =========================================
   BENEFITS — Mobile (≤ 768px)
========================================= */
@media (max-width: 768px) {

    /* benefits__row становится display:contents на десктопе — 
       на мобайле переключаем grid на flex по рядам */
    .benefits__grid {
        display: flex;
        flex-direction: column;
        gap: 60px;
    }

    .benefits__row {
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* текст и иконка по правому краю */
        gap: 20px;
    }

    /* Порядок: иконка → текст → фото */
    .benefits__cell--icon  { order: 1; align-self: flex-end; }
    .benefits__cell--text  { order: 2; width: 100%; }
    .benefits__cell--photo { order: 3; width: 100%; }

    .benefits__img--down,
    .benefits__img--up {
        margin: 0;
    }

    .benefits__subtitle,
    .benefits__subtitle--left {
        font-size: 22px;
        line-height: 30px;
        text-align: right;
    }

    .benefits__desc,
    .benefits__desc--left {
        font-size: 16px;
        line-height: 24px;
        text-align: right;
        margin-left: 0;
    }
    .benefits{
        padding-bottom: 60px;
    }
}

.benefits__row {
    display: contents;
}

@media (max-width: 768px) {
    .benefits__row {
        display: flex;
    }

    .benefits__row:nth-child(2) .benefits__cell--icon {
        order: 1;
        align-self: flex-start;
    }


    .benefits__row:nth-child(2) .benefits__cell--text {
        align-items: flex-start;
    }

    .benefits__row:nth-child(2) .benefits__cell--text .benefits__subtitle, .benefits__subtitle--left{
        text-align: left;
    }

    .benefits__row:nth-child(2) .benefits__desc, .benefits__desc--left {
        text-align: left;
    }
    .benefits__subtitle{
        margin-bottom: 12px;
    }
}

/* =========================================
   VIDEO SECTION
========================================= */
.video-section {
    padding-bottom: 100px;
    background: #FFF;
}

.video-section__inner {
    display: flex;
    align-items: center;
    gap: 70px;
}

/* ----- Left: media ----- */
.video-section__media {
    flex: 0 0 calc(50% - 35px);
}

.video-section__trigger {
    position: relative;
    display: block;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
}

.video-section__cover {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.video-section__trigger:hover .video-section__cover {
    transform: scale(1.03);
}

.video-section__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.video-section__trigger:hover .video-section__play {
    opacity: 0.8;
}

/* ----- Right: content ----- */
.video-section__content {
    flex: 0 0 calc(50% - 35px);
    display: flex;
    flex-direction: column;
}

.video-section__text {
    color: #271D14;
    font-family: "Nunito Sans", sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 30px;
}

.video-section__text + .video-section__text {
    margin-top: 20px;
}

.video-section__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 52px;
    color: #265F16;
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    text-transform: uppercase;
    align-self: flex-start;
    transition: color 0.25s ease;
}

.video-section__link:hover {
    color: #8EBF5C;
}

.video-section__link img {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.video-section__link:hover img {
    transform: translateX(4px);
}

/* =========================================
   VIDEO MODAL
========================================= */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.video-modal__box {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
}

.video-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.video-modal__iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block;
}

/* =========================================
   VIDEO SECTION — Tablet (≤ 1024px)
========================================= */
@media (max-width: 1024px) {

    .video-section__inner {
        gap: 40px;
    }

    .video-section__text {
        font-size: 20px;
        line-height: 26px;
    }
}

/* =========================================
   VIDEO SECTION — Mobile (≤ 768px)
========================================= */
@media (max-width: 768px) {

    .video-section__inner {
        flex-direction: column;
        gap: 32px;
    }

    .video-section__media,
    .video-section__content {
        flex: unset;
        width: 100%;
    }

    .video-section__text {
        font-size: 20px;
        line-height: 26px;
    }

    .video-section__link {
        margin-top: 32px;
        font-size: 18px;
    }

    .video-section {
        padding-bottom: 60px;
    }
}

/* =========================================
   FACTS
========================================= */
.facts {
    padding-bottom: 100px;
    background: #FFF;
}

/* ----- 3-column grid ----- */
.facts__grid {
    display: grid;
    grid-template-columns: 1fr clamp(280px, 32vw, 616px) 1fr;
    align-items: center;
    gap: 0 40px;
}

/* ----- Center egg ----- */
.facts__egg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.facts__egg-img {
    display: block;
    width: 100%;
    max-width: 616px;
    height: auto;
}

/* ----- Columns ----- */
.facts__col {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.facts__col--left {
    align-items: flex-end; /* items float toward center */
}

.facts__col--right {
    align-items: flex-start;
}

/* ----- Item ----- */
.facts__item {
    display: flex;
    flex-direction: column;
    max-width: 420px;
}

/* Second item on each side — pushed further from center egg */
.facts__col--left .facts__item--indent {
    margin-right: 27px;
}

.facts__col--right .facts__item--indent {
    margin-left: 27px;
}

/* Left items: icon and text right-aligned */
.facts__col--left .facts__item {
    align-items: flex-end;
}

/* Right items: icon and text left-aligned */
.facts__col--right .facts__item {
    align-items: flex-start;
}

.facts__item img {
    display: block;
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
}

/* ----- Title ----- */
.facts__title {
    color: #8EBF5C;
    font-family: "Nunito Sans", sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 44px;
    text-transform: uppercase;
}

.facts__title--right {
    text-align: right;
}

.facts__title--left {
    text-align: left;
}

/* ----- Description ----- */
.facts__desc {
    color: #1E1E1E;
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    margin-top: 12px;
}

.facts__title--right + .facts__desc {
    text-align: right;
}

/* =========================================
   FACTS — Tablet (≤ 1024px)
========================================= */
@media (max-width: 1024px) {

    /* Яйцо остаётся видимым */
    .facts__grid {
        grid-template-columns: 1fr clamp(200px, 28vw, 440px) 1fr;
        gap: 0 20px;
    }

    .facts__col--left .facts__item--indent,
    .facts__col--right .facts__item--indent {
        margin: 0;
    }

    .facts__title {
        font-size: 20px;
        line-height: 28px;
    }

    .facts__item {
        max-width: 260px;
    }

    .facts__desc {
        font-size: 15px;
        line-height: 22px;
    }

    .facts__item img {
        width: 70px;
        height: 70px;
    }
}

/* =========================================
   FACTS — Mobile (≤ 767px)
========================================= */
@media (max-width: 767px) {
    .facts {
        padding-bottom: 60px;
    }

    /* Только на мобайле скрываем яйцо */
    .facts__egg {
        display: none;
    }

    .facts__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .facts__col--left {
        grid-column: 1;
        grid-row: 1;
        align-items: flex-start;
        gap: 40px;
        margin-bottom: 40px;
    }

    .facts__col--right {
        grid-column: 1;
        grid-row: 2;
        gap: 40px;
    }

    .facts__col--left .facts__item,
    .facts__col--right .facts__item {
        align-items: center;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        gap: 20px;
    }

    .facts__title--right {
        text-align: left;
    }

    .facts__title--right + .facts__desc {
        text-align: left;
    }

    .facts__title {
        font-size: 20px;
        line-height: 28px;
    }

    .facts__col--left .facts__item--indent,
    .facts__col--right .facts__item--indent {
        margin: 0;
    }

    .facts__item img {
        width: 80px;
        height: 80px;
    }
}

/* =========================================
   HENNERY
========================================= */
.hennery {
    padding-bottom: 100px;
    background: #FFF;
}

.hennery__inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ----- Left: 40% ----- */
.hennery__content {
    flex: 0 0 calc(40% - 30px);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ----- Right: 60% ----- */
.hennery__media {
    flex: 0 0 calc(60% - 30px);
}

.hennery__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 23px;
}

/* ----- Description ----- */
.hennery__desc {
    color: #271D14;
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
}

/* ----- Title ----- */
.hennery__title {
    color: #271D14;
    font-family: "Nunito Sans", sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 30px;
    text-transform: uppercase;
}

/* ----- Footer: text + arrow + logo ----- */
.hennery__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hennery__footer-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #271D14;
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    transition: all 0.3s ease;
}

.hennery__footer-text:hover{
    color: #8EBF5C;
}

.hennery__arrow {
    flex-shrink: 0;
}

.hennery__logo {
    display: block;
    width: fit-content;
    height: auto;
}

.hennery__wpap_text {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* =========================================
   HENNERY — Tablet (≤ 1024px)
========================================= */
@media (max-width: 1024px) {

    .hennery__inner {
        gap: 40px;
    }

    .hennery__content {
        flex: 0 0 calc(40% - 20px);
        gap: 20px;
    }

    .hennery__media {
        flex: 0 0 calc(60% - 20px);
    }

    .hennery__desc {
        font-size: 16px;
        line-height: 24px;
    }

    .hennery__title {
        font-size: 18px;
        line-height: 26px;
    }
}

/* =========================================
   HENNERY — Mobile (≤ 768px)
========================================= */
@media (max-width: 768px) {
    .hennery__footer-text{
        color: #265F16;
    }

    .hennery__inner {
        flex-direction: column;
        gap: 32px;
    }

    .hennery__content,
    .hennery__media {
        flex: unset;
        width: 100%;
    }

    /* Текст сверху, картинка снизу — естественный порядок DOM */
    .hennery__desc {
        font-size: 16px;
        line-height: 24px;
    }

    .hennery__title {
        font-size: 18px;
        line-height: 26px;
    }

    .hennery__logo {
        width: 200px;
        height: auto;
    }
}

/* =========================================
   SITE FOOTER
========================================= */
.site-footer {
    background: #F9EBDC;
}

/* =========================================
   FOOTER TOP
========================================= */
.footer__top {
    padding-top: 59px;
    padding-bottom: 0;
}

.footer__inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    justify-content: space-between;
}

.footer_col_wrap {
    display: flex;
    gap: 52px;
    justify-content: space-between;
}

/* ----- Logo ----- */
.footer__logo-wrap {
    flex-shrink: 0;
}

.footer__logo {
    display: block;
    width: 246.75px;
    height: 167.685px;
}

/* ----- Columns ----- */
.footer__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ----- Label ----- */
.footer__label {
    color: #5B371F;
    font-family: "Nunito Sans", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    margin-bottom: 20px;
}

/* ----- Phone / Email ----- */
.footer__contact {
    color: #5B371F;
    font-family: "Nunito Sans", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 42px;
    transition: color 0.25s ease;
}

.footer__contact:hover {
    color: #265F16;
}

/* ----- Note under phone ----- */
.footer__note {
    color: #7C746E;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    line-height: 26px;
}

/* ----- Work hours ----- */
.footer__hours {
    color: #5B371F;
    font-family: "Nunito Sans", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

/* ----- Social links ----- */
.footer__social {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: #5B371F;
    font-family: "Nunito Sans", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    transition: color 0.25s ease;
}

.footer__social img{
    max-width: 12px;
}

.footer__social:hover {
    color: #265F16;
}

/* =========================================
   FOOTER BOTTOM — background image
========================================= */
.footer__bg {
    height: 381px;
    background-image: url('../img/Bg_futer_desk.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin-top: 40px;
}



@media (max-width: 1560px) {
    .footer__logo {
        display: block;
        width: 200.75px;
        height: auto;
    }
    .footer__label {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 20px;
    }
    .footer__contact {
        font-size: 26px;
        line-height: 38px;
    }

    .footer__note{
        font-size: 16px;
    }
    .footer__hours {
        font-size: 18px;
        line-height: 28px;
    }
    .footer__social {
        gap: 20px;
        font-size: 20px;
        line-height: 26px;
    }
}

/* =========================================
   FOOTER — Tablet (≤ 1024px)
========================================= */
@media (max-width: 1024px) {

    .footer__inner {
        align-items: flex-start;
        gap: 32px 40px;
    }

    /* Лого слева — фиксированная ширина */
    .footer__logo-wrap {
        flex: 0 0 auto;
        width: auto;
    }

    .footer__logo {
        width: 160px;
        height: 109px;
    }

    /* Колонки занимают оставшееся место справа от лого */
    .footer__col {
        flex: 1 1 calc(48% - 20px);
        max-width: calc(48% - 20px);
    }

    .footer__contact {
        font-size: 26px;
        line-height: 36px;
    }

    .footer__label {
        font-size: 18px;
        line-height: 26px;
    }

    .footer__bg {
        height: 184px;
        background-image: url('../img/Bg_futer_tablet.webp');
        margin-top: 32px;
    }
    .footer_col_wrap {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 40px;
    }
    .footer__col.liniya_col {
        order: 1;
    }
    .footer__col.time_col {
        order: 2;
    }
    .footer__col.vidguk_col {
        order: 3;
    }
    .footer__col.social_col {
        order: 4;
    }
}

/* =========================================
   FOOTER — Mobile (≤ 768px)
========================================= */
@media (max-width: 767px) {
    .footer__col.vidguk_col {
        order: 2;
    }

    .footer__top {
        padding-top: 40px;
    }

    .footer__inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer__logo-wrap {
        width: auto;
    }

    .footer__logo {
        width: 171px;
        height: 116px;
    }

    .footer__col {
        flex: unset;
        width: 100%;
        max-width: 100%;
    }

    .footer__contact {
        font-size: 32px;
        line-height: 38px;
    }

    .footer__label {
        font-size: 20px;
        line-height: 26px;
    }

    .footer__note {
        font-size: 16px;
    }

    .footer__bg {
        height: 161px;
        background-image: url('../img/Bg_futer_mob.webp');
        margin-top: 24px;
    }
    .footer_col_wrap {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 20px;
    }
    .benefits__cell--icon img {
        width: 110px;
    }

    .footer__social {
        gap: 24px;
        font-size: 24px;
        line-height: 26px;
        font-weight: 700;
        color: #5B371F;
        margin-bottom: 24px;
    }

    .footer__social:last-child {
        margin-bottom: 0;
    }
}

/* =========================================
   SCROLL TO TOP
========================================= */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .scroll-top {
        bottom: 24px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    .products__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}


/* =========================================
   FACTS SCROLL ANIMATION
========================================= */

/* Начальное состояние всех анимируемых элементов */
.facts__egg-img,
.facts__item img,
.facts__title,
.facts__desc {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Центральное яйцо */
.facts__grid.is-animated .facts__egg-img {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* Верхние блоки — иконки */
.facts__grid.is-animated .facts__col--left .facts__item:nth-child(1) img,
.facts__grid.is-animated .facts__col--right .facts__item:nth-child(1) img {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

/* Верхние блоки — заголовки */
.facts__grid.is-animated .facts__col--left .facts__item:nth-child(1) .facts__title,
.facts__grid.is-animated .facts__col--right .facts__item:nth-child(1) .facts__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Верхние блоки — описание */
.facts__grid.is-animated .facts__col--left .facts__item:nth-child(1) .facts__desc,
.facts__grid.is-animated .facts__col--right .facts__item:nth-child(1) .facts__desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.65s;
}

/* Средние блоки — иконки */
.facts__grid.is-animated .facts__col--left .facts__item:nth-child(2) img,
.facts__grid.is-animated .facts__col--right .facts__item:nth-child(2) img {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* Средние блоки — заголовки */
.facts__grid.is-animated .facts__col--left .facts__item:nth-child(2) .facts__title,
.facts__grid.is-animated .facts__col--right .facts__item:nth-child(2) .facts__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.95s;
}

/* Средние блоки — описание */
.facts__grid.is-animated .facts__col--left .facts__item:nth-child(2) .facts__desc,
.facts__grid.is-animated .facts__col--right .facts__item:nth-child(2) .facts__desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.1s;
}

/* Нижние блоки — иконки */
.facts__grid.is-animated .facts__col--left .facts__item:nth-child(3) img,
.facts__grid.is-animated .facts__col--right .facts__item:nth-child(3) img {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.25s;
}

/* Нижние блоки — заголовки */
.facts__grid.is-animated .facts__col--left .facts__item:nth-child(3) .facts__title,
.facts__grid.is-animated .facts__col--right .facts__item:nth-child(3) .facts__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.4s;
}

/* Нижние блоки — описание */
.facts__grid.is-animated .facts__col--left .facts__item:nth-child(3) .facts__desc,
.facts__grid.is-animated .facts__col--right .facts__item:nth-child(3) .facts__desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.55s;
}

/* На мобайле — отключаем задержки, просто fade */
@media (max-width: 767px) {
    .facts__egg-img,
    .facts__item img,
    .facts__title,
    .facts__desc {
        transition-delay: 0s !important;
    }
}


/* =========================================
   BENEFITS SCROLL ANIMATION
========================================= */

.benefits__cell--text,
.benefits__cell--photo {
    opacity: 0;
    transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.benefits__cell--icon {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Строки 1 и 3: текст слева, фото справа */
.benefits__cell[style*="grid-row:1"].benefits__cell--text,
.benefits__cell[style*="grid-row:3"].benefits__cell--text {
    transform: translateX(-20px);
}

.benefits__cell[style*="grid-row:1"].benefits__cell--photo,
.benefits__cell[style*="grid-row:3"].benefits__cell--photo {
    transform: translateX(20px);
}

/* Строка 2: фото слева, текст справа */
.benefits__cell[style*="grid-row:2"].benefits__cell--photo {
    transform: translateX(-20px);
}

.benefits__cell[style*="grid-row:2"].benefits__cell--text {
    transform: translateX(20px);
}

/* ----- Строка 1 ----- */
.benefits__grid.is-animated .benefits__cell[style*="grid-row:1"].benefits__cell--text,
.benefits__grid.is-animated .benefits__cell[style*="grid-row:1"].benefits__cell--photo {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.benefits__grid.is-animated .benefits__cell[style*="grid-row:1"].benefits__cell--icon {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* ----- Строка 2 ----- */
.benefits__grid.is-animated .benefits__cell[style*="grid-row:2"].benefits__cell--text,
.benefits__grid.is-animated .benefits__cell[style*="grid-row:2"].benefits__cell--photo {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.7s;
}

.benefits__grid.is-animated .benefits__cell[style*="grid-row:2"].benefits__cell--icon {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.1s;
}

/* ----- Строка 3 ----- */
.benefits__grid.is-animated .benefits__cell[style*="grid-row:3"].benefits__cell--text,
.benefits__grid.is-animated .benefits__cell[style*="grid-row:3"].benefits__cell--photo {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 1.3s;
}

.benefits__grid.is-animated .benefits__cell[style*="grid-row:3"].benefits__cell--icon {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.7s;
}

/* ----- Мобайл — упрощённый fade up ----- */
@media (max-width: 767px) {

    .benefits__cell--text,
    .benefits__cell--photo,
    .benefits__cell[style*="grid-row:1"].benefits__cell--text,
    .benefits__cell[style*="grid-row:1"].benefits__cell--photo,
    .benefits__cell[style*="grid-row:2"].benefits__cell--text,
    .benefits__cell[style*="grid-row:2"].benefits__cell--photo,
    .benefits__cell[style*="grid-row:3"].benefits__cell--text,
    .benefits__cell[style*="grid-row:3"].benefits__cell--photo {
        transform: translateY(16px);
    }

    .benefits__grid.is-animated .benefits__cell--text,
    .benefits__grid.is-animated .benefits__cell--photo {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .benefits__grid.is-animated .benefits__cell--icon {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0s;
    }
}