:root {
    --primary-color: #003366;
    /* Deep corporate blue */
    --secondary-color: #00509E;
    /* Lighter blue for interactions */
    --accent-color: #F4A261;
    /* Subtle accent (optional, maybe distinct gray or muted gold) - kept to minimum */
    --text-main: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --white: #ffffff;

    --font-main: Arial, Helvetica, sans-serif;

    --container-width: 1200px;
    --header-height: 80px;

    --transition: 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

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

.section {
    padding: 80px 0;
}

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

.section--dark {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Typography */
.section__header {
    margin-bottom: 50px;
    text-align: center;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section--dark .section__title {
    color: var(--white);
}

.section__line {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn--primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo__img {
    height: 50px;
    object-fit: contain;
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__company {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.logo__descriptor {
    font-size: 0.8rem;
    color: var(--text-light);
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero - Split Layout */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,45,91,0.85) 0%, rgba(0,45,91,0.4) 100%);
}

.hero__container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-top: var(--header-height);
    padding-bottom: 80px;
}

/* Left Content */
.hero__content {
    flex: 1;
    padding: 60px 0;
    max-width: 600px;
    z-index: 2;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--white);
    text-shadow: none;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    color: #e6e6e6;
    text-shadow: none;
}

/* Right Image */
.hero__image-wrapper {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive for Split Hero */
@media (max-width: 992px) {
    .hero__container {
        text-align: center;
        padding-bottom: 60px;
    }

    .hero__content {
        padding: 40px 20px 0;
        margin: 0 auto;
    }
}

/* About */
.about__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    /* Wide gap for open feeling */
}

.about__text-side {
    flex: 1;
    max-width: 600px;
    /* Optimal reading width */
}

.about__text-side p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    text-align: left;
    /* Explicitly left align */
}

.about__features-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    /* Restrict width slightly to keep cards looking good */
}

.feature-card {
    width: 100%;
    /* Full width of the column */
    background: var(--bg-white);
    padding: 25px 30px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
    /* Subtle border instead of heavy left border */
    align-items: center;
    gap: 20px;
}

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.feature-card__icon {
    font-size: 2rem;
    /* Slightly smaller icon for cleaner look */
    margin-bottom: 0;
    flex-shrink: 0;
}

.feature-card__content {
    flex: 1;
}

.feature-card__title {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.15rem;
    /* Slightly smaller title */
}

.feature-card__text {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    /* Slightly smaller text */
    line-height: 1.4;
}

/* Responsive for About Split */
@media (max-width: 992px) {
    .about__content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        /* Center for mobile/tablet */
    }

    .about__text-side {
        max-width: 100%;
        text-align: center;
        /* Center text on mobile */
    }

    .about__text-side p {
        text-align: center;
    }

    .about__features-side {
        width: 100%;
        max-width: 600px;
        /* Allow full width on mobile */
    }
}

/* Products */
.products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect on dark bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 4px;
    transition: var(--transition);
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.product-card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.product-card__text {
    color: rgba(255, 255, 255, 0.8);
}

.products__info {
    margin-top: 50px;
    text-align: center;
    font-size: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
}

.products__info strong {
    color: var(--white);
}

/* Production */
.production__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.check-list {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.check-list li {
    padding-left: 30px;
    position: relative;
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: 900;
}

.timeline {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
}

.timeline__item {
    position: relative;
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.timeline__item::before {
    content: '';
    position: absolute;
    top: -39px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 1px #e0e0e0;
}

.timeline__date {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Logistics */
.logistics__grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.logistics-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 280px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.logistics-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 50%;
    width: 20px;
    height: 20px;
    border-top: 4px solid #e0e0e0;
    border-right: 4px solid #e0e0e0;
    transform: translateY(-50%) rotate(45deg);
}

.logistics-card:hover {
    transform: translateY(-5px);
    z-index: 2;
}

@media (max-width: 992px) {
    .logistics__grid {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .logistics-card:not(:last-child)::after {
        right: 50%;
        top: auto;
        bottom: -40px;
        transform: translateX(50%) rotate(135deg);
    }
}

.logistics-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.logistics__note {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--text-light);
}

/* Cooperation */
.cooperation__content {
    text-align: center;
}

.cooperation__list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.coop-item {
    background: var(--white);
    color: var(--text-main);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex: 1 1 200px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 4px solid var(--secondary-color);
}

.coop-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.coop-item__icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.coop-item__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* CTA Section */
.cta {
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, var(--primary-color) 0%, #001a33 100%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta__text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* New Button Variant for CTA */
.btn--white {
    background-color: var(--white);
    color: var(--secondary-color);
    display: inline-block;
    margin-top: 0;
}

.btn--white:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #aeaeae;
    padding: 60px 0 0;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer__title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer__text {
    margin-bottom: 10px;
}

.footer__link {
    background: none;
    border: none;
    color: #aeaeae;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}

.footer__link:hover {
    color: var(--white);
}

.footer__bottom {
    background: #111;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal__title {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal__content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Animations Class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .header__container {
        padding: 0 15px;
    }

    .burger {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .burger span {
        width: 30px;
        height: 3px;
        background: var(--primary-color);
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav__list {
        flex-direction: column;
        text-align: center;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .about__features,
    .check-list {
        flex-direction: column;
        display: flex;
    }

    .timeline {
        flex-direction: column;
        border-left: 2px solid #e0e0e0;
        padding-left: 20px;
        margin-left: 20px;
    }

    .timeline::before {
        display: none;
    }

    .timeline__item {
        text-align: left;
        padding: 0 0 30px 20px;
    }

    .timeline__item::before {
        top: 0;
        left: -27px;
        transform: none;
    }
}

/* === Improvements: new sections (advantages, facts) === */

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.facts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fact-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.fact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.fact-card__value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.fact-card__label {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* === Bugfix: products cards should be visible on mobile (responsive grid) === */
@media (max-width: 1024px) {
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages__grid,
    .facts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .products__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .product-card {
        padding: 26px;
    }

    .advantages__grid,
    .facts__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .fact-card {
        padding: 22px;
    }
}


.product-card__link {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.product-card__link:hover,
.product-card__link:focus-visible {
    color: var(--white);
}

.modal--document {
    max-width: 1000px;
    height: calc(100vh - 40px);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal__content--document {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.document-viewer {
    width: 100%;
    flex: 1;
    min-height: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    overflow: hidden;
    background: #f4f4f4;
}

.document-viewer__frame {
    width: 100%;
    height: 100%;
    border: 0;
}

.document-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.document-link:hover,
.document-link:focus-visible {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .modal--document {
        max-width: 100%;
        height: calc(100vh - 24px);
        max-height: calc(100vh - 24px);
        padding: 24px 20px;
    }
}
