:root {
    --color-red: #D8231B;
    --color-blue: #163682;
    --color-bg-light: #F4F6F8;
    --color-bg-white: #FFFFFF;
    --color-text-dark: #1A1A1A;
    --color-text-gray: #555555;
    --color-text-white: #FFFFFF;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* ИСПРАВЛЕНО: Добавлен селектор * */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Switching Logic */
body.lang-ru [data-lang="en"] { display: none !important; }
body.lang-en [data-lang="ru"] { display: none !important; }

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 10px 0; /* Немного уменьшил padding для компактности */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* ИСПРАВЛЕНО: Запрет переноса на новую строку */
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Запрет сжатия логотипа */
}

/* ИСПРАВЛЕНО: Стили для картинки логотипа */
.logo-img {
    max-width: 220px; /* Ограничение длины логотипа */
    height: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 15px; /* Уменьшен отступ между пунктами меню */
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 0.9rem; /* Чуть уменьшен шрифт для вмещения в строку */
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-red);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-gray);
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--color-blue);
}

.divider {
    color: var(--color-text-gray);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section (ИСПРАВЛЕНО: закрыт комментарий) */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Стоковое фото современного пищевого производства */
    background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    color: var(--color-text-white);
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 54, 130, 0.9) 0%, rgba(22, 54, 130, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-red);
    color: white;
}
.btn-primary:hover {
    background-color: #b91d16;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #1ebc57;
}

.btn-telegram {
    background-color: #0088cc;
    color: white;
}
.btn-telegram:hover {
    background-color: #0077b5;
}

/* Sections General */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-blue);
    color: white;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-blue);
}

.text-white {
    color: white !important;
}

/* Synergy Section */
.synergy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.highlight-box {
    margin-top: 20px;
    padding: 20px;
    border-left: 4px solid var(--color-red);
    background: white;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.synergy-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.role-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.role-card.blue-accent { border-top: 4px solid var(--color-blue); }
.role-card.red-accent { border-top: 4px solid var(--color-red); }

.role-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.role-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-gray);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.role-card ul {
    list-style: none;
    padding: 0;
}

.role-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.role-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-weight: bold;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.profile-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

/* ИСПРАВЛЕНО: Убран дубликат и градиент, оставлены только стили для круглой картинки */
.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ИСПРАВЛЕНО: Убраны ошибочные стили картинки из заголовка h3 */
.profile-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--color-blue);
}

.profile-role {
    font-weight: 600;
    color: var(--color-text-gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.profile-desc {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    text-align: left;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(22, 54, 130, 0.05);
}

.service-card h3 {
    color: var(--color-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-gray);
    margin-bottom: 10px;
}

.formats-box {
    background: var(--color-blue);
    color: white;
    padding: 40px;
    border-radius: 12px;
}

.formats-box h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.formats-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.formats-list li {
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.formats-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-weight: bold;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.partner-placeholder {
    background: #E9ECEF;
    color: #6C757D;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px dashed #CED4DA;
    transition: var(--transition);
}

.partner-placeholder:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

/* Contacts Section */
.contacts-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.contacts-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--color-red);
}

.contact-item .icon {
    font-size: 1.5rem;
}

.messenger-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-messenger {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.btn-messenger.whatsapp {
    background-color: #25D366;
}
.btn-messenger.whatsapp:hover { background-color: #1ebc57; }

.btn-messenger.telegram {
    background-color: #0088cc;
}
.btn-messenger.telegram:hover { background-color: #0077b5; }

.qr-block {
    flex-shrink: 0;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
    text-align: center;
    padding: 20px;
}

.qr-icon {
    width: 80px;
    height: 80px;
    background: var(--color-bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--color-blue);
    margin-bottom: 15px;
    border: 2px dashed var(--color-blue);
}

.qr-placeholder p {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    line-height: 1.3;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive (ИСПРАВЛЕНО: закрыт комментарий) */
@media (max-width: 768px) {
    .nav {
        display: none; /* Can be enhanced with JS toggle later if needed */
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .synergy-grid, .synergy-roles {
        grid-template-columns: 1fr;
    }
    .contacts-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-item {
        justify-content: center;
    }
    .messenger-links {
        justify-content: center;
    }
    .logo-img {
        max-width: 180px; /* Чуть меньше на мобильных */
    }
}