* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

html, body {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}
.main {
    display: flex;
    flex-direction: column;
    background-size: 100% 100%;
    height: 100vh; /* Для того чтобы main занял всю высоту экрана */
}
nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-evenly;
}
nav a{
    position: relative;
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 20px;
  text-shadow: 2px 2px 4px #000;
  transition: color 0.3s ease;
}

a::after {
    content: "";
    position: absolute;
    bottom: -5px; /* отступ от текста */
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f0c674;
    transition: width 0.3s ease;
  }
  
a:hover::after {
    width: 100%;
  }
a:hover {
    color: #f0c674; /* или любой цвет при наведении */
  }
  
.logoUP{
    margin-left: 46px;
    padding: 8px 36px;
}

.link{
    padding: 15px 20px;
    font-size: 36px;
}

.menu-icon {
  display: none;
}

#menu-toggle {
  display: none;
}
.close-menu{
    display: none;
}

.partner, .VinoVino1, .brands, .Contacts{
    margin-right: 15px;
    padding: 8px 12px;
    display: inline;
    justify-content: space-between;
}

.first{
    margin-top: 0;
    margin: 0;
    width: 100%;
    height: 100vh; /* гарантирует, что секция как минимум на весь экран */
    display: flex;
    justify-content: center;
    background-size: cover; /* вся картинка помещается */
    background-repeat: no-repeat; /* убираем повторение */
    background-position: center;
    animation: fadeBackground 15s infinite alternate ease-in-out;
    position: relative;
}

/* Смена фона с плавным затуханием */
@keyframes fadeBackground {
    0% {
        background-image: url('Back2.jpg');

    }
    50% {
        background-image: url('Back3.jpg');
    }
    100% {
        background-image: url('Back1.jpg');
    }
}
.logoCentral{
    margin-right: 30px;
    width: 15%;
    perspective: 1200px; /* Добавляем перспективу для объема */
    transform-style: preserve-3d; /* Сохраняем 3D-трансформации */
    transition: transform 3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    animation: swich 15s linear infinite; /* Бесконечная анимация */
}
.logoCentral:active {
    transform: scale(1.4); /* Увеличение при нажатии */
    transition: transform 3s ease-in; /* Быстрое увеличение при нажатии */
}

.logoCentral:active:after {
    transform: scale(1); /* Возвращение к стандартному размеру с эффектом наскока */
    transition: transform 3s cubic-bezier(0.19, 1, 0.22, 1); /* Эффект "наскока" */
}

.logoUP{
    perspective: 1200px; /* Добавляем перспективу для объема */
    transform-style: preserve-3d; /* Сохраняем 3D-трансформации */
    transition: transform 3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    animation: swich 15s linear infinite; /* Бесконечная анимация */
}
.logoUP:hover {
    transform: scale(1.1); /* Увеличение при нажатии */
    transition: transform 3s ease-in; /* Быстрое увеличение при нажатии */
}

.logoUP:hover:after {
    transform: scale(1); /* Возвращение к стандартному размеру с эффектом наскока */
    transition: transform 3s cubic-bezier(0.19, 1, 0.22, 1); /* Эффект "наскока" */
}



/* Анимация для логотипа */
@keyframes swich {
    0% {
        filter: brightness(1.3) contrast(1.1) sepia(0.8) hue-rotate(100deg) saturate(2); /* Светло-зеленый */
    }
    25% {
        filter: brightness(1.5) contrast(1.1) sepia(0.9) hue-rotate(0deg) saturate(2); /* Светло-красный */
    }
    50% {
        filter: brightness(1.3) contrast(1.1) sepia(0.5) hue-rotate(270deg) saturate(2); /* Светло-фиолетовый */
    }
    75% {
        filter: brightness(1.5) contrast(1.1) sepia(0.9) hue-rotate(210deg) saturate(2); /* Светло-синий */
    }
    100% {
        filter: brightness(1) contrast(1.1) sepia(0.8) hue-rotate(100deg) saturate(2); /* Возврат к светло-зеленому */
    }
}
.Two{
    margin: 0;
    width: 100%;
    min-height: 100vh; /* гарантирует, что секция как минимум на весь экран */
    display: inline-block;
    justify-content: center;
    background-color: #1e1e1e;
    background-size: cover;
    padding: 10px;
    animation: innerGlow 2s infinite ease-in-out;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}
.TWO2 {
    position: absolute;
    display: flex;
    width: 99%;
    align-items: center;
    max-height: 100%;
    object-fit: cover;
    animation: outerGlow 3s infinite ease-in-out;
}

/* Анимация внешнего свечения */
@keyframes outerGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }
}

@keyframes innerGlow {
    0% {
        box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.8);
    }
    100% {
        box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
}

.texts{
    position: relative;
    margin:20px auto;
    font-size: 36px;
    color:white;
    width: 75%;
    line-height: 1.6;
}
.text1{
    margin-top: 110px;
    margin-right:90px;
    text-align: left;
}
.text2{
    text-align: center;
    margin-right: 118px;
    padding-top: 6%;
}
.text3{
    text-align: left;
    margin-right:40px;
    padding-top: 6%;
}

.Group{
    display: flex;
    background-color: #E3CBAA;
    flex-direction: row;
    justify-content: center;
    height: 1000px;
}
.HardGroup{
    width:45%;
    margin-top: 4%;
}
.LightGroup{
    width:42.7%;
    margin-top: 4%;
}

.VinoVino2 {
    display: flex;
    flex-direction: column;
    justify-content: center;      /* центрируем по горизонтали */
    align-items: center;          /* центрируем по вертикали */
    max-height: 100%;
    width: 100%;
    background-color: #E3CBAA;
  }
  
  .ShopIMG {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;  
  }

  .shop{
    display: flex;
    max-width: 100%;
    height: 100%;
  }

  .textsVinoVino{
    margin:20px auto;
    font-size: 36px;
    color:black;
    width: 75%;
    line-height: 1.6;
}
.text4{
    margin-top: 35px;
    padding: 45px;
    width:100%;
    text-align: center;
}
.text5{
    margin-top: 35px;
    padding: 45px;
    width:100%;
    text-align: center;
}

.text6{
    margin-top: 35px;
    padding: 45px;
    width:100%;
    text-align: center;
}
.text7{
    margin-top: 35px;
    width:100%;
    padding: 45px;
    text-align: center;
}
.text8{
    margin-top: 35px;
    padding: 45px;
    width:100%;
    text-align: center;
}

  .footer {
    display: flex;
    justify-content: space-between;
    padding: 50px;
    background-color: #E3CBAA; 
    height: max-content;
    font-family: Arial, sans-serif;
    flex-wrap: wrap;
}
  .Line{
    position: absolute;
    width: 50%;
    margin-left: -40%;
    margin-top: -10%;
    animation: outerGlow 3s infinite ease-in-out;
}
.footer-left {
    max-width: 40%;
}

.footer-left .logo {
    width: 40%;
    margin-bottom: 20px;
    margin-left: 35%;
}


.footer-left .map {
    max-width: 100%;
    height: auto;
}
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease-out, transform 2s ease-out;
    will-change: opacity, transform;
  }
  
  .fade-in-section.is-visible {
    opacity: 1;
    transform: none;
  }

.textsVinoVino hr{
    margin: 20px 0;
    border: none;
    border-top: 2px solid #b49a76;
    animation: innerGlow 2s infinite ease-in-out;
}
.logo{
    color: brown;
    perspective: 1200px; /* Добавляем перспективу для объема */
    transform-style: preserve-3d; /* Сохраняем 3D-трансформации */
    transition: transform 3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    animation: swich 15s linear infinite; /* Бесконечная анимация */
}
.logo:hover {
    transform: scale(1.1); /* Увеличение при нажатии */
    transition: transform 3s ease-in; /* Быстрое увеличение при нажатии */
}

.logo:hover:after {
    transform: scale(1); /* Возвращение к стандартному размеру с эффектом наскока */
    transition: transform 3s cubic-bezier(0.19, 1, 0.22, 1); /* Эффект "наскока" */
}

.TextFooter {
    margin-top: 10%;
    margin-right: 10%;
    max-width: 50%;
    color: #2e1b10;
}
.TextFooter h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.TextFooter h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 5px;
}

.TextFooter p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

.TextFooter hr {
    margin: 20px 0;
    border: none;
    border-top: 1.5px solid #b49a76;
    animation: outerGlow 3s infinite ease-in-out;
}


/* 1. Мобильные устройства (до 576px) */
@media (max-width: 575.98px) {
    nav{
        width: 100%;
        height: 35px;
       }
       p{
        font-size: 14px;
        text-align: center;
       }
       .logoUP{
        width: 150px;
        height: 100;
    }

    .link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start;
      
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      
        backdrop-filter: blur(8px);
        background-color: rgba(0, 0, 0, 0.3);
      
        opacity: 0;
        transform: scale(1.05);
        pointer-events: none;
      
        transition: opacity 0.4s ease, transform 0.4s ease;
      
        z-index: 1000;
        padding-top: 10px;
    }
    
    .menu-icon {
        display: block;
        font-size: 16px;
        color: white;
        padding: 6px;
        cursor: pointer;
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
      }
    
    #menu-toggle:checked + .menu-icon + .link {
        opacity: 1;
      transform: scale(1);
      pointer-events: auto;
        display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .close-menu {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 32px;
        background: none;
        color: white;
        border: none;
        cursor: pointer;
      }
    
        .logoCentral{
            width: 14%;
            margin-left: 24px;
            align-items: center;
        }
        .textes, .texts p{
            width: 100%;
            height: max-content;
            font-size: 11px;
            margin-bottom: 40px;
            text-align: center;
        }
        .Group{
            height: max-content;
            flex-direction: column;
            align-items: center;
            padding: 10px;
        }
        .HardGroup{
            width: 100%;
        }
        .LightGroup{
            width: 100%;
        }
        .textsVinoVino, .textsVinoVino p{
            font-size: 11px;
            width: 100%;
        }
        .footer{
            display: flex;
            flex-direction: column;
            align-content: center;
        }
        .footer-left{
            margin-left: 20px;
        }
        .logo{
            min-width: 100px;
            height: 100%;
            margin-left: -20px;
        }
        .TextFooter p, h1, h2, h3{
            width: 100%;
            text-align: center;
            font-size: 11px;
        }
  }
  
  /* 2. Мобильные (от 576px до 767px) */
  @media (min-width: 576px) and (max-width: 767.98px) {
    nav{
        width: 100%;
        height: 60px;
       }
       p{
        font-size: 16px;
        text-align: center;
       }

       .logoUP{
        width: 250px;
       }
       .logoCentral{
        width: 20%;
        margin-left: 20px;
        align-items: center;
    }

    .link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start;
      
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      
        backdrop-filter: blur(8px);
        background-color: rgba(0, 0, 0, 0.3);
      
        opacity: 0;
        transform: scale(1.05);
        pointer-events: none;
      
        transition: opacity 0.4s ease, transform 0.4s ease;
      
        z-index: 1000;
        padding-top: 80px;
      
    }
    .menu-icon {
        display: block;
        font-size: 36px;
        color: white;
        padding: 20px;
        cursor: pointer;
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
      }
    
    #menu-toggle:checked + .menu-icon + .link {
        opacity: 1;
      transform: scale(1);
      pointer-events: auto;
        display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .close-menu {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 32px;
        background: none;
        color: white;
        border: none;
        cursor: pointer;
      }
      .textes, .texts p{
        width: 100%;
        height: max-content;
        font-size: 16px;
        margin-bottom: 40px;
        text-align: center;
    }
    .Group{
        flex-direction: column;
        align-items: center;
        padding: 16px;
    }
    .HardGroup{
        width: 100%;
    }
    .LightGroup{
        width: 100%;
    }
      .textsVinoVino p{
        font-size: 16px;
        text-align: center;
        width: 100%;
      }
      .footer{
        flex-direction: column;
        align-content: center;
    }
    .footer-left{
        margin-left: 30px;
    }
    .logo{
        min-width: 140px;
        height: 100%;
    }
    .TextFooter p, h1, h2, h3{
        width: 100%;
        text-align: center;
        font-size: 16px;
        margin-left: 30px;
    }
  }
  
  /* 3. Планшеты (от 768px до 991px) */
  @media (min-width: 768px) and (max-width: 991.98px) {
    
    .logoCentral{
        width: 20%;
        align-items: center;
    }

    .logoUP{
        width: 250px;
        margin-top: 16px;
       }

    .link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start;
      
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      
        backdrop-filter: blur(8px);
        background-color: rgba(0, 0, 0, 0.3);
      
        opacity: 0;
        transform: scale(1.05);
        pointer-events: none;
      
        transition: opacity 0.4s ease, transform 0.4s ease;
      
        z-index: 1000;
        padding-top: 80px;
      
    }
    .menu-icon {
        display: block;
        font-size: 36px;
        color: white;
        padding: 20px;
        cursor: pointer;
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
      }
    
    #menu-toggle:checked + .menu-icon + .link {
        opacity: 1;
      transform: scale(1);
      pointer-events: auto;
        display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .close-menu {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 32px;
        background: none;
        color: white;
        border: none;
        cursor: pointer;
      }
      .Group{
        width: 100%;
        height: max-content;
        flex-direction: column;
        align-items: center;
        padding: 44px;
    }
    .HardGroup{
        width: 100%;
    }
    .LightGroup{
        width: 100%;
    }
    .TextFooter {
        margin: 0;
    }
    .TextFooter p{
        text-align: left;
        font-size: 16px;
    }
        
  }
  
  /* 4. Ноутбуки (от 992px до 1199px) */
  @media (min-width: 992px) and (max-width: 1199.98px) {
    nav{
        width: 100%;
        height: 60px;
       }
       p{
        font-size: 16px;
        text-align: center;
       }

       .logoUP{
        width: 200px;
        margin-top: 10px;
       }
       .logoCentral{
        width: 20%;
        margin-left: 18px;
        align-items: center;
    }
    .texts p{
        margin-left: 20%;
        text-align: center;
        margin-right: 20%;
    }
    .Group{
        width: 100%;
        height: max-content;
        padding: 44px;
    }
    .HardGroup{
        width: 50%;
    }
    .LightGroup{
        width: 47.3%;
    }
    .Line{
        width: 48%;
    }
    .TextFooter {
        margin: 0;
    }
    .TextFooter p{
        text-align: left;
        font-size: 16px;
    }
  }
  
  /* 5. Десктопы (от 1200px и выше) */
  @media (min-width: 1200px) and (max-width: 1600px){
    
    .texts p, .textsVinoVino p {
        font-size: 20px;
      }
      .TextFooter p {
        font-size: 16px;
      }
      .logoCentral {
        width: 13%;
        margin-left: 5px;
      }
      .Group{
        height: max-content;
        padding: 46px;
        align-items: center;
      }
      .TextFooter {
        margin: 0;
        max-width: 60%;
      }
  }
  @media (min-width: 1600.99) and (max-width: 1920px) {
    nav{
        width: 100%;
        height: max-content;
       }
       p{
        font-size: 56px;
        text-align: center;
       }
       .link a{
        padding: 64px;
        top: 35%;
        font-size: 58px;
       }
       .logoCentral {
        margin-right: 120px;
        width: 20%;
    }

       .logoUP{
        margin-right: 10%;
        width: 700px;
        margin-top: 50px;
       }

       .Group{
        width: 100%;
        height: max-content;
        padding: 44px;
    }

    .texts p {
        font-size: 64px;
        text-align: center;
        width: 100%;
        padding: 40px;
      }
      .textsVinoVino{
        font-size: 20px;
        width: 100%;
      }
      .TextFooter{
        margin-top: 35px;
    }
    .TextFooter p {
        text-align: left;
        font-size: 40px;
        max-width: 75%;
    }
      .logoCentral {
        width: 12%;
      }
      .TextFooter {
        max-width: 65%;
      }
  }
  @media (min-width: 1920.01px) and (max-width: 3840px) {
    nav{
        width: 100%;
        height: max-content;
       }
       p{
        font-size: 28px;
        text-align: center;
       }
       .link a{
        top: 35%;
        font-size: 32px;
       }
       .logoUP{
        margin-right: 10%;
        width: 400px;
        margin-top: 34px;
       }
       .logoCentral {
        margin-right: 20px;
        width: 18%;
    }
    .texts p{
        text-align: center;
        width: 65%;
        margin-left: 20%;
        padding-top:10%;
        font-size: 42px;
    }
    .Group{
        height: max-content;
        width: 100%;
    }
    .HardGroup{
        padding-bottom: 100px;
        width: 50%;
    }
    .LightGroup{
        padding-bottom: 100px;
        width: 50%;
    }
    .textsVinoVino p{
        font-size: 32px;
        width: 100%;
    }
    .TextFooter{
        margin: 0;
    }
    .footer-left{
        width: 100%;
        flex-direction: column;
        height: 100%;
    }
    .map{
        width: 100%;
    }
    .TextFooter{
        margin-top: 35px;
    }
    .TextFooter p {
        text-align: left;
        font-size: 36px;
        max-width: 75%;
    }
    .TextFooter h2{
        font-size: 40px;
    }
    .TextFooter h3{
        font-size: 46px;
    }
    .TextFooter h3{
        font-size: 46px;
    }
  }


  @media (min-width: 3840.01px) and (max-width: 7890px) {
    nav{
        width: 100%;
        height: 280px;
       }
       p{
        font-size: 56px;
        text-align: center;
    }
    .link a{
        padding: 64px;
        top: 35%;
        font-size: 84px;
    }
    .logoUP{
        margin-right: 10%;
        width: 900px;
        margin-top: 50px;
       }

    .logoCentral {
        margin-right: 120px;
        width: 20%;
    }

    .texts p{
        text-align: center;
        width: 65%;
        margin-left: 20%;
        padding-top:10%;
        font-size: 84px;
    }
    .Group{
        height: max-content;
        width: 100%;
    }
    .HardGroup{
        padding-bottom: 100px;
        width: 50%;
    }
    .LightGroup{
        padding-bottom: 100px;
        width: 50%;
    }
    .textsVinoVino p{
        font-size: 84px;
        width: 100%;
    }
    .TextFooter{
        margin-top: 10%;
    }
    .footer-left{
        width: 100%;
        flex-direction: column;
        height: 100%;
    }
    .map{
        width: 100%;
    }
    .TextFooter p {
        text-align: left;
      font-size: 64px;
    max-width: 75%;
    }
    .TextFooter h2{
        font-size: 96px;
    }
    .TextFooter h3{
        font-size: 86px;
    }
    .TextFooter h3{
        font-size: 86px;
    }
    
  }