* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    list-style: none;
    text-decoration: none;
    font-family: "Bitter", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
}


/*------------------------Header--------------------*/

header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    box-shadow: 0 2px 5px;
    background: linear-gradient(to bottom, #388E3C, #339E37, rgba(5, 155, 50, 0.75));
    z-index: 1000;
}

header .logo {
    transition: .5s;
}

header .logo .logo-bg {
    display: inline-flex;             /* чтобы объект центрировался */
    align-items: center;
    justify-content: center;
    background: white;                /* белый фон */
    border-radius: 10px;               /* круглый фон */
    padding: 0px 3px;               /* внутренние отступы */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* лёгкая тень для объёма */
    transition: transform 0.3s ease;
    margin: 5px 0px;

}

header .logo .logo-bg:hover {
    transform: scale(1.03);           /* эффект при наведении */
}

header .logo-bg object {
    pointer-events: none; /* клики будут проходить через объект */
}

ul {
    box-shadow: 
        5px 5px 7px -5px rgba(0, 0, 0, 0.15),
        -5px 5px 7px -5px rgba(0, 0, 0, 0.15),
        0 5px 7px -5px rgba(0, 0, 0, 0.15);
}

header nav ul li {
    position: relative;
    float: left;
    border: 1px solid rgba(182, 182, 182, 0.1);
}

header nav ul li a {
    padding: 15px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-size: 16px;
    display: block;
    position: relative;
    transition: color 0.3s ease; /* Плавное изменение цвета текста */
}

/* Линия при наведении */
header nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Увеличили толщину линии */
    background: rgb(255, 255, 255);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1); /* Более плавная анимация */
}

/* Анимация при наведении */
header nav ul li a:hover::before {
    transform: scaleX(1);
}

/* Дополнительный эффект - изменение цвета текста */
header nav ul li a:hover {
    color: #ffffff; /* Темнее при наведении */
}

nav ul li ul {
    position: absolute;
    left: 0;
    width: 160px;
    opacity: 0;
    transform: translateY(-20px) rotateX(-30deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    perspective: 1000px;
    visibility: hidden;
    background: linear-gradient(to bottom, rgba(5, 155, 50, 0.95), rgba(5, 180, 58, 0.95), rgba(9, 182, 61, 0.95));
}

nav ul li:hover > ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

nav ul li ul li {
    width: 100%;
    border: 1px solid rgb(0, 0, 0, 0.1);
}

.header-button {
    padding: 10px 20px;
    background: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-button:hover {
    background: #cccccc;
    transform: scale(1.05);
}

.header-button:active {
    transform: scale(0.98);
}

.has-submenu > a {
    position: relative;
    padding-right: 20px;
    width: 140px;
}

.has-submenu > a::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 48%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-size: contain;
    transition: transform 0.4s ease;
}

.has-submenu:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Стили для бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Боковая панель */
.side-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(to bottom, #388E3C, #339E37, rgba(5, 155, 50, 0.95));
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    transition: right 0.4s ease;
    z-index: 999;
    overflow-y: auto;
    padding-top: 70px;
}

.side-panel.active {
    right: 0;
}

.side-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.side-panel ul li {
    border: none;
    float: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.side-panel ul li a {
    padding: 18px 25px;
    display: block;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.side-panel ul li a:hover {
    background: rgba(255,255,255,0.1);
}

.side-panel ul li ul {
    display: none;
    background: rgba(0,0,0,0.1);
    padding-left: 0;
}

.side-panel ul li ul.active {
    display: block;
}

.side-panel ul li ul li a {
    padding: 15px 25px 15px 35px;
}

/* СКРЫВАЕМ СТРЕЛКИ В БОКОВОЙ ПАНЕЛИ */
.side-panel .has-submenu > a::after {
    display: none !important;
}

.side-panel .has-submenu > a {
    padding-right: 25px !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1200px) {
    header {
        padding: 0 5%;
    }
    
    header nav ul li a {
        padding: 15px 10px;
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    header nav {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
}

@media (min-width: 993px) {
    .side-panel {
        display: none !important;
    }
}

/*------------------------Main--------------------*/


main {
    width: 100%;
    min-height: calc(100vh - 50px); /* Учитываем высоту шапки */
    position: relative;
    margin-top: 50px;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1200px;
    height: 100%;
    background: #e2e1da;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.Main {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f5f1e6;
    display: flex;
    flex-direction: column;
    align-items: center; /* центрирует контент по горизонтали */
    justify-content: flex-start; /* контент сверху */
    text-align: center;
    box-sizing: border-box;
    scroll-margin-top: 80px;
    border-bottom: 1px dashed rgba(0,0,0,0.3); /* пунктир для разделения */
}

.Main h2 {
    margin: 10px 0 10px;
    font-size: 2rem;
    color: #333;
}

.Main p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

section {
    width: 100%;
    min-height: 60vh;
    padding: 80px 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

section:last-child {
    border-bottom: none;
}

section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 2rem;
}

section p {
    color: #666;
    line-height: 1.6;
}
/*------------------------Slider--------------------*/

.slider-title {
  text-align: center;
  margin: 20px 0 10px 0;
  font-size: 24px;
  color: #333;
}

.slider {
  position: relative;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-block {
  max-width: 1000px;
  padding: 15px 20px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: center;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
}
.prev { left: 10px; }
.next { right: 10px; }
/*------------------------Footer--------------------*/

.footer {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 80px;
    background: #f1f1f1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: none !important;
    outline: none !important;
}

.footer-logo {
    margin-top: -20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-description {
    line-height: 1.6;
    opacity: 0.8;
    max-width: 280px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: none !important;
    outline: none !important;
}

.footer-links a {
    text-decoration: none;
    color: black;
    transition: opacity 0.3s ease;
    opacity: 0.8;
    border: none !important;
    outline: none !important;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.8;
}

.contact-item svg {
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link object {
  pointer-events: none; /* клики проходят через объект */
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.4);
}

.footer-additional {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-additional a {
    color: black;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.footer-additional a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    text-align: center;
    opacity: 0.7;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-description {
        max-width: none;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
    }
}

/*------------------------Background--------------------*/
body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#gradientOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg,
        #ffeaea, #fff3e6,
        #fdf6e3, #e9fbe7,
        #e6f7ff, #f0e6ff,
        #ffe6f7, #fef9f9,
        #e8f0f2, #fdf2f8);
    background-size: 600% 600%;
    animation: gradientWave 25s ease infinite;
    z-index: -3;
    filter: brightness(0.95) contrast(1.05); /* делаем цвета более мягкими */
}

@keyframes gradientWave {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
}


/*------------------------Конпки ссылок--------------------*/


.suppliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Увеличил минимальную ширину */
    gap: 20px; /* Увеличил расстояние */
    padding: 40px 20px; /* Добавил боковые отступы */
    max-width: 1200px; /* Увеличил максимальную ширину сетки */
    margin: 0 auto;
    justify-items: stretch; /* Растягиваем на всю доступную ширину */
}

.supplier-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(180deg, #fdfdfd, #a8daab);
    border-radius: 8px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.15);
    border: 1px solid #a5d6a7;
    min-height: 80px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.supplier-card.highlighted-white {
    border: 1px solid #1a8038 !important;
    background: #ffffff !important;
    transform: scale(1.02) !important;
    box-shadow: 0 4px 20px rgba(26, 128, 56, 0.3) !important;
}

.supplier-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
}

.supplier-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border-color: #1a8038; /* Синяя граница при наведении */
    background: #ffffff;
}

.supplier-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.supplier-name {
    font-size: 20px; /* Увеличил текст */
    font-weight: 600;
    color: #333; /* Темный текст */
    text-align: center;
}

/* Добавляем стрелку для индикации ссылки */
.supplier-card::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a8038;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.supplier-card:hover::after {
    opacity: 1;
}


/* Адаптивность */
@media (max-width: 1300px) {
    .suppliers-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .supplier-card {
        padding: 45px 100px;
        min-height: 30px;
    }
    
    .supplier-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .suppliers-grid {
        padding: 20px 15px;
    }
    
    .supplier-card {
        padding: 20px 15px;
        min-height: 80px;
    }
    
    .supplier-name {
        font-size: 16px;
    }
}

/*------------------------Модальное окно--------------------*/

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

#passwordInput {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#submitPassword {
    width: 100%;
    padding: 12px;
    background: #1a8038;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#submitPassword:hover {
    background: #15652c;
}

.error-message {
    color: #d32f2f;
    margin-top: 10px;
    text-align: center;
    display: none;
}

