/* =========================================
   1. ГЛОБАЛЬНІ ЗМІННІ ТА НАЛАШТУВАННЯ
   ========================================= */

:root {
    --primary-blue: #7199C2;
    --dark-blue: #4C6177;
    --bg-light: #F7F7F7;
    --white: #FFFFFF;
    --black: #000000;
    --container-width: 1400px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Finlandica', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.5;
    overflow-x: hidden;
    padding-top: 100px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   2. ХЕДЕР (ШАПКА САЙТУ)
   ========================================= */

.header {
    width: 100%;
    height: 100px;
    background: var(--white);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-logo {
    height: 60px;
    display: block;
}


.logo-link {
    display: flex;
    align-items: center; /* Выравнивание по центру по вертикали */
    gap: 20px;           /* Расстояние между логотипом завода и сертификатом */
    text-decoration: none;
}

/* Настройки для основного логотипа */
.main-logo {
    height: 60px;        /* Фиксированная высота */
    width: auto;         /* Ширина подстраивается автоматически */
    display: block;
}

/* Настройки для логотипа сертификата - ВОТ ТУТ МЫ ЕГО УМЕНЬШАЕМ */
.certificate-logo {
    height: 55px !important; /* !important заставит его уменьшиться принудительно */
    width: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 350;
    font-size: 18px;
    transition: color 0.3s, opacity 0.3s;
}

.nav-link:hover {
    color: var(--primary-blue);
    opacity: 0.8;
}

.nav-link.active {
    color: var(--black); 
    font-weight: 350; 
}

.lang-switch {
    width: 50px;
    height: 50px;
    border: 1px solid var(--black);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
    font-size: 14px;
}

.lang-switch:hover {
    background: #F7F7F7;
}

/* Кнопка мобільного меню (прихована на ПК) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--primary-blue);
}

/* Стилі для модального вікна */
.modal-overlay {
    display: none; /* Приховано за замовчуванням */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Напівпрозорий фон */
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-family: 'Noto Sans JP', sans-serif;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.close-modal:hover {
    color: var(--primary-blue);
}

.pdf-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.pdf-list li {
    margin-bottom: 12px;
}

.pdf-list li a {
    text-decoration: none;
    color: var(--black);
    display: block;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s;
}

.pdf-list li a:hover {
    background-color: #f7f7f7;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* =========================================
   3. HERO SECTION
   ========================================= */

.hero {
    padding: 40px 0 120px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-top-part {
    width: 100%;
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 10;
}

.main-title {
    font-family: 'Finlandica', sans-serif;
    font-size: clamp(28px, 5vw, 64px);
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
}

.hero-bottom-part {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.blue-rectangle {
    background: var(--primary-blue);
    width: 90%; 
    max-width: 1300px;
    height: 380px;
    border-radius: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.factory-image {
    width: 85%;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

/* =========================================
   4. СЕКЦІЯ "ІННОВАЦІЇ"
   ========================================= */

.innovation {
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.innovation h2 {
    font-size: clamp(32px, 4vw, 60px);
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.2;
}

.innovation-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.innovation-row p {
    margin: 0;
    font-size: 18px;
    max-width: 600px;
    text-align: right;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.card {
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    background: var(--primary-blue);
    color: var(--white);
}

/* =========================================
   5. КНОПКИ
   ========================================= */

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.btn-primary:hover { opacity: 0.9; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-outline:hover { background: #eef4fa; }

/* =========================================
   6. СЕКЦІЯ "ПРОДУКЦІЯ"
   ========================================= */

.products { padding: 80px 0; }
.section-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 40px;
    font-weight: 400;
    text-align: left; 
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.products-content {
    background: #F7F7F7;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    height: fit-content;
    padding: 50px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-image {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
}

.products-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.product-item { margin-bottom: 30px; }
.product-item.with-icon {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.icon-box {
    flex-shrink: 0;
    width: 40px;
    padding-top: 5px;
}

.product-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.product-item p {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
}

.products-content .btn-outline {
    align-self: flex-start;
    margin-top: 20px;
}

.btn-group {
    display: flex;       /* Вмикаємо гнучкий рядок */
    gap: 15px;          /* Відстань між кнопками */
    margin-top: 25px;    /* Відступ зверху від тексту */
    align-items: center; /* Вирівнювання по вертикалі */
}

/* Якщо на мобільних пристроях кнопки занадто широкі і не влазять */
@media (max-width: 480px) {
    .btn-group {
        flex-direction: column; /* Ставимо одну під одну тільки на маленьких екранах */
        align-items: flex-start;
    }
}

/* =========================================
   7. ПЕРЕВАГИ
   ========================================= */

.advantages {
    padding: 80px 0;
    background: var(--bg-light);
}

.advantages .subtitle {
    margin-top: 0; margin-bottom: 60px;
    font-size: 18px; color: #555;
    max-width: 700px; margin-left: auto; margin-right: auto;
}

.centered { text-align: center; }

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px; row-gap: 40px;
}

.advantage-item {
    display: flex; align-items: center; gap: 20px;
}

.adv-icon {
    flex-shrink: 0; width: 60px; height: 60px;
    display: flex; justify-content: center; align-items: center;
}

.adv-card {
    flex-grow: 1; padding: 15px 30px;
    border-radius: 20px; text-align: center;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    min-height: 140px;
    display: flex; flex-direction: column; justify-content: center;
}

.adv-card h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.adv-card p { font-size: 14px; line-height: 1.4; margin: 0; }
.adv-card.outline { background: var(--white); border: 2px solid var(--primary-blue); color: var(--black); }
.adv-card.solid { background: var(--primary-blue); border: 2px solid var(--primary-blue); color: var(--white); }

/* =========================================
   8. ПАРТНЕРИ ТА ФУТЕР
   ========================================= */

.partners { padding: 60px 0; }
.partners-logos { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.partner-logo { font-size: 20px; color: #ccc; font-weight: bold; }

.footer { background: var(--primary-blue); color: var(--white); padding: 60px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.footer-info { max-width: 500px; }
.footer-nav { display: flex; flex-direction: column; gap: 15px; }
.footer-nav a { color: var(--white); text-decoration: none; }
.footer-logo img { height: 80px; }

/* =========================================
   9. КОНТАКТИ ТА ФОРМА
   ========================================= */

.form-title {
    color: var(--white);
    font-size: 28px;       
    font-weight: 700;    
    margin-bottom: 30px;   
    text-align: center;    
    text-transform: uppercase; 
}

.contacts-section {
    padding: 120px 0; min-height: 80vh;
    display: flex; align-items: center;
}

.contacts-wrapper {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}

.contacts-text-block { max-width: 600px; }
.contacts-title { font-size: clamp(36px, 5vw, 64px); margin-bottom: 30px; font-weight: 400; line-height: 1.1; }
.contacts-desc { font-size: 18px; line-height: 1.6; color: #333; }

.contacts-info-card {
    background: var(--primary-blue); color: var(--white);
    padding: 50px; border-radius: 30px;
    box-shadow: 10px 10px 30px rgba(113, 153, 194, 0.4);
    display: flex; flex-direction: column; gap: 25px;
}

.contact-row { display: flex; flex-direction: column; gap: 5px; }
.c-label { font-weight: 700; font-size: 18px; opacity: 0.9; }
.c-value { font-size: 18px; font-weight: 350; line-height: 1.4; }

.feedback-section {
    padding: 80px 0 120px; background: var(--bg-light);
}

.feedback-container { display: flex; justify-content: center; }
.form-card {
    background: var(--primary-blue); width: 100%; max-width: 600px;
    padding: 50px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(113, 153, 194, 0.4); color: var(--white);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 16px; font-weight: 400; opacity: 0.9; }

.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 15px; border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2); color: var(--white);
    font-family: 'Finlandica', sans-serif; font-size: 16px; outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1; 
}
.btn-submit {
    margin-top: 10px; background: var(--white); color: var(--primary-blue);
    border: none; padding: 15px; border-radius: 10px;
    font-size: 18px; font-weight: 700; cursor: pointer;
}

/* =========================================
   10. КАРТА ТА ІНФО
   ========================================= */

.map-info-section { padding: 100px 0; background: var(--primary-blue); }
.map-info-wrapper {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 50px; align-items: stretch;
}
.info-cards-column {
    display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
}
.info-card-item {
    background: var(--white); padding: 30px; border-radius: 20px;
    text-align: center; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.info-card-item h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.map-container {
    background: var(--bg-light); border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); min-height: 400px;
}

/* =========================================
   11. ПРОДУКЦІЯ (ДЕТАЛІ)
   ========================================= */

.fatty-acids-section { padding: 80px 0; background-color: var(--primary-blue); color: var(--white); }
.acids-gallery {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px;
}
.gallery-img {
    width: 100%; height: 250px; object-fit: cover;
    border-radius: 20px; border: 2px solid rgba(255, 255, 255, 0.2);
}
.acids-content-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.acids-title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 25px; line-height: 1.2; }
.acids-desc { font-size: 18px; line-height: 1.6; opacity: 0.9; }

.acids-features { display: flex; flex-direction: column; gap: 20px; }
.feature-row { display: flex; justify-content: flex-end; gap: 20px; flex-wrap: wrap; }
.feature-row.centered-pill { justify-content: center; margin-right: 10%; }
.feature-pill {
    background: var(--white); color: var(--black); padding: 15px 35px;
    border-radius: 50px; font-weight: 700; font-size: 16px; white-space: nowrap;
}

.contacts-text-block {
        text-align: center;
        margin: 0 auto; 
    }

/* =========================================
   12. ТЕХНОЛОГІЯ ТА СПЕЦИФІКАЦІЇ
   ========================================= */

.technology-section { padding: 100px 0; background-color: var(--white); overflow: hidden; }
.tech-top { display: flex; justify-content: space-between; align-items: center; gap: 60px; margin-bottom: 80px; }
.tech-title-wrap { flex: 0 0 40%; text-align: left; }
.tech-title { font-size: clamp(32px, 4vw, 56px); line-height: 1.1; margin: 0; }
.tech-card-wrap {
    flex: 1; display: flex; justify-content: flex-end;
    margin-right: calc((-100vw + 100%) / 2 - 20px);
}
.tech-white-card {
    background: var(--white); border: 2px solid var(--primary-blue); border-right: none;
    border-radius: 30px 0 0 30px; padding: 60px; width: 100%; min-width: 500px;
}
.tech-white-card p { font-size: 18px; line-height: 1.5; color: #333; margin: 0; max-width: 600px; }
.tech-blue-bar {
    background-color: #7199C2; padding: 80px 0; margin-bottom: 0;
    width: 90%; border-radius: 0 30px 30px 0;
}
.tech-blue-content {
    padding-left: calc((100vw - 1400px) / 2 + 20px);
    display: flex; justify-content: flex-end; padding-right: 50px;
}
.tech-blue-content p { color: var(--white); font-size: 18px; max-width: 600px; text-align: left; }

.specs-section { padding: 80px 0; background-color: var(--white); }
.specs-table-wrapper { max-width: 900px; margin: 0 auto; overflow-x: auto; }
.specs-table { width: 100%; border-collapse: collapse; border: 2px solid #000; min-width: 600px; }
.specs-table td { border: 1px solid #000; padding: 15px 20px; font-size: 18px; }
.specs-table td:first-child { font-weight: 500; width: 60%; }
.specs-table td:last-child {
    font-weight: 400;
    text-align: left;
}
.specs-table tr:hover { background-color: #F7F7F7; }

/* =========================================
   13. SCROLLYTELLING (ДЕСКТОП)
   ========================================= */

.scroll-animation-section { 
    height: 500vh; 
    position: relative; 
    background-color: var(--white); 
}
.sticky-wrapper {
    position: sticky; top: 0; height: 100vh;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.scrolly-container { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.orbit-visual {
    position: relative; width: 600px; height: 600px;
    display: flex; justify-content: center; align-items: center;
}
.orbit-ring {
    position: absolute; width: 100%; height: 100%;
    border: 8px solid #7199C2; border-radius: 50%; z-index: 1;
}
.center-flask {
    width: 350px; height: 350px; background-color: #7199C2;
    border-radius: 50%; z-index: 2;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 40px rgba(106, 148, 191, 0.4);
}
.flask-img { width: 50%; height: auto; }
.orbit-node {
    position: absolute; z-index: 10; display: flex; align-items: center;
    opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease;
}
.node-dot {
    width: 60px; height: 60px; background-color: #7199C2;
    border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0; position: relative; z-index: 11;
}
.node-card {
    background: var(--bg-light); padding: 25px; border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 450px; position: absolute;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}
.card-title-pill {
    display: inline-block; background-color: #7199C2; color: var(--white);
    padding: 8px 20px; border-radius: 20px; font-size: 18px; margin-bottom: 15px;
}
.card-title-pill.bottom-pill { margin-top: 15px; margin-bottom: 0; }
.card-intro { font-size: 18px; margin-bottom: 10px; font-weight: 400; }
.card-list { list-style: none; padding: 0; margin: 0; }
.card-list li { font-size: 18px; margin-bottom: 8px; line-height: 1.4; }

.node-agro { right: 20px; top: 60px; transform: translate(20px, 20px); }
.node-agro .node-card { left: 140px; top: -50px; }

/* 2. Хімія (Нижній правий) */
.node-chem { right: 20px; bottom: 60px; transform: translate(20px, -20px); }
.node-chem .node-card { left: 140px; bottom: -50px; }

/* 3. Логістика (Верхній лівий) */
.node-logistics { left: 20px; top: 60px; flex-direction: row-reverse; transform: translate(-20px, 20px); }
.node-logistics .node-card { right: 180px; top: -50px; }

/* 4. Біодизель (Нижній лівий) */
.node-biodiesel { left: 20px; bottom: 60px; flex-direction: row-reverse; transform: translate(-20px, -20px); }
.node-biodiesel .node-card { right: 180px; bottom: -50px; }
/* Активний стан (Desktop) */
.orbit-node.active { opacity: 1; transform: translate(0, 0); }
.orbit-node.active .node-dot { transform: scale(1.5); }
.orbit-node.active .node-card { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================
   14. СТАЛИЙ РОЗВИТОК
   ========================================= */

.sustainability-section { width: 100%; overflow: hidden; background-color: var(--white); }
.sust-wrapper { display: flex; min-height: 600px; }
.sust-left {
    flex: 1.2; background-color: var(--white);
    padding: 80px 40px 80px 10%; display: flex; flex-direction: column; justify-content: center;
}
.sust-cards-container { display: flex; flex-direction: column; gap: 30px; max-width: 650px; }
.sust-card {
    background: #F7F7F7; border-radius: 20px; padding: 30px;
    display: flex; align-items: center; gap: 25px;
}
.sust-icon { flex-shrink: 0; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }
.sust-right {
    flex: 0.8; background-color: var(--primary-blue); color: var(--white);
    display: flex; align-items: center; padding: 80px 40px;
}
.sust-right-content { max-width: 500px; display: flex; flex-direction: column; gap: 50px; }
.sust-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; opacity: 0.95; }
.sust-item p { font-size: 16px; line-height: 1.5; opacity: 0.9; margin: 0; }

/* Контейнер для кнопки всередині синього блоку */
.sust-right-content .btn-group {
    margin-top: 20px; /* Відступ від тексту до кнопки */
}

/* Стиль білої кнопки для синього фону */
.btn-white {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: #ffffff;
    color: var(--primary-blue);
}

/* Коригування правої колонки для вертикального вирівнювання */
.sust-right {
    flex: 0.8;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    flex-direction: column; /* Змінено на column */
    justify-content: center; /* Центрування по вертикалі */
    align-items: flex-start; /* Вирівнювання вмісту по лівому краю */
    padding: 80px 40px 80px 60px;
}

/* =========================================
   15. ГЕОГРАФІЯ ЕКСПОРТУ
   ========================================= */

.trust-section { padding: 100px 0; background-color: var(--white); }
.trust-card {
    border: 3px solid #7da0c3; border-radius: 35px;
    padding: 60px 80px; max-width: 1100px; margin: 0 auto;
    box-shadow: 15px 15px 0px rgba(125, 160, 195, 0.2); background: var(--white);
}
.trust-title { font-size: clamp(24px, 4vw, 36px); text-align: center; margin-bottom: 50px; font-weight: 400; }
.trust-content { font-size: 20px; line-height: 1.6; color: #333; }
.trust-desc { margin-bottom: 30px; }
.trust-list { list-style: none; padding: 0; margin: 0; }
.trust-list li { margin-bottom: 15px; }
.trust-list b { font-weight: 700; color: var(--black); }

/* =====================================================================
   АДАПТАЦІЯ ДЛЯ НОУТБУКІВ ТА ПЛАНШЕТІВ (993px - 1440px)
   ===================================================================== */

@media (max-width: 1440px) and (min-width: 993px) {
    /* Зменшуємо головне коло і колбу */
    .orbit-visual { width: 450px; height: 450px; }
    .center-flask { width: 260px; height: 260px; }
    
    /* Трохи зменшуємо самі картки та текст у них */
    .node-card { width: 360px; padding: 20px; }
    .card-title-pill { font-size: 16px; padding: 6px 15px; margin-bottom: 10px;}
    .card-intro { font-size: 15px; margin-bottom: 8px;}
    .card-list li { font-size: 14px; margin-bottom: 6px;}

    /* Підтягуємо картки ближче до орбіти, щоб вони не вилазили за екран */
    .node-agro .node-card { left: 90px; top: -30px; }
    .node-chem .node-card { left: 90px; bottom: -30px; }
    .node-logistics .node-card { right: 120px; top: -30px; }
    .node-biodiesel .node-card { right: 120px; bottom: -30px; }
}

@media (max-width: 1200px) and (min-width: 993px) {
    /* Ще більше зменшуємо для невеликих ноутбуків (наприклад, 1024px) */
    .orbit-visual { width: 350px; height: 350px; }
    .center-flask { width: 200px; height: 200px; }
    .node-dot { width: 45px; height: 45px; }
    
    .node-card { width: 310px; padding: 15px; }
    
    .node-agro .node-card { left: 60px; top: -20px; }
    .node-chem .node-card { left: 60px; bottom: -20px; }
    .node-logistics .node-card { right: 90px; top: -20px; }
    .node-biodiesel .node-card { right: 90px; bottom: -20px; }
}


/* =====================================================================
   АДАПТАЦІЯ ДЛЯ МОБІЛЬНИХ ПРИСТРОЇВ MAX-WIDTH: 992PX
   ===================================================================== */

@media (max-width: 992px) {
    /* --- ХЕДЕР ТА МЕНЮ --- */
    /* --- ХЕДЕР ТА МЕНЮ --- */
    .header-right {
        display: none; 
        position: fixed;
        top: 100px; 
        left: 0;
        width: 100%;
        height: calc(100vh - 100px); 
        background: var(--white);
        flex-direction: column;
    
    
        /* ЦЕНТРУВАННЯ МЕНЮ */
        justify-content: center; 
        align-items: center;     
        
        padding: 40px;
        overflow: hidden; 
        z-index: 999;
    }

    .logo-link {
        gap: 10px;
    }
    .main-logo {
        height: 45px;
    }
    .certificate-logo {
        height: 40px !important; 
    }

    .header-right.active {
        display: flex; 
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin-bottom: 40px;
        gap: 20px;
    }

    .nav-link { 
        font-size: 22px; 
        font-weight: 400; 
        color: var(--black); 
    }
 
    .nav-link.active { 
        font-weight: 700; 
        color: var(--primary-blue); 
    }
    
    .mobile-menu-btn { display: block; } 

    /* --- HERO --- */
    .blue-rectangle {
        width: 100%;
        height: auto;
        min-height: 300px;
        margin-top: 60px;
        border-radius: 20px;
    }
    
    .factory-image {
        position: relative;
        top: auto;
        transform: none;
        width: 90%;
        margin-top: -40px; 
        margin-bottom: 20px;
    }
    
    /* --- СІТКИ (GRID) В ОДНУ КОЛОНКУ --- */
    .products-grid, 
    .advantages-grid, 
    .footer-content, 
    .contacts-wrapper, 
    .map-info-wrapper,
    .sust-wrapper,
    .acids-content-wrapper,
    .acids-gallery {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* --- ІННОВАЦІЇ --- */
    .innovation-row { flex-direction: column; text-align: center; }
    .innovation-row p { text-align: center; margin-bottom: 20px; }

    /* --- ПРОДУКЦІЯ --- */
    .products-image { position: relative; height: 300px; }
    .products-content { order: 2; padding: 30px; } 
    .products-image { order: 1; } 

    /* --- SCROLLYTELLING (ВИМИКАЄМО ОРБІТУ НА МОБІЛЬНИХ) --- */
    .scroll-animation-section { height: auto; padding: 60px 0; }
    .sticky-wrapper { position: relative; height: auto; display: block; overflow: visible; }
    .scrolly-container { display: flex; flex-direction: column; height: auto; }
    .orbit-visual { 
        width: 100%; height: auto; flex-direction: column; gap: 30px; margin-top: 0;
    }
    .orbit-ring, .center-flask, .node-dot { display: none; } 
    
    .orbit-node {
        position: relative; opacity: 1 !important; transform: none !important;
        left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
        width: 100%; display: flex; justify-content: center; margin-bottom: 20px;
    }
    
    .node-card {
        position: relative; opacity: 1 !important; visibility: visible !important; transform: none !important;
        left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
        width: 100%; max-width: 100%;
        background: #f7f7f7; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .node-biodiesel {
        position: relative;
        opacity: 1 !important;
        transform: none !important;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    /* --- ТЕХНОЛОГІЯ (ВИПРАВЛЯЄМО АСИМЕТРІЮ) --- */
    .tech-top { flex-direction: column; margin-bottom: 40px; }
    .tech-card-wrap { width: 100%; margin-right: 0; display: block; }
    .tech-white-card {
        border-right: 2px solid var(--primary-blue); border-radius: 20px;
        padding: 30px; width: 100%; min-width: auto;
    }
    .tech-blue-bar { width: 100%; border-radius: 0; padding: 40px 20px; }
    .tech-blue-content { padding: 0; justify-content: center; text-align: center; }
    .tech-blue-content p { text-align: center; }

    /* --- СПЕЦИФІКАЦІЇ --- */
    .specs-table td { font-size: 14px; padding: 10px; }

    /* --- СТАЛИЙ РОЗВИТОК --- */
    .sust-left, .sust-right { padding: 40px 20px; }
    .sust-card { flex-direction: column; text-align: center; }

    /* --- ГЕОГРАФІЯ --- */
    .trust-card { padding: 30px; border-width: 2px; }
    .trust-title { text-align: center; }
}

@media (min-width: 769px) {
    #node-4 {
        position: absolute;
        top: 80%; /* Позиція знизу */
        left: 20%; /* Позиція зліва */
        /* Додайте ваші стилі анімації, які є у node-1, node-2 і т.д. */
    }
}