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

@font-face {
    font-family: 'Classic';
    src: url('../fonts/Tangerine-Regular.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Brush';
    src: url('../fonts/Brush.otf') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Epilogue';
    src: url('../fonts/Epilogue-Bold.ttf') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Epilogue';
    src: url('../fonts/Epilogue-Medium.ttf') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Epilogue';
    src: url('../fonts/Epilogue-Light.ttf') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Epilogue';
    src: url('../fonts/Epilogue.ttf') format('woff2');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Epilogue';
    src: url('../fonts/Epilogue-normal.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Epilogue';
    src: url('../fonts/Epilogue-Thin.ttf') format('woff2');
    font-weight: 100;
    font-style: normal;
}


img.lazy {
    filter: blur(10px); /* Эффект размытия */
    transition: filter 0.5s ease-out; /* Плавный переход при загрузке */
  }
  
  img.lazy.loaded {
    filter: blur(0);
  }


body {
    overflow-x: hidden;
    background-color: rgb(255, 255, 255);
    overflow-y: overlay;
    /* Скроллбар накладывается поверх содержимого */
    padding-top: 90vh;
}

section {
    z-index: 3;
    background-color: #fff;
    position: relative;
}


html {
    background-color: white !important;
    scrollbar-width: thin;
    /* Тонкий скроллбар для Firefox */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #000;
}

::-webkit-scrollbar {
    width: 8px;
    /* Толщина скроллбара */
}

::-webkit-scrollbar-track {
    background: transparent;
    /* Прозрачный фон */
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
    /* Полупрозрачная полоса прокрутки */
    border-radius: 10px;
    /* Закругленные края */
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(0, 0, 0);
    /* Более насыщенный цвет при наведении */
}

/* Стили для скрытия элементов по умолчанию */
.box {
    visibility: hidden;
    opacity: 0;
    transform: translateY(50px); /* Элемент начинает сдвигаться снизу */
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
  }
  
  .box.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* Элемент возвращается на свое место */
  }
  

.container {
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

.logo-flex {
    display: flex;
    align-items: center;
    gap: 2rem;
}

header {
    position: fixed;
    z-index: 4;
    top: 0;
    background: #fff;
    display: flex;
    width: 100%;
    color: #000;
    justify-content: center;
    align-items: center;
    padding: 15px;
    font: 200 25px / 1 "Brush Script MT", -apple-system, Roboto, Helvetica, sans-serif;
    font-family: Brush !important;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

header h2 {
    user-select: none;
    -webkit-touch-callout: none;
    cursor: pointer;
    text-align: center;
    margin-bottom: -0.7rem;
}

.first {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.600)), url(../img/bg1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: Epilogue, sans-serif;
    position: fixed;
    width: 100%;
    color: white;
    height: 90vh;
    z-index: 2;
    top: 0;
}

.first .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.first .h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    animation: textanim 1s ease-out 0s;
}

.first .h3 {
    margin-top: 2.3rem;
    font-size: 2rem;
    font-weight: 300;
    line-height: 21px;
    animation: textanim 1.2s ease-out 0s;
}

.content {
    margin-top: 10rem;
}

.btn_contact {
    display: inline-block;
    color: #000;
    background: #CFBBA0;
    padding: 15px 20px;
    border-radius: 40px;
    height: min-content;
    font: 200 1.8rem Helvetica, sans-serif !important;
    margin-top: 2.5rem;
    animation: textanim 1.4s ease-out 0s;
    transition: all 1s ease;
}

.btn_contact:hover {
    background: #786c5d;
    color: #fff;
    transition: all 1s ease;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}

.bg section {
    background-color: transparent;
}

.about {
    box-shadow: rgba(0, 0, 0, 0.3) 0px -19px 38px, rgba(0, 0, 0, 0.22) 0px -15px 12px;
    padding-bottom: 2.6rem;
    background: linear-gradient(180deg,
            rgb(255, 255, 255) 0%,
            /* Белый цвет */
            rgb(235, 230, 219) 90%,
            /* Светло-бежевый */
            rgb(235, 230, 219) 100%) !important;
}

.products {
    background: linear-gradient(180deg,
            rgb(235, 230, 219) 0%,
            rgb(235, 230, 219) 5%,
            /* Светло-бежевый */
            rgb(235, 233, 228) 100%
            /* Белый цвет */
        ) !important;
}

.h2 {
    color: #000;
    font-family: Brush;
    font-size: 3.5rem;
    padding-bottom: 1.5rem;
    padding-top: 1.8rem;
    margin: 0;
    font-style: italic !important;
    font-weight: 100 !important;
    text-decoration: underline;
    text-decoration-thickness: 3px; /* Толщина линии подчеркивания */
  text-underline-offset: 7px;
}

.about_text {
    margin-top: 1.3rem;
    font-weight: 300 !important;
    width: 100%;
    font-family: Epilogue, sans-serif;
    font-size: 1.6rem;
    margin: 0;
    line-height: 2rem;
}

.more {
    display: none;
    color: #0293D5;
    cursor: pointer;
    user-select: none;
    -webkit-touch-callout: none;
}

.hidden {
    display: inline;
}

.less {
    display: inline-block;
    color: #0293D5;
    cursor: pointer;
    user-select: none;
    -webkit-touch-callout: none;
}

#check {
    display: none;
}

#check:checked~.hidden {
    display: none;
}

#check:checked~.more {
    display: inline;
}

#check:checked~.less {
    display: none;
}

/* Горизонтальная галерея */

.product_galery {
    background: linear-gradient(180deg,
            rgb(235, 233, 228) 0%,
            /* Белый цвет */
            rgb(255, 255, 255) 100%
            /* Светло-бежевый */
        ) !important;
}

.gallery-container {
    width: 100%;
    /* Убираем скроллбар для Firefox */
    white-space: nowrap;
}

.gallery::-webkit-scrollbar {
    display: none;
    /* Убираем скроллбар для Chrome, Edge и Safari */
}

.gallery {
    overflow-x: auto;
    scrollbar-width: none;
    display: flex;
    gap: 37px;
    padding: 1.9rem 1.4rem;
    margin-left: -1.5rem;
}

.gallery-item {
    flex: 0 0 auto;
    height: 15vh;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.1s ease;
    /* Указатель мыши */
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.gallery-item:hover {
    filter: brightness(0.7);
    /* Уменьшаем яркость при наведении */
}

.gallery-heading {
    margin-top: 1.4rem;
    color: #8a7361;
    font: 400 1.8rem / 1 Epilogue, sans-serif;
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    border-radius: 50%;
  }
  
  button.prev {
    left: 20px;
  }
  
  button.next {
    right: 20px;
  }
  
  button.prev:hover, button.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  

/* Модальное окно */
.modal {
    display: none;
    /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Полупрозрачный фон */
    z-index: 6;
    /* Поверх всего */
    justify-content: center;
    align-items: center;
}

.modal * {
    z-index: 6;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    z-index: 6;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: rgb(255, 255, 255);
    cursor: pointer;
}

.logos-section {
    background: linear-gradient(-45deg, #001d87, #000000, #001336);
    background-size: 200% 200%;
    animation: gradient 5s ease infinite;
    backdrop-filter: blur(10px);
    padding: 9rem 0;
    color: white;
    overflow: hidden;
    position: relative;
}

/* Контейнер для точек */
.logos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

/* Мигающие точки */
.star {
    position: absolute;
    border-radius: 50%;
    background-color: white;
    opacity: 0;
    animation: blink 2s infinite;
}

/* Анимация мигания */
@keyframes blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Создаем случайные точки */
@keyframes createStars {
    0% {
        top: 0;
        left: 0;
    }

    100% {
        top: 100%;
        left: 100%;
    }
}

.logos-section .h2 {
    color: #fff;
    text-align: center;
    padding-bottom: 4rem;
    text-decoration: none;
}

.logos-container {
    display: flex;
    gap: 4rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand {
    font-size: 2rem;
    display: block;
}

.cannon,
.vienetta {
    background-color: #fff;
}

.vienetta {
    padding: 0rem;
}

.classic {
    font-family: classic;
    font-weight: 700;
    font-size: 3rem;
}

.royal {
    color: rgb(255, 217, 0);
}

.caramelle {
    font-weight: bolder;
    color: #fff;
    font-family: Epilogue;
    background-color: #ffffff00;
    border: none;
    border-radius: 300px;
    margin: 0;
    padding: 10px;
    padding-bottom: 6px;
}

.recansens{
    background-color: #fff;
}

.gaviota{
    background-color: #fff;
    padding: 10px;
    width: 20%;
}

.maraton {
    font-family: Epilogue, sans-serif;
}

.addict{
    background-color:#000;
    padding: 1.5rem !important;
}

.medical {
    font-family: Epilogue, sans-serif;
    color: #0293D5;
}

.mignon{
    height: 90px !important;
}

.sunscreen {
    color: rgb(255, 255, 0);
    font-style: italic;
}

.blackout {
    font-family: Arial, Helvetica, sans-serif;
    border: 2px solid #fff;
    padding: 10px;
}

.textiles {
    text-decoration: underline;
    font-family: cursive;
    color: rgb(130, 255, 213);
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    gap: 2rem;
}

.row:nth-child(2) {
    animation-duration: 30s;
}

.row:nth-child(3) {
    animation-duration: 18s;
}

.logo {
    margin: 0 15px;
    height: 60px;
    object-fit: contain;
}

.iframe {
    border-radius: 12px;
    border: none;
    width: 40vw;
    height: 25vw;
    margin-right: 3rem;
}

.information {
    padding-bottom: 4.8rem;
}

.information .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    width: 100%;
    gap: 16px;
    justify-content: center;
}

.social-icon {
    width: 2.5rem;
    aspect-ratio: 1;
}

.copyright {
    margin-top: 24px;
    width: 100%;
    color: #8a7361;
    text-align: center;
    font: 400 16px Epilogue, sans-serif;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    row-gap: 4.5rem;
    padding-bottom: 2.6rem;
}

.item_img {
    width: 25vw;
    border-radius: 12px;
}

.item_heading {
    margin-top: 1.3rem;
    color: #171412;
    font: 500 1.8rem / 1 Epilogue, sans-serif;
}

.info {
    width: 100%;
}

.item_desc {
    margin-top: 1rem;
    color: #8a7361;
    font: 400 1.4rem / 27px Epilogue, sans-serif;
}

.img_wrap {
    margin: 0;
    padding: 0;
    position: relative;
}

.img_wrap .motorized {
    position: absolute;
    right: 15%;
    top: 10%;
    background-color: #dfffa5;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
}

.settings {
    height: 1rem;
}

.adress {
    color: #8a7361;
}

.location {
    width: .8rem;
}

@keyframes textanim {
    0% {
        margin-left: -60rem;
        opacity: 0;
    }

    100% {
        opacity: 1;
        margin-left: 0;
    }
}

@keyframes flow {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media screen and (max-width: 1425px) {
    .row {
        flex-direction: column;
        gap: 4rem;
    }

    .gaviota{
        width: 90%;
    }
}

@media screen and (max-width: 1125px) {
    .first .h1 {
        font-size: 4.3rem;
    }

    .first .h3 {
        font-size: 2.1rem;
    }
}

@media screen and (max-width: 925px) {
    .information .flex {
        flex-direction: column;
        justify-content: center;
        gap: 3.5rem;
        align-items: flex-start;
    }

    .iframe {
        width: 90vw;
        height: 50vw;
    }

    .social-links {
        justify-content: start;
        gap: 0.4rem;
    }

    .copyright {
        text-align-last: left;
    }

    .h1 {
        font-size: 4rem !important;
    }

    .item_desc {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 925px) {
    .first {
        background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.427)), url(../img/bg2.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100vw;
    }

    header{
        width: 100vw;
    }

    .h1 {
        font-size: 3.7rem !important;
    }

    .h2{
        padding-bottom: 2rem;
    }

    .motorized{
        font-size: 0.7rem;
    }

    .settings{
        height: 0.7rem;
    }
}

@media screen and (max-width: 735px){
    .logo-flex .logo-flex{
        flex-direction: column;
    }
}

@media screen and (max-width: 600px){
    .h1{
        font-size: 2.4rem !important;
    }

    .h2{
        font-size: 2.5rem;
    }

    .h3{
        font-size: 1.4rem !important;
        margin-top: 1rem !important;
    }

    .btn_contact{
        font-size: 1.2rem !important;
        margin-top: 1.3rem !important;
    }

    .about_text{
        font-size: 1.4rem;
    }

    .item_heading{
        font-size: 1.2rem;
    }

    .grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .item_img{
        width: 37vw;
    }

    .item_desc{
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 475px){
    .logos-container .row:nth-child(3)>.logo-flex{
        flex-direction: column;
    }

    .logos-container{
        gap: 2rem;
    }

    .logos-section{
        height: auto;
    }

    .logo{
        height: 40px;
    }
}