/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-dark: #0a1929;
    --color-text: #1a2332;
    --color-text-secondary: #64748b;
    --color-border: #e2e8f0;
    --color-accent-green: #10b981;
    --color-accent-green-saturated: #047857;
    --color-accent-orange: #f59e0b;
    --color-surface: #f8fafc;
    --color-btn-bg: #e9ecef;
    --color-btn-bg-hover: #dee2e6;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-width: 1400px;
    --section-padding: 100px 0;
    --header-height: 120px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(10, 25, 41, 0.06);
    transition: var(--transition);
}

.header--scrolled {
    box-shadow: 0 4px 20px rgba(10, 25, 41, 0.1);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 24px;
}

/* ЛОГОТИП */
.header__logo {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
    transition: var(--transition);
}

.header__logo-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    transition: transform 0.5s ease;
}

.header__logo:hover .header__logo-icon {
    transform: rotate(60deg) scale(1.08);
}

.header__logo-text {
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1;
    color: var(--color-accent-green-saturated);
    white-space: nowrap;
}

/* НАВИГАЦИЯ - МАКСИМАЛЬНО КОМПАКТНЫЕ ОТСТУПЫ */
.header__nav {
    display: flex;
    align-items: center;
    gap: 5px; /* УМЕНЬШЕНО С 10px ДО 5px */
    margin-left: auto;
}

/* КНОПКИ МЕНЮ — МАКСИМАЛЬНО КОМПАКТНЫЕ */
.header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px; /* УМЕНЬШЕНО С 10px 16px ДО 8px 12px */
    background: var(--color-btn-bg);
    color: var(--color-text);
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px; /* УМЕНЬШЕНО С 14px ДО 13px */
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.header__btn:hover {
    background: var(--color-btn-bg-hover);
    color: var(--color-accent-green-saturated);
    border-color: var(--color-accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.15);
}

.header__btn--active {
    background: var(--color-accent-green-saturated);
    color: #ffffff;
    border-color: var(--color-accent-green-saturated);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}

/* БУРГЕР */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--color-btn-bg);
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    transition: var(--transition);
}

.header__burger:hover {
    background: var(--color-accent-green-saturated);
    border-color: var(--color-accent-green-saturated);
}

.header__burger:hover span {
    background: #ffffff;
}

.header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    margin: 2.5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.header__burger--active {
    background: var(--color-accent-green-saturated);
    border-color: var(--color-accent-green-saturated);
}

.header__burger--active span {
    background: #ffffff;
}

.header__burger--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger--active span:nth-child(2) {
    opacity: 0;
}

.header__burger--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0a1929 0%, #1a2332 100%);
    color: #ffffff;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero__badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-accent-green);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding);
}

.section--about { background: var(--color-bg); }
.section--industries { background: var(--color-surface); }
.section--products { background: var(--color-bg); }
.section--benefits { background: var(--color-surface); }
.section--contacts { background: var(--color-bg); }

.section__header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section__label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section__title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

/* ===== ABOUT ===== */
.about__grid {
    display: grid;
    gap: 40px;
}

.about__intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 800px;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature {
    padding: 28px;
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(10, 25, 41, 0.06);
    border-color: var(--color-accent-green);
}

.feature__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-accent-green);
    border-radius: 10px;
    margin-bottom: 16px;
}

.feature__content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.feature__content p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.about__clients {
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-radius: 12px;
    border-left: 3px solid var(--color-accent-green);
}

.about__clients p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
}

.about__clients strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ===== INDUSTRIES ===== */
.industries__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.industry-card {
    padding: 36px;
    background: var(--color-bg);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(10, 25, 41, 0.08);
}

.industry-card--food:hover { border-color: var(--color-accent-green); }
.industry-card--nuclear:hover { border-color: var(--color-accent-orange); }

.industry-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.industry-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.industry-card--food .industry-card__icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-accent-green);
}

.industry-card--nuclear .industry-card__icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-accent-orange);
}

.industry-card__header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
}

.industry-card__desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.industry-card__list {
    list-style: none;
    margin-bottom: 20px;
}

.industry-card__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--color-text);
}

.industry-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.industry-card--food .industry-card__list li::before { background: var(--color-accent-green); }
.industry-card--nuclear .industry-card__list li::before { background: var(--color-accent-orange); }

/* ===== PRODUCTS TABLE ===== */
.products-table {
    background: var(--color-bg);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.products-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.products-row:last-child { border-bottom: none; }

.products-row:not(.products-row--header):hover {
    background: var(--color-surface);
}

.products-row--header {
    background: var(--color-dark);
    color: #ffffff;
}

.products-row--header .products-cell {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.products-cell {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.products-cell--type {
    border-right: 1px solid var(--color-border);
}

.products-row--header .products-cell--type {
    border-right-color: rgba(255, 255, 255, 0.1);
}

.type-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.type-badge--anion { background: rgba(16, 185, 129, 0.1); color: var(--color-accent-green); }
.type-badge--cation { background: rgba(245, 158, 11, 0.1); color: var(--color-accent-orange); }
.type-badge--nonionic { background: rgba(100, 116, 139, 0.1); color: var(--color-text-secondary); }

/* ===== BENEFITS ===== */
.benefits__content {
    max-width: 1000px;
}

.benefits__intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.benefit-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--color-bg);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent-green);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.08);
}

.benefit-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-accent-green);
    border-radius: 10px;
    flex-shrink: 0;
}

.benefit-card__content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.benefit-card__content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.benefits__conclusion {
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text);
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-radius: 12px;
    border-left: 3px solid var(--color-accent-green);
}

/* ===== CONTACTS ===== */
.contacts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--color-bg);
    border-color: var(--color-accent-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 25, 41, 0.06);
}

.contact-item__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-accent-green);
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-item__content h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.contact-item__content p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer__tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer__legal {
    font-size: 14px;
    line-height: 1.7;
}

.footer__legal p { margin-bottom: 8px; }

.footer__legal strong {
    color: #ffffff;
    font-weight: 600;
}

.footer__legal a {
    color: var(--color-accent-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__legal a:hover { color: #ffffff; }

.footer__bottom {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .header__btn {
        padding: 6px 10px; /* УМЕНЬШЕНО С 8px 12px ДО 6px 10px */
        font-size: 12px; /* УМЕНЬШЕНО С 13px ДО 12px */
    }
    
    .header__nav {
        gap: 4px; /* УМЕНЬШЕНО С 8px ДО 4px */
    }
    
    .header__inner {
        gap: 20px;
    }
}

@media (max-width: 968px) {
    :root {
        --section-padding: 70px 0;
        --header-height: 90px;
    }
    
    .hero { padding: 140px 0 70px; }
    
    .header__inner {
        gap: 16px;
    }
    
    .header__logo {
        gap: 14px;
    }
    
    .header__logo-icon {
        width: 56px;
        height: 56px;
    }
    
    .header__logo-text {
        font-size: clamp(24px, 5vw, 34px);
    }
    
    .header__burger {
        display: flex;
    }
    
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 12px;
        padding: 100px 30px 40px;
        box-shadow: -8px 0 30px rgba(10, 25, 41, 0.15);
        transition: right 0.3s ease;
        margin-left: 0;
        border-radius: 0;
        overflow-y: auto;
    }
    
    .header__nav--open {
        right: 0;
    }
    
    .header__btn {
        width: 100%;
        padding: 14px 20px; /* Оставлено удобным для пальца на мобильном */
        font-size: 15px;
        justify-content: flex-start;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-row {
        grid-template-columns: 1fr;
    }
    
    .products-cell--type {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 12px;
    }
    
    .products-row--header .products-cell--type {
        display: none;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 50px 0;
        --header-height: 80px;
    }
    
    .container { padding: 0 16px; }
    .hero { padding: 120px 0 50px; }
    .section__header { margin-bottom: 40px; }
    
    .header__logo {
        gap: 10px;
    }
    
    .header__logo-icon {
        width: 44px;
        height: 44px;
    }
    
    .header__logo-text {
        font-size: clamp(20px, 6vw, 28px);
    }
    
    .feature,
    .industry-card,
    .benefit-card,
    .contact-item {
        padding: 20px;
    }
    
    .industries__grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    .feature,
    .industry-card,
    .benefit-card,
    .contact-item {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .feature:nth-child(1) { animation-delay: 0.1s; }
    .feature:nth-child(2) { animation-delay: 0.2s; }
    .feature:nth-child(3) { animation-delay: 0.3s; }
    
    .industry-card:nth-child(1) { animation-delay: 0.1s; }
    .industry-card:nth-child(2) { animation-delay: 0.2s; }
    
    .benefit-card:nth-child(1) { animation-delay: 0.1s; }
    .benefit-card:nth-child(2) { animation-delay: 0.15s; }
    .benefit-card:nth-child(3) { animation-delay: 0.2s; }
    .benefit-card:nth-child(4) { animation-delay: 0.25s; }
}