/*Обнуление*/
*{padding:0;margin:0;border:0;}
*,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;}
:focus,:active{outline:none;}
a:focus,a:active{outline:none;}
nav,footer,header,aside{display:block;}
html,body{height:100%;width:100%;font-size:100%;line-height:1;font-size:14px;-ms-text-size-adjust:100%;-moz-text-size-adjust:100%;-webkit-text-size-adjust:100%;}
input,button,textarea{font-family:inherit;}
/*input::-ms-clear{display:none;}*/
button{cursor:pointer;}
button::-moz-focus-inner{padding:0;border:0;}
a,a:visited{text-decoration:none;}
a:hover{text-decoration:none;}
/*ul li{list-style:none;}*/
img{vertical-align:top;}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}
/*--------------------*/
body{
    font-family: "Poppins", serif;
    position: absolute;
    /*background: gainsboro;*/
    background: #7A5529;
}
body, html {
    overflow-x: hidden;
}
.wrapper{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main{
    flex: 1;
}
.burger {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
.header__preview{
    padding-top: 30px;
    background-image: url("../images/cas-back.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*min-height: 700px;*/
}
.header__container{
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: #7A5529;
    border-radius: 20px;
}
.header__logo{
    color: #FFF;
    font-size: 32px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    text-transform: uppercase;
}
.header__nav{
    width: 460px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}
.header__nav a{
    color: #FFF;
    font-size: 21px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.header__nav a:hover{
    text-decoration: underline;
}
.header__preview{
    /*max-width: 1300px;*/
    margin: 0 auto;
    /*text-align: center;*/
    display: flex;
    justify-content: center;
    padding: 100px 20px;
    /*flex-direction: column;*/
    /*align-items: center;*/
    /*border: 4px solid white;*/
    /*padding: 40px;*/
    /*margin-top: 8%;*/
    text-align: center;
}
.header__preview-text{
    max-width: 850px;
}
.header__preview h2{
    color: white;
    font-size: 62px;
    line-height: 62px;
    font-style: normal;
    font-weight: 700;
    max-width: 910px;
    margin-bottom: 20px;
    text-shadow: 0 8px 16px rgba(0, 0, 0, 0.50);
}
.header__preview p{
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    color: #FFFFFF;
    max-width: 1000px;
    text-shadow: 0 8px 16px rgba(0, 0, 0, 0.50);
}
/*--------------------*/
.content__container{
    max-width: 1300px;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    margin-top: 50px;
    gap: 40px;
    padding-bottom: 50px;
}
.content__block{
    display: flex;
    justify-content: space-between;
    max-width: 1300px;
    height: auto;
    flex-shrink: 0;
    border: 4px solid #FFF;
    /*background: #FDFDFD;*/
    box-shadow: 5px 4px 10px 9px rgba(0, 0, 0, 0.1);
    padding: 30px;
    clip-path: polygon(0 0, 70% 0, 100% 10%, 100% 80%, 100% 100%, 30% 100%, 0 90%, 0% 20%);
}
.content__block--image{
    display: flex;
    align-items: center;

}
.content__block--image img{
    width: 400px;
    height: 300px;
    margin-right: 40px;
    border-radius: 15px;
}
.content__block--text-title{
    padding-bottom: 20px;
    border-bottom: 2px solid #ffffff;
}
.content__block--text-title h2{
    color: #ffffff;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #FFF;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.content__block--text-title p{
    color: #ffffff;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.content__block--text-p{
    color: #ffffff;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    padding-top: 14px;
    line-height: 18px;
}
.content__block--text-service{
    display: flex;
    margin-bottom: 30px;
    margin-top: 20px;
}
.content__block--text-service p{
    min-width: 77px;
    height: 26px;
    flex-shrink: 0;
    border: 1px solid #FFF;
    background: #FFF;
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.25);
    margin-right: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.content__block--text-button a{
    width: 122px;
    height: 43px;
    flex-shrink: 0;
    background: #b87933;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transition: 0.2s;
    border:3px solid #b87933;
    color: #FFFFFF;
}
.content__block--text-button a:hover{
    background: none;
    border:3px solid #b87933;
    transition: 0.2s;
}
/*--------------------*/
.items {
    padding: 20px;
    padding-bottom: 50px;
    padding-top: 50px;
}
.items__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.items__block {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    background-color: #ddd;
}

.items__block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.items__block a {
    display: block;
    position: relative;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.items__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}


.items__block:hover .items__overlay {
    transform: translateY(0);
}

.items__text{
    position: relative;
    bottom: 55px;
    left: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}
.items__block h3 {
    position: relative;
    left: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

.items__block h3 {
    font-size: 1rem;
    bottom: 50px;
    font-weight: normal;
}

.items__block:hover .items__text,
.items__block:hover h3 {
    opacity: 1;
    transform: translateY(-30px);
}

.items__block--wide {
    grid-column: span 2;
}

.items__block:hover img {
    transform: scale(1.07);
}
/*--------------------*/
/*--------------------*/
.categories{
    background: #51391D;
    padding: 40px 20px;
    border-radius: 80px;
}
.categories__container{
    max-width: 1250px;
    margin: 0 auto;
    padding:0 0 60px 0;
    margin-top: 50px;
}
.categories__title{
    color: #ffffff;
    text-align: center;
    font-size: 46px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin-bottom: 52px;
}
.categories__blocks{
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.categories__button{
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.categories__button a{
    width: 300px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #A37238;
    color: #FFF;
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    transition: 0.2s;
    border: 2px solid #A37238;
    display: flex;
    align-items: center;
    justify-content: center;
}
.categories__button a:hover{
    background: none;
    color: #A37238;
    border: 2px solid #A37238;
    transition: 0.2s;
}
.items__title{
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #FFFFFF;
}
.categories__nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.categories__nav button {
    width: 155px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #666;
    color: #FFF;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    transition: 0.2s;
}
#activebutton {
    background: #A37238;
}
.categories__nav button:hover {
    background: #A37238;
    transition: 0.2s;
}
.categories__blocks {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Активная кнопка */
.categories__nav button.active {
    background: #A37238;
}
.categories__blocks-block h1{
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 40px;
    color: #ffffff;
}



.wishlist-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}


.carousel-wrapper {
    padding: 40px 0;
}

.carousel-title {
    text-align: center;
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
}

.carousel-item {
    flex: 0 0 calc(25% - 15px);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    text-align: center;
    min-height: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #fce3cf, #d5a97a);

    /* плавный переход */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.carousel-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1); /* по желанию */
}

.carousel-item h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #ff8e13;
    font-weight: 800;
}

.carousel-item ul {
    list-style: none;
    padding: 0;
}

.carousel-item li {
    margin-bottom: 10px;
    font-size: 18px;
}

/* Кнопки */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #A37238;
    color: #fff;
    border: none;
    font-size: 26px;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 8px;
    z-index: 1;
    transition: background 0.2s;
}
.carousel-btn:hover {
    background: #7A5529;
}
.carousel-btn.prev {
    left: 0;
}
.carousel-btn.next {
    right: 0;
}

/* Адаптив */
@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 10px);
    }
}
@media (max-width: 576px) {
    .carousel-item {
        flex: 0 0 100%;
    }
}
/*--------------------*/
/*--------------------*/

.testimonial-main{
    background-image: url("../images/comments_back.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 30px;
    padding-bottom: 30px;
}
.testimonials {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}
.testimonials__title {
    font-size: 42px;
    font-weight: bold;
    color: #FFFFFF;
}
.swiper-wrapper{
    padding: 50px 0;
}
.swiper {
    padding-bottom: 50px;
}
.testimonial {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    min-height: 140px;
}
.testimonial h3 {
    font-size: 18px;
    font-weight: bold;
}
.testimonial__role {
    font-size: 14px;
    color: gray;
    margin-bottom: 10px;
}
.testimonial p {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}
.testimonial__stars {
    color: #ffcc00;
    font-size: 18px;
}
/*--------------------*/
.features-section {
    padding: 80px 20px;
    /*background-color: #f7f3ef;*/
    text-align: center;
}

.features-title {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 40px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /*gap: 40px;*/
    max-width: 1300px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid white;
    padding: 40px 10px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08); /* по желанию */
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
}

.icon-safe { background-color: #7DB7B3; }
.icon-fast { background-color: #B7B770; }
.icon-low { background-color: #E9CB6B; }
.icon-support { background-color: #DAA86E; }

.feature-card h3 {
    font-size: 21px;
    color: #2b2114;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 18px;
    color: #ffffff;
    max-width: 260px;
}
/*--------------------*/
.footer {
    background: #51391D;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: center;
    margin-bottom: 20px;
}
.footer__column {
    flex: 1;
    min-width: 200px;
    margin: 0 10px;
}
.footer__column h3 {
    color: #F2F2F2;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 32px;
}
.footer__column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer__column ul li {margin-bottom: 10px;}
.footer__column ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.footer__column ul li a:hover {color: #bbb;text-decoration: underline;}
.footer__bottom {
    border-top: 1px solid #444;
    padding-top: 30px;

}


@media(max-width: 975px){
    .categories__nav{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;

    }
    .categories__nav button{
        max-width: 105px;
    }
}
@media (max-width: 911px) {
    .burger {
        display: block;
    }
    .header__container{
        display: flex;
        justify-content: space-between;
        padding: 30px;
    }
    .header__nav{
        position: absolute;
        top: 133px;
        right: 0;
        background: rgb(163, 114, 56);
        width: 235px;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transform: translateX(100%);
        box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.5);
    }
    .header__nav{
        display: flex;
    }
    .header__button{
        display: none;
    }
    .header__nav a{
        margin: 10px 0;
        font-size: 20px;
    }
    .header__nav.active{
        transform: translateX(0);
    }
    #active{
        color: white;
    }
    .header__logo1{
        display: block;
        font-size: 32px;
        color: white;
        font-weight: 600;
    }
    .steps__main{
        gap: 0;
    }
}
@media(max-width: 890px){
    .content__block{
        display: block;
    }
    .content__block--image{
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }
    .content__block--image img{
        width: 80%;
        margin-right: 0;
    }
}
@media(max-width: 650px){
    .items__container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
@media(max-width: 580px){
    .content__block--text-service{
        flex-wrap: wrap;
        gap: 20px;
    }
    .content__block--text-service p{
        padding: 14px;
        min-height: 26px;
    }
}

@media(max-width: 460px){
    .footer__column h3{
        font-size: 31px;
    }
    .footer__column ul li a{
        font-size: 21px;
    }
}
@media(max-width: 401px){
    .content__block{
        padding: 12px;
    }
    .content__block--image img{
        width: 95%;
    }
}
@media(max-width: 370px){
    .header__preview h2{
        font-size: 38px;
        line-height: 41px;
    }
    .header__preview p{
        font-size: 21px;
    }
}