/*----------------------------------

            Навигация по файлу

----------------------------------*/

/*

служебное
01. Шрифты
02. vertical grid
03. grids
04. header
05. nav
05.1 nav-btn
05.2 mobile-menu
05.3 mobile-menu-close
05.4 layout__nav_sticky
06. layout__content
07. sidebar left - vertical menu
08. frontpage
08.1 category page
08.2 product page
08.3 product card page
08.1 banner
09. sidebar right
10. layout__subblock
11. footer
12. popup_sos
13. popup form
14. news_page
15. article
15.1 text-page
15.2 contacts
16. article nav (prev/next)
17. article text
18. cookies popup

*/

/*----------------------------------

            служебное

----------------------------------*/
:root {
    --main-green: #00b050;
    --main-red: #BA0101;
    --main-white: #fff;
    --main-black: #000;
    /* --footer-bg: #172337; */
    --footer-bg: #00b050;
    --header-border: #e8e8e8;
    --stock-green: #388e3c;
    --table-border: #e9e9e9;
}

.sticky {
    height: 2rem;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 20;
}

.sticky_header {
    /* height: 4rem; */
    left: 0;
    position: sticky;
    right: 0;
    top: 0;
    z-index: 20;
    background-color: var(--main-white);
}

.sticky_nav {
    /* height: 2rem; */
    left: 0;
    position: sticky;
    right: 0;
    top: 6rem;
    z-index: 20;
}

a.link {
    /* color: var(--main-green); */
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

h1 {
    /* line-height: 36px; */
    padding: 0 0 9px 0;
    margin: 0 0 12px 0;
    font-size: 20px;
    
    position: relative;
    font-family: 'Lato';
    font-weight: 900;
    font-style: normal;
    text-transform: uppercase;
    border-bottom: 1px solid var(--header-border);

    white-space: nowrap;
    text-wrap: wrap;
    word-break: normal;
}


h1::before {
    content: '';
    width: 40px;
    height: 2px;
    position: absolute;
    bottom: -1px;
    left: 0;
    background-color: var(--main-green);
    padding-right: 10px;
}

h2 {
    position: relative;
    font-family: 'Lato';
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    /* line-height: 1.4; */
    /* margin-bottom: 12px; */
    border-bottom: 1px solid var(--header-border);
    padding-top: 12px;
    padding-bottom: 9px;
    margin: 0 0 17px 0;
    font-size: 20px;

}

h2:before {
    content: '';
    width: 40px;
    height: 2px;
    position: absolute;
    bottom: -1px;
    left: 0;
    background-color: var(--main-green);
    padding-right: 10px;
}

.sidebar h2 {
    padding-bottom: 9px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.4;
}

.article_text h2:before {
    content: none;
}

h3 {
    margin: 0 0 15px 0;
}


.frontpage-share-icons {
    display: flex;
    align-items: center;
    gap: 6px; /* расстояние между иконками */
}

/* Базовый стиль кнопки-иконки */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
    padding: 0;
}

/* При наведении */
.icon-wrapper:hover .icon,
.icon:hover {
    transform: scale(1.1);
}

.icon:active {
    background-color: transparent;
}

/* Копировать*/

.icon-copy {
    background-image: url("../img/copy.svg");
}

.icon-wrapper:hover .icon-copy,
.icon-copy:hover {
    background-image: url("../img/copy-color.svg");
}

.icon-share {
    background-image: url("../img/share.svg");
}

.icon-wrapper:hover .icon-share,
.icon-share:hover {
    background-image: url("../img/share-color.svg");
}

/* Telegram */
.icon-telegram {
    background-image: url("../img/telegram.svg");
}
.icon-telegram:hover {
    background-image: url("../img/telegram-color.svg");
}

/* WhatsApp */
.icon-whatsapp {
    background-image: url("../img/whatsapp.svg");
}
.icon-whatsapp:hover {
    background-image: url("../img/whatsapp-color.svg");
}

/* VK */
.icon-vk {
    background-image: url("../img/vk.svg");
}
.icon-vk:hover {
    background-image: url("../img/vk-color.svg");
}

/* (необязательно) — тёмная тема */
@media (prefers-color-scheme: dark) {
    .icon {
        filter: brightness(1.2);
    }
}


/*----------------------------------

            01. Шрифты

----------------------------------*/

body {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    /* font-weight: 900;
    font-style: normal; */
}

h1, h2, h3, h4 {
    line-height: 25px;
}

/*----------------------------------

            02. vertical grid

----------------------------------*/

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.layout {
    display: grid;
    /* Колонка не шире окна: фиксированная ширина блока логотипов не растягивает страницу. */
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr auto auto auto;
    /* grid-template-rows: repeat(5, auto); */
    /* grid-template-rows: minmax(1fr, auto); */
    /* subsection — пагинатор, partners — логотипы; разные области, чтобы блоки могли быть на одной странице */
    grid-template-areas: 
                            "header_top"
                            "header"
                            "nav"
                            "main"
                            "subsection"
                            "partners"
                            "footer";
    min-height: 100vh;
}

.layout__header_top {
    grid-area: header_top;
}

.layout__header {
    grid-area: header;
}

.layout__nav {
    grid-area: nav;
}

.layout__frontpage,
.layout__categorypage,
.layout__products-list-page,
.layout__productpage,
.layout__news,
.layout__text {
    display: flex;
    flex-direction: column;
    grid-area: main;
}

.layout > main > .container {
    flex: 1 1 auto;
    width: 100%;
}

.layout__footer {
    grid-area: footer;
}

.container {
    margin: 0 auto;
    border-left: 1px solid var(--header-border);
    border-right: 1px solid var(--header-border);

    /* fix1 */
    max-width: 1400px;
}

@media (max-width: 1400px) {
    .container {
        max-width: initial;
    }
}

/*----------------------------------

            03. grids

----------------------------------*/

.grid-3-frontpage {
    display: grid;
    grid-template-columns: 3fr 6fr 3fr;
    grid-template-areas:
                            "aside_left     main    aside_right";
    padding: 0 15px;
}

.grid-3-frontpage > * {
    min-width: 0;
}

@media (max-width: 991px) {
    .grid-3-frontpage {
        grid-template-columns: 3fr 4fr 2fr;
    }
}

@media (max-width: 767px) {
    .grid-3-frontpage {
        grid-template-columns: auto;
        grid-template-areas:
                            "main"
                            "aside_left"
                            "aside_right";
    }
}

@media (max-width: 460px) {
    .grid-3-frontpage {
        padding: 0;
    }
}

.grid-3-news {
    display: grid;
    grid-template-columns: 276px 5fr 360px;
    grid-template-areas:
                            "aside_left     main    gallery";
    padding: 0 15px;
}

@media (max-width: 1300px) {}

/* @media (max-width: 700px) {} */

@media (max-width: 900px) {
    .grid-3-news {
        display: grid;
        grid-template-areas:
                            "aside_left     main"
                            "gallery        gallery";
        grid-template-columns: 276px auto;
    }
}

@media (max-width: 600px) {
    .grid-3-news {
        display: grid;
        grid-template-areas:
                            "main"
                            "aside_left"
                            "gallery";
        grid-template-columns: auto;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: 3fr 9fr;
    grid-template-areas: 
                        "aside_left main";
    padding: 0 15px 34px 15px;
}

.article {
    grid-area: main;
}

@media (max-width: 991px) {
    .grid-2 {
        grid-template-columns: 1fr 2fr;
    }
}

@media (max-width: 767px) {
    .grid-2 {
        grid-template-columns: 1fr;
        grid-template-areas: 
                        "main"
                        "aside_left";
    }
}

/* Контейнер оригинала с 1025px занимает 96% рамки: с каждого края 2% плюс 15px поля колонки. На рамке 1400px это 43px. */
@media (min-width: 1025px) {
    .grid-3-frontpage,
    .grid-3-news,
    .grid-2 {
        padding-left: calc(2% + 15px);
        padding-right: calc(2% + 15px);
    }
}


/*----------------------------------

            04. header

----------------------------------*/

.header__top {
    background-color: var(--main-green);
    padding-left: 40px;
}

@media (max-width: 600px) {
    .header__top {
        padding-left: 0 9px;
    }
}

.header__top p {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 40px;
    font-weight: 600;
    /* text-transform: uppercase; */
    color: var(--main-white);
    padding: 0 15px 0 0; /* 11px 23px 9px 23px; */
    font-style: normal;
}

.header__middle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--header-border);
    background-color: var(--main-white);
    /* fix1 */
    justify-content: space-around;
    padding: 16px 43px;
    gap: 18px;
}

@media (max-width: 1000px) {
    .header__middle {
        gap: 15px;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .header__middle {
        gap: 2px;
        padding: 3px;
    }
}

.header__logo img {
    width: 180px;



    /* fix1 */
    /* margin-left: 37px; */
    /* margin-top: 1px; */
}

@media (max-width: 600px) {
    .header__logo {
        width: 105px;
    }
}

.header__search {
    flex: 1 1 0;
    /* padding-left: 60px; */
}

@media (max-width: 476px) {
    .header__search {
        padding-left: 0;
    }
}

.header__search form {
    /* fix1 */
    display: flex;
}

.header__search form input[type="text"] {

    flex: 1 1 0;

    /* fix1 */
    /* width: 486px;
    height: 46px; */
    margin: 0;
    padding: 0.5em;
    font-size: 1em;
}

.header__search form input[type="submit"] {
    background-color: var(--main-green);
    color: var(--main-white);
    width: 63px;
    height: 46px;
    border: none;
    margin: 0;
    cursor: pointer;
}

/* .header__search form button {
    background-color: var(--main-green);
    color: var(--main-white);
    width: 63px;
    height: 46px;
    border: none;
    margin: 0;
    cursor: pointer;
} */


/* --------------------------- */

.search-form {
    display: inline-flex;
    align-items: center;
}

.search-btn {
    background-color: var(--main-green);
    color: var(--main-white);
    width: 63px;
    height: 46px;
    border: none;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-btn img {
    transition: all 0.3s ease;
}

.search-btn:hover img {
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .search-form input[type="text"] {
        font-size: 0.8em;
        line-height: 18px;
    }

    .search-btn {
        height: 40px;
    }
}


/* --------------------------- */




.header__social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;

    /* fix1 */
    /* margin-left: 27px; */
}

.header__social a img {
    width: 28px;
    height: 28px;
    transition: all .7s ease-in-out;
}

.header__social a:hover img {
    transform: scale(1.1);
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 3px;

    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    font-style: normal;
    line-height: 22.5px;
    color: #555;

    /* fix1 */
    /* margin-left: 22px; */
}

.header__contacts .contacts p span {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-style: normal;
}

.header__contacts .contacts a {
    text-decoration: none;
    color: #555;
    border-bottom: 1px solid transparent;
    transition: all .7s ease-in-out;
}

.header__contacts .contacts a:hover {
    text-decoration: none;
    color: var(--main-green);
    /* border-bottom: 1px solid var(--main-green); */
}

.header__popup_button button {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 5px 0; /*5px 7px;*/
    cursor: pointer;
    border: none;
    background-color: var(--main-white);
    color: var(--main-green);
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

.header__popup_button button p {
    word-break: break-word;
    width: 138px;
    text-align: left;
}

/*----------------------------------

            header sticky

----------------------------------*/

.layout__header_sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
}

.header_hidden {
    display: none;
}

.header__nav_sticky .nav {
    gap: 16px;
}

.header__middle_sticky {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    border-bottom: 1px solid var(--header-border);
    background-color: var(--main-white);
    justify-content: space-around;
    padding: 0 43px;
    gap: 6px;
}

@media (max-width: 1000px) {
    .header__middle_sticky {
        gap: 15px;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 950px) {
    .header__middle_sticky {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .header__middle_sticky {
        gap: 2px;
        padding: 0 3px;
    }
}

.header__middle_sticky .header__social {
    flex: 0 0 auto;
}

.header__middle_sticky .header__contacts {
    flex: 0 0 auto;
}

.header__middle_sticky .header__popup_button {
    flex: 0 0 auto;
}

/*----------------------------------

            05. nav

----------------------------------*/

.nav {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* margin-left: 50px; */

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 20.8px;
    font-weight: 700;
    letter-spacing: 0.2;
    font-style: normal;
    text-transform: uppercase;

    @media (max-width: 600px) {
        display: none;
    }
}

.container-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--header-border);
    background-color: var(--main-white);

    padding: 10px 0 10px 50px;

    @media (max-width: 600px) {
        justify-content: flex-end;
        display: none;
    }
}

.nav {
    order: 1;
}

.nav-btn {
    order: 2;
}

.nav li a {
    color: var(--main-black);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.4s ease, border-bottom-color 0.3s ease;
}

.nav li a.active_link {
    color: var(--main-green);
}

.nav li a:hover {
    color: var(--main-green);
    /* border-bottom-color: var(--main-green); */
}

.nav-hidden {
    display: none;
}

/*----------------------------------

            05.1 nav-btn

----------------------------------*/


.nav-btn {
	height: 35px;
	overflow: hidden;
	position: relative;
	width: 35px;
	z-index:2;
    cursor: pointer;
    display: none;
    padding: 7px;
    margin-right: 20px;

    @media (max-width: 600px) {
        display: inline-block;
        margin-left: auto;
    }
}

.nav-btn span {
	background-color: var(--main-green);
	height: 2px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: all 0.5s;
	width: 30px;
}

.nav-btn span:nth-of-type(2) {
	top: calc(50% - 5px);
}

.nav-btn span:nth-of-type(3) {
	top: calc(50% + 5px);
}

/* Изменяем иконку бургера */
.nav-btn.active span:nth-of-type(1) {
    display: none;
}

.nav-btn.active span:nth-of-type(2) {
    top: 50%;
    transform: translate(-50%, 0%) rotate(45deg);  
}

.nav-btn.active span:nth-of-type(3) {
    top: 50%;
    transform: translate(-50%, 0%) rotate(-45deg); 
}

/*----------------------------------

            05.2 mobile-menu

----------------------------------*/

.mobile-menu {
    background-color: var(--main-white);
    bottom: 0;
    left: 0;
    max-width: 420px;
    min-width: 280px;
    overflow-y: auto;
    position: fixed;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.5s;
    z-index: 100;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    list-style-type: none;
    padding-left: 25px;
    padding-right: 25px;
    /* padding: 12px; */
}

.mobile-menu li {
    position: relative;
    /* border-bottom: 1px solid #444; */
}

.mobile-menu ul a {
    color: var(--main-black);
    font-family: 'Lato';
    text-decoration: none;
}



/* ===== Кнопка "+" ===== */
.toggle-mobile-submenu {
    position: absolute;
    right: 0;
    top: 0;
    /* width: 48px;
    height: 48px; */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--main-green);
    cursor: pointer;
    transition: transform .2s ease, color .2s ease, background .2s ease;
    background: transparent;
    z-index: 2;
    line-height: 25px;
}

/* .toggle-mobile-submenu:hover {
    background: var(--footer-bg);
} */

.toggle-mobile-submenu.rotate {
    transform: rotate(45deg);
    color: var(--main-red);
    /* color: #fff; */
}


/* ===== Подменю ===== */
.mobile-submenu {
    /* background: #444; */
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
    margin: 0;
    padding: 0;
}

.mobile-submenu.open {
    max-height: 1000px;
}

/* Вложенные уровни */
.mobile-submenu li a {
    padding-left: 15px;
}

.mobile-submenu .mobile-submenu li a {
    padding-left: 25px;
}

.mobile-submenu li {
    /* border-bottom: 1px solid #555; */
}

/*----------------------------------

            05.3 mobile-menu-close

----------------------------------*/

.mobile-menu-close {
	height: 35px;
	overflow: hidden;
    position: fixed;
    top: 3px;
    right: 7px;
	width: 35px;
	z-index:2;
    cursor: pointer;
    display: none;
    padding: 7px;

    @media (max-width: 600px) {
        display: inline-block;
    }
}

.mobile-menu-close span {
	background-color: var(--main-green);
	height: 2px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: all 0.5s;
	width: 30px;
}

.mobile-menu-close span:nth-of-type(2) {
	top: calc(50% - 5px);
}

.mobile-menu-close span:nth-of-type(3) {
	top: calc(50% + 5px);
}

.mobile-menu-close.active span:nth-of-type(1) {
    display: none;
}

.mobile-menu-close.active span:nth-of-type(2) {
    top: 50%;
    transform: translate(-50%, 0%) rotate(45deg);  
}

.mobile-menu-close.active span:nth-of-type(3) {
    top: 50%;
    transform: translate(-50%, 0%) rotate(-45deg); 
}

/*----------------------------------

            05.4 layout__nav_sticky

----------------------------------*/



.layout__nav_sticky {
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.layout__nav_sticky .social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;

    /* fix1 */
    margin-left: 27px;
}

.layout__nav_sticky .social a img {
    width: 28px;
    height: 28px;
}

.layout__nav_sticky .contacts {
    display: flex;
    align-items: center;
    gap: 3px;

    /* fix1 */
    margin-left: 22px;
}

.layout__nav_sticky .contacts span {
    font-weight: 600;
}

.layout__nav_sticky .popup_button button {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 5px 7px;
    cursor: pointer;
    border: none;
    background-color: var(--main-white);
    color: var(--main-green);
    font-size: 17px;
    text-transform: uppercase;
}

.layout__nav_sticky .popup_button button p {
    word-break: break-word;
    width: 138px;
    text-align: left;
}

/*----------------------------------

            06. layout__content

----------------------------------*/

.layout__frontpage {}

.layout__frontpage .container{
    /* padding-top: 12px; */
}

aside.sidebar {
    padding: 0;
}



/*----------------------------------

            07. sidebar left

----------------------------------*/

aside.sidebar.left {
    grid-area: aside_left;
    display: flex;
    flex-direction: column;
    align-self: start;
    padding-right: 15px;
    /* position: sticky; */
    top: 12px;
    z-index: 5;
}

@media (max-width: 600px) {
    aside.sidebar.left {
        display: flex;
        position: static;
        padding-right: 0;
    }

    aside.sidebar.left h2,
    aside.sidebar.left .menu {
        display: none;
    }
}

.menu {
    list-style-type: none;
    padding: 0;
}

.menu li {
    margin-bottom: 7px;
    border-bottom: 1px solid var(--main-black);
    font-size: 14px;

    display: flex;
    align-items: center;
    justify-items: flex-start;

    padding: 0 0 7px 0;
    margin: 0 0 7px 0;

    transition: border-bottom 0.4s ease;
}

.menu li:hover {
    border-bottom: 1px solid var(--main-green);
}

.menu li:last-child {
    border-bottom: 1px solid transparent;
}

.menu li a {
    color: var(--main-black);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    flex: 1 0 0;

    position: relative;
    padding-right: 15px;

    transition: color 0.4s ease;
}

.menu li a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid var(--main-black);   /* цвет стрелки */
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.menu li a:hover {
    color: var(--main-green);
}

.menu li a:hover::after {
    border-left: 5px solid var(--main-green);
}

.menu li.active_link a {
    color: var(--main-green);
}

.menu li.active_link {
    border-bottom: 1px solid var(--main-green);
}


.menu {}

.menu > li {
    position: relative;
}

.submenu {
    position: absolute;
    display: none;
    background-color: var(--main-white);
    border: 1px solid var(--main-green);
    z-index: 10;
    top: 0;
    left: 102%;
    /* width: 100%; */
    width: 340px;
    padding: 7px 15px;
}

/* если будет нужено несоклько колонок */
/* .submenu {
    display: none;
    opacity: 1;
    visibility: visible;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
} */

.submenu > li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 18px;
    border-bottom: 1px solid transparent;
}

.submenu > li:hover {
    border-bottom: 1px solid transparent;
}

.submenu > li > a::after {
    content: none;
}


/* Вложенные подменю (3-й уровень и ниже) */
.submenu .submenu {
    top: 0;
    left: 100%;
}

/* Класс для отображения подменю */
.submenu.show {
    display: grid;
    opacity: 1;
    visibility: visible;
}

.submenu-photo-box {
    width: 50px;
    height: 50px;
    overflow: hidden;
}

.submenu-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}


/*----------------------------------

            08. frontpage

----------------------------------*/

.layout__frontpage .frontpage {
    grid-area: main;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 0;
    align-self: stretch;
    min-width: 0;
}

@media (max-width: 800px) {
    .layout__frontpage .frontpage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .layout__frontpage .frontpage {
        margin-bottom: 35px;
    }
}

@media (max-width: 420px) {
    .layout__frontpage .frontpage {
        grid-template-columns: minmax(0, 1fr);
    }
}

.layout__frontpage .frontpage_item {
    position: relative;
    width: 100%;
    max-width: 210px;
    height: auto;
    aspect-ratio: 1;
    align-self: center;
    justify-self: center;
    min-width: 0;
    padding: 15px;
}

@media (max-width: 420px) {
    .layout__frontpage .frontpage_item {
        max-width: 300px;
    }
}

.layout__frontpage .frontpage_img_box {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.layout__frontpage .frontpage_img_box span {
    color: var(--main-black);
    transition: color 0.4s ease;
}

.layout__frontpage .frontpage_img_box:hover span {
    color: var(--main-green);
}

.layout__frontpage .frontpage_img_box {
    
}

.layout__frontpage .frontpage_img_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;

    transition: all .7s ease-in-out;
}

.layout__frontpage .frontpage_img_box img:hover {
    transform: scale(1.11);
}

.layout__frontpage .frontpage_img_text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.3;
    color: var(--main-black);
    box-sizing: border-box;

    white-space: nowrap;
    /* overflow: hidden; */
    text-overflow: ellipsis;
    text-wrap: wrap;
}

/*----------------------------------

            08.1 category page

----------------------------------*/

.layout__categorypage .categorypage {
    align-self: start;
    column-gap: 32px;
    display: grid;
    grid-area: main;
    grid-auto-rows: minmax(262px, auto);
    grid-template-columns: repeat(3, 1fr);
    height: auto;
    row-gap: 16px;
    padding-top: 24px;
}

@media (max-width: 800px) {
    .layout__categorypage .categorypage {
        column-gap: 16px;
        grid-auto-rows: auto;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .layout__categorypage .categorypage {
        margin-bottom: 35px;
    }
}

@media (max-width: 420px) {
    .layout__categorypage .categorypage {
        grid-template-columns: 1fr;
    }
}

.layout__categorypage .categorypage_item {
    aspect-ratio: 1 / 1;
    height: auto;
    justify-self: center;
    min-height: 262px;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 82%;
}

@media (max-width: 800px) {
    .layout__categorypage .categorypage_item {
        min-height: 0;
    }
}

.layout__categorypage .categorypage_img_box {
    display: block;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.layout__categorypage .categorypage_img_box span {
    color: var(--main-black);
    transition: color 0.4s ease;
}

.layout__categorypage .categorypage_img_box:hover span {
    color: var(--main-green);
}

.layout__categorypage .categorypage_img_box {
    
}

.layout__categorypage .categorypage_img_box img {
    display: block;
    height: 100%;
    left: 0;
    object-fit: cover;
    object-position: 50% 50%;
    position: absolute;
    top: 0;
    transition: all .7s ease-in-out;
    width: 100%;
}

.layout__categorypage .categorypage_img_box img:hover {
    transform: scale(1.11);
}

.layout__categorypage .categorypage_img_text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.3;
    color: var(--main-black);
    box-sizing: border-box;

    white-space: nowrap;
    /* overflow: hidden; */
    text-overflow: ellipsis;
    text-wrap: wrap;
}

.layout__categorypage .categorypage .categorypage_message {
    padding: 12px;
}

/*----------------------------------

            08.2 product page

----------------------------------*/

.layout__products-list-page {
    padding-top: 24px;
}

.layout__products-list-page .products-list-page {
    align-self: start;
    column-gap: 32px;
    display: grid;
    grid-area: main;
    grid-auto-rows: minmax(262px, auto);
    grid-template-columns: repeat(3, 1fr);
    height: auto;
    row-gap: 16px;
}

@media (max-width: 800px) {
    .layout__products-list-page .products-list-page {
        column-gap: 16px;
        grid-auto-rows: auto;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .layout__products-list-page .products-list-page {
        margin-bottom: 35px;
    }
}

@media (max-width: 420px) {
    .layout__products-list-page .products-list-page {
        grid-template-columns: 1fr;
    }
}

.layout__products-list-page .products-list-page_item {
    aspect-ratio: 1 / 1;
    height: auto;
    justify-self: center;
    min-height: 262px;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 82%;
}

@media (max-width: 800px) {
    .layout__products-list-page .products-list-page_item {
        min-height: 0;
    }
}

.layout__products-list-page .products-list-page_img_box {
    display: block;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.layout__products-list-page .products-list-page_img_box span {
    color: var(--main-black);
    transition: color 0.4s ease;
}

.layout__products-list-page .products-list-page_img_box:hover span {
    color: var(--main-green);
}

.layout__products-list-page .products-list-page_img_box {
    
}

.layout__products-list-page .products-list-page_img_box img {
    display: block;
    height: 100%;
    left: 0;
    object-fit: cover;
    object-position: 50% 50%;
    position: absolute;
    top: 0;
    transition: all .7s ease-in-out;
    width: 100%;
}

.layout__products-list-page .products-list-page_img_box img:hover {
    transform: scale(1.11);
}

.layout__products-list-page .products-list-page_img_text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.3;
    color: var(--main-black);
    box-sizing: border-box;

    white-space: nowrap;
    /* overflow: hidden; */
    text-overflow: ellipsis;
    text-wrap: wrap;
}

/*----------------------------------

            08.3 product card page

----------------------------------*/

.layout__productpage .productpage {
    align-self: start;
    display: grid;
    gap: 24px 20px;
    grid-area: main;
    grid-template-areas:
        "gallery info price"
        "tabs tabs tabs";
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.85fr);
    padding: 20px 0 0 0;
}

.layout__productpage .productpage > * {
    min-width: 0;
}

@media (max-width: 1000px) {
    .layout__productpage .productpage {
        grid-template-areas:
            "gallery gallery"
            "info price"
            "tabs tabs";
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 800px) {
    .layout__productpage .productpage {
        grid-template-areas:
            "gallery"
            "info"
            "price"
            "tabs";
        grid-template-columns: 1fr;
    }
}

.productpage__gallery {
    display: grid;
    gap: 12px;
    grid-area: gallery;
    grid-template-areas: "thumbs main";
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 360px;
    min-width: 0;
}

.productpage__gallery--single {
    grid-template-areas: "main";
    grid-template-columns: 1fr;
}

.productpage__gallery--single .product-thumbs {
    display: none;
}

@media (max-width: 700px) {
    .productpage__gallery {
        grid-template-areas:
            "main"
            "thumbs";
        grid-template-columns: 1fr;
        min-height: 0;
    }
}

.product-thumbs {
    grid-area: thumbs;
    height: 400px;
    overflow: hidden;
}

.product-main {
    grid-area: main;
    height: 400px;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 700px) {
    .product-thumbs {
        height: 88px;
    }

    .product-main {
        height: 280px;
    }
}

.product-thumbs .swiper-slide {
    border: 1px solid var(--header-border);
    box-sizing: border-box;
    column-gap: 0;
    cursor: pointer;
    display: block;
    grid-template-areas: none;
    grid-template-columns: none;
    height: 80px !important;
    max-width: 100%;
    width: 100% !important;
}

.product-thumbs .swiper-slide-thumb-active {
    border-color: var(--main-green);
}

.product-main .swiper-slide {
    column-gap: 0;
    display: block;
    grid-template-areas: none;
    grid-template-columns: none;
    height: 100% !important;
    max-width: 100%;
    width: 100% !important;
}

.product-thumbs .image_box,
.product-main .image_box {
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.product-thumbs .image_box img,
.product-main .image_box img {
    display: block;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: 50% 50%;
    transition: transform 0.7s ease-in-out;
    width: 100%;
}

.product-thumbs .image_box img:hover {
    transform: scale(1.11);
}

.productpage__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-area: info;
}

@media (max-width: 1000px) {
    .productpage__info {
        margin-left: 24px;
    }
}

.productpage__info h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    white-space: normal;
    text-wrap: wrap;
}

.productpage__title-text {
    flex: 0 1 auto;
    min-width: 0;
}

.productpage__info .title-icons {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: none;
}

.productpage__info .share-wrapper {
    position: relative;
    display: inline-flex;
}

.productpage__info .share-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    display: none;
    min-width: 148px;
    margin: 0;
    padding: 4px 0;
    background-color: var(--main-white);
    border: 1px solid var(--header-border);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    text-transform: none;
}

.productpage__info .share-menu a {
    display: block;
    padding: 8px 14px;
    color: var(--main-black);
    font-weight: 400;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
}

.productpage__info .share-menu a:hover {
    background-color: #f4f4f4;
    color: var(--main-green);
}

.productpage__cost {
    font-family: "Lato", Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
}

.productpage__stock {
    color: var(--stock-green);
    margin: 0;
}

.productpage__category a {
    border-bottom: 1px solid transparent;
    color: var(--main-black);
    text-decoration: none;
    transition: color 0.4s ease;
}

.productpage__category a:hover {
    color: var(--main-green);
}

.productpage__analog-btn,
.product-price-form button {
    align-self: flex-start;
    background-color: var(--main-green);
    border: none;
    border-radius: 1px;
    color: var(--main-white);
    cursor: pointer;
    padding: 15px 24px;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.productpage__analog-btn:hover,
.product-price-form button:hover {
    opacity: 0.9;
}

.productpage__price {
    border: 1px solid var(--header-border);
    grid-area: price;
    padding: 16px 12px 16px 16px;
    margin-right: 24px;
}

.product-price-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-price-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-price-form input[type="text"],
.product-price-form input[type="email"] {
    border: 1px solid var(--header-border);
    padding: 10px 12px;
    width: 100%;
}

.product-price-form .product-price-form__agree {
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

.product-price-form .errorlist {
    color: red;
    margin: 0;
    padding-left: 1.2em;
}

.product-price-form .success-message {
    color: var(--main-green);
}

.product-price-form .error-message {
    color: red;
}

.productpage__tabs {
    grid-area: tabs;
    padding: 0 24px;
}

.productpage__tabs-nav {
    border-bottom: 1px solid var(--header-border);
    display: flex;
    gap: 0;
}

.productpage__tabs-nav button {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--main-black);
    cursor: pointer;
    font-family: "Lato", Arial, Helvetica, sans-serif;
    font-weight: 700;
    margin-bottom: -1px;
    padding: 10px 18px;
    text-transform: uppercase;
    transition: border-bottom-color 0.3s ease, color 0.3s ease;
}

.productpage__tabs-nav button.active {
    border-bottom-color: var(--main-green);
    color: var(--main-green);
}

.productpage__tab-panel {
    padding: 18px 0;
}

.productpage__tab-panel p {
    margin: 15px 0;
}

#panel-description table {
    border-collapse: collapse;
    width: 100%;
}

#panel-description th,
#panel-description td {
    border: 1px solid var(--table-border);
    padding: 3px 7px;
}

.productpage__details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.productpage__details li {
    border-bottom: 1px solid var(--header-border);
    display: grid;
    gap: 12px;
    grid-template-columns: 140px 1fr;
    padding-bottom: 10px;
}

.productpage__details li span {
    font-weight: 700;
}

@media (max-width: 420px) {
    .productpage__details li {
        grid-template-columns: 1fr;
    }
}

/*----------------------------------

            08.1 banner

----------------------------------*/

.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 16px;
}

.banner-box {
    width: 100%;
    height: 185px;
    overflow: hidden;
}

.banner-box > img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* изображение заполняет box */
    object-position: 50% 50%; /* центрируется (по желанию) */
    display: block;        /* убираем лишние пробелы под img */
    transition: all .7s ease-in-out;
}

.banner-box > img:hover {
    transform: scale(1.1);
}


/*----------------------------------

            09. sidebar right

----------------------------------*/

.sidebar.right {
    grid-area: aside_right;
}

.sidebar-swiper {
    height: calc(100px * 5 + 12px * 4); /* 5 слайдов и 4 промежутка */
    overflow: hidden;
}

.swiper-slide {
    height: 106px !important;
    box-sizing: border-box;
    max-width: 97%;
    min-width: 0;
    /* flex: 0 1 auto; */

    display: grid;
    grid-template-areas:
                            "photo text";

    grid-template-columns: auto 1fr;
    grid-template-rows: auto;

    column-gap: 12px;
}

.sidebar-swiper .swiper-slide {
    height: 100px !important;
    max-width: 100%;
    grid-template-columns: 65px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    padding: 12px 0;
    overflow: hidden;
}

.sidebar-swiper .swiper-slide:not(:last-child) {
    margin-bottom: 12px;
}



.image_box {
    width: 150px;
    height: 106px;
    overflow: hidden;
    flex: 0 0 auto;

    grid-area: photo;
}

.sidebar.right .image_box {
    width: 65px;
    height: 65px;
    max-width: 65px;
    min-width: 0;
    flex: 0 1 auto;
}

.image_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    transition: all .7s ease-in-out;
}

.swiper-slide:hover > .image_box > img {
    transform: scale(1.11);
}

.sidebar_text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    flex: 1 1 auto;
    grid-area: text;
    min-width: 0;
    overflow: hidden;
    line-height: 1.4;
    overflow-wrap: break-word;
    text-decoration: none;
    align-self: center;
}

/* .news-actions {
    grid-area: icons;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: start;
} */

/*----------------------------------

            10. layout__subblock

----------------------------------*/

.layout__subblock {
    grid-area: partners;
    padding: 17px 0;
}

.layout__subblock .container .content {
    padding: 2px;
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .layout__subblock .container .content {
        width: 800px;
    }
}

@media (max-width: 800px) {
    .layout__subblock .container .content {
        width: 700px;
    }
}

@media (max-width: 700px) {
    .layout__subblock .container .content {
        width: 600px;
    }
}

@media (max-width: 600px) {
    .layout__subblock .container .content {
        width: 500px;
    }
}

@media (max-width: 500px) {
    .layout__subblock .container .content {
        width: 400px;
    }
}

@media (max-width: 400px) {
    .layout__subblock .container .content {
        width: 300px;
    }
}

@media (max-width: 320px) {
    .layout__subblock .container .content {
        width: 270px;
    }
}



.swiper-partners .swiper-wrapper {
    align-items: center;
}

.swiper-partners  {
    max-height: 100px;
    padding: 0;
}

.layout__subblock .partners-slide {
    /* display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    height: 120px; */
    /* height: 120px;
    font-weight: 500; */
    transition: transform 0.3s ease;
    /* width: 250px; */
}

.layout__subblock .partners-slide:hover {
    transform: scale(1.05);
}

.partner_img_box {
    display: block;
    width: 115px;
    /* height: 150px; */
    overflow: hidden;

    display: flex;
    align-items: center;
}

.partner_img_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}

.swiper-partners-pagination {
    display: flex;
    justify-content: center;
}

.swiper-pagination-bullet-active {
    background: var(--main-green);
}

/* .layout__subblock ul {
    text-decoration: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.layout__subblock ul li {
    list-style-type: none;
}

.layout__subblock ul li a {
    display: block;
    width: 110px;
    height: 25px;
    overflow: hidden;
    flex: 1 0 auto;
}

.layout__subblock ul li a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
} */


/*----------------------------------

            11. footer

----------------------------------*/

footer.layout__footer {
    display: flex;
    flex-direction: row;

}

footer.layout__footer .container {
    background-color: var(--footer-bg);
    color: var(--main-white);
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
}

.layout__footer .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;

    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.footer p {
    padding: 13px 0;
}

.footer a {
    color: var(--main-white);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer a:hover {
    color: var(--main-white);
    text-decoration: none;
    border-bottom: 1px solid var(--main-white);
}

/*----------------------------------

            12. popup_sos

----------------------------------*/

#sos_popup img,
.sos_popup img {
    transition: all 0.3s ease;
}

#sos_popup:hover > img,
.sos_popup:hover > img {
    transform: scale(1.1);
}


.popup_sos {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.60);
    bottom: 0;
    display: flex;
    font-family: 'Lora';
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
}

.popup_sos_conten {
    position: relative;
    border: 1px solid var(--main-green);
    background-color: var(--main-white);
    border-radius: 2px;
    /* height: 50%; */
    padding: 34px;
    /* width: 50%; */
    display: block;
    margin: 50px 30%;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}

.popup_sos_hidden {
    display: none;
}


/* close icon */


.popup_sos_close {
    display: block;
	height: 35px;
	overflow: hidden;
    position: absolute;
    top: 3px;
    right: 3px;
	width: 35px;
	z-index:2;
    cursor: pointer;
    padding: 7px;
}

.popup_sos_close span {
	background-color: var(--main-green);
	height: 2px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: all 0.5s;
	width: 30px;
}

.popup_sos_close span:nth-of-type(2) {
	top: calc(50% - 5px);
}

.popup_sos_close span:nth-of-type(3) {
	top: calc(50% + 5px);
}

.popup_sos_close.active span:nth-of-type(1) {
    display: none;
}

.popup_sos_close.active span:nth-of-type(2) {
    top: 50%;
    transform: translate(-50%, 0%) rotate(45deg);  
}

.popup_sos_close.active span:nth-of-type(3) {
    top: 50%;
    transform: translate(-50%, 0%) rotate(-45deg); 
}


/* close icon */


@media (max-width: 1000px) {
    .popup_sos_conten {
        margin: 50px 20%;
    }
}

@media (max-width: 800px) {
    .popup_sos_conten {
        margin: 50px 14%;
    }
}

@media (max-width: 500px) {
    .popup_sos_conten {
        margin: 50px 50px;
    }
}

@media (max-width: 400px) {
    .popup_sos_conten {
        margin: 25px 15px;
    }
}

/*----------------------------------

            13. popup form

----------------------------------*/

.popup_sos_conten form {
    padding: 7px;
    margin: 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 4px;
}

.popup_sos_conten form div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.popup_sos_conten form div label {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup_sos_conten form div:nth-of-type(3) label {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.contact-form > div:nth-child(4) {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 7px 0;
}

.popup_sos_conten .errorlist li {
    color: red;
}

.popup_sos_conten form div input[type="text"],
.popup_sos_conten form div input[type="submit"] {
    flex: 0 0 0;
}

.popup_sos_conten form div input[type="submit"] {
    cursor: pointer;
    background-color: var(--main-green);
    color: var(--main-white);
    padding: 15px 24px;
    border: none;
    border-radius: 1px;
}

/*----------------------------------

            14. news_page

----------------------------------*/

.layout__news {}

.layout__news .container {
    padding-top: 38px;
}

.layout__news .container .content-grid .sidebar.left {}

.news {
    grid-area: main;
}



.news ul.news_grid {
    padding: 0;
    list-style-type: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 7px;
}

@media (max-width: 1200px) {
    .news ul.news_grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 41px;
    }
}

.news_link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 7px;

    text-decoration: none;
    color: var(--main-black);
    border-bottom: 1px solid transparent;
    transition: color 0.4s ease;
}

.news_link:hover {
    color: var(--main-green);
}

@media (max-width: 600px) {
    .news_link {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-around;
        gap: 7px;
    }
}

.news_image_box {
    width: 254px;
    height: 191px;
    overflow: hidden;
    flex: 1 0 19em;
}

@media (max-width: 600px) {
    .news_image_box {
        width: 100%;
        height: 300px;
    }
}

.news_image_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}

/*----------------------------------

            14. paginator

----------------------------------*/

.layout__paginator {
    grid-area: subsection;
}

.paginator_el {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 15px;
}

.paginator {
    padding: 0;
    list-style-type: none;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 21px;
    flex-wrap: wrap;
}

.paginator li {
    background-color: var(--main-green);
    border-radius: 1px;

}

.paginator li.paginator_active {
    background-color: var(--main-white);
    border-radius: 1px;
    border: 1px solid var(--main-green);
}

.paginator li.paginator_active a {
    color: var(--main-green);
}

.paginator li a {
    text-decoration: none;
    color: var(--main-white);
    display: block;
    padding: 7px 15px;
}

/*----------------------------------

            15. article

----------------------------------*/

main.layout__text {
    align-self: stretch;
}

.title-icons {
    display: inline;
    flex-direction: row;
    gap: 7px;
    padding-bottom: 5px;
    position: relative;
    /* border-bottom: 1px solid var(--header-border); */
}

.title-icons button {
    background-color: transparent;
    border: none;
    transition: transform 0.7s ease;
    cursor: pointer;
    padding: 0;
    display: inline;
}

.title-icons button:hover img {
    transform: scale(1.1);
}

/* .title-icons::before {
    content: '';
    width: 40px;
    height: 2px;
    position: absolute;
    bottom: -1px;
    left: 0;
    background-color: var(--main-green);
    padding-right: 10px;
} */



.title-icons img {
    transition: transform 0.7s ease;
}

.title-icons a:hover img {
    transform: scale(1.1);
}


.layout__text .container {
    height: 100%;
    padding-top: 12px;
}

.article_gallery {
    grid-area: gallery;
    
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
    /* justify-content: flex-start; */
    padding-left: 15px;
    /* gap: 15px; */
    overflow-y: auto;
    overflow-x: hidden;

    /* overflow-y: auto; */
    /* display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    margin-bottom: 34px; */
}

@media (max-width: 1208px) {
    .article_gallery {
        display: grid;
        align-items: center;
        gap: 15px;
        /* overflow-y: auto;
        overflow-x: hidden; */
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .article_gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: auto;
        /* display: flex;
        flex-direction: row; */

    }
}

@media (max-width: 700px) {
    .article_gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        /* display: flex;
        flex-direction: row; */

    }
}

@media (max-width: 600px) {
    .article_gallery {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        /* display: flex;
        flex-direction: row; */

    }
}

.article_image_box {
    display: block;
    width: 360px;
    height: 266px;
    overflow: hidden;
    /* flex: 1 0 19em; */
    margin: 12px 0 7px 0;
}

@media (max-width: 1208px) {
    .article_image_box {
        width: 260px;
        /* height: 166px; - article photos height test */
        height: 100%;
    }
}

@media (max-width: 900px) {
    .article_image_box {
        height: 166px;
    }
}

@media (max-width: 600px) {
    .article_image_box {
        width: 100%;
        height: auto;
    }
}

.article_image_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}

.article_video {}

/*----------------------------------

            15.1 text-page

----------------------------------*/

.text-page {
    grid-area: main;
    padding: 15px 15px 15px 15px;
}

.text-page h2 {
    border-bottom: none;
    padding-top: 12px;
}

.text-page p {
    margin: 7px 0 10px 0;
}

.text-page ul,
.text-page ol {
    margin: 7px 0 16px 0;
    padding-left: 1.4em;
}

.text-page li {
    margin: 0 0 8px 0;
}


/*----------------------------------

            15.2 contacts

----------------------------------*/

.contacts-map {
    margin: 0 0 24px 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--header-border);
}

.contacts-map__frame {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

@media (max-width: 600px) {
    .contacts-map__frame {
        height: 280px;
    }
}

.contacts-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.contacts-form,
.contacts-info {
    background-color: var(--main-white);
    border: 1px solid var(--header-border);
    border-radius: 8px;
    color: var(--main-black);
    padding: 18px 20px 20px;
}

.contacts-form h2,
.contacts-info h2 {
    border-bottom: 1px solid var(--header-border);
    margin-bottom: 16px;
    padding-top: 0;
}

.contacts-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contacts-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contacts-form__field input,
.contacts-form__field textarea {
    border: 1px solid var(--header-border);
    border-radius: 1px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    padding: 10px 12px;
    width: 100%;
}

.contacts-form__field input:focus,
.contacts-form__field textarea:focus {
    border-color: var(--main-green);
    outline: none;
}

.contacts-form__field textarea {
    min-height: 120px;
    resize: vertical;
}

.contacts-form__agree {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    line-height: 1.4;
}

.contacts-form__agree input {
    accent-color: var(--main-green);
    flex-shrink: 0;
    margin-top: 3px;
}

.contacts-form__submit {
    align-self: flex-start;
    background-color: var(--main-green);
    border: none;
    border-radius: 1px;
    color: var(--main-white);
    cursor: pointer;
    font-family: inherit;
    padding: 15px 24px;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.contacts-form__submit:hover {
    opacity: 0.9;
}

.contacts-info p {
    margin: 0 0 12px 0;
}

.contacts-info p:last-child {
    margin-bottom: 0;
}

.contacts-info a {
    color: var(--main-black);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.contacts-info a:hover {
    color: var(--main-green);
    border-bottom-color: var(--main-green);
}

@media (max-width: 800px) {
    .contacts-layout {
        grid-template-columns: 1fr;
    }
}


/*----------------------------------

            16. article nav (prev/next)

----------------------------------*/

.article_nav_el {
    padding: 34px 15px 34px 15px;
}

.article_nav {
    list-style: none;
    padding: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
}

.article_nav li {
    align-self: center;
    justify-self: center;
}

.article_nav li a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    color: var(--main-black);
    transition: color 0.4s ease;
    text-transform: uppercase;
    font-size: 20px;
}

.article_nav li a:hover {
    color: var(--main-green);
}

@media (max-width: 550px) {
    .article_nav {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }
}

/*----------------------------------

            17. article text

----------------------------------*/

.article {
    padding-left: 15px;
    height: fit-content;
    /* overflow-y: auto; */
}

.article_text h2 {
    border-bottom: none;
}

.article_text table {
    margin: 0 17px 17px 17px;
}

.article_text table caption {
    padding: 12px 0;
    text-align: left;
}

.article_text p {
    margin: 0 0 12px 0;
}

.article_text ul, .article_text ol {
    margin: 0 0 15px 0;
}

.article_text ul li, .article_text ol li {
    margin: 0 0 12px 0;
}

/*----------------------------------

            21. cookies popup

----------------------------------*/

.cookies_popup {
    display: block;
    position: fixed;
    width: 370px;
    bottom: 20px;
    left: 5%;
    z-index: 90;
    background-color: var(--main-white);
    padding: 10px;
    box-shadow: 0 0 2px 1px rgba(0,0,0,.15);
}

.cookies_hidden {
    display: none;
    width: 0;
    height: 0;
    left: 0;
    bottom: 0;
}

.cookies_popup h2 {
    margin: 18px;
    padding: 0 0 12px 0;
}

.cookies_popup p {
    margin: 0 18px;
}

.cookies_popup button {
    margin: 20px 18px;
    padding: 15px 32px;

    cursor: pointer;
    border: none;
    background-color: var(--main-green);
    color: var(--main-white);
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    text-transform: uppercase;
}
