* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Outfit", sans-serif;
    line-height: 1.5;
    
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ================= HEADER ================= */

.header .container {
    display: flex;
    align-items: center;
    padding: 20px 20px;
    
}
.header {
    background-color: #F5EEDC;
}

.container {
    max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
}

.logo-header {
    width: 200px;
}

.address {
    margin-left: auto;
}

.header-address {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-address-link {
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.04em;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-address-link:hover,
.header-address-link:focus {
    color: #ffffff;
}

.mob-icon {
    display: block;
        width: 36px;
            height: 36px;
}



.main {}

.hero {
    min-height: 100vh;
        background: url("../img/hero.webp") center center / cover no-repeat;
}
.hero-title span {
    display: block;
}
.hero-content {
    padding-top: 80px;
}

.hero-title {
    font-size: 72px;
    line-height: 1.08;
    font-weight: 700;
    max-width: 650px;
}
.advantages {
    display: flex;
    gap: 30px;
    margin-top: 300px;
    /* было 80px */
}

.advantages-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.advantages-item img {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
}

.advantages-item p {
    margin: 0;
    color: #2A2A2A;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.advantages-item svg {
    stroke: #B08A4A;
}


.products-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 50px;
}


.products {
    padding-top: 30px;
    padding-bottom: 50px;
    background-image: url("../img/products.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container {}



.products-list {
    display: grid;
        grid-template-columns: repeat(3, 264px);
        gap: 100px 180px;
        justify-content: center;
    }

.product-item,
.portfolio-item {

    border-radius: 18px;

    overflow: hidden;

    transform-style: preserve-3d;

    will-change: transform;

    transition:
        box-shadow .25s;

}

.product-item:hover,
.portfolio-item:hover {

    box-shadow:
        0 20px 55px rgba(0, 0, 0, .22);

}

.product-item img,
.portfolio-item img {

    width: 100%;

    display: block;

    border-radius: 18px;

    pointer-events: auto;

    user-select: none;

}

.product-item img {
    display: block;
    border-radius: 16px;
    object-fit: cover;
    transition: transform .3s ease;
    cursor: pointer;
}


.btn-more {
             display: block;
             width: fit-content;
             margin: 70px auto 0;
             padding: 16px 36px;
             background-color: #B08A4A;
             color: #fff;
             font-size: 18px;
             font-weight: 600;
             border-radius: 14px;
             transition: all .3s ease;
                        }
        
.btn-more:hover {
            background-color: #9C763B;
            transform: translateY(-3px);
                }
.products-button {
    display: flex;
    justify-content: center;
    margin-top: 70px;
}

.products.magnets {
    padding-top: 30px;
        background-image: url("../img/Magnet_background.webp");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding-bottom: 150px;
    }
    



        .footer {
            padding: 60px 0 60px;
            background: url("../img/footer.webp") center/cover no-repeat;
        }
    
        .footer-top {
            display: flex;
            justify-content: space-between;
            gap: 70px;
            
        }
    
                .footer-contact {
                    flex: 0 0 58%;
                }
        
                .footer-about {
                    flex: 0 0 38%;
                }
    
        .footer-title {
            font-size: 38px;
            font-weight: 500;
            letter-spacing: 4px;
            color: #A57A2A;
            margin-bottom: 55px;
        }
    
        .footer-social {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #2A2A2A;
    transition: .3s ease;
}

.social-item img {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
}

.social-item h3 {
    color: #3F3F3F;
    font-size: 18px;
    margin-bottom: 8px;
}

.social-item p {
    color: #555555;
    font-size: 16px;
}

.social-item:hover {
    transform: translateY(-6px);
}

.social-item:hover img {
    transform: scale(1.1);
}

.social-item:hover h3,
.social-item:hover p {
    color: #B08A4A;
}

.social-item img {
    transition: .3s ease;
}

.footer-logo {
    width: 120px;
    margin-bottom: 20px;
}

/* ================= TABLETS ================= */

@media (max-width: 1024px) {

    .container {
        max-width: 100%;
        padding: 0 30px;
    }

    .logo-header {
        width: 170px;
    }

    .header-address {
        gap: 20px;
    }

    .header-address-link {
        font-size: 14px;
    }

    .hero-title {
        font-size: 56px;
        max-width: 520px;
    }

    .advantages {
        margin-top: 180px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 40px;
    }

    .products-list {
        grid-template-columns: repeat(2, 264px);
        gap: 50px;
    }

    .footer-top {
        flex-direction: column;
        gap: 60px;
    }

    .footer-contact,
    .footer-about {
        flex: 100%;
    }

    .footer-divider {
        display: none;
    }

    .footer-social {
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 35px;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .container {
        padding: 0 20px;
    }

    /* HEADER */

    .header .container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .address {
        margin-left: 0;
    }

    .header-address {
        flex-direction: column;
        gap: 15px;
    }

    .logo-header {
        width: 170px;
    }

    /* HERO */

    .hero {
        min-height: auto;
        padding-bottom: 80px;
        background: url("../img/heromob.webp") center center / cover no-repeat;
    }

    .hero-content {
        padding-top: 50px;
    }

    .hero-title {
        font-size: 40px;
        line-height: 1.2;
        text-align: center;
        margin: 0 auto;
    }

    .advantages {
        margin-top: 80px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .advantages-item {
        width: 140px;
    }
        

    /* PRODUCTS */

    .products {
        padding: 60px 0;
    }

    .products-title {
        font-size: 30px;
    }

    .products-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-item {
        display: flex;
        justify-content: center;
    }

    .product-item img {
        width: 100%;
        max-width: 320px;
    }

    .btn-more {
        margin-top: 50px;
        padding: 14px 30px;
        font-size: 16px;
    }

    /* FOOTER */

    .footer {
        padding: 60px 0;
    }

    .footer-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 35px;
    }

    .footer-top {
        flex-direction: column;
        gap: 50px;
    }

    

    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .social-item {
        width: 130px;
    }

    .social-item img {
        width: 28px;
        height: 28px;
    }

    .social-item h3 {
        font-size: 15px;
    }

    .social-item p {
        font-size: 14px;
    }

    .footer-about {
        text-align: center;
    }

    .footer-about p {
        margin-bottom: 15px;
    }
}

/* ================= PORTFOLIO ================= */

.portfolio {
    padding: 80px 0;
    background: #F8F2E7;
}

.portfolio-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    color: #2A2A2A;
}

.portfolio-list {
    display: grid;
    grid-template-columns: repeat(3, 264px);
    gap: 100px 180px;
    justify-content: center;
}

.portfolio-item img {
    width: 100%;
    border-radius: 18px;
    transition: .3s ease;
    cursor: pointer;
}



    


/* ================= TABLETS ================= */

@media (max-width: 1024px) {

    .portfolio {
        padding: 70px 0;
    }

    .portfolio-title {
        font-size: 40px;
        margin-bottom: 50px;
    }

    .portfolio-list {
        display: grid;
        grid-template-columns: repeat(2, 264px);
        gap: 50px 70px;
        justify-content: center;
    }

    .portfolio-item img {
        width: 264px;
        height: 260px;
        object-fit: cover;
    }

}
/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .portfolio {
        padding: 60px 0;
    }

    .portfolio-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .portfolio-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
    }

    .portfolio-item img {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

}

/* ================= IMAGE GALLERY ================= */

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
}

.image-modal.active {
    display: flex;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    animation: zoom .25s ease;
}

.close,
.prev,
.next {
    position: absolute;
    color: #fff;
    font-size: 46px;
    cursor: pointer;
    user-select: none;
    transition: .25s;
}

.close:hover,
.prev:hover,
.next:hover {
    color: #B08A4A;
}

.close {
    top: 25px;
    right: 35px;
}

.prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes zoom {

    from {
        transform: scale(.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }

}

@media (max-width:768px) {

    .prev,
    .next {
        font-size: 34px;
    }

    .close {
        font-size: 38px;
    }

}