/* =================== */
/*        BASE         */
/* =================== */
:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --nav-bg: #ffffff;
  --card-bg: white;
  --card-text:#20708c;
  --card-subtext: #e58e00;
  --btn-bg: #e58e00;
  --btn-hover-bg: #0056b3;
  --shadow: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #ded0b6;
    --text-color: #3b372c;
    --nav-bg: #ded0b6;
    --card-bg: #efe5d2;
    --card-text: #6b6f3c;
    --card-subtext: #6f7842;
    --btn-bg: #8a9352;
    --btn-hover-bg: #6f7842;
    --shadow: rgba(0, 0, 0, 0.25);
  }
}



body {
  margin: 0;
  font-family: "Mulish", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}


/* =================== */
/*        HEADER       */
/* =================== */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
  padding: 10px 20px;
  position: relative;
  z-index: 10000;
}

.main-nav span{
	display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5em;
  font-weight: bold;
  color: var(--text-color);
}

.logo img {
  height: 100px;
}

.nav-links {
  list-style: none;
  display: flex;       /* Изменяем на flex для удобства управления */
  justify-content: flex-start  !important;  /* Прижимаем влево */
  gap: 20px;            /* Интервалы между элементами */
  font-size: 1em;
/*  font-weight: 600 !important;      Немного толще шрифт, можно использовать 600 или 700 для ещё большей толщины */
  padding: 0;
  margin: 0;
}


.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: var(--btn-bg);
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* --- Мобильная версия --- */
@media (max-width: 768px) {
.main-nav {
    display: flex; /* ✅ нужно flex */
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

.nav-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 20px;
  background-color: var(--bg-color);
  overflow: hidden;

  max-height: 0;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;

  transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.nav-links.active {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


  .nav-links li {
    margin-bottom: 10px;
  }

  .nav-links li a {
    display: block;
    font-size: 16px;
    line-height: 1.4;
  }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* анимация бургера в меню */

.hamburger {
  display: flex; /* вместо block или none */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 10001;

}


.hamburger span {
  display: block;
  height: 1px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 1px;
transition: transform 0.4s ease, opacity 0.4s ease;
}


.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  top: 20px;
}

/* Анимация при активном состоянии */
/* Когда активен */
/* Вращение на 360 градусов */
.hamburger.rotate {
  animation: spin 0.6s ease forwards;
}

/* Анимация вращения */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


/* После вращения превращается в ">" */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
}



/* =================== */
/*        SLIDER       */
/* =================== */
.slider-wrapper {
  position: relative;
  width: 85%;
  margin: 40px auto;
}


.mySwiper {
  width: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--shadow);
}

.slider-text-overlay {
  position: absolute;
  top: 50%;
  right: 0;
  width: clamp(250px, 30%, 350px);
  height: 90%;
  max-height: 100%;
  background-color: var(--card-bg);
  padding: 40px 30px;
  box-shadow: 0 40px 40px rgba(0, 0, 0, 0.2); /* тень глубже */
  z-index: 10;
  border-radius: 8px;
/* Центрирование содержимого */
display: flex;
  flex-direction: column;
  justify-content: center; /* вертикальное центрирование */
  align-items: center;     /* горизонтальное центрирование */
  text-align: center;

  transform: translateY(-50%);
  gap: 0;
  
}

.slider-text-overlay h1 {
  margin: 0 0 15px;
  font-size: 250%;
  color: var(--card-text);
}

.slider-text-overlay p {
  flex-grow: 1; /* Заполнит всё между h2 и кнопкой */
  display: flex;
  align-items: center;   /* Центрирует текст по вертикали */
  justify-content: center; /* Центрирует по горизонтали */
  margin: 0; /* убираем лишнее */
  padding: 0 10px;
  line-height: 1.6;
  font-size: 120%;
}

    .slider-subtext {
      color: var(--card-subtext);
      font-size: 1.2em;
      display: block;
  margin-bottom: 6%;    /* отступ от кнопки */

    }


.btn {
  background-color: var(--btn-bg);
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
  align-self: center;
}

.btn:hover {
  background-color: var(--btn-hover-bg);
}

/* --- Мобильная версия слайдера --- */
@media (max-width: 768px) {
.slider-wrapper {
    width: 85%;
    margin: 0 auto; /* Центрирование по горизонтали */
    display: flex;
    justify-content: center;
    position: relative;
}



  .slider-text-overlay {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 auto;        /* Центрирует блок */
    transform: none;
    width: 95% !important;
    height: 250px;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 3%;
    box-shadow: 0 4px 10px var(--shadow);
    z-index: 1;
  }

  .slider-text-overlay p {
    font-size: 14px;
    margin-bottom: 10px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn {
    padding: 8px 14px;
    font-size: 14px;
  }
}
@media (max-width: 1024px) {
  .slider-wrapper {
    flex-direction: column;       /* Сначала текст, потом слайды */
    width: 98%;                   /* Почти на всю ширину */
    margin: 0 auto;               /* Центрируем */
    align-items: center;          /* Выравниваем содержимое */
    gap: 10px;                    /* Отступ между текстом и слайдером */
  }

  .slider-text-overlay {
    order: -1;                    /* Помещаем выше в визуальном порядке */
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  .swiper {
    width: 100% !important;       /* Растянуть слайды */
  }
}


/* =================== */
/*     PRODUCT GRID    */
/* =================== */
.product-grid {
  display: grid; /* исправлено с flex */ 
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
  grid-template-columns: repeat(6, 1fr); /* по 6 в ряд */
  gap: 20px;
  max-width: 85%;
  margin: 40px auto;
  padding: 0 15px;
}

.product-card {
  background-color: var(--card-bg);
  text-align: center;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 6px var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card img {
  width: 100%;
  height: 200px; /* зафиксированная высота */
  object-fit: contain; /* сохраняем пропорции, вписывается в высоту */
  border-radius: 4px;
}

.product-card p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-color);
}

/* =================== */
/*   Планшеты 769-1024 */
/* =================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-nav {
    flex-direction: row;
    padding: 15px;
  }

  .logo img {
    height: 70px;
  }

  .nav-links {
    gap: 15px;
    font-size: 0.95em;
  }

  .slider-wrapper {
    width: 99%;
    margin: 10px auto;
  }

  .slider-text-overlay {
    width: 30vw;
    height: 100%;
    padding: 30px 25px;
    right: 0;
  }



  .slider-text-overlay p {
    font-size: 14px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .swiper-slide img {
    height: 100%;
  }


  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .product-card img {
    height: 180px; /* слегка меньше на планшетах */
  }

  .product-card p {
    font-size: 15px;
  }


}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* по 3 в ряд */
    gap: 15px;
  }

  .product-card img {
    height: 160px;
  }

  .product-card p {
    font-size: 14px;
    margin-top: 8px;
  }
}

/* Up-Button*/
#scrollToTopBtn {
      position: fixed;
      bottom: 30px;
      right: 30px;
      z-index: 100;
      background-color: #007bff;
      color: white;
      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.4s, transform 0.3s;
    }

    #scrollToTopBtn:hover {
      background-color: #0056b3;
      transform: translateY(-3px);
    }

    #scrollToTopBtn.show {
      opacity: 1;
      visibility: visible;
    }
 /* подписи под слайдами*/
 /* Иконка-квадрат */
.gray-box-icon {
  width: 20px;
  height: 20px;
  background-color: #ccc;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Рядом с подписью под слайдом */
.slide-caption-box {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 0 5px;
}

/* Подпись к слайду */
.slide-caption-text {
  font-size: 14px;
  color: var(--text-color);
}

/* Ряд иконок под текстовым блоком */
.icon-row {
  display: none; /* скрыто по умолчанию */
  margin-top: 20px;
  gap: 12px;
  justify-content: center;
}

.icon-row .gray-box-icon {
  width: 25px;
  height: 25px;
}

/* Только для больших экранов */
@media (min-width: 1024px) {
  .icon-row {
    display: flex;
  }
  .slide-caption-box {
	  display: flex;
  }
}

/* Навигация-кружочки под текстовым блоком */
.slider-nav {
  position: absolute;
  left: clamp(20px, 3%, 80px);
  top: calc(100% - 20px);
  display: none;
  gap: 12px;
  z-index: 5;
}

/* Кружочек */
.slider-nav-dot {
  width: 14px;
  height: 14px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-nav-dot:hover {
  background-color: #888;
}

/* Показываем только на больших экранах */
@media (min-width: 1025px) {
  .slider-nav {
    display: flex;
  }
 
}


.sites-copyright {
    font-size: 12px;
    line-height: 1.167;
}


/* content block */

.about-section {
      height: 100%;
      background-color: var(--bg-color); 
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-color);
      position: relative;
      text-align: center;
    }

    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;

    }

    .about-content {
      position: relative;
      z-index: 1;
      padding: 20px;
      animation: fadeInUp 1s ease-in-out;
    }

    .about-content h2 {
    font-size: 2.5em;
    color: var(--card-text);
    margin-bottom: 10px;
    }

    .about-content p {
      line-height: 1.6;
      margin-bottom: 30px;
    }



    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }




    /* Стили для блока доставки */
    .delivery-section {
      background: var(--bg-color);
      padding: 0 15px;
      margin: 40px auto;
    }
    
    .delivery-container {
      max-width: 85%;
      margin: 0 auto;
    }
    
    .delivery-header {
      text-align: center;
      margin-bottom: 40px;
      color: var(--card-text);
    }
    
    .delivery-title {
      font-size: 2.5rem;
      font-weight: 600;
      color: var(--card-text);
      margin-bottom: 15px;
    }
    
    .delivery-subtitle {
      font-size: 1.1rem;
      color: var(--text-color);
      font-weight: 300;
      opacity: 0.8;
    }
    
    .delivery-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      margin-bottom: 30px;
    }
    
    .delivery-card {
      background: var(--card-bg);
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 15px;
      padding: 30px;
      transition: all 0.3s ease;
      box-shadow: 0 2px 10px var(--shadow);
      text-align: center;
    }
    
    .delivery-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px var(--shadow);
    }
    
    .delivery-icon {
      width: 60px;
      height: 60px;
      background: var(--btn-bg);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      font-size: 24px;
      color: white;
    }

    .delivery-card h2 {

      font-size: 1.5rem;
      font-weight: 600;
      color: var(--card-text);

    }
    
    .delivery-card h3 {

      font-size: 1.3rem;
      font-weight: 600;
      color: var(--card-text);
      margin-bottom: 15px;
    }
    
    .delivery-card p {
      color: var(--text-color);
      line-height: 1.6;
      margin: 0;
      font-size: 0.95rem;
    }
    
    .delivery-highlight {
      background: var(--card-bg);
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 15px;
      padding: 25px;
      margin-bottom: 10px;
      text-align: center;
      box-shadow: 0 2px 10px var(--shadow);

    }
    
    .delivery-highlight h3 {
      color: var(--card-subtext);
      font-size: 1.2rem;
      margin-bottom: 10px;
      font-weight: 600;
    }
    
    .delivery-highlight h2 {

      font-size: 1.5rem;
      font-weight: 600;
      color: var(--card-text);

    }	
	
    .delivery-highlight p {
      color: var(--text-color);
      margin: 0;
    }


    
    /* Адаптивность */
    @media (max-width: 1024px) {
      .delivery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
      }
    }
    
    @media (max-width: 768px) {
      .delivery-section {
        padding: 40px 15px;
        margin: 40px 0;
      }
      
      .delivery-title {
        font-size: 2rem;
      }
      
      .delivery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      
      .delivery-card {
        padding: 25px;
      }
    }



.social-section {
  background: var(--bg-color);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

.social-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.social-title {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: var(--text-color);
  font-weight: 500;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.social-link.instagram {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: var(--text-color);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.social-link.instagram:hover {
  box-shadow: 0 4px 20px rgba(188, 24, 136, 0.4);
}

.sites-copyright {
  padding: 15px 0;
  background: var(--bg-color);
  color: var(--text-color);
  text-align: center;
  margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
  .social-section {
    padding: 15px 0;
  }
  
  .social-title {
    font-size: 14px;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
  }
}
/* блок со статьями*/

        .articles-container {
            width: 100%;
            padding: 20px 0;
            background-color: #f8f9fa;
        }

        .articles-header {
            max-width: 1200px;
            margin: 0 auto 20px;
            padding: 0 15px;
            text-align: center;
        }

        .articles-header h2 {
            font-size: 28px;
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .articles-header p {
            font-size: 16px;
            color: #7f8c8d;
            margin-bottom: 0;
        }

        .articles-slider {
            max-width: 1200px;
            margin: 0 auto;
            overflow: hidden;
            position: relative;
        }

        .slider-wrapper {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }

        .article-card {
            flex-shrink: 0;
            width: 32.3%; /* Приблизно 3 елементи */
            margin-right: 1.5%;
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
            box-sizing: border-box;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .article-card:last-child {
            margin-right: 0;
        }

        .article-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
        }

        .article-title-wrapper {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .article-icon {
            width: 30px;
            height: 30px;
            margin-right: 10px;
        }

        .article-title {
            font-size: 18px;
            font-weight: bold;
            color: #34495e;
            margin: 0;
        }

        .article-description {
            font-size: 14px;
            color: #7f8c8d;
            margin: 0;
        }

        /* Responsive design для менших екранів */
        @media (max-width: 768px) {
            .articles-header h2 {
                font-size: 24px;
            }
            .article-card {
                width: 48.5%; /* 2 елементи */
            }
        }
        @media (max-width: 480px) {
            .articles-header h2 {
                font-size: 20px;
            }
            .article-card {
                width: 95%; /* 1 елемент */
                margin-right: 5%;
            }
        }
