* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Serif";
}

.second-background {
  background-image: url("../img/icecup.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  justify-content: center;
  display: flex;
}

.background {
  background-image: url("../img/icecoffee.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  width: 100%;
  display: flex;
}

.bright {
  width: 100%;
  height: 100%;
  background: #0000a8;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 75%,
    rgba(0, 0, 0, 1) 100%
  );
}

.behind-main-text {
  display: flex;
  max-height: 1000px;
  justify-content: center;
  align-items: center;
}

.darkshake-text {
  margin-top: 50px;
  font-size: 38px;
  flex: 200px;
  color: #d4edff;
  text-align: center;
  line-height: 65px;
  max-width: 1050px;
}

.hero {
  width: 100%;
  height: 80px;
}

.img-arrow {
  mix-blend-mode: multiply;
  height: 150px;
  width: 150px;
}

.drinkbar {
  font-size: 48px;
  display: flex;
  margin-left: 20px;
  font-weight: 600;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(180deg, #ffffff, #9adaff);
}

.main-text {
  margin-top: 25px;
  font-size: 80px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(180deg, #ffffff, #c9c9c9);
}

.logo > img {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  margin-left: 25px;
}

.logo {
  display: flex;
}

.nav-bar {
  width: 100%;
  height: 80px;
  background-color: rgba(0, 26, 82, 0.5);
  color: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: fixed;
  justify-content: center;
  z-index: 20;
}

.nav-links {
  align-items: center;
  justify-content: center;
  display: flex;
  list-style: none;
  font-size: 28px;
  font-weight: 700;
  margin: 0px 30px;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

.nav-links a:hover {
  color: #007bff;
}

.display-with-drinks {
  width: 100%;
  display: flex;
  align-items: center;
  background: #000000;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(255, 255, 255, 0.025) 50%,
    rgba(0, 0, 0, 1) 100%
  );
}

.slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 24px;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: 0.3s;
}

.nav-btn:hover {
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
  width: 100%;
  scroll-behavior: smooth;
}

.slider::-webkit-scrollbar {
  display: none;
}

.card-text {
  color: #d4edff;
  font-size: 36px;
  padding: 10px;
  line-height: 50px;
}

.card {
  flex: 0 0 1000px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.about-us {
  background-image: url("../img/barback.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 100vh;
  display: flex;
}

.border-about-us {
  height: 1000px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-about-us {
  font-size: 48px;
  text-align: center;
  font-weight: 500;
  color: aliceblue;
  max-width: 1000px;
  line-height: 80px;
}

.contacts {
  background-image: url("../img/contact.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  max-width: 100%;
  height: 1000px;
  display: flex;
}

.contacts-shade {
  background-color: #00000048;
  width: 100%;
  height: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.heading {
  margin-bottom: 10px;
  font-size: 42px;
  font-weight: 700;
  color: #e7e7e7;
  text-align: center;
}

.forma {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: rgb(224, 255, 250);
  font-size: 32px;
}

.box {
  width: 300px;
  height: 40px;
  border: 2px solid #ddd;
  outline: none;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  padding-top: 10px;
}
textarea.box {
    height: auto;
    min-height: 80px;
    max-height: 250px;
    field-sizing: content;
    overflow-y: auto;
    resize: none; 
}
.sub-btn {
  margin-top: 10px;
  width: 200px;
  height: 40px;
  border-radius: 10px;
  border: #000000;
}

@media (max-width: 1000px) {
  .main-text {
    font-size: 52px;
    text-align: center;
    margin-top: 50px;
  }

  .darkshake-text {
    margin-top: 10px;
    line-height: 60px;
    font-size: 36px;
  }

  .nav-bar {
    height: 120px;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .main-text {
    font-size: 36px;
    text-align: center;
    margin-top: 100px;
  }

  .darkshake-text {
    margin-top: 20px;
    line-height: 45px;
    font-size: 26px;
  }

  .nav-bar {
    height: 180px;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    width: 100%;
  }

  .text-about-us {
    font-size: 32px;
    line-height: 50px;
  }
}

@media (max-width: 500px) {
  .main-text {
    font-size: 36px;
    text-align: center;
    margin-top: 100px;
  }

  .darkshake-text {
    margin-top: 20px;
    line-height: 40px;
    font-size: 24px;
  }

  .nav-bar {
    height: 160px;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    width: 100%;
    font-size: 24px;
    margin: 0;
    gap: 10px;
  }

  .drinkbar {
    font-size: 36px;
  }

  .card-text {
    font-size: 28px;
    line-height: 35px;
  }

  /* Исправление 1: Картинка.
       Мы убираем фиксированные 650px высоты.
       Устанавливаем максимальную высоту в половину экрана,
       чтобы текст снизу тоже был виден.
       Меняем "cover" на "contain", чтобы видеть всю чашку целиком. */
   
    .slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0; 
        width: 100%;
        /* Важно: убираем любые внутренние отступы, которые могут сдвигать snap-точку */
        padding: 0;
    }

    .card {
        /* Жестко задаем, что одна карточка = 100% ширины экрана */
        flex: 0 0 100%; 
        width: 100%;
        max-width: 100%;
        scroll-snap-align: start; /* Выравнивание по началу для точности */
        padding: 20px;
        box-sizing: border-box; /* Чтобы padding не раздувал ширину */
    }

    /* 2. Исправляем растянутую картинку кофе */
    .card img {
        width: 100%;           /* Растягиваем по ширине карточки */
        height: 300px;         /* Задаем фиксированную высоту для всех картинок в слайдере */
        object-fit: cover;     /* Самый важный параметр: картинка заполнит блок без искажений (лишнее обрежется) */
        border-radius: 10px;
        display: block;
    }

    .slider-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden; /* Скрываем всё, что выходит за пределы */
    }
}

@media (max-width: 400px) {
  .main-text {
    font-size: 36px;
    text-align: center;
    margin-top: 80px;
  }

  .darkshake-text {
    margin-top: 0;
    line-height: 35px;
    font-size: 20px;
  }

  .nav-bar {
    height: 160px;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    width: 100%;
    font-size: 24px;
    margin: 0;
    gap: 10px;
  }

  .drinkbar {
    font-size: 36px;
  }

  .card-text {
    font-size: 28px;
    line-height: 35px;
  }
}
