/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Onest", sans-serif;
    font-weight: 400;
}

a {
    cursor: pointer;
    font-family: "Onest", sans-serif;
    font-weight: 400;  
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: "Onest", sans-serif;
    font-weight: 400;
}

img, svg {
    max-width: 100%;
}

/* Стили для шапки */
header {
    display: flex;
    justify-content: space-between;
    padding: 0px 100px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000; 
    background-color: white;
}

header .logo {
    width: 125px;
    height: 125px;
}

header h1 {
    font-size: 40px;
    font-weight: 700;
    color: rgba(0, 0, 5, 1);
}

header .menu {
    display: flex;
    align-items: center;
    margin-top: 45px;
}

header .links a,
header .menu a {
    color: rgba(30, 30, 31, 1);
    margin-right: 25px;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease-in;
}

header .links a:hover,
header .menu a:hover {
    color: rgba(80, 80, 85, 1);
}

header .links {
    display: flex;
    justify-items: center;
    align-items: center;
}

header .menu .language {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    cursor: pointer;
    user-select: none;
}

header .menu .language img {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease-in-out;
}

header .menu .language p {
    font-size: 18px;
    font-weight: 500;
    color: rgba(30, 30, 31, 1);
}

header .menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    overflow: hidden;
    width: 60px;
    background-color: white;
}

header .menu .dropdown p {
    margin: 0;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(30, 30, 31, 1);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

header .menu .dropdown p:hover {
    background: rgba(240, 240, 240, 1);
}

/* Бургер меню */
.burger {
    display: none;
}

.burger .burger_open {
    transition: 0.2s ease-in;
    width: 80px;
    height: 30px;
    margin-top: 12px;
}

.burger .burger_open:hover {
    transform: scale(0.9);
}

.burger .dropdown-menu {
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.3s;
    background-color: black;
    opacity: 0.9;
    position: absolute;
    z-index: 998;
    width: 100%;
    left: 0;
    top: 0px;
    bottom: -700px;
    padding-top: 200px;
}

.burger .dropdown-menu.active {
    opacity: 0.9;
    transform: translateY(0);
    visibility: visible;

}

.burger .dropdown-menu img {
    float: right;
    margin-top: -125px;
    margin-right: 50px;
    transition: 0.2s ease-in;
}

.burger .dropdown-menu img:hover {
    transform: scale(0.8);
}

.burger .dropdown-menu nav {
    display: grid;
    place-items: center;
}

.burger .dropdown-menu nav a {
    color: white;
    text-decoration: none; 
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 25px;
    transition: 0.2s ease-in-out;
}

.burger .dropdown-menu nav a:hover {
    color: rgba(255, 105, 31, 1);
}





/* Стили для блока Hero */
.hero {
    position: relative;
    min-height: 452px;
    max-height: 452px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Сдвигаем контент вниз */
    text-align: center;
    padding: 50px 20px;
    transition: opacity 1s ease-in-out;
}

.hero .slide {
    position: absolute; /* Слайды накладываются друг на друга */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: grid;
    place-items: center;
}

.hero .slide.active {
    opacity: 1;
}

.hero h2 {
    color: white;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.15);
    max-width: 932px;
    margin-bottom: 20px;
    margin-top: 50px;
}

.hero p {
    color: white;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.15);
    max-width: 932px;
    margin-bottom: 270px; /* Добавляем отступ снизу, чтобы текст не перекрывался */
    margin-top: -50px;
}

.hero a {
    color: black;
    background: linear-gradient(92.02deg, #FDD400 0%, #FB6B16 100%);
    padding: 15px 25px;
    margin-bottom: 100px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    z-index: 2;
    margin-top: -200px;
}

.hero a:hover {
    background: linear-gradient(92.02deg, #E6C100 0%, #E55A00 100%);
}


.hero .dots {
    display: flex;
    gap: 8px;
    margin-top: 30px; /* Отступ снизу, чтобы точки не перекрывали кнопку */
    z-index: 2;
}

.hero .dots .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(102, 100, 103, 1);
    border-radius: 50%;
    margin-right: 5px;
}

.hero .dots .dot.active {
    background-color: white;
}

.hero .dots .dot:last-child {
    margin-right: 0;
}






/* Стили для блока с преимуществами */
.advantages {
    padding: 100px 0;
}

.advantages h2 {
    font-size: 52px;
    font-weight: 700;
    text-align: center;
}

.advantages .container {
    padding: 100px 50px 0px 100px;
    display: grid;
    place-items: center;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.advantages .container .block {
    box-shadow: 0px 12px 30px 0px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(240, 239, 239, 1);
    margin-right: 25px;
    margin-bottom: 35px;
    padding: 20px;
    max-height: 117px;
    min-height: 75px;
}

.advantages .container .block .top {
    display: flex;
    padding-bottom: 10px;
}

.advantages .container .block .top img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.advantages .container .block .top p {
    font-size: 18px;
    font-weight: 700;
}

.advantages .container .block .top span {
    color: rgba(30, 30, 31, 1);
}


/* Стили для блока с товарами */
.products {
    padding: 50px 0;
}

.products .top {
    display: grid;
    place-items: center;
    padding-bottom: 50px;
}

.products .top h2 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 25px;
}

.products .top h3 {
    color: rgba(30, 30, 31, 1);
    font-weight: 400;
    font-size: 18px;
    max-width: 450px;
    text-align: center;
}

.products .container {
    padding: 0 100px;
    display: grid;
    place-items: center;
    grid-template-columns: repeat(auto-fit, minmax(425px, 1fr));
}

.products .container .block {
    border-radius: 20px;
    margin-right: 25px;
    margin-bottom: 50px;
    transition: 0.2s ease-in;
}

.products .container .block:hover {
    transform: scale(0.98);
}

/* .products .container .block:last-child {
    margin-right: 0px;
} */



/* Стили для блока с галлерии */
.gallery {
    padding: 50px 0;
}

.gallery h2 {
    font-size: 52px;
    font-weight: 700;
    text-align: center;
    color: #333;
}

.gallery .container {
    padding: 0 100px;
    display: grid;
    place-items: center;
    padding-top: 50px;
}

.gallery .container .main-img {
    height: 600px;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    border-radius: 8px;
}

.gallery .container .container-additional {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

.gallery .container .container-additional .arrow {
    width: 20px;
    height: 40px;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.2s ease-in;
}

.gallery .container .container-additional .arrow:hover {
    transform: scale(0.9);
}

.gallery .container .container-additional .images {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    margin: 0 25px;
    transition: transform 0.3s ease;
}

.gallery .container .container-additional .images img {
    width: 150px;
    height: 100px;
    margin-right: 15px;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 8px;
    cursor: pointer;
}

.gallery .container .container-additional .images img.active {
    transform: scale(0.9);
    opacity: 0.7;
}

.gallery .container .container-additional .images img:last-child {
    margin-right: 0;
}


/* Стили для блока с отзывами */
.reviews {
    padding: 50px 0;
}

.reviews .text {
    display: grid;
    place-items: center;
}

.reviews h2 {
    font-size: 52px;
    font-weight: 700;
    padding-bottom: 15px;
}

.reviews h3 {
    font-size: 16px;
    font-weight: 300;
    width: 550px;
    text-align: center;
}

.reviews .container {
    padding: 0 100px;
    display: grid;
    place-items: center;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    padding-top: 50px;
}

.reviews .container .block {
    border-radius: 15px;
    box-shadow: 0px 12px 30px 0px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(240, 239, 239, 1);
    margin-right: 25px;
    margin-bottom: 25px;
    padding: 16px;
}

.reviews .container .block:last-child {
    margin-right: 25px;
}

.reviews .container .block img {
    width: 40px;
    height: 30px;
}

.reviews .container .block .review {
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: 300;
    font-size: 14px;
    color: rgba(30, 30, 31, 1);

}

.reviews .container .block .name {
    font-weight: bold;
    color: black;
    font-size: 16px;
}

.reviews .container .block p {
    color: rgba(255, 105, 31, 1);
    font-weight: 300;
    font-size: 14px;
}



/* Стили для блока доставки */
.deliverry {
    padding: 50px 100px;
    display: flex;
    flex-wrap: nowrap;
}

.deliverry .main-img {
    width: 50%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.deliverry .text {
    width: 45%;
    padding-left: 50px;
}

.deliverry .text h2 {
    font-size: 52px;
    font-weight: 700;
    padding-bottom: 35px;
}

.deliverry .text .sub-text .block {
    margin-bottom: 25px;
    display: flex;
}

.deliverry .text .sub-text .block img {
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.deliverry .text .sub-text .block span {
    color: rgba(30, 30, 31, 1);
    font-weight: 400;
    font-size: 16px;
}



/* Блок с контактами */
.contacts {
    padding: 50px 0;
}

.contacts .text {
    display: grid;
    place-items: center;
}

.contacts h2 {
    font-size: 52px;
    font-weight: 700;
    padding-bottom: 15px;
    text-align: center;
}

.contacts h3 {
    font-size: 16px;
    font-weight: 300;
    width: 550px;
    text-align: center;
}

.contacts .container {
    padding: 0 100px;
    padding-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: scroll; 
    overflow-y: hidden; 
    -webkit-overflow-scrolling: touch; 
    scroll-snap-type: x mandatory;
    /* place-items: center;
    grid-template-columns: repeat(auto-fit, minmax(50%, 2fr)); */
}

.contacts .container::-webkit-scrollbar {
    display: none; 
  }

.contacts .container .main-block {
    border-radius: 20px;
    box-shadow: 0px 12px 30px 0px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(240, 239, 239, 1);
}

.contacts .container .main-block:first-child {
    margin-right: 25px;
}

.contacts .container .main-block p {
    padding-top: 28px;
    padding-left: 28px;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
}

.contacts .container .main-block .info {
    padding-left: 28px;
    margin-bottom: 15px;
}

.contacts .container .main-block .info .block {
    display: flex;
    margin-bottom: 10px;
}

.contacts .container .main-block .info .block img {
    vertical-align: middle;
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.contacts .container .main-block .info .block span {
    color: rgba(30, 30, 31, 1);
    font-weight: 400;
    font-size: 16px;
}

.contacts .container .main-block iframe {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}



/* Стили для футера */
footer {
    display: flex;
    justify-content: space-between;
    padding: 50px 100px 50px 100px;
}

footer h2 {
    color: rgba(30, 30, 31, 0.7);
    font-weight: 400;
    font-size: 20px;
}

footer p {
    color: rgba(30, 30, 31, 0.7);
    font-size: 14px;
    font-weight: 300;
}