/* start base */
:root {
	/* colors */
	--none-color: transparent;
	--white-color: #fff;
	--text-color: #6d7377;
	--bg-color: #fff;
	--primary-color: #ff9900;
}

.text-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.section {
    position: relative;
    z-index: 2;
    margin-bottom: 150px;
}
/* end base */
/* gallery-descr */
.gallery-descr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-descr__item {
    width: 100%;
    height: 100%;
}

.base-template .content ul > li.gallery-descr__item {
    margin: 0;
    padding: 0;
}

.base-template .content ul > li.gallery-descr__item:before {
    display: none;
}

.gallery-descr__item-link {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: 100%;
    color: var(--text-color);
}

.gallery-descr__item-link-img-wrap {
    width: 100%;
    height: 340px;
    overflow: hidden;
}
    

.gallery-descr__item-link-img {
    width: 100%;
    height: 100%;
    transition: transform .3s linear;
}

.gallery-descr__item-link-txt {
    margin: 0;
    padding: 0;
}
/* /gallery-descr/ */

.gallery-section .gallery .gallery-item {
    height: 530px;
}

/* reviews */
.reviews__content-wrap {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}
.reviews__content-iframe {
    position: relative;
    width: 50%;
    height: 800px;
    overflow: hidden;
}

.reviews__content {
    width: 50%;
}

.reviews__link {
    max-width: 340px;
    width: 100%;
}
/* /reviews/ */

/* poster */
.poster {
    position: relative;
    z-index: 1;
    padding-top: 40px;
}

.poster__wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.poster__wrap-img {
    display: flex;
    width: 100%;
    height: 794px;
    background-repeat: no-repeat;
    background-size: cover;
}
/* /poster/ */

/* guarantees */
.guarantees__list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.guarantees-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guarantees-item__title,
.guarantees-item__txt {
    margin: 0;
    padding: 0;
}

.guarantees-item__title {
    font-size: 40px;
    color: var(--primary-color);
}

.guarantees-item__txt {
    font-family: "Inter";
    font-weight: 500;
    color: #263640;
}
/* /guarantees/ */

/* start cookies */
.cookies {
    position: fixed;
    z-index: 10000;
    right: 0;
    bottom: 15px;
    display: flex;
    justify-content: flex-end;
    padding: 0px 25px;
    max-width: max-content;
}

.cookies__content-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 512px;
    width: 100%;
    color: var(--text-color);
    font-size: 16px;
    background-color: var(--white-color)
}

.cookies__text {
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.cookies__text-link {
    display: inline;
    text-decoration: underline;
    color: var(--text-color);
}

.cookies__btn-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.cookies__btn {
    max-width: 48%;
    min-width: auto;
    width: 100%;
}
/* end cookies */
/* start nav-list */
.nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    padding-top: 12px;
    list-style: none;
}

.nav-list__list-item {
    text-align: center;
}

.nav-list__list-item.active .nav-list__list-item-link {
    font-weight: 700;
}

.nav-list__list-item-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color .2s linear;
}
/* end nav-list */

/* start hover */
@media(hover: hover) {
    .nav-list__list-item-link:hover {
        text-decoration: none;
    }
    
    .cookies__text-link:hover {
        text-decoration: none;
    }
    
    .cookies__btn:hover,
    .poster__btn:hover {
        border-color: #ff7a00;
        background-color: #ff7a00;
    }
    
    .gallery-descr__item-link:hover .gallery-descr__item-link-img {
        transform: scale(1.1);
    }
}
/* end hover */

@media only screen and (max-width: 991px) {
    .to_clients .arrow {
        display: none;
    }
    
    .section {
        margin-bottom: 80px;
    }
    
    .gallery-descr {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* start phone */
@media(max-width: 767px) {
    .gallery-descr {
        grid-template-columns: 1fr;
    }
    
    .gallery-descr__item-link-img-wrap {
        height: 240px;
    }
    
    .reviews__content-wrap {
        flex-direction: column-reverse;
    }
    
    .reviews__content-iframe {
        width: 100%;
    }
    
    .reviews__content {
        width: 100%;
    }
    /* start cookies */
    .cookies {
        padding: 0px 10px;
    }
    
    .cookies__content-wrap {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      padding: 10px;
      font-size: 14px;
    }
    
    .cookies__btn {
        max-width: 100%;
        width: 100%;
    }
    /* end cookies */
    
    /* start nav-list */
    .nav-list {
        justify-content: center;
        flex-direction: column;
    }
    /* end nav-list */
    
    .poster__wrap-img {
        height: 400px;
    }
}
/* end phone */

/* start cards grid (карточки в контенте: цвета, управление, аксессуары) */
.middle .cards-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 10px;
}
.middle .cards-row > .card {
    box-sizing: border-box;
    padding: 0 10px;
    margin-bottom: 20px;
    min-width: 0;
}
.middle .cards-row > .card img {
    max-width: 100%;
    height: auto;
}
.middle .cards-row.cards-2 > .card { width: 50%; }
.middle .cards-row.cards-3 > .card { width: 33.3333%; }
.middle .cards-row.cards-4 > .card { width: 25%; }
.middle .cards-row.cards-5 > .card { width: 20%; }
@media (max-width: 767px) {
    .middle .cards-row.cards-2 > .card { width: 100%; }
    .middle .cards-row.cards-3 > .card,
    .middle .cards-row.cards-4 > .card,
    .middle .cards-row.cards-5 > .card { width: 50%; }
    .middle .content table.table { min-width: 0; }
}
/* end cards grid */
