/*styles.css */
:root {
    --main-color: #4CAF50;
    --secondary-color: #45a049;
    --accent-color: #ff4757;
    --dark-bg: #1a1a1a;
    --text-light: #ffffff;
    --nav-bg: rgba(26, 26, 26, 0.95);
    --gradient: linear-gradient(45deg, #4CAF50, #45a049);
    --primary: #1a5d1a;       /* Основной зеленый */
    --primary-dark: #0d3d0d;  /* Темно-зеленый */
    --accent: #ffd700;        /* Золотой акцент */
    --accent-light: #ffec8b;  /* Светло-золотой */
    --light-bg: #f8f9fa;      /* Светлый фон */
    --dark-text: #333;        /* Текст */
    --white: #fff;            /* Белый */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* шапень */
.header {
    position: relative;
    padding: 0rem 0;
    backdrop-filter: blur(10px);
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
}

/* лого */
.logo {
    font-size: 2.4rem;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    -webkit-background-clip: text;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-right: auto;
    margin-left: -10rem;
    -webkit-text-fill-color: transparent;
}
.logo:hover {
    transform: scale(1.03) rotate(-2deg);
    filter: drop-shadow(0 0 15px var(--main-color));
}

/* навигационное меню */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* выпадающая менюшка */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow {
    font-size: 1.6rem;
    margin-left: 0.3rem;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    display: inline-block;
    transform-origin: center;
}

.dropdown:hover .arrow {
    transform: rotate(270deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(40, 40, 40, 0.98);
    border-radius: 8px;
    padding: 0.8rem 0;
    min-width: 220px;
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-content a {
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    display: block;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 2rem;
    text-decoration: none;
}

/* кнопка контакты */
.contact-btn {
    background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    color: var(--text-light) !important;
    padding: 1rem 2.2rem !important;
    border-radius: 50px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    text-decoration: none;
}

a.contact-btn:any-link {
    text-decoration: none;
}

.contact-btn:hover::before {
    left: 100%;
}

.responsive-img {
    display: block;
    max-width: 1200px;
    width: 100%;
    height: auto;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 12px;
}

.header-image-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.header-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-text {
    position: absolute;
    left: 8vw;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    max-width: 40%;
}

.main-title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.4rem;
    line-height: 1.4;
    position: relative;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-left: 0;
}

.text-line {
    display: block;
    position: relative;
}

.text-line:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 2px;
}

.subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 453px;
    height: 2px;
    background: #fff;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.footer {
    position: relative;
    min-height: 300px;
    color: white;
    padding: 60px 20px;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pole.jpg') no-repeat center/cover;
    filter: 
        grayscale(70%)    /* серая фильтрация */
        brightness(0.7)   /* затемнение */
        contrast(1.1)     /* увеличение контраста */
        blur(4px);        /* размытие */
    z-index: 1;
    -webkit-filter: 
        grayscale(70%) 
        brightness(0.7)
        contrast(1.1)
        blur(4px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.footer-block {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;

}

.company-name {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.address {
    font-style: normal;
    line-height: 1.6;
}

.company-name,
.contacts-title,
.social-text {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.address,
.contacts {
    display: inline-block;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.contacts-title.gradient-text {
    font-size: 2.4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.social-text strong {
    font-weight: 700;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.social-text strong:hover {
    filter: hue-rotate(15deg);
}

.contacts-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
}

.contacts p, .contacts a {
    margin: 8px 0;
    color: white;
    text-decoration: none;
}

.social-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.social-text strong {
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    color: #ffffff;
}

.facebook-icon {
    color: #3b5998;
}

.youtube-icon {
    color: #ff0000;
}

/* Эффекты при наведении */
.social-link:hover .facebook-icon {
    color: #2d4373;
}

.social-link:hover .youtube-icon {
    color: #cc0000;
}

.social-link img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.1);
}

.social-link:hover .social-icon {
    color: #4CAF50;
    transform: scale(1.1);
}

.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    border: none;
    cursor: pointer;
    border-radius: 0;
    padding: 10px;
    box-shadow: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-box {
    position: relative;
    width: 30px;
    height: 24px;
    display: inline-block;
}

.hamburger.active {
    opacity: 1;
    transform: rotate(180deg);

}

.hamburger-line {
    position: absolute;
    left: 0;
    background: #333;
    transition: all 0.3s ease;
    width: 100%;
    height: 3px;
    border-radius: 2px;
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-line:nth-child(3) { top: 100%; transform: translateY(-100%); }

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    top: 50%;
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* мобильное меню */
.mobile-menu {
    position: fixed;
    left: 0;
    top: 0 !important;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    background: #f107079f;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex !important;
    flex-direction: column;
    padding: 20px 15px;
    border-radius: 25px 25px 0 0;
    box-shadow: none;
    z-index: 1000 !important;
    will-change: transform;
    contain: strict;
}

@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.gallery-container,
.carousel-btn {
    z-index: 1 !important;
}

.mobile-menu.active ~ .hamburger {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-links {
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    overflow-y: auto;
    padding-bottom: 20px;
    flex: 1 1 auto;
    min-height: min-content;
}

.mobile-nav-link,
.mobile-dropdown-btn,
.mobile-contact-btn {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    background: #f8f9fa;
    color: #333;
    font-size: 1rem;
    text-align: left;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-contact-btn {
    background: #007bff;
    color: #fff !important;
    margin-top: 20px;
}

.mobile-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: none;
    background: none;
    color: #2d3436;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: clamp(1rem, 2vw, 1.2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 12px 15px;
}

.mobile-dropdown-btn:hover {
    background: #f1f3f5;
    transform: translateX(5px);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    box-shadow: 0 -10px 30px rgba(44, 66, 43, 0.274);
    bottom: 0;
    animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    display: block !important;
}

.mobile-dropdown {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    flex: 0 0 auto;
}

.mobile-dropdown-content {
    overflow: hidden;
    padding: 0 15px;
    overflow: hidden;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-dropdown.open .mobile-dropdown-content {
    max-height: 500px;
    padding: 10px 0;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.7); /* Темное затемнение */
    z-index: 9998;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Анимация исчезновения оверлея */
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.mobile-sub-link {
    display: block;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin: 4px 0;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    line-height: 1.4;
    hyphens: auto;
    word-break: break-word;
}

.mobile-dropdown,
.mobile-dropdown-btn,
.mobile-sub-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-links a,
.mobile-nav-links button {
    text-decoration: none !important;
}

.mobile-menu .mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu::after {
    content: '';
    flex: 0 0 20px;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    pointer-events: none;
}

.mobile-dropdown-btn.active {
    color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0,0,0,0.03);
}


.mobile-dropdown-content a {
    padding: 10px 15px;
    font-size: 0.95rem;
    text-decoration: none !important;
}

a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 500px;
    padding: 5px 15px 15px;
}

.mobile-arrow {
    display: inline-block;
    font-size: 1.4rem;
    margin-left: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6c757d;
}

.mobile-dropdown.active .mobile-arrow {
    transform: rotate(90deg);
    color: #2d3436;
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu .dropdown {
    position: relative;
}

.mobile-menu .dropdown-btn {
    width: 100%;
    justify-content: space-between;
}

.mobile-menu .dropdown-content {
    display: none;
    padding-left: 20px;
    position: static;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
}

.mobile-menu .dropdown.active .dropdown-content {
    display: block;
}

.mobile-menu .nav-link {
    padding: 12px 0;
}

.mobile-menu .contact-btn {
    width: 100%;
    text-align: center;
}

/* Кнопка закрытия мобильного меню */
.mobile-close-btn {
  position: absolute; /* или relative, в зависимости от верстки */
  top: 15px;           /* подними кнопку выше */
  right: 15px;         /* отступ от правого края */
  width: 44px;         /* стандартный удобный размер кнопки */
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
}

.mobile-close-btn svg {
    fill: #000;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-close-btn:hover svg {
    transform: scale(1.2);
    fill: #ff4757;
}

.mobile-close-btn:hover svg path {
    fill: #ff4757;
}

.mobile-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    background: rgba(40, 40, 40, 0.98);
    border-radius: 8px;
    padding: 0.8rem 0;
    min-width: 220px;
    z-index: 1000;
}

/*СТИЛИ КОНТАКТЫ*/

.social-link[aria-label="Facebook"] .social-icon {
    color: #3b5998;
}

.social-link[aria-label="YouTube"] .social-icon {
    color: #ff0000;
}

.contacts-section {
    padding: 4rem 2rem;
}

.contacts-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.map-container {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.contacts-info {
    padding: 2rem;
}

.contacts-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    font-weight: 700;
}

.contacts-details {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 24px;
    height: 24px;
    fill: var(--main-color);
    flex-shrink: 0;
}

/*КАРУСЕЛЬ СТИЛИ*/

.gallery-container {
    position: relative;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
    overflow: hidden;
    z-index: 50;
    transform: translateZ(0);
}

.gallery-track {
    position: relative;
    height: 600px;
}

.gallery-item {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    width: 30%;
    height: 70%;
    border-radius: 15px;
    overflow: hidden;
    transform-origin: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.gallery-item.prev-2 { left: 5%; transform: translateX(-30%) scale(0.7); z-index: 1; }
.gallery-item.prev-1 { left: 20%; transform: translateX(-40%) scale(0.8); z-index: 2; }
.gallery-item.active {
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: 40%;
    height: 80%;
    z-index: 5;
    filter: none;
    opacity: 1;
}
.gallery-item.next-1 { left: 80%; transform: translateX(-60%) scale(0.8); z-index: 2; }
.gallery-item.next-2 { left: 95%; transform: translateX(-70%) scale(0.7); z-index: 1; }

.gallery-item[data-pos="prev-2"] {
    left: -20%;
    transform: scale(0.7);
    z-index: 1;
}

.gallery-item[data-pos="prev-1"] {
    left: 10%;
    transform: scale(0.8);
    z-index: 2;
}

.gallery-item.hidden {
    display: none !important;
}


.gallery-item[data-pos="active"] {
    left: 50%;
    transform: translateX(-50%) scale(1);
    opacity: 1;
    filter: none;
    z-index: 3;
}

.gallery-item[data-pos="next-1"] {
    left: 90%;
    transform: scale(0.8);
    z-index: 2;
}

.gallery-item[data-pos="next-2"] {
    left: 120%;
    transform: scale(0.7);
    z-index: 1;
}

.item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid var(--main-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150 !important;
    pointer-events: auto !important;
    transform: translateZ(0);
}

.prev-btn { left: 1.5rem; }
.next-btn { right: 1.5rem; }

/* Стили для новой карусели */
.product-carousel {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-list {
  display: flex;
  padding: 2rem 0;
  margin: 0;
  list-style: none;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 25%;
  padding: 0 15px;
  box-sizing: border-box;
  transition: all 0.5s ease;
  position: relative;
}

.carousel-slide.active {
  transform: scale(1.1);
  z-index: 2;
}

.slide-figure {
  margin: 0;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
}

.slide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-slide.active .slide-figure img {
  transform: scale(1.05);
}

.slide-caption {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  font-family: 'Segoe UI', sans-serif;
}

.slide-details-btn {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Roboto Mono', monospace;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: auto !important;
  z-index: 100990 !important;
}

.carousel-slide {
  overflow: visible !important;
}

.carousel-wrapper {
  overflow: visible !important;
}

.carousel-slide.active .slide-details-btn {
  opacity: 1;
  bottom: -25px;
}

.no-scroll {
  overflow: hidden;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  background: var(--primary);
  color: white;
}

.carousel-nav.prev {
  left: 0;
}

.carousel-nav.next {
  right: 0;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.active {
  display: flex;
}

.modal-content {
  transition: transform 0.3s ease;
  max-width: 90%;
  width: 700px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  background-color: white;
  position: relative;
  font-family: 'Poppins', sans-serif;
  color: #000;
  opacity: 1 !important;
  transform: none !important;
  overflow-y: auto;
  z-index: 10000 !important;
}

.tractor-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
}

.tractor-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal .close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}


.advantages-section {
    border-radius: 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
    padding: 5rem 4rem;
    width: 100vw;
    box-sizing: border-box;
}

.advantages-grid {
    display: grid;
    justify-content: space-between;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 4rem;
    align-items: start;
}

.advantages-content {
    padding-right: 30px;
    display: grid;
    gap: 2rem;
    padding-left: 2rem;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 1fr;
}

.advantage-card {
    backdrop-filter: blur(10px);
    background: rgba(40, 40, 40, 0.9);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    min-height: 250px;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.1);
    border-color: var(--main-color);
}

.highlight {
    color: var(--main-color);
    font-size: 1.8em;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.advantage-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.advantage-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.cards-row {
    display: contents;
}

.advantage-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
    z-index: 1;
    transition: all 0.4s ease;
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    display: block;
}

.advantage-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transform: none;
    transition: transform 0.3s ease;
    display: block;
}

.advantage-image:hover .advantage-photo {
    transform: scale(1.03);
}

.cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(13, 61, 13, 0.9), transparent);
  padding: 2rem;
  color: white;
  font-family: 'Poppins', sans-serif;
}

.image-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.image-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.section-title-container {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    z-index: 100;
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 2rem;
}

.section-main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(76, 175, 80, 0.2);
}

.advantage-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

@keyframes flipOut {
    0% { transform: translateX(0) rotateY(0); opacity: 1; }
    100% { transform: translateX(-100%) rotateY(-90deg); opacity: 0; }
}

.gallery-item.entering {
    animation: flipIn 0.8s forwards;
}

@keyframes flipIn {
    0% { transform: translateX(100%) rotateY(90deg); opacity: 0; }
    100% { transform: translateX(0) rotateY(0); opacity: 1; }
}

/* анимации */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes gradientPulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Анимации для мобильного меню */
@keyframes slideIn {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; visibility: hidden; }
    100% { opacity: 1; visibility: visible; }
}

.mobile-menu.closing {
    animation: slideOut 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

/* Анимация закрытия меню */
@keyframes slideOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Для оверлея */
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.mobile-overlay.closing {
    animation: fadeOut 0.4s ease forwards;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-left: 20px;
    text-decoration: none;
}

.flag-container {
    position: relative;
    width: 32px;
    height: 24px;
    border-radius: 12px 4px 12px 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.flag-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
                rgba(255,255,255,0.6) 0%, 
                rgba(255,255,255,0) 70%);
    z-index: 1;
    animation: wave-pulse 4s infinite;
}

.lang-tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
}

.language-switcher {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-right: 1px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mobile-language-switcher {
  position: fixed;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 999;
}

/* Скрыть на ПК */
@media (min-width: 768px) {
  .mobile-language-switcher {
    display: none;
  }
}

.lang-btn:hover {
  transform: scale(1.1);
}

.lang-flag {
  width: 30px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.lang-switch:hover .flag-container {
    transform: translateY(-4px) rotate(2deg) scale(1.15);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25), 
                0 0 0 2px #de2910, 
                0 0 0 4px rgba(255, 255, 255, 0.8);
    border-radius: 4px 12px 4px 12px;
}

.lang-switch:hover .lang-flag {
    transform: scale(1.05);
}

.lang-switch:hover .lang-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: -28px;
}

@keyframes wave-pulse {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 0.8; transform: scale(1); }
}

.lang-switch:active .flag-container {
    transform: translateY(0) scale(0.95);
    transition: transform 0.1s ease;
}



.product-info-section {
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.product-info-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: linear-gradient(90deg, #1a5d1a, #3dff02, #1a5d1a);
}

.product-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
  z-index: 2;
}


.product-image-wrapper {
  flex: 1;
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.product-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 6px var(--primary-dark),
    0 0 0 10px var(--accent);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.product-image-container:hover {
  transform: perspective(1000px) rotateY(0);
  box-shadow: 
    0 35px 60px -15px rgba(0, 0, 0, 0.2),
    0 0 0 6px var(--primary-dark),
    0 0 0 10px var(--accent);
}

.product-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
}

.product-image-container:hover .product-image {
  transform: scale(1.05);
}

.image-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #1a5d1a, #0d3d0d);
  color: white;
  padding: 8px 15px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}


.product-details {
  flex: 1;
  padding: 2rem;
}

.product-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 3px;
}

.product-description {
  font-family: 'Roboto Mono', monospace;
  line-height: 1.8;
  color: var(--dark-text);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
}


.tech-specs {
  background: rgba(255, 255, 255, 0.85);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 93, 26, 0.1);
}

.tech-specs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, #1a5d1a, #ffd700);
}

.specs-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.specs-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231a5d1a"><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/></svg>');
  background-size: contain;
}

.specs-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.spec-group:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.95);
}

.group-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-title::before {
  content: "•";
  color: var(--accent);
  font-size: 1.8rem;
}

.spec-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(26, 93, 26, 0.2);
}

.spec-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.spec-name {
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.spec-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--dark-text);
  font-size: 1.2rem;
}

.spec-group {
  background: rgba(248, 249, 250, 0.7);
  padding: 1.5rem;
  border-radius: 12px;
  border-top: 3px solid var(--accent);
  transition: transform 0.3s ease;
}

.spec-card {
  background: linear-gradient(to right, rgba(26, 93, 26, 0.03), white);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 3px solid #ffd700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.spec-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 215, 0, 0.05), transparent);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spec-card:hover::before {
  opacity: 1;
}

.spec-name {
  font-family: 'Roboto Mono', monospace;
  font-weight: 600;
  color: #1a5d1a;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.dimensions-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 2rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dimensions-table th {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  padding: 1.2rem;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.dimensions-table td {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-family: 'Roboto Mono', monospace;
}

.dimensions-table tr:nth-child(even) {
  background: rgba(26, 93, 26, 0.03);
}

.dimensions-table tr:last-child td {
  border-bottom: none;
}

.spec-value {
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 1;
  font-weight: 600;
  color: var(--dark-text);
  font-size: 1.2rem;
}

.specs-table-container {
  background: rgba(26, 93, 26, 0.03);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  border: 1px solid rgba(26, 93, 26, 0.1);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Roboto Mono', monospace;
}

.specs-table th {
  background: rgba(26, 93, 26, 0.1);
  padding: 1rem;
  text-align: left;
  color: #1a5d1a;
  font-weight: 600;
  border-bottom: 2px solid #ffd700;
}

.specs-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background: rgba(255, 215, 0, 0.05);
}

.specs-table td::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #ffd700;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.specs-table tr:hover td::before {
  opacity: 1;
}


.key-features {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  padding: 1.8rem;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 3px solid #ffd700;
}

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1a5d1a;
}

.feature-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #0d3d0d;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.feature-desc {
  font-family: 'Roboto Mono', monospace;
  color: #555;
  font-size: 0.95rem;
}


@media (max-width: 1024px) {
  .product-container {
    flex-direction: column;
  }
  
  .product-image-container {
    max-width: 80%;
    margin: 0 auto;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.slide-details-btn {
  margin-top: 8px;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 25px 30px 15px;
  border-bottom: 1px solid #eaeaea;
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #1a5d1a;
  margin: 0;
}

.modal-subtitle {
  font-family: 'Roboto Mono', monospace;
  color: #666;
  margin-top: 5px;
  font-size: 1.1rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 25px 30px;
}

.spec-group {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border-left: 3px solid #1a5d1a;
}

.spec-group-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e0e0e0;
}

.spec-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.spec-label {
  font-family: 'Roboto Mono', monospace;
  color: #666;
  font-size: 0.95rem;
}

.spec-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #333;
  text-align: right;
  font-size: 1.05rem;
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover,
.close:focus {
  color: #1a5d1a;
  text-decoration: none;
}