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

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: white;
    padding-top: 45px; 
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 0; 

}
.header__logo{
    padding-bottom: 45px;
    border-bottom: 1px solid lightgray;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.header__icon--search{
    margin-right: 20px;

}

 .header__logo-img{
    margin-left: 45%;
    margin-right: 45%;
    width: 95px;
    height: auto;
}

.header__icon--user{
    padding-right: 20px;
    

}
.header__icon--cart{
    padding-right: 15px;
    padding-left: 20px;

}

.header__nav-bar{
    padding-top: 40px;
    display: flex; 
    justify-content: center;
    padding-bottom: 50px;
    flex-wrap: wrap;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    
}

 .nav__link{
    padding-left: 30px;
    font-size: 20px;
    font-family: Montserrat;
}


.hero {
    padding-left: 80px;
    padding-right: 80px;
    padding-top: 50px;
    width: 100%;
    box-sizing: border-box;
}

.hero__grid {
    display: grid;
    grid-template-columns: 60% 40%; 
    height: 780px;
    background-color: #1f113b;
}

.hero__content {
    color: white;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero__title {
    padding-left: 60px;
    padding-top: 80px;
    font-size: 40px;
    padding-right: 300px;
    font-weight: normal;
    font-family: Montserrat;
    margin: 0;
}

.hero__button {
    background-color: gray;
    padding: 20px;
    opacity: 0.5;
    margin-left: 60px;
    color: white;
    font-size: 23px;
    font-family: Montserrat;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    width: fit-content;
    
}

.hero__button:hover {
    background-color: #3c125c;
}

.hero__text {
    padding-left: 60px;
    padding-bottom: 60px;
    padding-right: 120px;
    font-size: 20px;
    font-family: Montserrat;
    margin: 0;
    align-self: flex-end;
}

.hero__image {
    overflow: hidden;
    height: 100%;
}

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



.features {
    margin-left: 80px;
    margin-right: 80px;
    margin-top: 170px;
}

.features__title {
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
    font-family: Montserrat;
    font-weight: normal;
    font-size: 30px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px; 
}

.features__item {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.features__icon {
    width: 36px; 
    height: 36px;
    margin-bottom: 20px;
}

.features__item-title {
    font-family: Montserrat;
    font-weight: normal;
    font-size: 25px;
    padding-top: 20px;
    margin: 0 0 10px 0;
}

.features__item-text {
    font-family: Montserrat;
    font-weight: 200;
    font-size: 20px;
    padding-top: 20px;
    margin: 0;
}

.products {
    padding-top: 230px;
    padding-left: 80px;
    padding-right: 80px;
}

.products__title {
    font-size: 40px;
    font-family: Montserrat;
    font-weight: normal;
    padding-bottom: 30px;
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}

.products__item {
    display: flex;
    flex-direction: column;
}

.products__img {
    width: 100%; 
    height: 510px;
    object-fit: cover; 
}

.products__name {
    padding-top: 20px;
    font-family: Montserrat;
    font-size: 23px;
    margin: 0;
}

.products__price {
    padding-top: 20px;
    font-family: Montserrat;
    font-size: 23px;
    margin: 0;
}

.products__button {
    background-color: gray;
    opacity: 0.3;
    display: block;
    margin: 40px auto;
    padding: 20px;
    font-size: 20px;
    font-family: Montserrat;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    
}

.products__button:hover {
    background-color: #3c125c;
    color: white;
}

.popular {
    padding-top: 190px;
    padding-left: 80px;
    padding-right: 80px;
}

.popular__title {
    font-size: 40px;
    font-family: Montserrat;
    font-weight: normal;
    padding-bottom: 30px;
}

.popular__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 20px;
}

.popular__item {
    display: flex;
    flex-direction: column;
}



.popular__img-1 {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.popular__img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.popular__name {
    padding-top: 20px;
    font-family: Montserrat;
    font-size: 23px;
    margin: 0;
}

.popular__price {
    padding-top: 20px;
    font-family: Montserrat;
    font-size: 23px;
    margin: 0;
}

.popular__button {
    background-color: gray;
    opacity: 0.3;
    display: block;
    margin: 40px auto;
    padding: 20px;
    font-size: 20px;
    font-family: Montserrat;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    
}

.popular__button:hover {
    background-color: #3c125c;
    color: white;
}


.newsletter{
    background-color: rgb(128, 128, 128, 0.2);
    z-index: 1;
    padding: 60px 80px;
    
}

.news {
    background-color: white;
    padding-top: 90px;
    padding-bottom: 90px;
    text-align: center;
    
}

.newsletter__title{
    font-family: Montserrat;
    font-size: 40px;
    font-weight: normal;
    text-align: center;

}

.newsletter__text{
    font-family: Montserrat;
    font-size: 20px;
    text-align: center;
    padding-top: 20px;
}

.newsletter__label{
    display: inline-block; 
    vertical-align: middle;
    margin-right: 0;

}

.newsletter__input{
    display: inline-block; 
    width: 250px;
    padding: 12px 24px;
    font-size: 16px;
    vertical-align: middle;
    background-color: rgb(128, 128, 128, 0.2);
    font-family: Montserrat;
    margin-top: 180px;
}

.newsletter__button{
    display: inline-block;
    padding: 12px 24px;
    background-color: #1f113b;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    vertical-align: middle;
    margin-top: 180px;
    
}

 .newsletter__button:hover{
    background-color:white;
    color:#3c125c;
}


.about {
    padding-left: 80px;
    width: 100%;
    box-sizing: border-box;
}

.about__grid {
    display: grid;
    grid-template-columns: 50% 50%; 
    height: 780px;
}

.about__content {
    color: black;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about__title {
    padding-left: 60px;
    padding-top: 80px;
    font-size: 40px;
    padding-right: 200px;
    font-weight: normal;
    font-family: Montserrat;
    margin: 0;
}

.about__button {
    background-color: gray;
    padding: 20px;
    opacity: 0.5;
    margin-left: 60px;
    margin-top: 180px;
    color: white;
    font-size: 23px;
    font-family: Montserrat;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    width: fit-content;
    
}

.about__button:hover {
    color: white;
    background-color: #3c125c;
}

.about__text {
    padding-left: 60px;
    padding-bottom: 20px;
    padding-top: 30px;
    padding-right: 120px;
    font-size: 20px;
    font-family: Montserrat;
    margin: 0;
    line-height: 1.6;
}

.about__image {
    height: 780px;
    overflow: hidden;
}

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

.footer {
    background-color: #1f113b;
}

 .footer__info{
    padding-bottom: 80px;
    border-bottom: 1px solid #3c125c;
}

.footer__column{
    vertical-align: top;
    padding: 0;
    padding-right: 60px;
    padding-left: 80px;
    padding-top: 60px;
}

.footer__title{
    font-size: 25px;
    font-family: Montserrat;
    color:white;
    font-weight: normal;
    padding-bottom:8px;
}

 .footer__link{
    font-size: 20px;
    font-family: Montserrat;
    padding: 8px 0;
    display: inline-block;
}


 .footer__column-1{
    padding-left: 110px;
    padding-top: 60px;
    vertical-align: top;
}

 .footer__column-1 .footer__title{
    font-size: 25px;
    color: white;
    font-family: Montserrat;
    font-weight: normal;

}

 .footer__column-1 .footer__label {
    display: inline-block; 
    vertical-align: middle;
    margin-right: 0;

}
  .footer__column-1 .footer__label  .footer__input{
    display: inline-block; 
    width: 730px;
    padding: 12px 24px;
    font-size: 16px;
    vertical-align: middle;
    background-color: rgb(128, 128, 128, 0.2);
    font-family: Montserrat;
    margin-top: 40px;
}

 .footer__column-1 .footer__button{
    display: inline-block;
    padding: 12px 24px;
    background-color: white;
    color: #2b0b44;
    border: none;
    font-size: 16px;
    cursor: pointer;
    vertical-align: middle;
    margin-top: 40px;
}

 .footer__column-1 .footer__button:hover{
    color:white;
    background-color:#3c125c;
}


.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 30px 80px;
    background-color: #1f113b; 
}


.footer__copyright{
    font-size: 20px;
    font-family: Montserrat;
    color:white;
    padding-top: 30px;
    padding-bottom: 30px;
    margin: 0;
}

.footer__social-icons {
    display: flex;
    gap: 20px; 
}

.footer__social {
    width: 24px;
    height: 24px;
    margin-left: 0; 
    opacity: 0.8;
    transition: opacity 0.3s;
}

.hero__button,
.products__button,
.popular__button,
.newsletter__button,
.about__button {
    position: relative;
    z-index: auto; 
}


 .scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: #1e3a23;
    transform: scale(1.1);
}
.scroll-top:active {
    transform: scale(0.95);
}

.menu-toggle {
    display: none;
    position: absolute;
    right: 30px;
    top: 50px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
    width: 40px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
}

body.menu-open {
    overflow: hidden;
}



.menu-toggle__line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-toggle__line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active .menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle__line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}
body.menu-open {
    overflow: hidden;
}




body.menu-open .scroll-top {
    display: none !important;
}
/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.mobile-nav__link {
    font-family: Montserrat;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s;
}

.mobile-nav__link:hover {
    color: #1f113b;
}

.mobile-menu__icons {
    display: flex;
    gap: 20px;
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.mobile-menu__icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.mobile-menu__icon:hover {
    opacity: 1;
}

/* Затемнение фона при открытом меню */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9998;
    pointer-events: all;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Стили для десктопов среднего размера (1400px - 1700px) */
@media screen and (min-width: 1400px) and (max-width: 1700px) {
    .about {
        padding-left: 100px;
        padding-right: 100px;
    }
    
    .about__grid {
        min-height: 650px;
        height: auto;
    }
    
    .about__title {
        padding-right: 150px;
        font-size: 36px;
        padding-top: 70px;
    }
    
    .about__text {
        padding-right: 100px;
        font-size: 19px;
    }
    
    .about__button {
        margin-top: 50px;
        margin-bottom: 70px;
        
    }
    
    .about__image {
        min-height: 650px;
    }
}

/* Стили для больших планшетов и маленьких десктопов (1024px - 1400px) */
@media screen and (min-width: 1024px) and (max-width: 1400px) {
    .about {
        padding-left: 60px;
        padding-right: 60px;
    }
    
    .about__grid {
        min-height: 700px;
        height: auto;
    }
    
    .about__title {
        padding-right: 100px;
        font-size: 32px;
        padding-top: 60px;
    }
    
    .about__text {
        padding-right: 80px;
        font-size: 18px;
    }
    
    .about__button {
        margin-top: 40px;
        margin-bottom: 60px;
        font-size: 20px;
        padding: 18px 36px;
        
    }
    
    .about__image {
        min-height: 700px;
    }
}


/* Стили для планшетов (от 768px до 1024px) */
@media screen and (max-width: 1024px) {
    .header {
        position: sticky;
        top: 0;
        margin-left: 20px;
        margin-right: 20px;
        

    }
    
    .header__logo-img {
        margin-left: 40%;
        margin-right: 40%;
    }

    .menu-toggle {
        display: flex;
    }
    

    .header__nav-bar {
        display: none !important;
    }
    
    .header__logo {
        justify-content: center ;
        
    }

    .header__logo-img {
        margin: 0;
    }

    .header__icon--search {
        position: absolute;
        left: 20px;
        top: 40%;
        transform: translateY(-50%);
        
    }
    

    .header__icon--cart,
    .header__icon--user {
        display: none;
    }
    
    .hero {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .hero__grid {
        grid-template-columns: 50% 50%;
        height: 600px;
    }
    
    .hero__title {
        padding-right: 100px;
        font-size: 32px;
    }
    
    .hero__text {
        padding-right: 60px;
        font-size: 18px;
    }
    
    .features {
        margin-left: 40px;
        margin-right: 40px;
    }
    
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .products {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .popular {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .popular__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .popular__item--large {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    .newsletter {
        padding: 40px;
    }
    
    .newsletter__input {
        width: 200px;
    }

    .about {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .about__grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
        min-height: 600px;
    }
    
    .about__title {
        padding-right: 60px;
        font-size: 28px;
        padding-top: 40px;
    }
    
    .about__text {
        padding-right: 60px;
        font-size: 18px;
    }
    .about__image {
        height: auto;
    }
    
    .about__img {
        height: 100%;
    }
    
    .about__button {
        margin-top: 60px;
        margin-bottom:60px;
        
    }

    .footer__column-1 .footer__input {
        width: 500px;
    }

   
}

/* Стили для мобильных устройств (до 768px) */
@media screen and (max-width: 768px) {
    .header {
       position: sticky;
        top: 0;
        margin-left: 13px;
        margin-right: 15px;
        
    }
    
    .header__logo {
        padding-bottom: 20px;
    }
    
    .menu-toggle {
        right: 15px;
        top: 30px;
        width: 36px;
        height: 36px;
    }

    .mobile-nav__link {
        font-size: 20px;
    }
    
    .header__logo {
        padding-bottom: 15px;
    }

    .header__icon--search{
        padding-top: 30px;
    }

    .header__logo-img {
        margin-left: 30%;
        margin-right: 30%;
        width: 70px;
    }
    
    .header__nav-bar {
        padding-top: 20px;
        padding-bottom: 30px;
    }
    

    .nav__link {
        font-size: 16px;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px;
    }
    
    
    .hero {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 30px;
    }
    
    .hero__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
    }
    
    .hero__content {
        padding: 30px 20px;
        order: 2;
    }
    
    .hero__title {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        font-size: 28px;
        text-align: center;
    }
    
    .hero__button {
        margin-left: auto;
        margin-right: auto;
        margin-top: 30px;
        font-size: 18px;
        padding: 15px 30px;
        
    }
    
    .hero__text {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
        font-size: 16px;
        text-align: center;
        margin-top: 30px;
    }
    
    .hero__image {
        order: 1;
        height: 300px;
    }
    
    .features {
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 80px;
    }
    
    .features__title {
        font-size: 24px;
        padding-bottom: 30px;
    }
    
    .features__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features__item-title {
        font-size: 20px;
    }
    
    .features__item-text {
        font-size: 16px;
    }
    
    .products {
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .products__title {
        font-size: 28px;
        text-align: center;
    }
    
    .products__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .products__img {
        height: 400px;
    }
    
    .products__button {
        width: 100%;
        max-width: 300px;
        
    }
    
    .popular {
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .popular__title {
        font-size: 28px;
        text-align: center;
    }
    
    .popular__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .popular__img-1,
    .popular__img {
        height: 350px;
    }
    
    .popular__button {
        width: 100%;
        max-width: 300px;
        
    }
    
    .newsletter {
        padding: 20px;
    }
    
    .news {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .newsletter__title {
        font-size: 28px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .newsletter__text {
        font-size: 16px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .newsletter__input {
        width: 100%;
        max-width: 300px;
        margin-top: 30px;
    }
    
    .newsletter__button {
        margin-top: 10px;
        width: 100%;
        max-width: 300px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        
    }
    
    .about {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
    }
    
    .about__content {
        order: 2;
        padding: 30px 20px;
    }
    
    .about__title {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        font-size: 28px;
        text-align: center;
    }
    
    .about__text {
        padding-left: 0;
        padding-right: 0;
        font-size: 16px;
    }
    
    .about__button {
        margin-left: auto;
        margin-right: auto;
        margin-top: 30px;
        font-size: 18px;
        padding: 15px 30px;
        
    }
    
    .about__image {
        order: 1;
        height: 300px;
    }
    
    .about__img {
        height: 300px;
    }
    
    
    .footer__table {
        display: block;
    }
    
    .footer__table tr {
        display: block;
        margin-bottom: 40px;
    }
    
    .footer__column,
    .footer__column-1 {
        display: block;
        padding: 0 20px;
        width: 100%;
    }
    
    .footer__column-1 .footer__input {
        width: 100%;
        max-width: 300px;
        margin-top: 20px;
    }
    
    .footer__column-1 .footer__button {
        margin-top: 10px;
        width: 100%;
        max-width: 300px;
        display: block;
    }
    
    .footer__bottom {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    
    .footer__social-icons {
        margin-top: 20px;
        justify-content: center;
    }

    .scroll-top {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
        font-size: 22px;
    }
}
/* Стили для очень маленьких устройств (до 480px) */
@media screen and (max-width: 480px) {
    .header__icon {
        width: 20px;
        height: 20px;
    }
    
    .header__logo-img {
        width: 60px;
    }
    
     

    .nav__link {
        font-size: 14px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero__title {
        font-size: 24px;
    }
    
    .hero__button {
        font-size: 16px;
        padding: 12px 24px;
        
    }
    
    .hero__text {
        font-size: 14px;
    }
    
    .features__title {
        font-size: 22px;
    }
    
    .products__title {
        font-size: 24px;
    }
    
    .products__img {
        height: 300px;
    }
    
    .popular__title {
        font-size: 24px;
    }
    
    .popular__img-1,
    .popular__img {
        height: 250px;
    }
    
    .newsletter__title {
        font-size: 24px;
    }
    
    .about__title {
        font-size: 24px;
    }
    
    .footer__title {
        font-size: 20px;
    }
    
    .footer__link {
        font-size: 16px;
    }
    
    .footer__copyright {
        font-size: 16px;
    }
}

/* Предотвращение горизонтального скролла */
@media screen and (max-width: 1024px) {
    html, body {
        overflow-x: clip;
        width: 100%;
    }
    
    .header,
    .hero,
    .features,
    .products,
    .popular,
    .newsletter,
    .about,
    .footer {
        width: 100%;
        box-sizing: border-box;
    
    }
}

.header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background-color: white !important;
}
