:root {
    --primary-color: #1a2a3a;
    --secondary-color: #0f1f2f;
    --accent-color: #ffd700;
    --accent-red: #e74c3c;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c1;
    --header-text: #ffffff;
    --bg-primary: #0d1419;
    --bg-secondary: #1a2a3a;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffed4e;
}

/* BUTTONS */
.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4);
}

/* HEADER */
.header {
    background: linear-gradient(90deg, rgba(15, 31, 47, 0.95), rgba(10, 20, 30, 0.95));
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--header-text);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-img-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto;
}



.logo-text {
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-desktop {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.search-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 4px 8px;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.mobile-menu.active {
    display: flex;
}

/* HERO SECTION */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f1f2f 0%, #1a2a3a 50%, #0d1419 100%);
    color: white;
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%) scale(1.0);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

#hero-canvas {
    display: none;
}

.hero .container {
    z-index: 5;
}

.trading-widget {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(15, 31, 47, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(15px);
    min-width: 200px;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.widget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.widget-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.widget-change {
    font-weight: 600;
}

.widget-change.positive {
    color: #2ecc71;
}

.widget-change.negative {
    color: var(--accent-red);
}

.widget-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 12px 0;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.widget-divider {
    border: none;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin: 12px 0;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* SECTIONS */
.section {
    padding: 80px 20px;
    background-color: var(--bg-secondary);
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--bg-primary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.section-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ABOUT SECTION */
.about-section {
    background-color: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-large {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(231, 76, 60, 0.1));
    padding: 60px 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
}



.logo-large p {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
}

/* DIRECTIONS SECTION */
.directions-section {
    background-color: var(--bg-primary);
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.direction-card {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(52, 152, 219, 0.1));
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.direction-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
}

.direction-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    border-color: rgba(52, 152, 219, 0.3);
}

.direction-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.direction-card h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.direction-card p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* CATALOG SECTION */
.catalog-section {
    background-color: var(--bg-secondary);
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-item {
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid var(--accent-color);
    padding: 15px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.product-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.product-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.product-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* PARTNERS SECTION */
.partners-section {
    background-color: var(--bg-primary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    /* Added to ensure better wrapping on smaller screens */
    grid-auto-rows: 1fr;
    gap: 20px;
    text-align: center;
}

.partner-card {
    background: var(--bg-secondary);
    padding: 30px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    /* Animation for entrance */
    animation: zoomIn 0.6s ease forwards;
    opacity: 0;
}

.partner-card:hover {
    transform: translateY(-5px) scale(1.02); /* Subtle scale on hover */
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.partner-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.partner-card h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
}

/* GLOBAL SECTION */
.global-section {
    background-color: var(--bg-secondary);
}

.global-highlight {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(231, 76, 60, 0.1));
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: left;
}

.global-highlight p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.global-highlight p:last-child {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* LOGISTICS SECTION */
.logistics-section {
    background-color: var(--bg-primary);
}

.logistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.logistics-column h3 {
    color: var(--accent-red);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.logistics-column p {
    margin-bottom: 15px;
}

.quality-box {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.quality-box p {
    margin: 0;
}

.quality-box strong {
    color: var(--accent-color);
}

/* COOPERATION SECTION */
.cooperation-section {
    background-color: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    /* Animation for entrance */
    animation: zoomIn 0.6s ease forwards;
    opacity: 0;
}

.step-card:hover {
    transform: translateY(-5px) scale(1.02); /* Subtle scale on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: var(--accent-red);
    color: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-card h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.step-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* CONTACT SECTION */
.contact-section {
    background-color: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-wrapper h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    background-color: #25D366;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    background-color: #171fb5;
    box-shadow: 0 6px 18px rgba(13, 69, 201, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-linkedin:hover {
    background-color: #1313d6;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.contact-info h3 {
    color: var(--accent-red);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.info-item p {
    margin: 0;
    line-height: 1.4;
}

.info-item strong {
    color: var(--text-primary);
}

/* FOOTER */
.footer {
    background-color: #0d1419;
    padding: 60px 20px 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-column button {
    border: none;
    font-size: 1rem;
    background-color: #0d1419;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-column button:hover {
    color: var(--accent-color);
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.social-links a {
    color: var(--accent-color);
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffed4e;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .logistics-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

    @media (max-width: 768px) {
        #hero-video {
            transform: translate(-50%, -50%) scale(1.0); /* Уменьшение масштаба для мобильных, чтобы видео было видно */
        }
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-controls {
        gap: 10px;
    }

    .logo {
        gap: 8px;
        font-size: 1rem;
    }

    .logo-circle {
        width: 36px;
        height: 36px;
    }

    .hero {
        min-height: 80vh;
        padding: 60px 15px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Add a fallback background for the hero section on mobile */
    .hero {
        background: linear-gradient(135deg, #0f1f2f 0%, #1a2a3a 50%, #0d1419 100%) !important;
        background-image: url('fallback-hero-bg.jpg'); /* Assuming a fallback image exists or will be added */
        background-size: cover;
        background-position: center;
    }

    .trading-widget {
        position: fixed;
        bottom: 20px;
        right: 10px;
        top: auto;
        min-width: 140px;
        padding: 10px;
        font-size: 0.8rem;
        max-width: 160px;
    }

    .widget-price {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .logo-circle-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .logo-large {
        padding: 40px 20px;
    }

  .catalog-grid {
        grid-template-columns: 1fr;
    }

.partners-grid {
	        /* Adapted for mobile: 2 columns for better use of space */
	        grid-template-columns: repeat(1, 1fr);
	        gap: 15px;
	    }

    .logistics-column h3 {
        font-size: 1.5rem;
    }

    .steps-grid {
        /* Force two columns on mobile as requested */
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-controls {
        gap: 8px;
    }

    .logo {
        font-size: 0.9rem;
    }

    .logo-circle {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    #hero-video {
        transform: translate(-50%, -50%) !important;
    }

    .trading-widget {
        bottom: 15px;
        right: 10px;
        min-width: 130px;
        padding: 8px;
        font-size: 0.75rem;
        max-width: 150px;
    }

    .widget-price {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .logo-circle-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .logo-large {
        padding: 30px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }



    .direction-card,
    .partner-card,
    .step-card {
        padding: 20px 15px;
    }
}


/* More granular responsive adjustments */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .trading-widget {
        min-width: 120px;
    }

    .footer-grid {
        justify-content: center;
    }
}


/* Custom style for product item button */
.product-btn {
    /* New Button Styles */
    display: inline-block;
    padding: 8px 15px;
    margin-top: 10px;
    background-color: var(--accent-color); /* Yellow background */
    color: var(--bg-primary); /* Dark text color */
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    text-align: center;
    line-height: 1.2;
}

.product-btn:hover {
    background-color: #ffed4e; /* Slightly lighter yellow on hover */
    transform: translateY(-2px);
    color: black;
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.5);
}

/* Stretch the right side of the "Кокс нефтянной" button so it visually matches the
   length of the "Гранулированная cера" button without making all buttons full-width. */
a.product-btn[href="koks.html"] {
    /* Slight extra right padding and a reasonable min-width to match the sibling button */
    padding-right: 48px; /* increased to stretch the right side a bit more */
    min-width: 200px;    /* increased to better match the sibling button length */
}

/* Revert the product-item padding and border-left for the button to stand out */
.product-item {
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid var(--accent-color);
    padding: 15px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.product-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

/* Style for the text below the button */
.product-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 10px; /* Add space between button and text */
}

